Kaynağa Gözat

Merge protoview from https://github.com/xMasterX/all-the-plugins

Willy-JL 2 yıl önce
ebeveyn
işleme
fd559b487b

+ 1 - 0
protoview/app.c

@@ -176,6 +176,7 @@ ProtoViewApp* protoview_app_alloc() {
 
     subghz_devices_reset(app->radio_device);
     subghz_devices_idle(app->radio_device);
+
     app->running = 1;
 
     return app;

+ 2 - 0
protoview/app_subghz.c

@@ -72,6 +72,7 @@ void protoview_rx_callback(bool level, uint32_t duration, void* context) {
 /* Setup the CC1101 to start receiving using a background worker. */
 uint32_t radio_rx(ProtoViewApp* app) {
     furi_assert(app);
+
     if(!subghz_devices_is_frequency_valid(app->radio_device, app->frequency)) {
         furi_crash(TAG " Incorrect RX frequency.");
     }
@@ -84,6 +85,7 @@ uint32_t radio_rx(ProtoViewApp* app) {
 
     subghz_devices_flush_rx(app->radio_device);
     subghz_devices_set_rx(app->radio_device);
+
     if(!app->txrx->debug_timer_sampling) {
         subghz_devices_start_async_rx(app->radio_device, protoview_rx_callback, NULL);
     } else {

+ 3 - 1
protoview/application.fam

@@ -3,10 +3,12 @@ App(
     name="ProtoView",
     apptype=FlipperAppType.EXTERNAL,
     entry_point="protoview_app_entry",
-    cdefines=["APP_PROTOVIEW"],
     requires=["gui"],
     stack_size=8*1024,
     order=50,
     fap_icon="appicon.png",
     fap_category="Sub-GHz",
+    fap_author="@antirez & (fixes by @xMasterX)",
+    fap_version="1.1",
+    fap_description="Digital signal detection, visualization, editing and reply tool",
 )

BIN
protoview/img/1.png


BIN
protoview/img/2.png


BIN
protoview/img/3.png


+ 6 - 7
protoview/protocols/unknown.c

@@ -251,7 +251,7 @@ static bool decode(uint8_t* bits, uint32_t numbytes, uint32_t numbits, ProtoView
         linecode = LineCodeManchester;
         start1 = tmp1;
         msgbits = manchester_bits * 2;
-        //FURI_LOG_T(TAG, "MANCHESTER START: %lu", tmp1);s
+        //FURI_LOG_T(TAG, "MANCHESTER START: %lu", tmp1);
     }
 
     if(linecode == LineCodeNone) return false;
@@ -284,12 +284,11 @@ static bool decode(uint8_t* bits, uint32_t numbytes, uint32_t numbits, ProtoView
                                * transfer all that is needed, like a message
                                * terminator (that we don't detect). */
 
-    // if (preamble_found)
-    //     FURI_LOG_T(TAG, "PREAMBLE AT: %lu", preamble_start);
-    // FURI_LOG_T(TAG, "START: %lu", info->start_off);
-    // FURI_LOG_T(TAG, "MSGBITS: %lu", msgbits);
-    // FURI_LOG_T(TAG, "DATASTART: %lu", start1);
-    // FURI_LOG_T(TAG, "PULSES: %lu", info->pulses_count);
+    /*if(preamble_found) FURI_LOG_T(TAG, "PREAMBLE AT: %lu", preamble_start);
+    FURI_LOG_T(TAG, "START: %lu", info->start_off);
+    FURI_LOG_T(TAG, "MSGBITS: %lu", msgbits);
+    FURI_LOG_T(TAG, "DATASTART: %lu", start1);
+    FURI_LOG_T(TAG, "PULSES: %lu", info->pulses_count);*/
 
     /* We think there is a message and we know where it starts and the
      * line code used. We can turn it into bits and bytes. */