I'm trying to send signal to barcodescanner Datalogic PowerScan PM9500
The manual says that to turn on the green LED I need sent ESC[6q ESC[3q ESC[7q
message
my code:
import serial
SERIAL_PORT = serial.Serial('COM4', 9600, timeout=0.5)
SERIAL_PORT.write(data=(b'ESC [ 6 q ESC [3 q ESC [7 q\r'))
nothing happens.
Another tries were:
SERIAL_PORT.write(data=(0x1B, 0x5B, 0x36, 0x71, 0x0D))
SERIAL_PORT.write(data=('ESC [ 6 q ESC [3 q ESC [7 q'))
I figured out that if I send "B" to port, the scanner will beep once:
SERIAL_PORT.write("B".encode())
But I still cannot understand how to Turn on the LED.
Maybe somebody has some example or sought how it should work. Or maybe somebody has worked with barcode scanner communications. Any information on what is wrong would be helpful. Thank you in advance.
PS: I do not need fish, I just need fishing rod.