摘要 |
The present invention relates to a multi-route mechanism for the coexistence of the WIFI of a POS machine and Ethernet. Firstly, the priority of a network connection management module in a POS machine terminal based on an android system is canceled, and a WIFI module and an Ethernet module port are kept to be controlled independently; the IP addresses of DNSs are added respectively after network connection, and meanwhile, a requested link website is parsed, the type of service requirement of the currently-requested link website is judged, and the route of the link website is configured; a link website request instruction requiring online service is sent to the connection port of the WIFI module, and a link website request instruction requiring financial transaction service is sent to the connection port of the Ethernet module; with the mechanism above, two network connections of the POS machine terminal can exist at the same time, and the DNS address information is added or deleted in time according to the network connection or disconnection state; meanwhile, different service requests are used for sending different network connections according to the current link request and an application requirement, ensuring the safety of the POS machine terminal during transactions. |