Symbol LS5800 barcode scanner

From Robertjd

Jump to: navigation, search



RS-232 pin-out

This is the pinout definition for the RJ-50 Jack labeled "RS-232" on the scanner.

  • Pin 1-no connect
  • Pin 2-DTR
  • Pin 3-RXD
  • Pin 4-no connect
  • Pin 5-RTS
  • Pin 6-signal ground
  • Pin 7-CTS
  • Pin 8-no connect
  • Pin 9-TXD
  • Pin 10-no connect

Yes it really is an RJ-50, not an RJ-45 jack. Although it has ten pins, you can still fit an RJ-45 plug into it with a bit of force. There is no need to worry about damaging the outer pins 1 and 10 because they are not used.

The above is a copy of the text found on this forum post:

Scanner Manual

Download the manual for the scanner here: link:

Scanner Configuration

You may want to begin by resetting all the defaults. This can be done by scanning the configuration barcode on page 5-5 of the manual

In order to receive data from the RS-232 port you must enable that feature by scanning the configuration barcode on page 5-15 of the manual

Default serial settings

The default serial settings for your host are:

  • 9600
  • 8 data bits
  • 1 stop bit
  • Even parity
  • No hardware control/handshaking

Send newline character after barcode

It may be useful to send a newline character after a barcode is sent. Scan these configuration barcodes from the manual, in order, to enable a newline character after the barcode:

  • Page 5-233 (Scan Options)
  • Page 5-234 (Data As-Is)
  • Page 5-235 (Data +CR1013)
  • Page 5-257 (ENTER, commits the changes)

Python Script

A real basic script, using PySerial, to monitor the serial port for incoming barcodes:

import serial

s = serial.Serial('/dev/ttyUSB0')

while 1:
  barcode = s.readline().strip()
  print barcode

serial.readline() will wait until a newline character is recieved, which is why it is important to make sure you configure this in the scanner itself (as outlined above)

Configuration Barcodes

Here are jpg images of the barcodes you will need to complete the instructions above. These can also be found in the manual. The manual has many more configuration codes for options like the sound of the beep. You should look at the manual.

NOTE: If you print this page as-is you will need to cover all barcodes, except the one you need, while scanning. Otherwise you might accidentally scan the wrong one. You should click on each image and then print each image individually.

Code Page in manual
4288198716_08d6c32d40_o.jpg      Page 5-5
4287457193_d58a494205_o.jpg      Page 5-15
4288199070_57171cd331_o.jpg      Page 5-233
4287458057_b19f9373d8_o.jpg      Page 5-234
4288199542_f0c8c0865c_o.jpg      Page 5-235
4288199792_9611c00a2b_o.jpg      Page 5-257
Personal tools