From e2e3c2e3cad071c5f2c834602f48ba1d721a7187 Mon Sep 17 00:00:00 2001 From: David Lee <5908330+leedave@users.noreply.github.com> Date: Sat, 6 Jan 2024 13:22:06 +0100 Subject: [PATCH] Added support for TD174 --- README.md | 2 +- application.fam | 2 +- docs/changelog.md | 3 +++ helpers/retekess/meal_pager_retekess_td174.c | 16 ++-------------- 4 files changed, 7 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 71b4ac6360a..956557ec0ea 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/application.fam b/application.fam index 7d830096ffe..a36b4ca43f9 100644 --- a/application.fam +++ b/application.fam @@ -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.", diff --git a/docs/changelog.md b/docs/changelog.md index 00f4cd0b091..2c9adca3463 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -1,3 +1,6 @@ +## v1.0 +- Added support for TD174 + ## v0.9 - Added support for TD165 diff --git a/helpers/retekess/meal_pager_retekess_td174.c b/helpers/retekess/meal_pager_retekess_td174.c index 479ccf2dfce..afc354b19c5 100644 --- a/helpers/retekess/meal_pager_retekess_td174.c +++ b/helpers/retekess/meal_pager_retekess_td174.c @@ -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++) { @@ -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); } @@ -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; }