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 DLMS encrypted with GUEK (no auth) #298

Closed
Idefix1977 opened this issue Mar 2, 2022 · 4 comments
Closed

Support DLMS encrypted with GUEK (no auth) #298

Idefix1977 opened this issue Mar 2, 2022 · 4 comments

Comments

@Idefix1977
Copy link

Do you plan to add support for:
Support for CustomerIFC P1 at Sagecom T210-D, Sagecom S210, Kaifa M110, Kaifa MA309 which are used in Austria. The IFC is an MBUS Push telegram which is send every 5 seconds.
There are MBUS Slave USB Serial Adapters for a few dollars available. The Baudrate is 2400Baud.
The data is send as an encrypted (by a GUEK (global unicast encryption key), authentication is disabled) DLMS/COSEM frame. DLMS-Securitylevel = SecuritySuite0

OpenSource Decrypter: (Python)
https://github.com/ric-geek/DLMS_APDU-Encrypter-Decrypter

OpenSource DLMS Translator:
Gurux GXDLMSDirector

If not, do you mind, if i try to implement it myself based on your adapter?

Thanks,
Elias.

@Apollon77
Copy link
Owner

duplicate #200

@Apollon77
Copy link
Owner

@Idefix1977 The topics are the following:

  • First of all (and here "time" is a constraint) I did not had time to reimplement the decryption part into Javascript, so yes this could help alot
  • Then the second issue is that this adapter completely bases on OBIS data structures ... but DLMS is more mbus based, so data just have an order by the OBIS data are missing, so we would need to add a mapping

Additionally there is https://github.com/lvogt/ioBroker.wireless-mbus in the meantime where I asked several times if someone can try if maybe this adapter already works for it ... maybe you can try it ... because then this is more "The way to go")

@Idefix1977
Copy link
Author

@Apollon77 Thanks for the duplicate-hint ...seems that there are already other people interested in this issue, whats great.
Yes, time is also a constriant for me but i want so solve this issue even if it will take months :-)
The WMBus is something different. Thus a WMBus enabled device/meter is needed. Then you can use a WMBus Stick to receive this data. But in austria all smartmeters just have a physical wired MBUS connection (called user API P0).
This IFC sends a MBUS Frame every 5 seconds, which is a push notification and can easily be reveived with a 5-10USD MBUS USB Slave Receiver. The MBUS Frame can easily be decoded. Then you will get an encrypted DLMS/COESM Frame. After decryption you will have a DLMS Frame which is the application layer of the communication stack. When you parse this frame, you will receive a collection of OBIS object which represent the menu entries of the smart meter. For all this there are several open source tools which i already got working for my smart meter. I attached you a decoded XML showing the received OBIS. I think it would fit nicely into your adapter because you already have the logic for receivin/reading data from a serial port and you already handle OBIS data. So we just have to add decryption and interpretation of DLMS as application layer.
XML

@Apollon77
Copy link
Owner

Then we "just" need to find a way to parse that in JavaScript ...

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

No branches or pull requests

2 participants