Page 1 of 1

Sagemcom T210-D Encryption

Posted: Tuesday 07 September 2021 15:46
by Lemi
Hey guys,

In Austria the P1 interface is encrypted. I already activated it and obtained the encryption key. But if I want to add my smart meter there is only the option to add 1 key. But I got 2, Global Unicast Encryption Key (GUEK) & Global Authentication Key (GAK). I tried entering both keys
separately to see if one is working, but it won't show the smart meter in my devices.

Then I tried to see if my raspberry gets any data from the smart meter with the sudo command, the permission got denied, i think because of the encryption.

Is there a way to type in both encryption keys?

Thanks for helping and sorry for my bad english!

Re: Sagemcom T210-D Encryption

Posted: Tuesday 07 September 2021 16:07
by waltervl
Perhaps there is an Austrian version of https://github.com/mweimerskirch/smarty_dsmr_proxy (luxemburg P1 bridge) to test the P1 telegram?
Did you disable the P1 hardware in Domoticz before you tested it with cu? Else Domoticz could block the USB port and you get the same error.

Can you get hold on the specifications of the Austrian P1 telegram as there are different implementations of P1 telegrams per country resulting in incorrect or no reading in Domoticz

For the implementation of the Encription for Luxembourg check https://github.com/domoticz/domoticz/issues/2738
In the end there should be a new issue created to implement the Austrian version if possible.

Edit: a quick search brought me to Salzburgernetz: Technische Beschreibung Kundenschnittstelle: https://www.salzburgnetz.at/content/dam ... stelle.pdf

Edit2: Austrian smart meter C# project https://github.com/culvermelanie/SmartMeter

Re: Sagemcom T210-D Encryption

Posted: Tuesday 07 September 2021 17:33
by Lemi
Thanks, I'm fairly new to programming, so I will need some time to get through all of this.
And yes I disabled Domoticz before I tested it with the sudo command.
I'll give an update if it works.

Re: Sagemcom T210-D Encryption

Posted: Tuesday 07 September 2021 21:06
by waltervl
To help you there is someone who adapted the python proxy tot an austrian version: https://github.com/tknaller/smarty_dsmr_proxy

Re: Sagemcom T210-D Encryption

Posted: Wednesday 08 September 2021 0:18
by waltervl
You could try to run

Code: Select all

python3 decrypt.py KEY -a AAD 
I am not that knowledgeable on decrypting so you could play with the value of KEY being your GUEK or GAK and the same for AAD. Default value of AAD is "3000112233445566778899AABBCCDDEEFF" so if your GUEK or GAK is like this you can skip -a AAD.

Re: Sagemcom T210-D Encryption

Posted: Monday 13 September 2021 22:31
by waltervl
The correct test should be

Code: Select all

python3 /smarty_dsmr_proxy/decrypt.py ENCRYPTION KEY --serial-input-port=/dev/ttyDSMR --serial-output-port=/dev/pts/1
More info at https://github.com/tknaller/smarty_dsmr ... t-56398418