P
I am trying to read values from a Battery Management System. There are two banks of batteries, and I am using two RS485-USB (ftdi) boards in order to do this.
I am using python and the minimal modbus library, (example code below)<pre>
# Bank A
instrument_A = minimalmodbus.Instrument('/dev/ttyUSB0', 1)
# Bank B
instrument_B = minimalmodbus.Instrument('/dev/ttyUSB1', 1)
// Read something from BMS
socA = instrument_A.read_register(40008)</pre>
This code works fine on my Ubuntu laptop, but fails after only a few reads on the raspberry pi.
I am using a lot of serial ports at once on the pi, could it be that the pi just isn't up to it?
Power issue?
Would appreciate some enlightenment if anyone sees this and feels they may know whats happening here.
Thanks
I am using python and the minimal modbus library, (example code below)<pre>
# Bank A
instrument_A = minimalmodbus.Instrument('/dev/ttyUSB0', 1)
# Bank B
instrument_B = minimalmodbus.Instrument('/dev/ttyUSB1', 1)
// Read something from BMS
socA = instrument_A.read_register(40008)</pre>
This code works fine on my Ubuntu laptop, but fails after only a few reads on the raspberry pi.
I am using a lot of serial ports at once on the pi, could it be that the pi just isn't up to it?
Power issue?
Would appreciate some enlightenment if anyone sees this and feels they may know whats happening here.
Thanks