Skip to content

Commit

Permalink
Added support for TD174
Browse files Browse the repository at this point in the history
  • Loading branch information
leedave committed Jan 6, 2024
1 parent b6dcd49 commit e2e3c2e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 16 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This app triggers restaurant pagers in a brute force manner, useful to test if d
- Retekess T119
- Retekess TD157
- Retekess TD165
- Retekess TD174 (coming soon)
- Retekess TD174

### Features
- Select range of stations (needs improving for full range)
Expand Down
2 changes: 1 addition & 1 deletion application.fam
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ App(
fap_icon="icons/meal_pager_10px.png",
fap_icon_assets="icons",
fap_category="Sub-Ghz",
fap_version="0.9",
fap_version="1.0",
fap_author="leedave",
fap_weburl="https://github.com/leedave/flipper-zero-meal-pager",
fap_description="This app triggers restaurant pagers in a brute force manner, useful to test if devices are still functional.",
Expand Down
3 changes: 3 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## v1.0
- Added support for TD174

## v0.9
- Added support for TD165

Expand Down
16 changes: 2 additions & 14 deletions helpers/retekess/meal_pager_retekess_td174.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ static char* genRawDataTd174(int zero, int one, const char* bits) {
char* res = (char*)malloc(lineLen * sizeof(char));
res[0] = '\0'; // Null-terminate the result string

customConcat(res, "-6000");
customConcat(res, "-6000 300 -900"); // Always starts with 01

// Append bits and create the line
for(int i = 0; i < bitsLen; i++) {
Expand Down Expand Up @@ -58,22 +58,11 @@ static void meal_pager_retekess_td174_generate_pager(
customConcat(fullId, stationId);
customConcat(fullId, actionId);
customConcat(fullId, pagerId);
//FURI_LOG_D(TAG, "Result %s", fullId);
//FURI_LOG_D(TAG, "Station & Pager: %s", stationPagerId);
//FURI_LOG_D(TAG, "Station & Pager: %s", stationPagerId);

//FURI_LOG_D(TAG, "CustomConcat: %s", fullId);
//FURI_LOG_D(TAG, "Station & Pager & Action: %s", fullId);
char* manchester = encManchester(fullId, 0);
char* manchesterFull = "01";
customConcat(manchesterFull, manchester);
//FURI_LOG_D(TAG, "Manchester: %s", manchester);
char* rawSignal = genRawDataTd174(300, 900, manchesterFull);
//FURI_LOG_D(TAG, "RAW_Data: %s", rawSignal);
char* rawSignal = genRawDataTd174(300, 900, manchester);
for(u_int32_t i = 1; app->repeats >= i; i++) {
flipper_format_write_string_cstr(ff, "RAW_Data", rawSignal);
}
//flipper_format_write_string_cstr(ff, "RAW_Data", rawSignal);
free(manchester);
free(rawSignal);
}
Expand All @@ -95,7 +84,6 @@ static void
meal_pager_transmit_model_set_station(app->meal_pager_transmit, app->current_station);
for(u_int32_t i = app->current_pager; i <= app->last_pager; i++) {
meal_pager_retekess_td174_generate_pager(app, stationId, i, ff);
//furi_thread_flags_wait(0, FuriFlagWaitAny, 1);
if(app->stop_transmit) {
break;
}
Expand Down

0 comments on commit e2e3c2e

Please sign in to comment.