- pyusbiss version: 0.2.2
- Python version: 3.6.9
- Operating System: Ubuntu 18.04
Description
Describe what you were trying to get done.
I am trying to read readings from OPC N2 sensor via SPI
I am using the library https://github.com/dhhagan/py-opc which using this library to access the OPC N2.
Tell us what happened, what went wrong, and what you expected to happen.
I am getting this error when I run the test
python test-device.py
Traceback (most recent call last):
File "test-device.py", line 10, in
spi = SPI("/dev/ttyUSB0")
File "/root/spi_dev/lib/python3.6/site-packages/usbiss/spi.py", line 16, in init
self._usbiss = USBISS(port)
File "/root/spi_dev/lib/python3.6/site-packages/usbiss/usbiss.py", line 63, in init
self.get_iss_info()
File "/root/spi_dev/lib/python3.6/site-packages/usbiss/usbiss.py", line 110, in get_iss_info
raise USBISSError("Could not get version details")
usbiss.usbiss.USBISSError: Could not get version details
What I Did
I have connected OPC n2 via spi to adafruit ft232H board.
Connections
OPC FT232H
5V <------> 5V
GND <------> GND
MOSI <------> D1
MISO <------> D2
SCK <------> D0
SS <------> C0
Paste the command(s) you ran and the output.
If there was a crash, please include the traceback here.
Description
Describe what you were trying to get done.
I am trying to read readings from OPC N2 sensor via SPI
I am using the library https://github.com/dhhagan/py-opc which using this library to access the OPC N2.
Tell us what happened, what went wrong, and what you expected to happen.
I am getting this error when I run the test
python test-device.py
Traceback (most recent call last):
File "test-device.py", line 10, in
spi = SPI("/dev/ttyUSB0")
File "/root/spi_dev/lib/python3.6/site-packages/usbiss/spi.py", line 16, in init
self._usbiss = USBISS(port)
File "/root/spi_dev/lib/python3.6/site-packages/usbiss/usbiss.py", line 63, in init
self.get_iss_info()
File "/root/spi_dev/lib/python3.6/site-packages/usbiss/usbiss.py", line 110, in get_iss_info
raise USBISSError("Could not get version details")
usbiss.usbiss.USBISSError: Could not get version details
What I Did
I have connected OPC n2 via spi to adafruit ft232H board.
Connections
OPC FT232H
5V <------> 5V
GND <------> GND
MOSI <------> D1
MISO <------> D2
SCK <------> D0
SS <------> C0