Powerscan PM9500 Two-Way Comm Tutorial
Powerscan PM9500 Two-Way Comm Tutorial
Introduction : This tutorial describes step by step the setup of the PowerScan PM9500 series scanners to use with the 2
way communication protocol. Per default, the scanner is working in 1 way. This means that you scan a barcode, the barcode
is transmitted to the cradle, and the cradle transmits this data to the host .
Two Way protocol means that the host is sending a message back to the scanner after reception of the scanned data.
Sending back messages to the Scanner can only be done when the cradle is connected to the host in USB-COM mode,
RS232 mode or Ethernet.
The messages send back to the Scanner can be text messages to show on the display, pilot the LED’s (Red & Green) on the
scanner and pilot the beeper. It is not mandatory to have a display.
This tutorial does not describe programming of the two way protocol, but it gives an overview and tools to test and try the 2
way protocol.
Hardware & Software Setup : To test the articles and suggestions out of this tutorial require a minimum of next hardware.
The hardware setup is described in the reference manual of the PowerScan PM9500:
http://www.datalogic.com/tools/download.aspx?iddwnfile=10678&path=%2fupload%2fmarketlit%2fmanuals%2fpower
scan%2f820053614.pdf&name=820053614
Page 1
v1.1
a) Setup Scanner: The below barcodes & procedures is to setup the scanner from scratch and do a basic 1 way
test. Scan the appropriate barcodes and steps described below. If for one or another reason the scanner does
not scans and the LED is blinking, please hold the trigger for 10 seconds to reset the scanner.
Step 1: Unlink: this barcode is used to remove the link between the scanner and previous connected cradle
Step 2: Link: Put the scanner in the cradle to link cradle and scanner.
Step 4: Interface Selection: depending on the cable and interface you want to use, scan 1 of the 3 below
barcodes.
For RS232 and USB-COM interface, you need to test with a serial port terminal tool. ComTestSerial is a freeware
terminal tool that can be downloaded at the next link:
http://www.microridge.com/ftp/comtestserial/Install_ComTestSerial_3_0_0_113.exe
Download and install this tool. Select the correct serial port and set the baud rate to 115200. Per default, RS232
and USB-COM speed of the cradle is set to 115200
For Ethernet, you need Aladdin (minimal version 1.7) to detect the IP address of the cradle; and you can
download the freeware Hercules to use as an terminal tool :
http://www.hw-group.com/products/hercules/index_en.html
http://new.hwg.cz/files/download/sw/version/hercules_3-2-8.exe
Page 2
v1.1
When scanning an item with RS232 or USB-COM connection, the data will be visible in ComTestSerial.
For the Ethernet setup, you need to start up Aladdin first to find the IP address of the cradle. Per default, the
Ethernet cradle is setup to get the IP address via a DHCP server. Start Aladdin; select ‘Device Auto detection’
‘Search on connection’. After a few seconds the Ethernet cradle will appear, and also it’s IP address. In the below
image, the IP address is 192.168.0.156
Page 3
v1.1
For the Ethernet connection test, use Hercules. Go to the TCP Client tab, and set the IP address.
Also, set the port to 51000 and do a connect. Then scan a barcode, the data should be visible.
At this point, the scanner and cradle are setup in normal 1 way communication.
Next step is to enable 2 way and do tests.
Page 4
v1.1
First Setup the scanner into 2 way. This is done by scanning the next 2 barcodes
c) Ethernet optional: Active Service Selection: Both Telnet and Data Socket (CETAS02). This is only for the
Ethernet cradle and allows sending back data without sending the radio address.
.
When the scanner is configured for 2 way communication, and you scan a barcode, an error beep will be
heard after the timeout period. This means that the scanner didn’t receive an answer during the timeout
period.
From now on, you can send information back to the scanner
a) Synchronous: This means that after each message coming from the gun, the host needs to answer
within the timeout.
As an example, you can send the text ‘Hello world’ back to the device.
In RS232 or USB-COM mode, use ComTestSerial, and paste the next text in the local commands
windows. When data arrived from the scanner, press send note. The \x0d is the hex notification of the
Enter character (also called carriage return). Each answer to the device must terminate with CR.
Page 5
v1.1
In Ethernet mode, use Hercules, and paste the next text in one of the send boxes.
When data arrived from the scanner, press send. Be sure that the Hex notification is set.
Page 6
v1.1
b) Asynchronous: This means that you can send data to the device without receiving a string from the
device (also called unattended mode).
As an example, you can send the text ‘How are you’ to the device without scanning a barcode or pressing
a key on the scanner.
In RS232 or USB-COM mode, use ComTestSerial, and paste the next text in the local commands
window. Press the send button. Note: To use the asynchronous mode, the character DC2 (hex \x12)
needs to be placed in front of the message The \x0d is the hex notification of the Enter character (also
called carriage return). Each answer to the device must terminate with a CR.
In Ethernet mode, use Hercules, and paste the next text in one of the send boxes. Press the send
button. Be sure that the Hex notification is set.
Page 7
v1.1
When working with multiple guns per cradle, it is necessary to know the radio address of the gun that is sending the
message, or that you want to send an asynchronous message to. Each PM9500 has a unique 12 digit radio address.
To send this radio address in front of the message, scan the barcode below.
If you scan a barcode now, the cradle will put the unique radio address in front of the data.
To send back messages, you need to include this unique radio address into the answer.
Page 8
v1.1
In the reference manual of the PowerScan 9500, you can find a section called ‘Message formatting’.
This section describes the Escape codes to be sent to drive the cursor, beeper and LED’s.
Page 9
v1.1
Send low tone + short delay 3 times, clear the green LED and set the red LED on.
Send data for ComTestSerial: (do not forget to change the radio address)
00000009AFD0\x12\x1b[2q\x1b[2q\x1b[2q\x1b[7q\x1b[8q\x0d
Page 10