Closed CraigerCDT closed 2 years ago
Just noticed the troubleshooting link. Also, forgot to mention I'm on windows, and someone newish to Python, although I've programmed other languages. I ran the python -m numato-gpio.troubleshooter command, and received the following:
Testing device COM6 with pyserial==3.5
Ok, did some digging in your code after installing the lib, changed the *nix device prefix to 'COM' and left the rest alone. Now when I do the python -m numato_gpio command I get: C:>python -m numato_gpio Discovered devices: dev: COM6 | id: 426050343 | ver: 9 | ports: 8 | eol: '\n\r' | iodir: 0xff | iomask: 0x00 | state: 0x00
Yay! That looks better. I assume the 'id' that it shows is the 'id' I use within my python program when opening/creating the device?
Hi,It's the device ID, stored inside the device as described in the docs: https://numato.com/docs/8-channel-usb-gpio-module-with-analog-inputs/#the-command-set-15Sorry, I only use it on Linux. While the only thing preventing it from being used under windows seems to be the device discovery. If you're interested to contribute, feel free to open a pull request! Best regards Henning
Closing due to inactivity. Feel free to open a new issue relating to this one.
I'm trying to get my shiny new numato 8 port gpio working with python, and having no luck. I loaded this library with pip, and it appears to be loaded fine. I installed my gpio and loaded the drivers from numato, and it works fine using putty (COM6). When I perform the python -m numato_gpio command to verify communication with the board, I receive a Discovered devices: (None) response. I tried actually doing some examply pythonic commands, and get a fail message when I do a dev=gpio.devices[my_device_id] that states 'KeyError: 0'.. Any ideas what may be going on? Thanks!