Hello! I'm having problems with opc-n2. I already check the cables and the power. I also update the library.
ERROR:opc:Could not parse the fimrware version from
Traceback (most recent call last):
File "/home/pi/.local/lib/python2.7/site-packages/opc/__init__.py", line 77, in __init__
self.firmware['version'] = int(re.findall("\d{3}", infostring)[-1])
IndexError: list index out of range
ERROR:opc:Could not parse the fimrware version from
Traceback (most recent call last):
File "/home/pi/.local/lib/python2.7/site-packages/opc/__init__.py", line 77, in __init__
self.firmware['version'] = int(re.findall("\d{3}", infostring)[-1])
IndexError: list index out of range
ERROR:opc:Could not parse the fimrware version from
Traceback (most recent call last):
File "/home/pi/.local/lib/python2.7/site-packages/opc/__init__.py", line 77, in __init__
self.firmware['version'] = int(re.findall("\d{3}", infostring)[-1])
IndexError: list index out of range
ERROR:opc:Could not parse the fimrware version from
Traceback (most recent call last):
File "/home/pi/.local/lib/python2.7/site-packages/opc/__init__.py", line 77, in __init__
self.firmware['version'] = int(re.findall("\d{3}", infostring)[-1])
IndexError: list index out of range
ERROR:opc:Could not parse the fimrware version from
Traceback (most recent call last):
File "/home/pi/.local/lib/python2.7/site-packages/opc/__init__.py", line 77, in __init__
self.firmware['version'] = int(re.findall("\d{3}", infostring)[-1])
IndexError: list index out of range
ERROR:opc:Could not parse the fimrware version from
Traceback (most recent call last):
File "/home/pi/.local/lib/python2.7/site-packages/opc/__init__.py", line 77, in __init__
self.firmware['version'] = int(re.findall("\d{3}", infostring)[-1])
IndexError: list index out of range
Traceback (most recent call last):
File "opc_spi_basico.py", line 10, in <module>
alphasense = opc.OPCN2(spi)
File "/home/pi/.local/lib/python2.7/site-packages/opc/__init__.py", line 293, in __init__
super(OPCN2, self).__init__(spi_connection, model='N2', **kwargs)
File "/home/pi/.local/lib/python2.7/site-packages/opc/__init__.py", line 71, in __init__
raise FirmwareVersionError(msg)
opc.exceptions.FirmwareVersionError:
Your firmware version could not be automatically detected. This is usually caused by bad wiring or a poor power supply. If niether of these are likely candidates, please open an issue on the GitHub repository at https://github.com/dhhagan/py-opc/issues/new. Another option would be to
increase the max_cnxn_retries variable if you feel the serial communication is being held up for some reason.
Hello! I'm having problems with opc-n2. I already check the cables and the power. I also update the library.
This is my program:
Turn the opc ON
Read the information string
The return is: