2021-06-30 00:19:20 +03:00
|
|
|
#include "subghz_protocol_nice_flor_s.h"
|
2021-07-02 16:25:49 +03:00
|
|
|
|
|
|
|
#include <furi.h>
|
|
|
|
#include "file-worker.h"
|
2021-06-30 00:19:20 +03:00
|
|
|
/*
|
|
|
|
* https://phreakerclub.com/1615
|
|
|
|
* https://phreakerclub.com/forum/showthread.php?t=2360
|
|
|
|
* https://vrtp.ru/index.php?showtopic=27867
|
|
|
|
*/
|
|
|
|
|
|
|
|
struct SubGhzProtocolNiceFlorS {
|
|
|
|
SubGhzProtocolCommon common;
|
2021-07-02 16:25:49 +03:00
|
|
|
const char* rainbow_table_file_name;
|
2021-06-30 00:19:20 +03:00
|
|
|
};
|
|
|
|
|
2021-09-15 18:24:19 +03:00
|
|
|
typedef enum {
|
|
|
|
NiceFlorSDecoderStepReset = 0,
|
|
|
|
NiceFlorSDecoderStepCheckHeader,
|
|
|
|
NiceFlorSDecoderStepFoundHeader,
|
|
|
|
NiceFlorSDecoderStepSaveDuration,
|
|
|
|
NiceFlorSDecoderStepCheckDuration,
|
|
|
|
} NiceFlorSDecoderStep;
|
|
|
|
|
2021-06-30 00:19:20 +03:00
|
|
|
SubGhzProtocolNiceFlorS* subghz_protocol_nice_flor_s_alloc() {
|
|
|
|
SubGhzProtocolNiceFlorS* instance = furi_alloc(sizeof(SubGhzProtocolNiceFlorS));
|
|
|
|
|
2021-07-02 16:25:49 +03:00
|
|
|
instance->common.name = "Nice FloR-S";
|
2021-06-30 00:19:20 +03:00
|
|
|
instance->common.code_min_count_bit_for_found = 52;
|
SubGhz: read and save static remotes. Create new static and dynamic remotes. (#646)
* SubGhz: the functions of saving loading KeeLog have been modified, saving KeeLog is prohibited
* SubGhz: Fix displaying Nice FlorS in the Raed scene
* SubGhz: Fix displaying Faac SLH in the Raed scene
* SubGhz: Fix displaying iDo in the Raed scene
* SubGhz: Fix displaying Star Line in the Raed scene
* SubGhz: Fix displaying Nice Flo in the Raed scene, added save and load functions. (testing needed, no remote control)
* SubGhz: subghz_beginadded common encoder upload signal
* SubGhz: add Came encoder
* SubGhz: modified pricenton encoder, fix view transmitter hide the "Send" button if there is no encoder
* SubGhz: add nice flo encoder, need testing no remote control
* SubGhz: add gate_tx encoder
* SubGhz: add nero_sketch encoder
* SubGhz: add keelog encoder
* SubGhz: add long upload upload while the button is pressed while releasing the transfer is over, with a check for sticking (maximum 200 upload repetitions)
* SubGhz: fix max upload
* SubGhz: Fix structure subghz add encoder
* SubGhz: add generating and sending a dynamic keelog key, refactoring the code
* SubGhz: add notifications
* SubGhz: add creating a new remote control (Pricenton, Nice Flo 12bit, Nice Flo 24bit, CAME 12bit, CAME 24bit, Gate TX, DoorHan)
* SubGhz: Fix load file, fix scene start
* Subghz: Fix show key
* SubGhz: Fix subghz_cli
* SubGhz: Fix furi-hal-subghz
* Format sources
* SubGhz: standard notification scheme, fix broken assert in DMA.
* SubGhz: move level alignment logic to furi-hal-subghz, fix spelling, cleanup.
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
2021-08-16 22:56:23 +03:00
|
|
|
instance->common.te_short = 500;
|
2021-06-30 00:19:20 +03:00
|
|
|
instance->common.te_long = 1000;
|
|
|
|
instance->common.te_delta = 300;
|
2021-09-15 18:24:19 +03:00
|
|
|
instance->common.type_protocol = SubGhzProtocolCommonTypeDynamic;
|
2021-07-02 16:25:49 +03:00
|
|
|
instance->common.to_string = (SubGhzProtocolCommonToStr)subghz_protocol_nice_flor_s_to_str;
|
Skorp subghz signal archive (#667)
* SubGhz: Add millis() furi, add subghz history struct
* SubGhz: Fix subghz history
* Gubghz: Fix code repeat history, add clean history
* SubGhz: reading and adding keys to history
* Gui: Renaming Sub 1-Ghz -> SubGhz
* Archive: Renaming Sub 1-Ghz -> SubGhz
* SubGhz: Add menu history, modified button for sending a signal, changed output of data about accepted protocol
* Archive: Fix name subghz
* SubGhz: Menu navigation
* Assets: Add assets/SubGHz/icon.png
* Assets: add new icons for subghz
* SubGhz: Fix name Add manually scene
* SubGhz: Fix load icon Read scene. rename encoder struct, rename protocol function load from file, add load raw data protocol, add info pleasant signals all protocol
* SubGhz: fix memory leak
* SubGhz: change of receiving frequency for read scene
* SubGhz: Add save/load frequency and preset, add automatic configuration of transmit/receive to the desired frequency and modulation, add button "save" config scene
* SubGhz: Fix frequency and preset, fix frequency add manualli scene, fix re-executing the parser
* Furi-hal-subghz: add 2-FSK config, fix ook config 650KHz BW Tx filter
* Fix formatting and release build
* SubGhz: Delete read scene
* SubGhz: Fix frequency add manualli scene, refactoring code
* SubGhz: 2 profiles for OOK, fix broken build.
* SubGhz: Add passing static codes from read scene, add notification read scene, refactoring code
* SubGhz: fix assert on worker double stop.
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
2021-08-28 16:51:48 +03:00
|
|
|
instance->common.to_load_protocol =
|
|
|
|
(SubGhzProtocolCommonLoadFromRAW)subghz_decoder_nice_flor_s_to_load_protocol;
|
2021-06-30 00:19:20 +03:00
|
|
|
|
|
|
|
return instance;
|
|
|
|
}
|
|
|
|
|
|
|
|
void subghz_protocol_nice_flor_s_free(SubGhzProtocolNiceFlorS* instance) {
|
|
|
|
furi_assert(instance);
|
|
|
|
free(instance);
|
|
|
|
}
|
|
|
|
|
2021-07-02 16:25:49 +03:00
|
|
|
void subghz_protocol_nice_flor_s_name_file(SubGhzProtocolNiceFlorS* instance, const char* name) {
|
|
|
|
instance->rainbow_table_file_name = name;
|
|
|
|
printf("Loading Nice FloR S rainbow table %s\r\n", name);
|
|
|
|
}
|
|
|
|
|
|
|
|
/** Send bit
|
|
|
|
*
|
|
|
|
* @param instance - SubGhzProtocolNiceFlorS instance
|
|
|
|
* @param bit - bit
|
|
|
|
*/
|
2021-06-30 00:19:20 +03:00
|
|
|
void subghz_protocol_nice_flor_s_send_bit(SubGhzProtocolNiceFlorS* instance, uint8_t bit) {
|
2021-07-02 16:25:49 +03:00
|
|
|
if(bit) {
|
2021-06-30 00:19:20 +03:00
|
|
|
//send bit 1
|
SubGhz: read and save static remotes. Create new static and dynamic remotes. (#646)
* SubGhz: the functions of saving loading KeeLog have been modified, saving KeeLog is prohibited
* SubGhz: Fix displaying Nice FlorS in the Raed scene
* SubGhz: Fix displaying Faac SLH in the Raed scene
* SubGhz: Fix displaying iDo in the Raed scene
* SubGhz: Fix displaying Star Line in the Raed scene
* SubGhz: Fix displaying Nice Flo in the Raed scene, added save and load functions. (testing needed, no remote control)
* SubGhz: subghz_beginadded common encoder upload signal
* SubGhz: add Came encoder
* SubGhz: modified pricenton encoder, fix view transmitter hide the "Send" button if there is no encoder
* SubGhz: add nice flo encoder, need testing no remote control
* SubGhz: add gate_tx encoder
* SubGhz: add nero_sketch encoder
* SubGhz: add keelog encoder
* SubGhz: add long upload upload while the button is pressed while releasing the transfer is over, with a check for sticking (maximum 200 upload repetitions)
* SubGhz: fix max upload
* SubGhz: Fix structure subghz add encoder
* SubGhz: add generating and sending a dynamic keelog key, refactoring the code
* SubGhz: add notifications
* SubGhz: add creating a new remote control (Pricenton, Nice Flo 12bit, Nice Flo 24bit, CAME 12bit, CAME 24bit, Gate TX, DoorHan)
* SubGhz: Fix load file, fix scene start
* Subghz: Fix show key
* SubGhz: Fix subghz_cli
* SubGhz: Fix furi-hal-subghz
* Format sources
* SubGhz: standard notification scheme, fix broken assert in DMA.
* SubGhz: move level alignment logic to furi-hal-subghz, fix spelling, cleanup.
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
2021-08-16 22:56:23 +03:00
|
|
|
SUBGHZ_TX_PIN_HIGH();
|
2021-06-30 00:19:20 +03:00
|
|
|
delay_us(instance->common.te_long);
|
|
|
|
SUBGHZ_TX_PIN_LOW();
|
SubGhz: read and save static remotes. Create new static and dynamic remotes. (#646)
* SubGhz: the functions of saving loading KeeLog have been modified, saving KeeLog is prohibited
* SubGhz: Fix displaying Nice FlorS in the Raed scene
* SubGhz: Fix displaying Faac SLH in the Raed scene
* SubGhz: Fix displaying iDo in the Raed scene
* SubGhz: Fix displaying Star Line in the Raed scene
* SubGhz: Fix displaying Nice Flo in the Raed scene, added save and load functions. (testing needed, no remote control)
* SubGhz: subghz_beginadded common encoder upload signal
* SubGhz: add Came encoder
* SubGhz: modified pricenton encoder, fix view transmitter hide the "Send" button if there is no encoder
* SubGhz: add nice flo encoder, need testing no remote control
* SubGhz: add gate_tx encoder
* SubGhz: add nero_sketch encoder
* SubGhz: add keelog encoder
* SubGhz: add long upload upload while the button is pressed while releasing the transfer is over, with a check for sticking (maximum 200 upload repetitions)
* SubGhz: fix max upload
* SubGhz: Fix structure subghz add encoder
* SubGhz: add generating and sending a dynamic keelog key, refactoring the code
* SubGhz: add notifications
* SubGhz: add creating a new remote control (Pricenton, Nice Flo 12bit, Nice Flo 24bit, CAME 12bit, CAME 24bit, Gate TX, DoorHan)
* SubGhz: Fix load file, fix scene start
* Subghz: Fix show key
* SubGhz: Fix subghz_cli
* SubGhz: Fix furi-hal-subghz
* Format sources
* SubGhz: standard notification scheme, fix broken assert in DMA.
* SubGhz: move level alignment logic to furi-hal-subghz, fix spelling, cleanup.
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
2021-08-16 22:56:23 +03:00
|
|
|
delay_us(instance->common.te_short);
|
2021-06-30 00:19:20 +03:00
|
|
|
} else {
|
|
|
|
//send bit 0
|
SubGhz: read and save static remotes. Create new static and dynamic remotes. (#646)
* SubGhz: the functions of saving loading KeeLog have been modified, saving KeeLog is prohibited
* SubGhz: Fix displaying Nice FlorS in the Raed scene
* SubGhz: Fix displaying Faac SLH in the Raed scene
* SubGhz: Fix displaying iDo in the Raed scene
* SubGhz: Fix displaying Star Line in the Raed scene
* SubGhz: Fix displaying Nice Flo in the Raed scene, added save and load functions. (testing needed, no remote control)
* SubGhz: subghz_beginadded common encoder upload signal
* SubGhz: add Came encoder
* SubGhz: modified pricenton encoder, fix view transmitter hide the "Send" button if there is no encoder
* SubGhz: add nice flo encoder, need testing no remote control
* SubGhz: add gate_tx encoder
* SubGhz: add nero_sketch encoder
* SubGhz: add keelog encoder
* SubGhz: add long upload upload while the button is pressed while releasing the transfer is over, with a check for sticking (maximum 200 upload repetitions)
* SubGhz: fix max upload
* SubGhz: Fix structure subghz add encoder
* SubGhz: add generating and sending a dynamic keelog key, refactoring the code
* SubGhz: add notifications
* SubGhz: add creating a new remote control (Pricenton, Nice Flo 12bit, Nice Flo 24bit, CAME 12bit, CAME 24bit, Gate TX, DoorHan)
* SubGhz: Fix load file, fix scene start
* Subghz: Fix show key
* SubGhz: Fix subghz_cli
* SubGhz: Fix furi-hal-subghz
* Format sources
* SubGhz: standard notification scheme, fix broken assert in DMA.
* SubGhz: move level alignment logic to furi-hal-subghz, fix spelling, cleanup.
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
2021-08-16 22:56:23 +03:00
|
|
|
SUBGHZ_TX_PIN_HIGH();
|
|
|
|
delay_us(instance->common.te_short);
|
2021-06-30 00:19:20 +03:00
|
|
|
SUBGHZ_TX_PIN_LOW();
|
|
|
|
delay_us(instance->common.te_long);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-07-02 16:25:49 +03:00
|
|
|
void subghz_protocol_nice_flor_s_send_key(
|
|
|
|
SubGhzProtocolNiceFlorS* instance,
|
|
|
|
uint64_t key,
|
|
|
|
uint8_t bit,
|
|
|
|
uint8_t repeat) {
|
|
|
|
while(repeat--) {
|
2021-06-30 00:19:20 +03:00
|
|
|
//Send header
|
|
|
|
SUBGHZ_TX_PIN_LOW();
|
SubGhz: read and save static remotes. Create new static and dynamic remotes. (#646)
* SubGhz: the functions of saving loading KeeLog have been modified, saving KeeLog is prohibited
* SubGhz: Fix displaying Nice FlorS in the Raed scene
* SubGhz: Fix displaying Faac SLH in the Raed scene
* SubGhz: Fix displaying iDo in the Raed scene
* SubGhz: Fix displaying Star Line in the Raed scene
* SubGhz: Fix displaying Nice Flo in the Raed scene, added save and load functions. (testing needed, no remote control)
* SubGhz: subghz_beginadded common encoder upload signal
* SubGhz: add Came encoder
* SubGhz: modified pricenton encoder, fix view transmitter hide the "Send" button if there is no encoder
* SubGhz: add nice flo encoder, need testing no remote control
* SubGhz: add gate_tx encoder
* SubGhz: add nero_sketch encoder
* SubGhz: add keelog encoder
* SubGhz: add long upload upload while the button is pressed while releasing the transfer is over, with a check for sticking (maximum 200 upload repetitions)
* SubGhz: fix max upload
* SubGhz: Fix structure subghz add encoder
* SubGhz: add generating and sending a dynamic keelog key, refactoring the code
* SubGhz: add notifications
* SubGhz: add creating a new remote control (Pricenton, Nice Flo 12bit, Nice Flo 24bit, CAME 12bit, CAME 24bit, Gate TX, DoorHan)
* SubGhz: Fix load file, fix scene start
* Subghz: Fix show key
* SubGhz: Fix subghz_cli
* SubGhz: Fix furi-hal-subghz
* Format sources
* SubGhz: standard notification scheme, fix broken assert in DMA.
* SubGhz: move level alignment logic to furi-hal-subghz, fix spelling, cleanup.
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
2021-08-16 22:56:23 +03:00
|
|
|
delay_us(instance->common.te_short * 34);
|
2021-06-30 00:19:20 +03:00
|
|
|
//Send Start Bit
|
SubGhz: read and save static remotes. Create new static and dynamic remotes. (#646)
* SubGhz: the functions of saving loading KeeLog have been modified, saving KeeLog is prohibited
* SubGhz: Fix displaying Nice FlorS in the Raed scene
* SubGhz: Fix displaying Faac SLH in the Raed scene
* SubGhz: Fix displaying iDo in the Raed scene
* SubGhz: Fix displaying Star Line in the Raed scene
* SubGhz: Fix displaying Nice Flo in the Raed scene, added save and load functions. (testing needed, no remote control)
* SubGhz: subghz_beginadded common encoder upload signal
* SubGhz: add Came encoder
* SubGhz: modified pricenton encoder, fix view transmitter hide the "Send" button if there is no encoder
* SubGhz: add nice flo encoder, need testing no remote control
* SubGhz: add gate_tx encoder
* SubGhz: add nero_sketch encoder
* SubGhz: add keelog encoder
* SubGhz: add long upload upload while the button is pressed while releasing the transfer is over, with a check for sticking (maximum 200 upload repetitions)
* SubGhz: fix max upload
* SubGhz: Fix structure subghz add encoder
* SubGhz: add generating and sending a dynamic keelog key, refactoring the code
* SubGhz: add notifications
* SubGhz: add creating a new remote control (Pricenton, Nice Flo 12bit, Nice Flo 24bit, CAME 12bit, CAME 24bit, Gate TX, DoorHan)
* SubGhz: Fix load file, fix scene start
* Subghz: Fix show key
* SubGhz: Fix subghz_cli
* SubGhz: Fix furi-hal-subghz
* Format sources
* SubGhz: standard notification scheme, fix broken assert in DMA.
* SubGhz: move level alignment logic to furi-hal-subghz, fix spelling, cleanup.
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
2021-08-16 22:56:23 +03:00
|
|
|
SUBGHZ_TX_PIN_HIGH();
|
|
|
|
delay_us(instance->common.te_short * 3);
|
2021-06-30 00:19:20 +03:00
|
|
|
SUBGHZ_TX_PIN_LOW();
|
SubGhz: read and save static remotes. Create new static and dynamic remotes. (#646)
* SubGhz: the functions of saving loading KeeLog have been modified, saving KeeLog is prohibited
* SubGhz: Fix displaying Nice FlorS in the Raed scene
* SubGhz: Fix displaying Faac SLH in the Raed scene
* SubGhz: Fix displaying iDo in the Raed scene
* SubGhz: Fix displaying Star Line in the Raed scene
* SubGhz: Fix displaying Nice Flo in the Raed scene, added save and load functions. (testing needed, no remote control)
* SubGhz: subghz_beginadded common encoder upload signal
* SubGhz: add Came encoder
* SubGhz: modified pricenton encoder, fix view transmitter hide the "Send" button if there is no encoder
* SubGhz: add nice flo encoder, need testing no remote control
* SubGhz: add gate_tx encoder
* SubGhz: add nero_sketch encoder
* SubGhz: add keelog encoder
* SubGhz: add long upload upload while the button is pressed while releasing the transfer is over, with a check for sticking (maximum 200 upload repetitions)
* SubGhz: fix max upload
* SubGhz: Fix structure subghz add encoder
* SubGhz: add generating and sending a dynamic keelog key, refactoring the code
* SubGhz: add notifications
* SubGhz: add creating a new remote control (Pricenton, Nice Flo 12bit, Nice Flo 24bit, CAME 12bit, CAME 24bit, Gate TX, DoorHan)
* SubGhz: Fix load file, fix scene start
* Subghz: Fix show key
* SubGhz: Fix subghz_cli
* SubGhz: Fix furi-hal-subghz
* Format sources
* SubGhz: standard notification scheme, fix broken assert in DMA.
* SubGhz: move level alignment logic to furi-hal-subghz, fix spelling, cleanup.
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
2021-08-16 22:56:23 +03:00
|
|
|
delay_us(instance->common.te_short * 3);
|
2021-06-30 00:19:20 +03:00
|
|
|
//Send key data
|
2021-07-02 16:25:49 +03:00
|
|
|
for(uint8_t i = bit; i > 0; i--) {
|
2021-06-30 00:19:20 +03:00
|
|
|
subghz_protocol_nice_flor_s_send_bit(instance, bit_read(key, i - 1));
|
|
|
|
}
|
|
|
|
//Send Stop Bit
|
SubGhz: read and save static remotes. Create new static and dynamic remotes. (#646)
* SubGhz: the functions of saving loading KeeLog have been modified, saving KeeLog is prohibited
* SubGhz: Fix displaying Nice FlorS in the Raed scene
* SubGhz: Fix displaying Faac SLH in the Raed scene
* SubGhz: Fix displaying iDo in the Raed scene
* SubGhz: Fix displaying Star Line in the Raed scene
* SubGhz: Fix displaying Nice Flo in the Raed scene, added save and load functions. (testing needed, no remote control)
* SubGhz: subghz_beginadded common encoder upload signal
* SubGhz: add Came encoder
* SubGhz: modified pricenton encoder, fix view transmitter hide the "Send" button if there is no encoder
* SubGhz: add nice flo encoder, need testing no remote control
* SubGhz: add gate_tx encoder
* SubGhz: add nero_sketch encoder
* SubGhz: add keelog encoder
* SubGhz: add long upload upload while the button is pressed while releasing the transfer is over, with a check for sticking (maximum 200 upload repetitions)
* SubGhz: fix max upload
* SubGhz: Fix structure subghz add encoder
* SubGhz: add generating and sending a dynamic keelog key, refactoring the code
* SubGhz: add notifications
* SubGhz: add creating a new remote control (Pricenton, Nice Flo 12bit, Nice Flo 24bit, CAME 12bit, CAME 24bit, Gate TX, DoorHan)
* SubGhz: Fix load file, fix scene start
* Subghz: Fix show key
* SubGhz: Fix subghz_cli
* SubGhz: Fix furi-hal-subghz
* Format sources
* SubGhz: standard notification scheme, fix broken assert in DMA.
* SubGhz: move level alignment logic to furi-hal-subghz, fix spelling, cleanup.
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
2021-08-16 22:56:23 +03:00
|
|
|
SUBGHZ_TX_PIN_HIGH();
|
|
|
|
delay_us(instance->common.te_short * 3);
|
2021-06-30 00:19:20 +03:00
|
|
|
SUBGHZ_TX_PIN_LOW();
|
SubGhz: read and save static remotes. Create new static and dynamic remotes. (#646)
* SubGhz: the functions of saving loading KeeLog have been modified, saving KeeLog is prohibited
* SubGhz: Fix displaying Nice FlorS in the Raed scene
* SubGhz: Fix displaying Faac SLH in the Raed scene
* SubGhz: Fix displaying iDo in the Raed scene
* SubGhz: Fix displaying Star Line in the Raed scene
* SubGhz: Fix displaying Nice Flo in the Raed scene, added save and load functions. (testing needed, no remote control)
* SubGhz: subghz_beginadded common encoder upload signal
* SubGhz: add Came encoder
* SubGhz: modified pricenton encoder, fix view transmitter hide the "Send" button if there is no encoder
* SubGhz: add nice flo encoder, need testing no remote control
* SubGhz: add gate_tx encoder
* SubGhz: add nero_sketch encoder
* SubGhz: add keelog encoder
* SubGhz: add long upload upload while the button is pressed while releasing the transfer is over, with a check for sticking (maximum 200 upload repetitions)
* SubGhz: fix max upload
* SubGhz: Fix structure subghz add encoder
* SubGhz: add generating and sending a dynamic keelog key, refactoring the code
* SubGhz: add notifications
* SubGhz: add creating a new remote control (Pricenton, Nice Flo 12bit, Nice Flo 24bit, CAME 12bit, CAME 24bit, Gate TX, DoorHan)
* SubGhz: Fix load file, fix scene start
* Subghz: Fix show key
* SubGhz: Fix subghz_cli
* SubGhz: Fix furi-hal-subghz
* Format sources
* SubGhz: standard notification scheme, fix broken assert in DMA.
* SubGhz: move level alignment logic to furi-hal-subghz, fix spelling, cleanup.
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
2021-08-16 22:56:23 +03:00
|
|
|
delay_us(instance->common.te_short * 3);
|
2021-07-02 16:25:49 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/** Read bytes from rainbow table
|
|
|
|
*
|
|
|
|
* @param instance - SubGhzProtocolNiceFlorS* instance
|
|
|
|
* @param address - address byte
|
|
|
|
* @return byte data
|
|
|
|
*/
|
|
|
|
uint8_t subghz_nice_flor_s_get_byte_in_file(SubGhzProtocolNiceFlorS* instance, uint32_t address) {
|
2021-09-15 18:24:19 +03:00
|
|
|
if(!instance->rainbow_table_file_name) return 0;
|
2021-07-02 16:25:49 +03:00
|
|
|
|
|
|
|
uint8_t buffer = 0;
|
|
|
|
FileWorker* file_worker = file_worker_alloc(true);
|
2021-09-15 18:24:19 +03:00
|
|
|
if(file_worker_open(
|
|
|
|
file_worker, instance->rainbow_table_file_name, FSAM_READ, FSOM_OPEN_EXISTING)) {
|
2021-07-02 16:25:49 +03:00
|
|
|
file_worker_seek(file_worker, address, true);
|
|
|
|
file_worker_read(file_worker, &buffer, 1);
|
2021-06-30 00:19:20 +03:00
|
|
|
}
|
2021-07-02 16:25:49 +03:00
|
|
|
file_worker_close(file_worker);
|
|
|
|
file_worker_free(file_worker);
|
|
|
|
|
|
|
|
return buffer;
|
|
|
|
}
|
|
|
|
|
|
|
|
/** Decrypt protocol Nice Flor S
|
|
|
|
*
|
|
|
|
* @param instance - SubGhzProtocolNiceFlorS* instance
|
|
|
|
*/
|
|
|
|
void subghz_nice_flor_s_decoder_decrypt(SubGhzProtocolNiceFlorS* instance) {
|
|
|
|
/*
|
|
|
|
* Packet format Nice Flor-s: START-P0-P1-P2-P3-P4-P5-P6-P7-STOP
|
|
|
|
* P0 (4-bit) - button positional code - 1:0x1, 2:0x2, 3:0x4, 4:0x8;
|
|
|
|
* P1 (4-bit) - batch repetition number, calculated by the formula:
|
|
|
|
* P1 = 0xF ^ P0 ^ n; where n changes from 1 to 15, then 0, and then in a circle
|
|
|
|
* key 1: {0xF,0xC,0xD,0xA,0xB,0x8,0x9,0x6,0x7,0x4,0x5,0x2,0x3,0x0,0x1,0xE};
|
|
|
|
* key 2: {0xC,0xF,0xE,0x9,0x8,0xB,0xA,0x5,0x4,0x7,0x6,0x1,0x0,0x3,0x2,0xD};
|
|
|
|
* key 3: {0xA,0x9,0x8,0xF,0xE,0xD,0xC,0x3,0x2,0x1,0x0,0x7,0x6,0x5,0x4,0xB};
|
|
|
|
* P2 (4-bit) - part of the serial number, P2 = (K ^ S3) & 0xF;
|
|
|
|
* P3 (byte) - the major part of the encrypted index
|
|
|
|
* P4 (byte) - the low-order part of the encrypted index
|
|
|
|
* P5 (byte) - part of the serial number, P5 = K ^ S2;
|
|
|
|
* P6 (byte) - part of the serial number, P6 = K ^ S1;
|
|
|
|
* P7 (byte) - part of the serial number, P7 = K ^ S0;
|
|
|
|
* K (byte) - depends on P3 and P4, K = Fk(P3, P4);
|
|
|
|
* S3,S2,S1,S0 - serial number of the console 28 bit.
|
|
|
|
*/
|
|
|
|
|
SubGhz: read and save static remotes. Create new static and dynamic remotes. (#646)
* SubGhz: the functions of saving loading KeeLog have been modified, saving KeeLog is prohibited
* SubGhz: Fix displaying Nice FlorS in the Raed scene
* SubGhz: Fix displaying Faac SLH in the Raed scene
* SubGhz: Fix displaying iDo in the Raed scene
* SubGhz: Fix displaying Star Line in the Raed scene
* SubGhz: Fix displaying Nice Flo in the Raed scene, added save and load functions. (testing needed, no remote control)
* SubGhz: subghz_beginadded common encoder upload signal
* SubGhz: add Came encoder
* SubGhz: modified pricenton encoder, fix view transmitter hide the "Send" button if there is no encoder
* SubGhz: add nice flo encoder, need testing no remote control
* SubGhz: add gate_tx encoder
* SubGhz: add nero_sketch encoder
* SubGhz: add keelog encoder
* SubGhz: add long upload upload while the button is pressed while releasing the transfer is over, with a check for sticking (maximum 200 upload repetitions)
* SubGhz: fix max upload
* SubGhz: Fix structure subghz add encoder
* SubGhz: add generating and sending a dynamic keelog key, refactoring the code
* SubGhz: add notifications
* SubGhz: add creating a new remote control (Pricenton, Nice Flo 12bit, Nice Flo 24bit, CAME 12bit, CAME 24bit, Gate TX, DoorHan)
* SubGhz: Fix load file, fix scene start
* Subghz: Fix show key
* SubGhz: Fix subghz_cli
* SubGhz: Fix furi-hal-subghz
* Format sources
* SubGhz: standard notification scheme, fix broken assert in DMA.
* SubGhz: move level alignment logic to furi-hal-subghz, fix spelling, cleanup.
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
2021-08-16 22:56:23 +03:00
|
|
|
uint16_t p3p4 = (uint16_t)(instance->common.code_last_found >> 24);
|
2021-09-15 18:24:19 +03:00
|
|
|
instance->common.cnt = subghz_nice_flor_s_get_byte_in_file(instance, p3p4 * 2) << 8 |
|
|
|
|
subghz_nice_flor_s_get_byte_in_file(instance, p3p4 * 2 + 1);
|
|
|
|
uint8_t k =
|
|
|
|
(uint8_t)(p3p4 & 0x00FF) ^
|
|
|
|
subghz_nice_flor_s_get_byte_in_file(instance, (0x20000 | (instance->common.cnt & 0x00ff)));
|
2021-07-02 16:25:49 +03:00
|
|
|
|
SubGhz: read and save static remotes. Create new static and dynamic remotes. (#646)
* SubGhz: the functions of saving loading KeeLog have been modified, saving KeeLog is prohibited
* SubGhz: Fix displaying Nice FlorS in the Raed scene
* SubGhz: Fix displaying Faac SLH in the Raed scene
* SubGhz: Fix displaying iDo in the Raed scene
* SubGhz: Fix displaying Star Line in the Raed scene
* SubGhz: Fix displaying Nice Flo in the Raed scene, added save and load functions. (testing needed, no remote control)
* SubGhz: subghz_beginadded common encoder upload signal
* SubGhz: add Came encoder
* SubGhz: modified pricenton encoder, fix view transmitter hide the "Send" button if there is no encoder
* SubGhz: add nice flo encoder, need testing no remote control
* SubGhz: add gate_tx encoder
* SubGhz: add nero_sketch encoder
* SubGhz: add keelog encoder
* SubGhz: add long upload upload while the button is pressed while releasing the transfer is over, with a check for sticking (maximum 200 upload repetitions)
* SubGhz: fix max upload
* SubGhz: Fix structure subghz add encoder
* SubGhz: add generating and sending a dynamic keelog key, refactoring the code
* SubGhz: add notifications
* SubGhz: add creating a new remote control (Pricenton, Nice Flo 12bit, Nice Flo 24bit, CAME 12bit, CAME 24bit, Gate TX, DoorHan)
* SubGhz: Fix load file, fix scene start
* Subghz: Fix show key
* SubGhz: Fix subghz_cli
* SubGhz: Fix furi-hal-subghz
* Format sources
* SubGhz: standard notification scheme, fix broken assert in DMA.
* SubGhz: move level alignment logic to furi-hal-subghz, fix spelling, cleanup.
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
2021-08-16 22:56:23 +03:00
|
|
|
uint8_t s3 = ((uint8_t)(instance->common.code_last_found >> 40) ^ k) & 0x0f;
|
|
|
|
uint8_t s2 = ((uint8_t)(instance->common.code_last_found >> 16) ^ k);
|
|
|
|
uint8_t s1 = ((uint8_t)(instance->common.code_last_found >> 8) ^ k);
|
|
|
|
uint8_t s0 = ((uint8_t)(instance->common.code_last_found) ^ k);
|
2021-07-02 16:25:49 +03:00
|
|
|
instance->common.serial = s3 << 24 | s2 << 16 | s1 << 8 | s0;
|
|
|
|
|
SubGhz: read and save static remotes. Create new static and dynamic remotes. (#646)
* SubGhz: the functions of saving loading KeeLog have been modified, saving KeeLog is prohibited
* SubGhz: Fix displaying Nice FlorS in the Raed scene
* SubGhz: Fix displaying Faac SLH in the Raed scene
* SubGhz: Fix displaying iDo in the Raed scene
* SubGhz: Fix displaying Star Line in the Raed scene
* SubGhz: Fix displaying Nice Flo in the Raed scene, added save and load functions. (testing needed, no remote control)
* SubGhz: subghz_beginadded common encoder upload signal
* SubGhz: add Came encoder
* SubGhz: modified pricenton encoder, fix view transmitter hide the "Send" button if there is no encoder
* SubGhz: add nice flo encoder, need testing no remote control
* SubGhz: add gate_tx encoder
* SubGhz: add nero_sketch encoder
* SubGhz: add keelog encoder
* SubGhz: add long upload upload while the button is pressed while releasing the transfer is over, with a check for sticking (maximum 200 upload repetitions)
* SubGhz: fix max upload
* SubGhz: Fix structure subghz add encoder
* SubGhz: add generating and sending a dynamic keelog key, refactoring the code
* SubGhz: add notifications
* SubGhz: add creating a new remote control (Pricenton, Nice Flo 12bit, Nice Flo 24bit, CAME 12bit, CAME 24bit, Gate TX, DoorHan)
* SubGhz: Fix load file, fix scene start
* Subghz: Fix show key
* SubGhz: Fix subghz_cli
* SubGhz: Fix furi-hal-subghz
* Format sources
* SubGhz: standard notification scheme, fix broken assert in DMA.
* SubGhz: move level alignment logic to furi-hal-subghz, fix spelling, cleanup.
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
2021-08-16 22:56:23 +03:00
|
|
|
instance->common.btn = (instance->common.code_last_found >> 48) & 0x0f;
|
2021-06-30 00:19:20 +03:00
|
|
|
}
|
|
|
|
|
2021-07-07 22:49:45 +03:00
|
|
|
void subghz_protocol_nice_flor_s_reset(SubGhzProtocolNiceFlorS* instance) {
|
2021-09-15 18:24:19 +03:00
|
|
|
instance->common.parser_step = NiceFlorSDecoderStepReset;
|
2021-07-07 22:49:45 +03:00
|
|
|
}
|
|
|
|
|
2021-09-15 18:24:19 +03:00
|
|
|
void subghz_protocol_nice_flor_s_parse(
|
|
|
|
SubGhzProtocolNiceFlorS* instance,
|
|
|
|
bool level,
|
|
|
|
uint32_t duration) {
|
2021-07-02 16:25:49 +03:00
|
|
|
switch(instance->common.parser_step) {
|
2021-09-15 18:24:19 +03:00
|
|
|
case NiceFlorSDecoderStepReset:
|
|
|
|
if((!level) && (DURATION_DIFF(duration, instance->common.te_short * 38) <
|
|
|
|
instance->common.te_delta * 38)) {
|
2021-06-30 00:19:20 +03:00
|
|
|
//Found start header Nice Flor-S
|
2021-09-15 18:24:19 +03:00
|
|
|
instance->common.parser_step = NiceFlorSDecoderStepCheckHeader;
|
2021-06-30 00:19:20 +03:00
|
|
|
} else {
|
2021-09-15 18:24:19 +03:00
|
|
|
instance->common.parser_step = NiceFlorSDecoderStepReset;
|
2021-06-30 00:19:20 +03:00
|
|
|
}
|
|
|
|
break;
|
2021-09-15 18:24:19 +03:00
|
|
|
case NiceFlorSDecoderStepCheckHeader:
|
|
|
|
if((level) && (DURATION_DIFF(duration, instance->common.te_short * 3) <
|
|
|
|
instance->common.te_delta * 3)) {
|
2021-06-30 00:19:20 +03:00
|
|
|
//Found next header Nice Flor-S
|
2021-09-15 18:24:19 +03:00
|
|
|
instance->common.parser_step = NiceFlorSDecoderStepFoundHeader;
|
2021-06-30 00:19:20 +03:00
|
|
|
} else {
|
2021-09-15 18:24:19 +03:00
|
|
|
instance->common.parser_step = NiceFlorSDecoderStepReset;
|
2021-06-30 00:19:20 +03:00
|
|
|
}
|
|
|
|
break;
|
2021-09-15 18:24:19 +03:00
|
|
|
case NiceFlorSDecoderStepFoundHeader:
|
|
|
|
if((!level) && (DURATION_DIFF(duration, instance->common.te_short * 3) <
|
|
|
|
instance->common.te_delta * 3)) {
|
2021-06-30 00:19:20 +03:00
|
|
|
//Found header Nice Flor-S
|
2021-09-15 18:24:19 +03:00
|
|
|
instance->common.parser_step = NiceFlorSDecoderStepSaveDuration;
|
2021-06-30 00:19:20 +03:00
|
|
|
instance->common.code_found = 0;
|
|
|
|
instance->common.code_count_bit = 0;
|
|
|
|
} else {
|
2021-09-15 18:24:19 +03:00
|
|
|
instance->common.parser_step = NiceFlorSDecoderStepReset;
|
2021-06-30 00:19:20 +03:00
|
|
|
}
|
|
|
|
break;
|
2021-09-15 18:24:19 +03:00
|
|
|
case NiceFlorSDecoderStepSaveDuration:
|
2021-07-07 22:49:45 +03:00
|
|
|
if(level) {
|
2021-09-15 18:24:19 +03:00
|
|
|
if(DURATION_DIFF(duration, instance->common.te_short * 3) <
|
|
|
|
instance->common.te_delta) {
|
2021-06-30 00:19:20 +03:00
|
|
|
//Found STOP bit
|
2021-09-15 18:24:19 +03:00
|
|
|
instance->common.parser_step = NiceFlorSDecoderStepReset;
|
|
|
|
if(instance->common.code_count_bit >=
|
|
|
|
instance->common.code_min_count_bit_for_found) {
|
SubGhz: read and save static remotes. Create new static and dynamic remotes. (#646)
* SubGhz: the functions of saving loading KeeLog have been modified, saving KeeLog is prohibited
* SubGhz: Fix displaying Nice FlorS in the Raed scene
* SubGhz: Fix displaying Faac SLH in the Raed scene
* SubGhz: Fix displaying iDo in the Raed scene
* SubGhz: Fix displaying Star Line in the Raed scene
* SubGhz: Fix displaying Nice Flo in the Raed scene, added save and load functions. (testing needed, no remote control)
* SubGhz: subghz_beginadded common encoder upload signal
* SubGhz: add Came encoder
* SubGhz: modified pricenton encoder, fix view transmitter hide the "Send" button if there is no encoder
* SubGhz: add nice flo encoder, need testing no remote control
* SubGhz: add gate_tx encoder
* SubGhz: add nero_sketch encoder
* SubGhz: add keelog encoder
* SubGhz: add long upload upload while the button is pressed while releasing the transfer is over, with a check for sticking (maximum 200 upload repetitions)
* SubGhz: fix max upload
* SubGhz: Fix structure subghz add encoder
* SubGhz: add generating and sending a dynamic keelog key, refactoring the code
* SubGhz: add notifications
* SubGhz: add creating a new remote control (Pricenton, Nice Flo 12bit, Nice Flo 24bit, CAME 12bit, CAME 24bit, Gate TX, DoorHan)
* SubGhz: Fix load file, fix scene start
* Subghz: Fix show key
* SubGhz: Fix subghz_cli
* SubGhz: Fix furi-hal-subghz
* Format sources
* SubGhz: standard notification scheme, fix broken assert in DMA.
* SubGhz: move level alignment logic to furi-hal-subghz, fix spelling, cleanup.
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
2021-08-16 22:56:23 +03:00
|
|
|
instance->common.code_last_found = instance->common.code_found;
|
|
|
|
instance->common.code_last_count_bit = instance->common.code_count_bit;
|
2021-09-15 18:24:19 +03:00
|
|
|
if(instance->common.callback)
|
|
|
|
instance->common.callback(
|
|
|
|
(SubGhzProtocolCommon*)instance, instance->common.context);
|
2021-06-30 00:19:20 +03:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
} else {
|
|
|
|
//save interval
|
2021-07-07 22:49:45 +03:00
|
|
|
instance->common.te_last = duration;
|
2021-09-15 18:24:19 +03:00
|
|
|
instance->common.parser_step = NiceFlorSDecoderStepCheckDuration;
|
2021-06-30 00:19:20 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
2021-09-15 18:24:19 +03:00
|
|
|
case NiceFlorSDecoderStepCheckDuration:
|
2021-07-07 22:49:45 +03:00
|
|
|
if(!level) {
|
2021-09-15 18:24:19 +03:00
|
|
|
if((DURATION_DIFF(instance->common.te_last, instance->common.te_short) <
|
|
|
|
instance->common.te_delta) &&
|
|
|
|
(DURATION_DIFF(duration, instance->common.te_long) < instance->common.te_delta)) {
|
2021-06-30 00:19:20 +03:00
|
|
|
subghz_protocol_common_add_bit(&instance->common, 0);
|
2021-09-15 18:24:19 +03:00
|
|
|
instance->common.parser_step = NiceFlorSDecoderStepSaveDuration;
|
2021-07-02 16:25:49 +03:00
|
|
|
} else if(
|
2021-09-15 18:24:19 +03:00
|
|
|
(DURATION_DIFF(instance->common.te_last, instance->common.te_long) <
|
|
|
|
instance->common.te_delta) &&
|
|
|
|
(DURATION_DIFF(duration, instance->common.te_short) < instance->common.te_delta)) {
|
2021-06-30 00:19:20 +03:00
|
|
|
subghz_protocol_common_add_bit(&instance->common, 1);
|
2021-09-15 18:24:19 +03:00
|
|
|
instance->common.parser_step = NiceFlorSDecoderStepSaveDuration;
|
2021-06-30 00:19:20 +03:00
|
|
|
} else
|
2021-09-15 18:24:19 +03:00
|
|
|
instance->common.parser_step = NiceFlorSDecoderStepReset;
|
2021-06-30 00:19:20 +03:00
|
|
|
} else {
|
2021-09-15 18:24:19 +03:00
|
|
|
instance->common.parser_step = NiceFlorSDecoderStepReset;
|
2021-06-30 00:19:20 +03:00
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
2021-07-02 16:25:49 +03:00
|
|
|
|
|
|
|
void subghz_protocol_nice_flor_s_to_str(SubGhzProtocolNiceFlorS* instance, string_t output) {
|
SubGhz: read and save static remotes. Create new static and dynamic remotes. (#646)
* SubGhz: the functions of saving loading KeeLog have been modified, saving KeeLog is prohibited
* SubGhz: Fix displaying Nice FlorS in the Raed scene
* SubGhz: Fix displaying Faac SLH in the Raed scene
* SubGhz: Fix displaying iDo in the Raed scene
* SubGhz: Fix displaying Star Line in the Raed scene
* SubGhz: Fix displaying Nice Flo in the Raed scene, added save and load functions. (testing needed, no remote control)
* SubGhz: subghz_beginadded common encoder upload signal
* SubGhz: add Came encoder
* SubGhz: modified pricenton encoder, fix view transmitter hide the "Send" button if there is no encoder
* SubGhz: add nice flo encoder, need testing no remote control
* SubGhz: add gate_tx encoder
* SubGhz: add nero_sketch encoder
* SubGhz: add keelog encoder
* SubGhz: add long upload upload while the button is pressed while releasing the transfer is over, with a check for sticking (maximum 200 upload repetitions)
* SubGhz: fix max upload
* SubGhz: Fix structure subghz add encoder
* SubGhz: add generating and sending a dynamic keelog key, refactoring the code
* SubGhz: add notifications
* SubGhz: add creating a new remote control (Pricenton, Nice Flo 12bit, Nice Flo 24bit, CAME 12bit, CAME 24bit, Gate TX, DoorHan)
* SubGhz: Fix load file, fix scene start
* Subghz: Fix show key
* SubGhz: Fix subghz_cli
* SubGhz: Fix furi-hal-subghz
* Format sources
* SubGhz: standard notification scheme, fix broken assert in DMA.
* SubGhz: move level alignment logic to furi-hal-subghz, fix spelling, cleanup.
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
2021-08-16 22:56:23 +03:00
|
|
|
subghz_nice_flor_s_decoder_decrypt(instance);
|
|
|
|
uint32_t code_found_hi = instance->common.code_last_found >> 32;
|
|
|
|
uint32_t code_found_lo = instance->common.code_last_found & 0x00000000ffffffff;
|
2021-07-02 16:25:49 +03:00
|
|
|
|
|
|
|
string_cat_printf(
|
|
|
|
output,
|
Skorp subghz signal archive (#667)
* SubGhz: Add millis() furi, add subghz history struct
* SubGhz: Fix subghz history
* Gubghz: Fix code repeat history, add clean history
* SubGhz: reading and adding keys to history
* Gui: Renaming Sub 1-Ghz -> SubGhz
* Archive: Renaming Sub 1-Ghz -> SubGhz
* SubGhz: Add menu history, modified button for sending a signal, changed output of data about accepted protocol
* Archive: Fix name subghz
* SubGhz: Menu navigation
* Assets: Add assets/SubGHz/icon.png
* Assets: add new icons for subghz
* SubGhz: Fix name Add manually scene
* SubGhz: Fix load icon Read scene. rename encoder struct, rename protocol function load from file, add load raw data protocol, add info pleasant signals all protocol
* SubGhz: fix memory leak
* SubGhz: change of receiving frequency for read scene
* SubGhz: Add save/load frequency and preset, add automatic configuration of transmit/receive to the desired frequency and modulation, add button "save" config scene
* SubGhz: Fix frequency and preset, fix frequency add manualli scene, fix re-executing the parser
* Furi-hal-subghz: add 2-FSK config, fix ook config 650KHz BW Tx filter
* Fix formatting and release build
* SubGhz: Delete read scene
* SubGhz: Fix frequency add manualli scene, refactoring code
* SubGhz: 2 profiles for OOK, fix broken build.
* SubGhz: Add passing static codes from read scene, add notification read scene, refactoring code
* SubGhz: fix assert on worker double stop.
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
2021-08-28 16:51:48 +03:00
|
|
|
"%s %dbit\r\n"
|
|
|
|
"Key:0x%lX%08lX\r\n"
|
|
|
|
"Sn:%05lX\r\n"
|
|
|
|
"Cnt:%04X Btn:%02lX\r\n",
|
2021-07-02 16:25:49 +03:00
|
|
|
instance->common.name,
|
SubGhz: read and save static remotes. Create new static and dynamic remotes. (#646)
* SubGhz: the functions of saving loading KeeLog have been modified, saving KeeLog is prohibited
* SubGhz: Fix displaying Nice FlorS in the Raed scene
* SubGhz: Fix displaying Faac SLH in the Raed scene
* SubGhz: Fix displaying iDo in the Raed scene
* SubGhz: Fix displaying Star Line in the Raed scene
* SubGhz: Fix displaying Nice Flo in the Raed scene, added save and load functions. (testing needed, no remote control)
* SubGhz: subghz_beginadded common encoder upload signal
* SubGhz: add Came encoder
* SubGhz: modified pricenton encoder, fix view transmitter hide the "Send" button if there is no encoder
* SubGhz: add nice flo encoder, need testing no remote control
* SubGhz: add gate_tx encoder
* SubGhz: add nero_sketch encoder
* SubGhz: add keelog encoder
* SubGhz: add long upload upload while the button is pressed while releasing the transfer is over, with a check for sticking (maximum 200 upload repetitions)
* SubGhz: fix max upload
* SubGhz: Fix structure subghz add encoder
* SubGhz: add generating and sending a dynamic keelog key, refactoring the code
* SubGhz: add notifications
* SubGhz: add creating a new remote control (Pricenton, Nice Flo 12bit, Nice Flo 24bit, CAME 12bit, CAME 24bit, Gate TX, DoorHan)
* SubGhz: Fix load file, fix scene start
* Subghz: Fix show key
* SubGhz: Fix subghz_cli
* SubGhz: Fix furi-hal-subghz
* Format sources
* SubGhz: standard notification scheme, fix broken assert in DMA.
* SubGhz: move level alignment logic to furi-hal-subghz, fix spelling, cleanup.
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
2021-08-16 22:56:23 +03:00
|
|
|
instance->common.code_last_count_bit,
|
2021-07-02 16:25:49 +03:00
|
|
|
code_found_hi,
|
|
|
|
code_found_lo,
|
|
|
|
instance->common.serial,
|
|
|
|
instance->common.cnt,
|
2021-09-15 18:24:19 +03:00
|
|
|
instance->common.btn);
|
Skorp subghz signal archive (#667)
* SubGhz: Add millis() furi, add subghz history struct
* SubGhz: Fix subghz history
* Gubghz: Fix code repeat history, add clean history
* SubGhz: reading and adding keys to history
* Gui: Renaming Sub 1-Ghz -> SubGhz
* Archive: Renaming Sub 1-Ghz -> SubGhz
* SubGhz: Add menu history, modified button for sending a signal, changed output of data about accepted protocol
* Archive: Fix name subghz
* SubGhz: Menu navigation
* Assets: Add assets/SubGHz/icon.png
* Assets: add new icons for subghz
* SubGhz: Fix name Add manually scene
* SubGhz: Fix load icon Read scene. rename encoder struct, rename protocol function load from file, add load raw data protocol, add info pleasant signals all protocol
* SubGhz: fix memory leak
* SubGhz: change of receiving frequency for read scene
* SubGhz: Add save/load frequency and preset, add automatic configuration of transmit/receive to the desired frequency and modulation, add button "save" config scene
* SubGhz: Fix frequency and preset, fix frequency add manualli scene, fix re-executing the parser
* Furi-hal-subghz: add 2-FSK config, fix ook config 650KHz BW Tx filter
* Fix formatting and release build
* SubGhz: Delete read scene
* SubGhz: Fix frequency add manualli scene, refactoring code
* SubGhz: 2 profiles for OOK, fix broken build.
* SubGhz: Add passing static codes from read scene, add notification read scene, refactoring code
* SubGhz: fix assert on worker double stop.
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
2021-08-28 16:51:48 +03:00
|
|
|
}
|
|
|
|
|
2021-09-15 18:24:19 +03:00
|
|
|
void subghz_decoder_nice_flor_s_to_load_protocol(SubGhzProtocolNiceFlorS* instance, void* context) {
|
Skorp subghz signal archive (#667)
* SubGhz: Add millis() furi, add subghz history struct
* SubGhz: Fix subghz history
* Gubghz: Fix code repeat history, add clean history
* SubGhz: reading and adding keys to history
* Gui: Renaming Sub 1-Ghz -> SubGhz
* Archive: Renaming Sub 1-Ghz -> SubGhz
* SubGhz: Add menu history, modified button for sending a signal, changed output of data about accepted protocol
* Archive: Fix name subghz
* SubGhz: Menu navigation
* Assets: Add assets/SubGHz/icon.png
* Assets: add new icons for subghz
* SubGhz: Fix name Add manually scene
* SubGhz: Fix load icon Read scene. rename encoder struct, rename protocol function load from file, add load raw data protocol, add info pleasant signals all protocol
* SubGhz: fix memory leak
* SubGhz: change of receiving frequency for read scene
* SubGhz: Add save/load frequency and preset, add automatic configuration of transmit/receive to the desired frequency and modulation, add button "save" config scene
* SubGhz: Fix frequency and preset, fix frequency add manualli scene, fix re-executing the parser
* Furi-hal-subghz: add 2-FSK config, fix ook config 650KHz BW Tx filter
* Fix formatting and release build
* SubGhz: Delete read scene
* SubGhz: Fix frequency add manualli scene, refactoring code
* SubGhz: 2 profiles for OOK, fix broken build.
* SubGhz: Add passing static codes from read scene, add notification read scene, refactoring code
* SubGhz: fix assert on worker double stop.
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
2021-08-28 16:51:48 +03:00
|
|
|
furi_assert(context);
|
|
|
|
furi_assert(instance);
|
|
|
|
SubGhzProtocolCommonLoad* data = context;
|
|
|
|
instance->common.code_last_found = data->code_found;
|
|
|
|
instance->common.code_last_count_bit = data->code_count_bit;
|
|
|
|
subghz_nice_flor_s_decoder_decrypt(instance);
|
2021-07-02 16:25:49 +03:00
|
|
|
}
|