comment and readme

This commit is contained in:
Wolfgang Hottgenroth 2020-08-27 10:49:38 +02:00
parent db6ed1da7a
commit 9c63d798d0
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F

@ -112,6 +112,8 @@ class MeterbusSerial(object):
self.port.write(msg) self.port.write(msg)
# FIXME: Attention, the actual write time of the interface is not considered.
# This is a measured value.
sleep(0.030) sleep(0.030)
frontendHold() frontendHold()
@ -128,6 +130,7 @@ class MeterbusSerial(object):
expectedUserDataOctets = 0 expectedUserDataOctets = 0
state = MeterbusResponseStates.START1 state = MeterbusResponseStates.START1
while (state not in [MeterbusResponseStates.DONE, MeterbusResponseStates.ERROR]): while (state not in [MeterbusResponseStates.DONE, MeterbusResponseStates.ERROR]):
print("Waiting for input ... ")
c = self.port.read() c = self.port.read()
print("State {}, Octet {}".format(state, c)) print("State {}, Octet {}".format(state, c))