-

CommentStreams:4e8ec205378f5b800d648cc7f980e690

From Geekworm Wiki
< RPi UPSPack
Revision as of 08:54, 9 October 2019 by 86.3.87.200 (talk) (Migrated comment #611)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Any english instructions for the python code for version 2 please? i've connected the wires as shown in the image, but I get the error below. It's a pi3b+, running the latest noobs, all updated.

Traceback (most recent call last):

 File "UPS_GUI_demo.py", line 79, in <module>
   version,vin,batcap,vout = test.decode_uart()
 File "/home/pi/dev/UPSPACK_V2/GUI_py/upspackv2.py", line 22, in decode_uart
   self.uart_string = self.get_data(100)
 File "/home/pi/dev/UPSPACK_V2/GUI_py/upspackv2.py", line 15, in get_data
   self.count = self.ser.inWaiting()
 File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 590, in inWaiting
   return self.in_waiting
 File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 467, in in_waiting
   s = fcntl.ioctl(self.fd, TIOCINQ, TIOCM_zero_str)

OSError: [Errno 25] Inappropriate ioctl for device