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

support protocol mode = 2 in AckOptionSelectMessage

Open dawidce opened this issue 2 years ago • 2 comments

Hi,

I changed:

def to_representation(self): return f"{constants.ACK}2{self.baud_char}{self.mode_char}{constants.LINE_END}" and the meter responds with standard readout. 16:14:30,929 DEBUG: Connecting to ('192.168.200.222', 2222) 16:14:30,931 INFO: Staring init sequence 16:14:30,931 INFO: Sending request message: RequestMessage(device_address='') 16:14:30,931 DEBUG: Sent b'/?!\r\n' over transport: TcpTransport 16:14:30,931 DEBUG: Resting for 0.25 seconds 16:14:31,182 DEBUG: Received b'/APA5\\2NORAX30\r\n' over transport: TcpTransport 16:14:31,182 INFO: Received identification message: IdentificationMessage(identification='2NORAX30', manufacturer='APA', switchover_baudrate_char='5') 16:14:31,182 INFO: Sending AckOptionsSelect message: AckOptionSelectMessage(baud_char='5', mode_char='6') 16:14:31,182 DEBUG: Sent b'\x06256\r\n' over transport: TcpTransport 16:14:31,182 DEBUG: Resting for 0.25 seconds 16:14:31,433 INFO: Reading standard readout from device. 16:14:33,220 DEBUG: Received b'\x020-0:C.1.0(72432595)\r

party is set to 7E1. The converter is set manually. If i switch to 8N1 the meter stops responding.

Using manufacturers software I can read via IEC mode C additional registers. Registers hold energy consumption every 15 and 60 minutes but they are protected with the password. I dont know how to read them with Your library.

UPDATE

I think that support for LOAD_PROFILE is missing

dawidce avatar Jul 13 '21 14:07 dawidce