iec62056-21 icon indicating copy to clipboard operation
iec62056-21 copied to clipboard

readout of landis + gyr120AP

Open pfy opened this issue 1 year ago • 1 comments

I tried to read the landis + gyr ZM120 and had some issues (on osx) With the code in the repository, no readout is possible. The read timouts. But if i remove the code to switch the baud rate, by commenting out self.transport.switch_baudrate(self.switchover_baudrate), everything works as expected.

should i prepare a pr with a flag for the client or transport to disable the baud rate switch ?

attached transcript without the actual data of my readings

INFO:iec62056_21.client:Staring init sequence
INFO:iec62056_21.client:Sending request message: RequestMessage(device_address='')
DEBUG:iec62056_21.transports:Sent b'/?!\r\n' over transport: SerialTransport
DEBUG:iec62056_21.client:Resting for 0.25 seconds
DEBUG:iec62056_21.transports:Received b'/LGZ4\\2ZMD120APt.G03\r\n' over transport: SerialTransport
INFO:iec62056_21.client:Received identification message: IdentificationMessage(identification='2ZMD120APt.G03', manufacturer='LGZ', switchover_baudrate_char='4')
INFO:iec62056_21.client:Sending AckOptionsSelect message: AckOptionSelectMessage(baud_char='4', mode_char='0')
DEBUG:iec62056_21.transports:Sent b'\x06040\r\n' over transport: SerialTransport
DEBUG:iec62056_21.client:Resting for 0.25 seconds
INFO:iec62056_21.client:Reading standard readout from device.

pfy avatar Jan 05 '23 23:01 pfy