David Lee 2 лет назад
Родитель
Сommit
e2e3c2e3ca
4 измененных файлов с 7 добавлено и 16 удалено
  1. 1 1
      README.md
  2. 1 1
      application.fam
  3. 3 0
      docs/changelog.md
  4. 2 14
      helpers/retekess/meal_pager_retekess_td174.c

+ 1 - 1
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)

+ 1 - 1
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.",

+ 3 - 0
docs/changelog.md

@@ -1,3 +1,6 @@
+## v1.0
+- Added support for TD174
+
 ## v0.9
 - Added support for TD165
 

+ 2 - 14
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;
         }