Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support protocol mode = 2 in AckOptionSelectMessage #19

Open
dawidce opened this issue Jul 13, 2021 · 2 comments
Open

support protocol mode = 2 in AckOptionSelectMessage #19

dawidce opened this issue Jul 13, 2021 · 2 comments

Comments

@dawidce
Copy link

dawidce commented Jul 13, 2021

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

@Krolken
Copy link
Contributor

Krolken commented Aug 18, 2021

Hi. Im back from vacation.

I think this is 2 issues. Could you create the load profile as a separate one?
I am guessing that you want to read the P.01 profile for example. It should be possible to grok as it is. But there is now parsing in it as of now. I have some old code for it that is not working with this library though.

@dawidce
Copy link
Author

dawidce commented Aug 26, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants