Closed MartinLocher closed 5 years ago
Please give exact information:
Thanks for the quick answer. Please find the info below.
TTGO-T-Beam version (what is printed on the pcb?): T22_V07 20180711 / I use the build option ttgobeam_new Country & LoRaWAN settings used: #define CFG_eu868 1 Which paxcounter software version did you use?: The latest Which "normal" arduino sketch did you use: But i use there a different lmic lib !!! /***
Copyright (c) 2015 Thomas Telkamp and Matthijs Kooijman
Permission is hereby granted, free of charge, to anyone
obtaining a copy of this document and accompanying files,
to do whatever they want with them without any restriction,
including, but not limited to, copying, modification and redistribution.
NO WARRANTY OF ANY KIND IS PROVIDED.
This example sends a valid LoRaWAN packet with payload "Hello,
world!", using frequency and encryption settings matching those of
the The Things Network.
This uses OTAA (Over-the-air activation), where where a DevEUI and
application key is configured, which are used in an over-the-air
activation procedure where a DevAddr and session keys are
assigned/generated for use with all further communication.
Note: LoRaWAN per sub-band duty-cycle limitation is enforced (1% in
g1, 0.1% in g2), but not the TTN fair usage policy (which is probably
violated by this sketch when left running for longer)!
To use this sketch, first register your application and device with
the things network, to set or generate an AppEUI, DevEUI and AppKey.
Multiple devices can use the same AppEUI, but each device has its own
DevEUI and AppKey.
Do not forget to define the radio type correctly in config.h.
***/
// This EUI must be in little-endian format, so least-significant-byte // first. When copying an EUI from ttnctl output, this means to reverse // the bytes. For TTN issued EUIs the last bytes should be 0xD5, 0xB3, // 0x70. static const u1_t PROGMEM APPEUI[8]={ same keys }; void os_getArtEui (u1_t* buf) { memcpy_P(buf, APPEUI, 8);}
// This should also be in little endian format, see above. static const u1_t PROGMEM DEVEUI[8]={ same keys }; void os_getDevEui (u1_t* buf) { memcpy_P(buf, DEVEUI, 8);}
// This key should be in big endian format (or, since it is not really a // number but a block of memory, endianness does not really apply). In // practice, a key taken from ttnctl can be copied as-is. // The key shown here is the semtech default key. static const u1_t PROGMEM APPKEY[16] = { same keys }; void os_getDevKey (u1_t* buf) { memcpy_P(buf, APPKEY, 16);}
static uint8_t mydata[] = "Hello, world!"; static osjob_t sendjob;
// Schedule TX every this many seconds (might become longer due to duty // cycle limitations). const unsigned TX_INTERVAL = 60;
// Pin mapping const lmic_pinmap lmic_pins = { .nss = LoRa_CS, .rxtx = LMIC_UNUSED_PIN, .rst = LoRa_RST, .dio = { LoRa_DIO0, LoRa_DIO1, LoRa_DIO2 }, };
void onEvent (ev_t ev) { Serial.print(os_getTime()); Serial.print(": "); switch(ev) { case EV_SCAN_TIMEOUT: Serial.println(F("EV_SCAN_TIMEOUT")); break; case EV_BEACON_FOUND: Serial.println(F("EV_BEACON_FOUND")); break; case EV_BEACON_MISSED: Serial.println(F("EV_BEACON_MISSED")); break; case EV_BEACON_TRACKED: Serial.println(F("EV_BEACON_TRACKED")); break; case EV_JOINING: Serial.println(F("EV_JOINING")); break; case EV_JOINED: Serial.println(F("EV_JOINED"));
// Disable link check validation (automatically enabled
// during join, but not supported by TTN at this time).
LMIC_setLinkCheckMode(0);
break;
case EV_RFU1:
Serial.println(F("EV_RFU1"));
break;
case EV_JOIN_FAILED:
Serial.println(F("EV_JOIN_FAILED"));
break;
case EV_REJOIN_FAILED:
Serial.println(F("EV_REJOIN_FAILED"));
break;
break;
case EV_TXCOMPLETE:
Serial.println(F("EV_TXCOMPLETE (includes waiting for RX windows)"));
if (LMIC.txrxFlags & TXRX_ACK)
Serial.println(F("Received ack"));
if (LMIC.dataLen) {
Serial.println(F("Received "));
Serial.println(LMIC.dataLen);
Serial.println(F(" bytes of payload"));
}
// Schedule next transmission
os_setTimedCallback(&sendjob, os_getTime()+sec2osticks(TX_INTERVAL), do_send);
break;
case EV_LOST_TSYNC:
Serial.println(F("EV_LOST_TSYNC"));
break;
case EV_RESET:
Serial.println(F("EV_RESET"));
break;
case EV_RXCOMPLETE:
// data received in ping slot
Serial.println(F("EV_RXCOMPLETE"));
break;
case EV_LINK_DEAD:
Serial.println(F("EV_LINK_DEAD"));
break;
case EV_LINK_ALIVE:
Serial.println(F("EV_LINK_ALIVE"));
break;
default:
Serial.println(F("Unknown event"));
break;
}
}
void do_send(osjob_t* j){ // Check if there is not a current TX/RX job running if (LMIC.opmode & OP_TXRXPEND) { Serial.println(F("OP_TXRXPEND, not sending")); } else { // Prepare upstream data transmission at the next possible time. LMIC_setTxData2(1, mydata, sizeof(mydata)-1, 0); Serial.println(F("Packet queued")); } // Next TX is scheduled after TX_COMPLETE event. }
void setup() { Serial.begin(9600); Serial.println(F("Starting"));
#ifdef VCC_ENABLE
// For Pinoccio Scout boards
pinMode(VCC_ENABLE, OUTPUT);
digitalWrite(VCC_ENABLE, HIGH);
delay(1000);
#endif
// LMIC init
os_init();
// Reset the MAC state. Session and pending data transfers will be discarded.
LMIC_reset();
// Start job (sending automatically starts OTAA too)
do_send(&sendjob);
}
void loop() { os_runloop_once(); }
Do you have access to a TTN gateway and can you look in the gateway's log, if you see join attempts of the device?, Yes I have access which log do you want syslog ?
I see in the console the joining attempt but then it stopps.
Just an idea ... can i "just" change the LMIC libs ? I am not yet familiar with platform.io so i would need your help here. as far as i can see platform.io is automatically downloading the needed libs and i have no glue how to intersect ... :-)
Thanks again for your support !!! All the best Martin
I can confirm that the above setup (TTGO T-Beam T22_V07 on TTN with EU parameters) is working, i tested it.
If you see on the LoRaWAN gateway only a single join request, that does not repeat after 60 seconds, your TTGO probably crashes after join request.
1)
Check your USB power. To ensure that it is not an USB power issue, operate the TTGO on a fully charged 18650 cell. Disable brownout detection by enabling this line in ttgobeam_new.h:
#define DISABLE_BROWNOUT 1 // comment out if you want to keep brownout feature
2)
Increase application debug level in platformio.ini to 4: debug_level = 4
Increase lmic debug level in lmic_config.h to 2: #define LMIC_DEBUG_LEVEL 2
Rebuild software and flash. Then write serial log on console and check contents
3) If you don't see the root cause post the console log here.
The TTGO is running not on Battery just on the usb connected to a mac.
I see single join requests after 2 minutes (19:32, 19:34) The rxtimeout: entries: 4929107 rxtime: 4918740 entry-rxtime: 10367 now-entry: 5 rxtime-txend: 378072 are making me nervous however i tried fiddling with the LMIC_setClockError(0.01); in lorawan.cpp from 30/100, 80/100, 1 , 0.01 ... without success I read from Terril: Also make sure that you have set subband 1 (out of 0..7).
How can i do that ?
Nevertheless here is the log:
[D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7 [D][cyclic.cpp:37] doHousekeeping(): Wifiloop 576 bytes left [D][cyclic.cpp:39] doHousekeeping(): IRQhandler 720 bytes left [D][cyclic.cpp:41] doHousekeeping(): Gpsloop 1528 bytes left [D][cyclic.cpp:49] doHousekeeping(): LEDloop 552 bytes left [D][battery.cpp:51] read_voltage(): Raw: 2511 / Voltage: 4226mV [I][cyclic.cpp:55] doHousekeeping(): Measured Voltage: 4226mV [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1 ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:2 load:0x3fff0018,len:4 load:0x3fff001c,len:952 load:0x40078000,len:6084 load:0x40080000,len:7944 entry 0x40080310 [D][esp32-hal-psram.c:47] psramInit(): PSRAM enabled [I][main.cpp:94] setup(): Starting PAXCNT v1.6.972 [I][main.cpp:107] setup(): This is ESP32 chip with 2 CPU cores, WiFi/BT/BLE, silicon revision 1, 4MB external Flash [I][main.cpp:108] setup(): ESP32 SDK: v3.2-dev-39-gaaf12390 [I][main.cpp:109] setup(): Free RAM: 4345344 bytes [I][main.cpp:112] setup(): TinyGPS+ v1.0.2 [I][configmanager.cpp:177] loadConfig(): Reading settings from NVS [I][configmanager.cpp:50] open_storage(): Opening NVS [I][configmanager.cpp:55] open_storage(): Done [I][configmanager.cpp:191] loadConfig(): NVRAM settings version = 1.6.972 [I][configmanager.cpp:208] loadConfig(): lorasf = 9 [I][configmanager.cpp:216] loadConfig(): txpower = 15 [I][configmanager.cpp:224] loadConfig(): adrmode = 1 [I][configmanager.cpp:232] loadConfig(): screensaver = 0 [I][configmanager.cpp:240] loadConfig(): screenon = 1 [I][configmanager.cpp:248] loadConfig(): countermode = 0 [I][configmanager.cpp:256] loadConfig(): sendcycle = 30 [I][configmanager.cpp:264] loadConfig(): wifichancycle = 50 [I][configmanager.cpp:272] loadConfig(): wifiantenna = 0 [I][configmanager.cpp:280] loadConfig(): vendorfilter = 1 [I][configmanager.cpp:288] loadConfig(): rgbluminosity = 30 [I][configmanager.cpp:296] loadConfig(): blescantime = 8 [I][configmanager.cpp:304] loadConfig(): BLEscanmode = 1 [I][configmanager.cpp:312] loadConfig(): rssilimit = 0 [I][configmanager.cpp:320] loadConfig(): payloadmask = 4294967295 [I][configmanager.cpp:328] loadConfig(): Monitor mode = 0 [I][configmanager.cpp:336] loadConfig(): Run mode = 0 [I][configmanager.cpp:343] loadConfig(): Done [I][main.cpp:134] setup(): Starting LEDloop... [I][battery.cpp:30] calibrate_voltage(): ADC characterization based on reference voltage stored in eFuse [D][battery.cpp:51] read_voltage(): Raw: 2543 / Voltage: 4278mV [I][gpsread.cpp:23] gps_init(): Using serial GPS [I][main.cpp:193] setup(): Starting GPSloop... [I][lorawan.cpp:374] lora_stack_init(): LORA send queue created, size 510 Bytes [I][lorawan.cpp:376] lora_stack_init(): Starting LMIC... RXMODE_RSSI [I][main.cpp:284] setup(): Features: LED BLE BATT BTN_PD GPS LORA OUIFLT PACKED [I][macsniff.cpp:36] printKey(): DevEUI: 4444648747150507 [I][macsniff.cpp:36] printKey(): AppEUI: 70B3D57EF0003EF4 [I][macsniff.cpp:36] printKey(): AppKey: 8D5766B5056906D5A33C99DF42BD0EDD [I][main.cpp:297] setup(): Starting Bluetooth... [I][blecsan.cpp:247] start_BLEscan(): Initializing bluetooth scanner ... [I][blecsan.cpp:213] register_ble_callback(): Register GAP callback [I][blecsan.cpp:237] register_ble_callback(): Set GAP scan parameters [I][blecsan.cpp:257] start_BLEscan(): Bluetooth scanner started [I][main.cpp:304] setup(): Starting Wifi... I (2087) wifi: wifi driver task: 3ffe5da0, prio:23, stack:4096, core=0 I (4216) wifi: wifi firmware version: 4fd6a2c I (4219) wifi: config NVS flash: disabled I (4223) wifi: config nano formating: disabled I (4228) wifi: Init dynamic tx buffer num: 32 I (4231) wifi: Init data frame dynamic rx buffer num: 10 I (4236) wifi: Init management frame dynamic rx buffer num: 10 I (4242) wifi: Init static rx buffer size: 1600 I (4246) wifi: Init static rx buffer num: 4 I (4250) wifi: Init dynamic rx buffer num: 10 I (4255) wifi: set country: cc=EU␀ schan=1 nchan=13 policy=1
W (4260) wifi: ap start fail
I (4276) wifi: ic_enable_sniffer [I][main.cpp:312] setup(): Starting IRQ Handler... [I][main.cpp:323] setup(): Starting Wifi Channel rotation... [I][main.cpp:333] setup(): Starting Interrupts... [I][lorawan.cpp:285] onEvent(): EV_JOINING 135[D][wifiscan.c6pp:72] switchWifiChannel(): Wifi set channel 1 83: engineUpdate, opmode=0x4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7 326669: engineUpdate, opmode=0x4 326712: engineUpdate, opmode=0x884 326820: TXMODE, freq=868500000, len=23, SF=7, BW=125, CR=4/5, IH=0 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 643357: setupRx1 txrxFlags 00 --> 01 start single rx: now-rxtime: 42 643433: RXMODE_SINGLE, freq=868500000, SF=7, BW=125, CR=4/5, IH=0 rxtimeout: entry: 643793 rxtime: 643388 entry-rxtime: 405 now-entry: 6 rxtime-txend: 312596 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6 708857: setupRx2 txrxFlags 0x1 --> 02 start single rx: now-rxtime: 63 708929: RXMODE_SINGLE, freq=869525000, SF=12, BW=125, CR=4/5, IH=0 rxtimeout: entry: 719231 rxtime: 708864 entry-rxtime: 10367 now-entry: 7 rxtime-txend: 378072 719356: processRx2Jacc txrxFlags 0x2 --> 00 719482: engineUpdate, opmode=0x4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6
--- exit --- Exception in thread rx: Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 810, in __bootstrap_inner self.run() File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/threading.py", line 763, in run self.target(*self.args, **self.__kwargs) File "/Users/martinlocher/.platformio/penv/lib/python2.7/site-packages/serial/tools/miniterm.py", line 445, in reader data = self.serial.read(self.serial.in_waiting or 1) File "/Users/martinlocher/.platformio/penv/lib/python2.7/site-packages/serial/serialposix.py", line 509, in read raise SerialException('read failed: {}'.format(e)) SerialException: read failed: [Errno 6] Device not configured
==================================================================================================== [SUMMARY] ==================================================================================================== Environment ebox [SKIP] Environment eboxtube [SKIP] Environment heltec [SKIP] Environment heltecv2 [SKIP] Environment ttgov1 [SKIP] Environment ttgov2 [SKIP] Environment ttgov21old [SKIP] Environment ttgov21new [SKIP] Environment ttgobeam_old [SKIP] Environment ttgobeam_new [SUCCESS] Environment fipy [SKIP] Environment lopy [SKIP] Environment lopy4 [SKIP] Environment lolin32litelora [SKIP] Environment lolin32lora [SKIP] Environment lolin32lite [SKIP] Environment octopus32 [SKIP] Environment generic [SKIP] ========================================================================================== [SUCCESS] Took 118.64 seconds ========================================================================================== Error in atexit._run_exitfuncs: Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/atexit.py", line 24, in _run_exitfuncs func(*targs, *kargs) File "/Users/martinlocher/.platformio/penv/lib/python2.7/site-packages/platformio/telemetry.py", line 375, in _finalize backup_reports(MPDataPusher().get_items()) File "/Users/martinlocher/.platformio/penv/lib/python2.7/site-packages/platformio/telemetry.py", line 391, in backup_reports for key in params: RuntimeError: dictionary changed size during iteration Error in sys.exitfunc: Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/atexit.py", line 24, in _run_exitfuncs func(targs, **kargs) File "/Users/martinlocher/.platformio/penv/lib/python2.7/site-packages/platformio/telemetry.py", line 375, in _finalize backup_reports(MPDataPusher().get_items()) File "/Users/martinlocher/.platformio/penv/lib/python2.7/site-packages/platformio/telemetry.py", line 391, in backup_reports for key in params: RuntimeError: dictionary changed size during iteration
Terminal will be reused by tasks, press any key to close it.
Executing task: platformio run --target upload --target monitor --environment ttgobeam_new <
Verbose mode can be enabled via -v, --verbose
option
Parsing LORAWAN keys from /Users/martinlocher/Downloads/ESP32-Paxcounter-master/src/loraconf.h
Parsing OTA keys from /Users/martinlocher/Downloads/ESP32-Paxcounter-master/src/ota.conf
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32dev.html
PLATFORM: Espressif 32 > Espressif ESP32 Dev Module
HARDWARE: ESP32 240MHz 320KB RAM (4MB Flash)
Library Dependency Finder -> http://bit.ly/configure-pio-ldf
LDF MODES: FINDER(chain) COMPATIBILITY(soft)
Collected 33 compatible libraries
Scanning dependencies...
Dependency Graph
|--
Leaving... Hard resetting via RTS pin... ========================================================================================== [SUCCESS] Took 21.66 seconds ========================================================================================== --- Miniterm on /dev/cu.SLAB_USBtoUART 115200,8,N,1 --- --- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H --- [D][esp32-hal-psram.c:47] psramInit(): PSRAM enabled [I][main.cpp:94] setup(): Starting PAXCNT v1.6.972 [I][main.cpp:107] setup(): This is ESP32 chip with 2 CPU cores, WiFi/BT/BLE, silicon revision 1, 4MB external Flash [I][main.cpp:108] setup(): ESP32 SDK: v3.2-dev-39-gaaf12390 [I][main.cpp:109] setup(): Free RAM: 4345344 bytes [I][main.cpp:112] setup(): TinyGPS+ v1.0.2 [I][configmanager.cpp:177] loadConfig(): Reading settings from NVS [I][configmanager.cpp:50] open_storage(): Opening NVS [I][configmanager.cpp:55] open_storage(): Done [I][configmanager.cpp:191] loadConfig(): NVRAM settings version = 1.6.972 [I][configmanager.cpp:208] loadConfig(): lorasf = 9 [I][configmanager.cpp:216] loadConfig(): txpower = 15 [I][configmanager.cpp:224] loadConfig(): adrmode = 1 [I][configmanager.cpp:232] loadConfig(): screensaver = 0 [I][configmanager.cpp:240] loadConfig(): screenon = 1 [I][configmanager.cpp:248] loadConfig(): countermode = 0 [I][configmanager.cpp:256] loadConfig(): sendcycle = 30 [I][configmanager.cpp:264] loadConfig(): wifichancycle = 50 [I][configmanager.cpp:272] loadConfig(): wifiantenna = 0 [I][configmanager.cpp:280] loadConfig(): vendorfilter = 1 [I][configmanager.cpp:288] loadConfig(): rgbluminosity = 30 [I][configmanager.cpp:296] loadConfig(): blescantime = 8 [I][configmanager.cpp:304] loadConfig(): BLEscanmode = 1 [I][configmanager.cpp:312] loadConfig(): rssilimit = 0 [I][configmanager.cpp:320] loadConfig(): payloadmask = 4294967295 [I][configmanager.cpp:328] loadConfig(): Monitor mode = 0 [I][configmanager.cpp:336] loadConfig(): Run mode = 0 [I][configmanager.cpp:343] loadConfig(): Done [I][main.cpp:134] setup(): Starting LEDloop... [I][battery.cpp:30] calibrate_voltage(): ADC characterization based on reference voltage stored in eFuse [D][battery.cpp:51] read_voltage(): Raw: 2539 / Voltage: 4270mV [I][gpsread.cpp:23] gps_init(): Using serial GPS [I][main.cpp:193] setup(): Starting GPSloop... [I][lorawan.cpp:374] lora_stack_init(): LORA send queue created, size 510 Bytes [I][lorawan.cpp:376] lora_stack_init(): Starting LMIC... RXMODE_RSSI [I][main.cpp:284] setup(): Features: LED BLE BATT BTN_PD GPS LORA OUIFLT PACKED [I][macsniff.cpp:36] printKey(): DevEUI: 4444648747150507 [I][macsniff.cpp:36] printKey(): AppEUI: 70B3D57EF0003EF4 [I][macsniff.cpp:36] printKey(): AppKey: 8D5766B5056906D5A33C99DF42BD0EDD [I][main.cpp:297] setup(): Starting Bluetooth... [I][blecsan.cpp:247] start_BLEscan(): Initializing bluetooth scanner ... [I][blecsan.cpp:213] register_ble_callback(): Register GAP callback [I][blecsan.cpp:237] register_ble_callback(): Set GAP scan parameters [I][blecsan.cpp:257] start_BLEscan(): Bluetooth scanner started [I][main.cpp:304] setup(): Starting Wifi... I (2083) wifi: wifi driver task: 3ffe5da0, prio:23, stack:4096, core=0 I (4204) wifi: wifi firmware version: 4fd6a2c I (4207) wifi: config NVS flash: disabled I (4211) wifi: config nano formating: disabled I (4216) wifi: Init dynamic tx buffer num: 32 I (4219) wifi: Init data frame dynamic rx buffer num: 10 I (4224) wifi: Init management frame dynamic rx buffer num: 10 I (4230) wifi: Init static rx buffer size: 1600 I (4234) wifi: Init static rx buffer num: 4 I (4238) wifi: Init dynamic rx buffer num: 10 I (4242) wifi: set country: cc=EU␀ schan=1 nchan=13 policy=1
W (4247) wifi: ap start fail
I (4264) wifi: ic_enable_sniffer [I][main.cpp:312] setup(): Starting IRQ Handler... [I][main.cpp:323] setup(): Starting Wifi Channel rotation... [I][main.cpp:333] setup(): Starting Interrupts... [I][lorawan.cpp:285] onEvent(): EV_JOINING [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1 135244: engineUpdate, opmode=0x4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 267171: engineUpdate, opmode=0x4 267213: engineUpdate, opmode=0x884 267311: TXMODE, freq=868500000, len=23, SF=7, BW=125, CR=4/5, IH=0 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2 583858: setupRx1 txrxFlags 00 --> 01 start single rx: now-rxtime: 31 583923: RXMODE_SINGLE, freq=868500000, SF=7, BW=125, CR=4/5, IH=0 rxtimeout: entry: 584294 rxtime: 583889 entry-rxtime: 405 now-entry: 5 rxtime-txend: 312596 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 649294: setupRx2 txrxFlags 0x1 --> 02 start single rx: now-rxtime: 5 649372: RXMODE_SINGLE, freq=869525000, SF=12, BW=125, CR=4/5, IH=0 rxtimeout: entry: 659732 rxtime: 649365 entry-rxtime: 10367 now-entry: 5 rxtime-txend: 378072 659858: processRx2Jacc txrxFlags 0x2 --> 00 659982: engineUpdate, opmode=0x4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7 [D][cyclic.cpp:37] doHousekeeping(): Wifiloop 544 bytes left [D][cyclic.cpp:39] doHousekeeping(): IRQhandler 576 bytes left [D][cyclic.cpp:41] doHousekeeping(): Gpsloop 1528 bytes left [D][cyclic.cpp:49] doHousekeeping(): LEDloop 552 bytes left [D][battery.cpp:51] read_voltage(): Raw: 2505 / Voltage: 4218mV [I][cyclic.cpp:55] doHousekeeping(): Measured Voltage: 4218mV [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2 [D][senddata.cpp:70] sendCounter(): No valid GPS position [I][lorawan.cpp:413] lora_enqueuedata(): 4 bytes enqueued for LORA interface [I][senddata.cpp:49] sendCounter(): Counter cleared [D][battery.cpp:51] read_voltage(): Raw: 2515 / Voltage: 4234mV [I][lorawan.cpp:413] lora_enqueuedata(): 2 bytes enqueued for LORA interface [D][cyclic.cpp:37] doHousekeeping(): Wifiloop 544 bytes left [D][cyclic.cpp:39] doHousekeeping(): IRQhandler 448 bytes left [D][cyclic.cpp:41] doHousekeeping(): Gpsloop 1528 bytes left [D][cyclic.cpp:49] doHousekeeping(): LEDloop 552 bytes left [D][battery.cpp:51] read_voltage(): Raw: 2517 / Voltage: 4236mV [I][cyclic.cpp:55] doHousekeeping(): Measured Voltageannel 3 ␀[D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11 4536670: engineUpdate, opmode=0x4 4536702: engineUpdate, opmode=0x884 4536791: TXMODE, freq=868100000, len=23, SF=7, BW=125, CR=4/5, IH=0 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8 4853233: setupRx1 txrxFlags 00 --> 01 start single rx: now-rxtime: 28 4853296: RXMODE_SINGLE, freq=868100000, SF=7, BW=125, CR=4/5, IH=0 rxtimeout: entry: 4853669 rxtime: 4853264 entry-rxtime: 405 now-entry: 5 rxtime-txend: 312596 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11 4918669: setupRx2 txrxFlags 0x1 --> 02 start single rx: now-rxtime: 4 4918747: RXMODE_SINGLE, freq=869525000, SF=12, BW=125, CR=4/5, IH=0 rxtimeout: entry: 4929107 rxtime: 4918740 entry-rxtime: 10367 now-entry: 5 rxtime-txend: 378072 4929232: processRx2Jacc txrxFlags 0x2 --> 00 4929357: engineUpdate, opmode=0x4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10 [D][cyclic.cpp:37] doHousekeeping(): Wifiloop 544 bytes left [D][cyclic.cpp:39] doHousekeeping(): IRQhandler 448 bytes left [D][cyclic.cpp:41] doHousekeeping(): Gpsloop 1528 bytes left [D][cyclic.cpp:49] doHousekeeping(): LEDloop 552 bytes left [D][battery.cpp:51] read_voltage(): Raw: 2507 / Voltage: 4220mV [I][cyclic.cpp:55] doHousekeeping(): Measured Voltage: 4220mV [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 [D][senddata.cpp:70] sendCounter(): No valid GPS position [I][lorawan.cpp:413] lora_enqueuedata(): 4 bytes enqueued for LORA interface [I][senddata.cpp:49] sendCounter(): Counter cleared [D][battery.cpp:51] read_voltage(): Raw: 2514 / Voltage: 4232mV [I][lorawan.cpp:413] lora_enqueuedata(): 2 bytes enqueued for LORA interface [D][cyclic.cpp:37] doHousekeeping(): Wifiloop 544 bytes left [D][cyclic.cpp:39] doHousekeeping(): IRQhandler 448 bytes left [D][cyclic.cpp:41] doHousekeeping(): Gpsloop 1528 bytes left [D][cyclic.cpp:49] doHousekeeping(): LEDloop 552 bytes left [D][battery.cpp:51] read_voltage(): Raw: 2511 / Voltage: 4226mV [I][cyclic.cpp:55] doHousekeeping(): Measured Voltage: 4226mV [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10 8949357: engineUpdate, opmode=0x4 8949390: engineUpdate, opmode=0x884 8949479: TXMODE, freq=868300000, len=23, SF=7, BW=125, CR=4/5, IH=0 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7 9265920: setupRx1 txrxFlags 00 --> 01 start single rx: now-rxtime: 33 9265987: RXMODE_SINGLE, freq=868300000, SF=7, BW=125, CR=4/5, IH=0 rxtimeout: entry: 9266356 rxtime: 9265951 entry-rxtime: 405 now-entry: 5 rxtime-txend: 312596 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9 9331357: setupRx2 txrxFlags 0x1 --> 02 start single rx: now-rxtime: 5 9331434: RXMODE_SINGLE, freq=869525000, SF=12, BW=125, CR=4/5, IH=0 rxtimeout: entry: 9341795 rxtime: 9331427 entry-rxtime: 10368 now-entry: 5 rxtime-txend: 378072 9341920: processRx2Jacc txrxFlags 0x2 --> 00 9342045: engineUpdate, opmode=0x4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13 [D][cyclic.cpp:37] doHousekeeping(): Wifiloop 544 bytes left [D][cyclic.cpp:39] doHousekeeping(): IRQhandler 448 bytes left [D][cyclic.cpp:41] doHousekeeping(): Gpsloop 1528 bytes left [D][cyclic.cpp:49] doHousekeeping(): LEDloop 552 bytes left [D][battery.cpp:51] read_voltage(): Raw: 2509 / Voltage: 4224mV [I][cyclic.cpp:55] doHousekeeping(): Measured Voltage: 4224mV [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8 [D][senddata.cpp:70] sendCounter(): No valid GPS position [I][lorawan.cpp:413] lora_enqueuedata(): 4 bytes enqueued for LORA interface [I][senddata.cpp:49] sendCounter(): Counter cleared [D][battery.cpp:51] read_voltage(): Raw: 2511 / Voltage: 4226mV [I][lorawan.cpp:413] lora_enqueuedata(): 2 bytes enqueued for LORA interface [D][cyclic.cpp:37] doHousekeeping(): Wifiloop 544 bytes left [D][cyclic.cpp:39] doHousekeeping(): IRQhandler 448 bytes left [D][cyclic.cpp:41] doHousekeeping(): Gpsloop 1528 bytes left [D][cyclic.cpp:49] doHousekeeping(): LEDloop 552 bytes left [D][battery.cpp:51] read_voltage(): Raw: 2507 / Voltage: 4220mV [I][cyclic.cpp:55] doHousekeeping(): Measured Voltage: 4220mV [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][cyclic.cpp:37] doHousekeeping(): Wifiloop 544 bytes left [D][cyclic.cpp:39] doHousekeeping(): IRQhandler 448 bytes left [D][cyclic.cpp:41] doHousekeeping(): Gpsloop 1528 bytes left [D][cyclic.cpp:49] doHousekeeping(): LEDloop 552 bytes left [D][battery.cpp:51] read_voltage(): Raw: 2513 / Voltage: 4230mV [I][cyclic.cpp:55] doHousekeeping(): Measured Voltage: 4230mV [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9 13416358: engineUpdate, opmode=0x4 13416390: engineUpdate, opmode=0x884 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10 13416484: TXMODE, freq=868500000, len=23, SF=8, BW=125, CR=4/5, IH=0 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7 13736295: setupRx1 txrxFlags 00 --> 01 start single rx: now-rxtime: 5 13736366: RXMODE_SINGLE, freq=868500000, SF=8, BW=125, CR=4/5, IH=0 rxtimeout: entry: 13737106 rxtime: 13736359 entry-rxtime: 747 now-entry: 5 rxtime-txend: 312692 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9 13801732: setupRx2 txrxFlags 0x1 --> 02 start single rx: now-rxtime: 49 13801790: RXMODE_SINGLE, freq=869525000, SF=12, BW=125, CR=4/5, IH=0 rxtimeout: entry: 13812107 rxtime: 13801739 entry-rxtime: 10368 now-entry: 5 rxtime-txend: 378072 13812232: processRx2Jacc txrxFlags 0x2 --> 00 13812357: engineUpdate, opmode=0x4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11 [D][senddata.cpp:70] sendCounter(): No valid GPS position [I][lorawan.cpp:413] lora_enqueuedata(): 4 bytes enqueued for LORA interface [I][senddata.cpp:49] sendCounter(): Counter cleared [D][battery.cpp:51] read_voltage(): Raw: 2511 / Voltage: 4226mV [I][lorawan.cpp:413] lora_enqueuedata(): 2 bytes enqueued for LORA interface [D][cyclic.cpp:37] doHousekeeping(): Wifiloop 544 bytes left [D][cyclic.cpp:39] doHousekeeping(): IRQhandler 448 bytes left [D][cyclic.cpp:41] doHousekeeping(): Gpsloop 1528 bytes left [D][cyclic.cpp:49] doHousekeeping(): LEDloop 552 bytes left [D][battery.cpp:51] read_voltage(): Raw: 2504 / Voltage: 4216mV [I][cyclic.cpp:55] doHousekeeping(): Measured Voltage: 4el 12 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6 [D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7
The log is okay. The device did either not receive or did not capture the join accept message from the gateway.
Possible reasons are: 1) There was no join accept message sent by the gateway (check your gateway logs) 2) join accept message was not received 3) join accept message was missed due to a timing issue
ad 1): you're using a predefined DEVEUI from your loraconf.h. Double check that this DEVEUI is registered for the used APPEUI.
ad 2): Make sure your device is in range of gateway. You may wait up to 1 hour. LMIC retries and increases SF level during join, starting with SF=7.
ad 3): check your TTN setup with other nodes
For reference you find enclosed a log from my TTGO T-Beam which succesfully joins TTN with the same code.
rst:0x1 (POWERON_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:952
load:0x40078000,len:6084
load:0x40080000,len:7944
entry 0x40080310
[D][esp32-hal-psram.c:47] psramInit(): PSRAM enabled
[I][main.cpp:94] setup(): Starting PAXCNT v1.6.972
[I][main.cpp:107] setup(): This is ESP32 chip with 2 CPU cores, WiFi/BT/BLE, silicon revision 1, 4MB external Flash
[I][main.cpp:108] setup(): ESP32 SDK: v3.2-dev-39-gaaf12390
[I][main.cpp:109] setup(): Free RAM: 4345112 bytes
[I][main.cpp:112] setup(): TinyGPS+ v1.0.2
[I][configmanager.cpp:177] loadConfig(): Reading settings from NVS
[I][configmanager.cpp:50] open_storage(): Opening NVS
[I][configmanager.cpp:55] open_storage(): Done
[I][configmanager.cpp:191] loadConfig(): NVRAM settings version = 1.6.972
[I][configmanager.cpp:208] loadConfig(): lorasf = 9
[I][configmanager.cpp:216] loadConfig(): txpower = 15
[I][configmanager.cpp:224] loadConfig(): adrmode = 1
[I][configmanager.cpp:232] loadConfig(): screensaver = 0
[I][configmanager.cpp:240] loadConfig(): screenon = 1
[I][configmanager.cpp:248] loadConfig(): countermode = 0
[I][configmanager.cpp:256] loadConfig(): sendcycle = 30
[I][configmanager.cpp:264] loadConfig(): wifichancycle = 50
[I][configmanager.cpp:272] loadConfig(): wifiantenna = 0
[I][configmanager.cpp:280] loadConfig(): vendorfilter = 1
[I][configmanager.cpp:288] loadConfig(): rgbluminosity = 30
[I][configmanager.cpp:296] loadConfig(): blescantime = 8
[I][configmanager.cpp:304] loadConfig(): BLEscanmode = 1
[I][configmanager.cpp:312] loadConfig(): rssilimit = 0
[I][configmanager.cpp:320] loadConfig(): payloadmask = 4294967295
[I][configmanager.cpp:328] loadConfig(): Monitor mode = 0
[I][configmanager.cpp:336] loadConfig(): Run mode = 0
[I][configmanager.cpp:343] loadConfig(): Done
[I][main.cpp:134] setup(): Starting LEDloop...
[I][battery.cpp:30] calibrate_voltage(): ADC characterization based on reference voltage stored in eFuse
[D][battery.cpp:51] read_voltage(): Raw: 2450 / Voltage: 4256mV
[I][gpsread.cpp:23] gps_init(): Using serial GPS
[I][main.cpp:193] setup(): Starting GPSloop...
[I][lorawan.cpp:374] lora_stack_init(): LORA send queue created, size 510 Bytes
[I][lorawan.cpp:376] lora_stack_init(): Starting LMIC...
RXMODE_RSSI
[I][main.cpp:284] setup(): Features: LED BLE BATT BTN_PD GPS LORA OUIFLT PACKED
[I][macsniff.cpp:36] printKey(): DevEUI <...>
[I][macsniff.cpp:36] printKey(): AppEUI: <...>
[I][macsniff.cpp:36] printKey(): AppKey: <...>
[I][main.cpp:296] setup(): Starting Bluetooth...
[I][blecsan.cpp:247] start_BLEscan(): Initializing bluetooth scanner ...
E (1649) phy_init: load_cal_data_from_nvs_handle: failed to get cal_data(0x1102)
[I][blecsan.cpp:213] register_ble_callback(): Register GAP callback
[I][blecsan.cpp:237] register_ble_callback(): Set GAP scan parameters
[I][blecsan.cpp:257] start_BLEscan(): Bluetooth scanner started
[I][main.cpp:302] setup(): Starting Wifi...
I (1958) wifi: wifi driver task: 3ffe5e90, prio:23, stack:4096, core=0
I (3960) wifi: wifi firmware version: 4fd6a2c
I (3963) wifi: config NVS flash: disabled
I (3967) wifi: config nano formating: disabled
I (3972) wifi: Init dynamic tx buffer num: 32
I (3975) wifi: Init data frame dynamic rx buffer num: 10
I (3980) wifi: Init management frame dynamic rx buffer num: 10
I (3986) wifi: Init static rx buffer size: 1600
I (3990) wifi: Init static rx buffer num: 4
I (3994) wifi: Init dynamic rx buffer num: 10
I (3998) wifi: set country: cc=EU␀ schan=1 nchan=13 policy=1
W (4004) wifi: ap start fail
I (4020) wifi: ic_enable_sniffer
[I][main.cpp:310] setup(): Starting IRQ Handler...
[I][main.cpp:320] setup(): Starting Wifi Channel rotation...
[I][main.cpp:330] setup(): Starting Interrupts...
[I][lorawan.cpp:285] onEvent(): EV_JOINING
127762: engineUpdate, opmode=0x4
[D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1
[D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2
[D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3
[D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4
[D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5
[D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6
[D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7
339296: engineUpdate, opmode=0x4
339342: engineUpdate, opmode=0x884
339426: TXMODE, freq=868500000, len=23, SF=7, BW=125, CR=4/5, IH=0
[D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8
[D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9
[D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10
[D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11
[D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12
[D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13
[D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 1
[D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 2
[D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 3
[D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 4
647796: setupRx1 txrxFlags 00 --> 01
start single rx: now-rxtime: 4
647896: RXMODE_SINGLE, freq=868500000, SF=7, BW=125, CR=4/5, IH=0
660628: Setup channel, idx=3, freq=867100000
660638: Setup channel, idx=4, freq=867300000
660643: Setup channel, idx=5, freq=867500000
660689: Setup channel, idx=6, freq=867700000
660939: Setup channel, idx=7, freq=867900000
[I][lorawan.cpp:209] onEvent(): ADR=1, SF=9, TXPOWER=15
[I][lorawan.cpp:285] onEvent(): EV_JOINED
661725: engineUpdate, opmode=0x800
[D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 5
[D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 6
[D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 7
[D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 8
[D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 9
[D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 10
[D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 11
[D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 12
[D][wifiscan.cpp:72] switchWifiChannel(): Wifi set channel 13
I am missing the EV_JOINED. I think i give up here as it doesnt work with a ttgov2 neither, just checked ... i see the paxounter splash on the lcd, counting wifis, bles, but waiting for a join. Again the the same board but different lmic does the job with the Arduino. Do i miss something with in the setup ? I am sitting 10 meters away from the gateway. Still pussled.
You may try to set DEVEUI in loraconf.h to zero, meaning that DEVEUI is generated by the TTGO and printed on the console during startup. Use this DEVEUI with copy/paste to create a fresh device on TTN console and try again.
I can't help you further with this.
I think it is not a paxcounter related issue, so i close this now.
If you find a solution, please comment here, or re-open.
Hi cyberman, it works now ... I am so sorry that I wasted your time. I think i fiddled too much around with the code once it was not working ?! Because i didnt saw any console message in ttn coming through but i dont want to search excuses. It was my bad ! I downloaded again your code, which is for me again a real real excellent example how to code on a mulitiproc and it worked out of the box.
I owe you at least 2 beer.
Will you join lorawan conference in Amsterdam ? That would be the perfect time to have a few drinks on me !
Thank you again and best regards, Martin
@MartinLocher Yes, you can serve me at least 2 bear at TTN conference, i will join.
Don't overestimate the quality of the code. It's far away from an excellent level, there are lot's of design flaws. The code is on a beginner level.
Goal of project was not to give a coding framework, but to show an interesting iot use case in terms of use/value and cost, and to put this open source, for encouraging senior code developers to grow and refactor the whole project. But we're still behind this goal.
I could serve a beer too. :) Where are you going to drink those and which day?
@martinlocher @aapris there will be an offical talk on paxcounter by @spmrider in the ttn conf program. We will try to organize a meetup for attendees of this talk after.
Cyberman54 in which slot of the conference is the talk ? Day2, 3pm ?
Yey, Day2, Stage1, 3:00 PM
Damned, i am not sure if we can make it as our flights are leaving early. we are in the nearby Hilton, perhaps we can meat on Wednesday or Thursday ?
@MartinLocher please stop using this issue tracker for chat; please continue in TTN forum in this thread, then other people have chance to join discussion.
Dear all,
unfortunately my ttbeam (new) is not joing with OTAA on thethingsnetwork. I guess it is related to an timing issue as I tried with an "normal" ardunio sketch for the ttbeam and this works perfect. Same settings and i tried several lsb msb options for the keys. ttnnetwork is getting the same information however it doesnt commence. Also i tried to set different clockerrror settings without luck. However, this is a great piece of craftmanship on how to code. Chapeau !
Best regards