Sagemcom T210-D Encryption

On various Hardware and OS systems: pi / windows / routers / nas, etc

Moderator: leecollings

Post Reply
Lemi
Posts: 2
Joined: Tuesday 07 September 2021 15:18
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Sagemcom T210-D Encryption

Post 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!
Attachments
RASP.PNG
RASP.PNG (34.48 KiB) Viewed 1037 times
User avatar
waltervl
Posts: 5904
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Sagemcom T210-D Encryption

Post 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
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Lemi
Posts: 2
Joined: Tuesday 07 September 2021 15:18
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Sagemcom T210-D Encryption

Post 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.
User avatar
waltervl
Posts: 5904
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Sagemcom T210-D Encryption

Post by waltervl »

To help you there is someone who adapted the python proxy tot an austrian version: https://github.com/tknaller/smarty_dsmr_proxy
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
waltervl
Posts: 5904
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Sagemcom T210-D Encryption

Post 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.
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
User avatar
waltervl
Posts: 5904
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: Sagemcom T210-D Encryption

Post 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
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest