7 - 2 EA3600 Network Connect Product Reference Guide
Unicast Receive Packet Details From the Device
•
Packet Protocol: UDP
•
Source Address: <IP Address of Device>
•
Destination Address: <IP Address of Host>
•
Source Port: 12362
•
Destination Port: <Same as source port in broadcast packet>
•
Payload (C/C++ string): "MAC=xx:xx:xx:xx:xx:xxPORT=YYYYY"
Where xx:xx:xx:xx:xx:xx is the MAC address of the device and YYYYY is the port address that the device is
currently set to use.
After sending the Broadcast packet as defined above, the devices on the network will all respond with the Unicast
packet also defined above. Multiple responses (usually 3) may be received from the same
Receiving Barcode Data
By default, the EA3600 sends barcode data via TCP packets to a connected client on port 54321. This port is
configurable. The example below uses the default port value.
C# Connection Source Code Example (where ipAddress is address of the EA3600):
IPEndPoint bcScanner = new IPEndPoint(ipAddress, 54321);
Socket skt = new Socket(AddressFamily.InterNetwork, SocketType.Stream,
ProtocolType.Tcp);
skt.Connect(bcScanner);
Barcode receive packets are defined below.
Unicast Receive Packet Details From the Device
•
Packet Protocol: TCP
•
Source Address: <IP Address of Device>
•
Destination Address: <IP Address of Host>
•
Source Port: 54321
•
Destination Port: <Any, specified during connection>
•
Payload (Byte array): <Bar code data>