Test with 485module :IndexError: bytes index out of range

Traceback (most recent call last):

File “”, line 9, in

File “modbus.py”, line 287, in handle

IndexError: bytes index out of range

OpenMV v4.4.2; MicroPython v1.19-omv-r6; OPENMV4P-STM32H743

Type “help()” for more information.



i think the 485module is broken.
my os is win7, example is modbus_rtu_slave.py
hope mv5 have checksoft for hardware

Hi, the modbus.py module is user contributed. I don’t know how to debug it or what is wrong. If you want to use it you should add debugging print() statements to it. We accept code from users and merge it into main. However, this does not mean it is all ours.