Search This Blog

Tuesday, December 3, 2013

Simulate INTERMEC EA15 barcode scanner via UDP packages

The EA15 intermec barcode scanner sends barcodes as UDP packages. To simulate its behaviour without actually owning the device you can send appropriate packages to the device.

PORT: 4080
barcode prefix: 0000

So to send barcode: 5900116011295
You actully need to send: 00005900116011295
which in HEX is: 30 30 30 30 35 39 30 30 31 31 36 30 31 31 32 39 35

On Windows there is Packet Sender.



On Linux you can easily send udp packages from terminal to simulate barcode scanning:

sudo sendip -p ipv4 -is 10.255.255.14 -p udp -us 5070 -ud 4080 -d "0x3030303035393030313136303131323935" -v 10.255.255.125

where 30 30 30 30 35 39 30 30 31 31 36 30 31 31 32 39 35
is the HEX: 00005900116011295
-is  output IP address
-us  output port number
-v destination ip address
-ud destination port address

to send a simple string do:
sudo sendip -p ipv4 -is 10.255.255.14 -p udp -us 5070 -ud 4080 -d "Hello this is a string" -v 10.255.255.125

The same result can be achieved with the socat command on linux:

echo "00005900116011295" | socat - udp-datagram:10.255.255.125:4080

The scanner looks like this:


2 comments:

If you like this post, please leave a comment :)