I'm sending many HEX Get commands at one time to my BlueSolar 75|10 over serial via Python but the responses are almost never the full response.
Example request:
:7FEED0063
:71222001A
:71122001B
:790ED00D1
:7FDED0064
:7E5ED007C
Response:
:7FEED000162
:A0002000148
:A0102000048
:71122002003F8
:790ED01D0
:A0202000200000045
:AD5ED00DA04AB
:AADED000100B0
Some of the requests are getting responses but not all of them.
When I send about 70 commands at once I usually only get about 50 responses.
Python code:
import serial
string = """
:7FEED0063
:71222001A
:71122001B
:790ED00D1
:7FDED0064
:7E5ED007C
"""
s = serial.Serial('/dev/hw/bluesolar', baudrate = 19200,parity=serial.PARITY_NONE,stopbits=serial.STOPBITS_ONE, bytesize=serial.EIGHTBITS)
s.flushInput()
s.flushOutput()
s.write(string)
r = s.read_until("\r")
print(r)
Any idea why this happens?
Thanks.