manchester encoding inverted: 0 maps to 01 instead of 10 #2
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wait-to-fix
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
daru/PICsense#2
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
manchester_table maps data bit 0 to symbol 01 and bit 1 to symbol 10. rtl_433 bitbuffer_manchester_decode takes bit2 as the decoded bit, so 01 decodes to 1 and 10 decodes to 0 - all bits inverted on receive.
Fix: flip the table so 0 maps to 10, 1 maps to 01.
Fixed in PR #13. Manchester encoding now follows IEEE 802.3: 0 → 10 (falling edge), 1 → 01 (rising edge). Table updated, PREAMBLE changed from 0x1143 to 0xEEBC, and
manchester_gen.pyadded as the canonical table generator with--verifyflag.