ReneHezser/ReadEnergyMeter

Hi, quection SOH P2 STX () ETX from GitHub

Opened this issue · 2 comments

Hi, Duncer!
I found your P2 level authorization code on Siemens Smart Meter. Besides your article on the Internet, there is no more such information.
I first met her on the http://www.sonsivri.to/forum/index.php?PHPSESSID=kl66qcb0kg3t3a2q5fejpp0r75&topic=60412.msg172530#msg172530, and a few days ago I found your repository on the github.com, it's very cool!
I am studying the safety of equipment.
Authorization from technology software requires 4 bytes:
SOH P2 STX (B1B2B3B4) ETX BCC,

Tx: 23.05.2022 19:20:01.918 2F 3F 21 0D 0A /?!..
Rx: 23.05.2022 19:20:02.672 2F 45 4D 72 35 43 45 33 30 38 37 2E 33 0D 0A /EMr5CE3087.3..

Tx: 23.05.2022 19:20:02.742 06 30 35 31 0D 0A .051..
Rx: 23.05.2022 19:20:03.499 01 50 30 02 28 31 30 38 32 38 35 37 34 39 29 03 32 .P0.(108285749).2

Tx: 23.05.2022 19:20:03.631 01 50 32 02 28 41 37 45 44 46 42 41 33 29 03 55 .P2.(A7EDFBA3).U
Rx: 23.05.2022 19:20:03.695 15 .

Tx: 23.05.2022 19:20:03.810 01 42 30 03 75 .B0.u

Please tell me what rule I can change your code to return by the genSiemensP2 function (from the "iec62056core.py" file) so that the function returns 4 bytes?

Thanks for the source code.

xpalem@gmail.com

Hi Jordano,
who is Duncer? ¯_(ツ)_/¯

Anyway, as you see in the files, I also copied them and have not created them myself.
The specification how to create the authorization is available on the internet. I've not looked into it, as it is working for me.

Oh, Good! Thank you to answer!

Forgive me. I made a mistake in translation!

Thank you for translating the article from Python 2 to Python 3, for me it is very useful!