-
-
Notifications
You must be signed in to change notification settings - Fork 55
Description
Hi i have hooked up the scanner correctly to my GPIO board and when i try run raspberry_pi_GPIO_test.py all i get is Command:open then
Traceback (most recent call last): File "/home/pi/Desktop/pyGT511C3-master/raspberry_pi_GPIO_test.py", line 32, in
fps = FPS.FPS_GT511C3(device_name='/dev/ttyAMA0',baud=9600,timeout=5,is_com=False)
File "/home/pi/Desktop/pyGT511C3-master/FPS.py", line 319, in init
self.Open()
File "/home/pi/Desktop/pyGT511C3-master/FPS.py", line 333, in Open
self.SendCommand(packetbytes, 12)
File "/home/pi/Desktop/pyGT511C3-master/FPS.py", line 756, in SendCommand
self._serial.write(bytes(cmd))
File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 475, in write
n = os.write(self.fd, d)
KeyboardInterrupt when i inturupt to quit out
if i try to run baud_to_115200.py i get the following:
Traceback (most recent call last):
File "/home/pi/Desktop/pyGT511C3-master/baud_to_115200.py", line 16, in
fps = FPS.FPS_GT511C3()
File "/home/pi/Desktop/pyGT511C3-master/FPS.py", line 316, in init
self._serial = connect(device_name,baud,timeout,is_com=is_com)
File "/home/pi/Desktop/pyGT511C3-master/FPS.py", line 277, in connect
device_name = DEVICE_NAME
UnboundLocalError: local variable 'DEVICE_NAME' referenced before assignment
Can anyone advise? I'm just getting into PI's and i don't have a firm understanding. Thanks