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

variant of the somfy-rts protocol? #3038

Open
xjazzor opened this issue Aug 21, 2024 · 8 comments
Open

variant of the somfy-rts protocol? #3038

xjazzor opened this issue Aug 21, 2024 · 8 comments
Labels
device support Request for a new/improved device decoder feedback request for more information; may be closed id 30d if not received

Comments

@xjazzor
Copy link

xjazzor commented Aug 21, 2024

Hi there,
I have some Roller Shades at home, which seem to be using the Somfy-RTS protocoll. I sniffed some packets with the rtl_433-plugin for SDR# as seen here:
grafik
You can see, everything is recognised except Lines 8 and up. These are the lines, where I want to program a new remote onto the shade.
If I press the same "buttons" on the virtual remote from the great EspSomfy (https://github.com/rstrouse/ESPSomfy-RTS) I get the following:
grafik
Are my shades on a different protocol, or do I need to edit something? I can provide more info if needed and want to solve this riddle :D

@zuckschwerdt
Copy link
Collaborator

If you can try listening with current rtl_433. Try -R 167:vv to get the raw packets also.
There are some senders with extra data or slightly different meaning, see https://github.com/merbanan/rtl_433/blob/master/src/devices/somfy_rts.c

@xjazzor
Copy link
Author

xjazzor commented Aug 21, 2024

Thank you for your help!
I pulled the data from rtl_433 and attached the readout as a file. As an excerpt, here are some readouts from down, stop, up and then program: (Attention: the examples below are not directly one after the other. The counter increments in single steps)

`_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
time : 2024-08-21 20:00:55
model : Somfy-RTS id : C5154A
Control : Down (8) Counter : 1086 Retransmission: 1 Integrity : CHECKSUM
[pulse_slicer_pcm] Somfy RTS
codes : {179}f0f0f0f0f0f0f0fe696a965a966a9996a95aaa695a5a0
[pulse_slicer_pcm] Somfy RTS
codes : {139}f0f0fe696a965996699996a95aaa695a5a0
[somfy_rts_decode] seed=0x98, chksum=0x5


time : 2024-08-21 20:00:58
model : Somfy-RTS id : C5154A
Control : Stop (5) Counter : 1088 Retransmission: 1 Integrity : CHECKSUM
[pulse_slicer_pcm] Somfy RTS
codes : {180}f0f0f0f0f0f0f0fe6999969996a9a6a99665955665650
[somfy_rts_decode] seed=0x95, chksum=0x0


time : 2024-08-21 20:01:00
model : Somfy-RTS id : C5154A
Control : Up (6) Counter : 1089 Retransmission: 1 Integrity : CHECKSUM
[pulse_slicer_pcm] Somfy RTS
codes : {180}f0f0f0f0f0f0f0fe6996969a96aaa6a99665955665650
[somfy_rts_decode] seed=0x96, chksum=0x2


time : 2024-08-21 20:01:16
model : Somfy-RTS id : C5154A
Control : ? (12) Counter : 1091 Retransmission: 1 Integrity : CHECKSUM
[pulse_slicer_pcm] Somfy RTS
codes : {180}f0f0f0f0f0f0f0fe695a969696a6a6a99665955665650
[somfy_rts_decode] seed=0x9c, chksum=0xa


time : 2024-08-21 20:01:16
model : Somfy-RTS id : C5154A
Control : ? (12) Counter : 1091 Retransmission: 1 Integrity : CHECKSUM
[pulse_slicer_pcm] Somfy RTS
codes : {180}f0f0f0f0f0f0f0fe695a969696a6a6a99665955665650
[somfy_rts_decode] seed=0x9c, chksum=0xa
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _`

From my - somewhat limited perspective - it looks, like the remote just spams its id with another seed code - Before it was 0x95 now its 0x9c. I'm just gessing here. ;)

somfy-like-packets.txt

@zuckschwerdt
Copy link
Collaborator

Those codes are great to analyze this. Maybe @matthiasseemoo (original author in #1496) and @Velocet (good info in #2356) can help?

@xjazzor
Copy link
Author

xjazzor commented Aug 26, 2024

Should I provide more packets/ recordings? Can I help in any way?
My second remote died and I can't find any shop to buy a new one. Therefore I want this to work. ;)

@Velocet
Copy link

Velocet commented Sep 22, 2024

There are many RTS variants (at least 5 .. RTS, RTD, RTDS, RTW, RTN..). In case of RTS there are two different protocol modes which differ in length but are compatible to one and another.

You can find my notes i did for somfy-rts here:
RTx: Somfy RTS and its different versions

@xjazzor
Copy link
Author

xjazzor commented Sep 24, 2024

There are many RTS variants (at least 5 .. RTS, RTD, RTDS, RTW, RTN..). In case of RTS there are two different protocol modes which differ in length but are compatible to one and another.

I am with you that they are nearly compatible. Sadly I can't get espsomfy to be paired with my blinds because that parts seems to differ. Maybe in this protocol the pairing sequence is only the remote-id repated 7times?

@gdt gdt added device support Request for a new/improved device decoder feedback request for more information; may be closed id 30d if not received labels Oct 28, 2024
@gdt
Copy link
Collaborator

gdt commented Oct 28, 2024

Where are we on this? Is there a path to a PR to improve rtl_433, or should we just close it?

@xjazzor
Copy link
Author

xjazzor commented Oct 28, 2024

I would love to see a PR to improve rtl_433, as I believe it could benefit not only me but others as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
device support Request for a new/improved device decoder feedback request for more information; may be closed id 30d if not received
Projects
None yet
Development

No branches or pull requests

4 participants