From 99ccf581e45706236b5bc2cc1275ae067604d3b4 Mon Sep 17 00:00:00 2001 From: "Hansi, dl9rdz" Date: Mon, 20 Sep 2021 11:09:33 +0200 Subject: [PATCH] add dbg msg --- RX_FSK/RX_FSK.ino | 3 ++- RX_FSK/src/RS41.cpp | 3 +++ RX_FSK/version.h | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/RX_FSK/RX_FSK.ino b/RX_FSK/RX_FSK.ino index 5c941b3..4cbc3ef 100644 --- a/RX_FSK/RX_FSK.ino +++ b/RX_FSK/RX_FSK.ino @@ -2051,7 +2051,7 @@ void setup() { char buf[12]; // Open serial communications and wait for port to open: - Serial.begin(921600 /*115200*/); + Serial.begin(/*921600 */115200); for (int i = 0; i < 39; i++) { int v = gpio_get_level((gpio_num_t)i); Serial.printf("%d:%d ", i, v); @@ -2428,6 +2428,7 @@ void loopDecoder() { i = 0; rtc_wdt_protect_off(); rtc_wdt_disable(); + // Requires serial speed 921600, otherweise interrupt wdt will occur heap_caps_dump(MALLOC_CAP_8BIT); } #endif diff --git a/RX_FSK/src/RS41.cpp b/RX_FSK/src/RS41.cpp index aa66d46..6f8d637 100644 --- a/RX_FSK/src/RS41.cpp +++ b/RX_FSK/src/RS41.cpp @@ -500,6 +500,8 @@ void ProcessSubframe( byte *subframeBytes, int subframeNumber ) { memcpy( s->rawData+16*subframeNumber, subframeBytes, 16); s->valid |= (1ULL << subframeNumber); Serial.printf("subframe %d; valid: %x%032x\n", subframeNumber, (uint32_t)(s->valid>>32), (uint32_t)s->valid); + for(int i=0; i<16; i++) { Serial.printf("%02x[%c]", subframeBytes[i],( subframeBytes[i]>20 && subframeBytes[i]<127)? subframeBytes[i] : '.'); } + Serial.println(""); // subframeReceived[subframeNumber] = true; // mark this row of the total subframe as complete #if 0 @@ -865,6 +867,7 @@ int RS41::getSubtype(char *buf, int buflen, SondeInfo *si) { strncpy(buf, sf->value.names.variant, buflen); buf[buflen-1]=0; if(*buf==0) return -1; + Serial.printf("subframe valid: %x%032x; subtype=%s\n", (uint32_t)(sf->valid>>32), (uint32_t)sf->valid, buf); return 0; } diff --git a/RX_FSK/version.h b/RX_FSK/version.h index cee9f1d..ec175bc 100644 --- a/RX_FSK/version.h +++ b/RX_FSK/version.h @@ -1,4 +1,4 @@ const char *version_name = "rdzTTGOsonde"; -const char *version_id = "devel20210919"; +const char *version_id = "devel20210920"; const int SPIFFS_MAJOR=2; const int SPIFFS_MINOR=16;