diff --git a/ReadMe.md b/ReadMe.md index f5c9c20bb..154676cd8 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -68,6 +68,7 @@ Encoders/sending made by Eng1n33r & @xMasterX: - Keeloq: FAAC RC,XT - Keeloq: Mutancode - Keeloq: Normstahl +- Keeloq: Beninca - CAME Atomo - Nice Flor S - FAAC SLH (Spa) [External seed calculation required (For info contact me in Discord: Nano#8998)] diff --git a/lib/subghz/protocols/keeloq.c b/lib/subghz/protocols/keeloq.c index 0c601c256..a8bb7b39f 100644 --- a/lib/subghz/protocols/keeloq.c +++ b/lib/subghz/protocols/keeloq.c @@ -193,6 +193,11 @@ static bool subghz_protocol_keeloq_gen_data( decrypt = btn << 28 | (instance->generic.serial & 0xFF) << 16 | instance->generic.cnt; } + // Beninca -> 4bit serial - simple XOR + if(strcmp(instance->manufacture_name, "Beninca") == 0) { + decrypt = btn << 28 | (instance->generic.serial & 0xF) << 16 | instance->generic.cnt; + } + if(strcmp(instance->manufacture_name, "Unknown") == 0) { code_found_reverse = subghz_protocol_blocks_reverse_key( instance->generic.data, instance->generic.data_count_bit);