Running into remote IO errors with SMmegabas board and Python

txrocks

Member
I thought I would give the Python path a try to see if I could get this Megabas to work for me. I can command things in the command line. It is on stack 1 above a smartfan.

I ran across the thread where you have to run the python scripts in a virtual environment

With the test python file that is on github I get this error when I try to run it.

Code:
>>> %Run -c $EDITOR_CONTENT
We assume 0-10V output channels are connected to 0-10V input channels
0-10V output channel 1 to 0-10V input channel 1
Traceback (most recent call last):
  File "<string>", line 14, in <module>
  File "/usr/local/lib/python3.11/dist-packages/SMmegabas-1.0.1-py3.11.egg/megabas/__init__.py", line 157, in getUIn
    val = bus.read_word_data(HW_ADD + stack, U0_10_IN_VAL1_ADD + (2 * (ch - 1)))
  File "/usr/lib/python3/dist-packages/smbus2/smbus2.py", line 474, in read_word_data
    ioctl(self.fd, I2C_SMBUS, msg)
OSError: [Errno 121] Remote I/O error
>>>

Do you have any ideas on why they wont communicate ?

Thanks!
20241023_14h59m57s_grim.png20241023_15h01m32s_grim.png
 
Top