Epson TM-T20II-i ePOS-Device XML Users Manual For TM-i firmware v4.1 - Page 34
If Reconnecting to the TM-Intelligent when the Network was Cut Off, Device, Applic
View all Epson TM-T20II-i manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 34 highlights
If Reconnecting to the TM-Intelligent when the Network was Cut Off If network communication with the TM-Intelligent is cut off, the client application will reconnect. By reconnecting, you can use the devices that were open without reopening them. Also, through the settings for opening, the data to be sent to the client application that occurred while the network was cut off can be received upon reconnection. The following sequence explains the message flow necessary upon reconnection and the necessary parameters. Applications ePOS-Device Device 1 : Establishment of TCP/IP connection() TCP connection to Socket I/F from the native application 2 : connect message(client_id=0001) Establish a communication path to ePOS-Device Service I/F 3 : open_device message(buffer=true) Response(data_id=1) 4.1 : device_data message(Data, data_id=2) 4 : Data occurred() Network is cut off 5 : Data occurred() 5.1 : Retains inside (data_id=3) 6 : Establishment of TCP/IP connection() connect message(client_id=0002) 7: reconnect message (new_client_id = 0002, old_client_id = 0001, received_id = 2) Response(OK) 8 : device_data message(Data, data_id=3) To open an unopen device from the client, be sure to send a message when closing the application. Also, in cases where you cannot send a message when closing the application, store the previous in the application's permanent memory beforehand, and upon the next start-up, use the previous to send a message. 34