Skip to content

Commit

Permalink
Add Ansonic protocol support
Browse files Browse the repository at this point in the history
  • Loading branch information
xMasterX committed Nov 23, 2022
1 parent e5eb466 commit 9af4705
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
40 changes: 40 additions & 0 deletions subbrute_protocols.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,39 @@ const SubBruteProtocol subbrute_protocol_nice_12bit_868 = {
.preset = FuriHalSubGhzPresetOok650Async,
.file = NICEFileProtocol};

/**
* Ansonic 12bit 433.075MHz
*/
const SubBruteProtocol subbrute_protocol_ansonic_12bit_433075 = {
.frequency = 433075000,
.bits = 12,
.te = 0,
.repeat = 3,
.preset = FuriHalSubGhzPreset2FSKDev238Async,
.file = AnsonicFileProtocol};

/**
* Ansonic 12bit 433.92MHz
*/
const SubBruteProtocol subbrute_protocol_ansonic_12bit_433 = {
.frequency = 433920000,
.bits = 12,
.te = 0,
.repeat = 3,
.preset = FuriHalSubGhzPreset2FSKDev238Async,
.file = AnsonicFileProtocol};

/**
* Ansonic 12bit 434.075MHz
*/
const SubBruteProtocol subbrute_protocol_ansonic_12bit_434 = {
.frequency = 434075000,
.bits = 12,
.te = 0,
.repeat = 3,
.preset = FuriHalSubGhzPreset2FSKDev238Async,
.file = AnsonicFileProtocol};

/**
* Chamberlain 9bit 300MHz
*/
Expand Down Expand Up @@ -214,6 +247,9 @@ static const char* subbrute_protocol_names[] = {
[SubBruteAttackCAME12bit868] = "CAME 12bit 868MHz",
[SubBruteAttackNICE12bit433] = "NICE 12bit 433MHz",
[SubBruteAttackNICE12bit868] = "NICE 12bit 868MHz",
[SubBruteAttackAnsonic12bit433075] = "Ansonic 12b 433.07MHz",
[SubBruteAttackAnsonic12bit433] = "Ansonic 12bit 433.92MHz",
[SubBruteAttackAnsonic12bit434] = "Ansonic 12bit 434.07MHz",
[SubBruteAttackChamberlain9bit300] = "Chamberlain 9bit 300MHz",
[SubBruteAttackChamberlain9bit315] = "Chamberlain 9bit 315MHz",
[SubBruteAttackChamberlain9bit390] = "Chamberlain 9bit 390MHz",
Expand Down Expand Up @@ -247,6 +283,9 @@ const SubBruteProtocol* subbrute_protocol_registry[] = {
[SubBruteAttackCAME12bit868] = &subbrute_protocol_came_12bit_868,
[SubBruteAttackNICE12bit433] = &subbrute_protocol_nice_12bit_433,
[SubBruteAttackNICE12bit868] = &subbrute_protocol_nice_12bit_868,
[SubBruteAttackAnsonic12bit433075] = &subbrute_protocol_ansonic_12bit_433075,
[SubBruteAttackAnsonic12bit433] = &subbrute_protocol_ansonic_12bit_433,
[SubBruteAttackAnsonic12bit434] = &subbrute_protocol_ansonic_12bit_434,
[SubBruteAttackChamberlain9bit300] = &subbrute_protocol_chamberlain_9bit_300,
[SubBruteAttackChamberlain9bit315] = &subbrute_protocol_chamberlain_9bit_315,
[SubBruteAttackChamberlain9bit390] = &subbrute_protocol_chamberlain_9bit_390,
Expand Down Expand Up @@ -274,6 +313,7 @@ static const char* subbrute_protocol_file_types[] = {
[GateTXFileProtocol] = "GateTX",
[MagellanFileProtocol] = "Magellan",
[IntertechnoV3FileProtocol] = "Intertechno_V3",
[AnsonicFileProtocol] = "Ansonic",
[UnknownFileProtocol] = "Unknown"};

/**
Expand Down
4 changes: 4 additions & 0 deletions subbrute_protocols.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ typedef enum {
GateTXFileProtocol,
MagellanFileProtocol,
IntertechnoV3FileProtocol,
AnsonicFileProtocol,
UnknownFileProtocol,
TotalFileProtocol,
} SubBruteFileProtocol;
Expand All @@ -29,6 +30,9 @@ typedef enum {
SubBruteAttackCAME12bit868,
SubBruteAttackNICE12bit433,
SubBruteAttackNICE12bit868,
SubBruteAttackAnsonic12bit433075,
SubBruteAttackAnsonic12bit433,
SubBruteAttackAnsonic12bit434,
SubBruteAttackChamberlain9bit300,
SubBruteAttackChamberlain9bit315,
SubBruteAttackChamberlain9bit390,
Expand Down

0 comments on commit 9af4705

Please sign in to comment.