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

Add support for Somfy RTS #1496

Merged
merged 21 commits into from
Sep 22, 2020
Merged
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
fb30973
Add: Support for Somfy RTS decoding.
matthiasseemoo Sep 16, 2020
431d249
Merge branch 'master' of github.com:matthiasseemoo/rtl_433
matthiasseemoo Sep 16, 2020
c9cf3df
Fix: File comment.
matthiasseemoo Sep 16, 2020
bf83077
Fix: removed commented code lines.
matthiasseemoo Sep 16, 2020
e197dc9
Fix: Change requests by @zuckschwerdt on PR1496.
matthiasseemoo Sep 17, 2020
e63b603
Fix: Integrated additional change requests form PR1496.
matthiasseemoo Sep 17, 2020
5255708
Fix: added Id and fixed wrong endianess conversion of counter value.
matthiasseemoo Sep 17, 2020
bb13959
Fix output keys for FineOffset WH51 (closes #1495)
zuckschwerdt Sep 16, 2020
379244f
Fix: File comment.
matthiasseemoo Sep 16, 2020
6ab9fc8
Fix: removed commented code lines.
matthiasseemoo Sep 16, 2020
956fa3d
Fix: Change requests by @zuckschwerdt on PR1496.
matthiasseemoo Sep 17, 2020
aef0afd
Fix: Integrated additional change requests form PR1496.
matthiasseemoo Sep 17, 2020
90c205d
Fix: added Id and fixed wrong endianess conversion of counter value.
matthiasseemoo Sep 17, 2020
a663473
Merge branch 'master' of https://github.com/merbanan/rtl_433
matthiasseemoo Sep 17, 2020
78eb116
Fix: Removed second manchester decoder call as issue with missing 0 b…
matthiasseemoo Sep 17, 2020
a8aa328
merged changes
matthiasseemoo Sep 17, 2020
bd7c730
Fix: endianess of address used as id.
matthiasseemoo Sep 17, 2020
cf95361
ran ./maintainer_update.py
matthiasseemoo Sep 18, 2020
b858ea3
Fix: removed checksum and seed from default output.
matthiasseemoo Sep 21, 2020
535526e
Fix: Replaced stdout by stderr.
matthiasseemoo Sep 21, 2020
efbc518
Fix: removed non-ascii characters and trailing space.
matthiasseemoo Sep 21, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/devices/somfy.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,15 @@ static int somfy_rts_callback(r_device *decoder, bitbuffer_t *bitbuffer)
// extract address as little endian integer. It should be little endian as multiple addresses used by one remote control increase the address value in little endian byte order.
address_int_le = (message_bytes[6] << 16) | (message_bytes[5] << 8) | message_bytes[4];

if (decoder->verbose > 1) {
fprintf(stdout, "seed=0x%02x, chksum=0x%x\n", seed, chksum);
}

/* clang-format off */
data = data_make(
"model", "", DATA_STRING, "Somfy-RTS",
"id", "Id", DATA_INT, address_int_le,
"seed", "Seed", DATA_FORMAT, "0x%02X", DATA_INT, seed,
"control", "Control", DATA_STRING, control_str[control],
"checksum", "Checksum", DATA_FORMAT, "0x%X", DATA_INT, chksum,
"counter", "Counter", DATA_INT, counter,
"address", "Address", DATA_STRING, address_hex,
"retransmission", "Retransmission", DATA_STRING, is_retransmission ? "TRUE" : "FALSE",
Expand All @@ -168,9 +170,7 @@ static int somfy_rts_callback(r_device *decoder, bitbuffer_t *bitbuffer)

static char *output_fields[] = {
"model",
"seed",
"control",
"checksum",
"counter",
"address",
"retransmission",
Expand Down