SubGhz: add Cardin S508 rolling-code decoder (decode-only)#1004
Open
half2me wants to merge 1 commit into
Open
Conversation
Add a decode-only Sub-GHz protocol for the Cardin S508 868 MHz rolling-code remote (S500-series, FCC ID TXQ508; the 2-channel S504 uses the same protocol) — the 868 MHz sibling of the 433.92 MHz Cardin S449 (issue DarkFlippers#908). 868.35 MHz, 2-FSK (FM12K preset), Manchester, half-bit ~100us. Codeword is 140 bits: a 12-bit fixed sync (110011110100) + a 128-bit fully-rolling AES-128 payload with no cleartext serial/button/counter. The decoder locks the sync (accepting either polarity, since the firmware's manchester_advance decodes this convention complemented, and normalising to the canonical form) and reports the 128-bit payload as an opaque hex blob. Decode + display only: the payload is AES-128 encrypted and the key lives in the receiver, so valid codes cannot be generated. No encoder, "Add Manually", or TX path is implemented (the encoder vtable is an all-NULL stub). Verified on hardware (decode_raw + live read of a real remote) and with a unit-test capture replay.
Member
|
So without encoder we can't accept it. So putting in the backlog |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a decode-only Sub-GHz protocol for the Cardin S508 868 MHz rolling-code remote (S500-series, FCC ID TXQ508; the 2-channel S504 uses the same protocol). It recognizes the remote in Read mode and displays the on-air codeword. It's the 868 MHz sibling of the 433.92 MHz Cardin S449 (KeeLoq) from #908 — a different protocol on a different band.
Protocol (reverse-engineered)
FM12Kpreset.110011110100+ a 128-bit fully-rolling payload. Every payload bit changes between presses; there is no cleartext serial, button, or counter — those live inside the encrypted block. Cardin documents this family as "128-bit cryptography", consistent with a 128-bit AES ciphertext, which is stored and shown as an opaque hex blob.Decode/display only — by design
The rolling payload is encrypted and the key resides in the receiver, so valid future codes cannot be generated. Emulation is impossible and is intentionally not implemented: no encoder, no "Add Manually", no TX path (the encoder vtable is an all-NULL stub). This is purely an RX/identification contribution — it cannot open a gate.
Implementation notes
manchester_advancehelper. Decode-only structure followsido.110011110100).data/data_2, serialized with thekinggates_stylo_4kextra-field pattern.Testing
subghz decode_rawreplay and a live read of a real remote detect the protocol and show a 140-bit codeword with the constant sync and a per-press-changing 128-bit Key..subreplay) underapplications/debug/unit_tests/.