This problem has been plaguing me for awhile and just looking back into it again as really want to use the Cubecell HTCC-AB01 for a project. I have a simple app which is basically the Heltec interrupt example, but doesn’t matter as can reproduce this with the stock example from of https://github.com/HelTecAutomation/platform-asrmicro650x/tree/develop/examples/LoRa/LoRaWAN/LoRaWAN
by changing the relevant keys.
Essentially I am only intermittently hitting my gateway (about 2 floors up) on several different CubeCell HTCC-AB01 and AB02 boards and about to give up on them which is disappointing. Sometimes it reaches the gateway on the first try, sometimes it can go several minutes and never connect. I have a Dragino temp/humidity sensor that’s been rock solid during this time and connects every 20mins like clockwork (almost to the second). I was starting to doubt my RAK2287 based gateway… So tonight I pulled up an Heltec ESP32 v2 LoRa board, and once I properly set the subchannel for TTN in the US915, worked solidly every time. I also ordered a Heltec Wireless Stick lite, but won’t be in until tomorrow. I’ve tried different antennas that came with the different boards, and two other 900mhz antennas.
Info… US915 connecting thru TTN and OTAA and using PlatformIO with the latest v1.3.1 asrmicro650x release from github. I’m 100% certain the AppEUI, devEUI and appKey are correct, as it does intermittently go through. Since in the US915 and TTN, I’m using this channel mask as recommended by several posts here and on the TTN forum (though I’ve tried 0x00FF
as well):
uint16_t userChannelsMask[6]={ 0xFF00,0x0000,0x0000,0x0000,0x0000,0x0000 };
Here’s my platform.io config:
[env:cubecell_board]
platform = asrmicro650x
board = cubecell_board
framework = arduino
monitor_speed = 115200
upload_port = /dev/ttyUSB0
monitor_port = /dev/ttyUSB0
board_build.arduino.lorawan.region = US915
board_build.arduino.lorawan.class = CLASS_A
board_build.arduino.lorawan.netmode = OTAA
board_build.arduino.lorawan.adr = OFF
board_build.arduino.lorawan.uplinkmode = CONFIRMED
board_build.arduino.lorawan.net_reserve = OFF
board_build.arduino.lorawan.rgb = ACTIVE
board_build.arduino.lorawan.debug_level = FREQ_AND_DIO
board_build.arduino.lorawan.at_support = ON
Here’s what a good transmission looks like as seen from my gateway:
JSON up: {"rxpk":[{"jver":1,"tmst":4037155309,"time":"2021-09-21T21:46:32.227211Z","tmms":1316296011226,"chan":1,"rfch":0,"freq":904.100000,"mid": 8,"stat":1,"modu":"LORA","datr":"SF7BW125","codr":"4/5","rssis":-75,"lsnr":14.2,"foff":6642,"rssi":-74,"size":23,"data":"REMOVED"}]}
INFO: [down] PULL_RESP received - token[0:10] :)
JSON down: {"txpk":{"imme":false,"tmst":4042155309,"freq":923.9,"rfch":0,"powe":26,"modu":"LORA","datr":"SF7BW500","codr":"4/5","ipol":true,"size":17,"ncrc":true,"data":"REMOVED="}}
JSON up: {"rxpk":[{"jver":1,"tmst":4051809424,"time":"2021-09-21T21:46:46.881327Z","tmms":1316296025880,"chan":4,"rfch":1,"freq":904.700000,"mid": 8,"stat":1,"modu":"LORA","datr":"SF7BW125","codr":"4/5","rssis":-75,"lsnr":14.2,"foff":6655,"rssi":-75,"size":17,"data":"REMOVED"}]}
INFO: [down] PULL_RESP received - token[0:11] :)
JSON down: {"txpk":{"imme":false,"tmst":4056809424,"freq":925.7,"rfch":0,"powe":26,"modu":"LORA","datr":"SF7BW500","codr":"4/5","ipol":true,"size":22,"ncrc":true,"data":"REMOVED"}}
When I watch the gateway on a one that doesn’t go through, this is what I see from the output of the app:
Copyright @ 2019 Heltec Automation.All rights reserved.
Interrupts attached
AT Rev 1.3
+AutoLPM=1
+LORAWAN=1
+KeepNet=0
+OTAA=1
+Class=A
+ADR=0
+IsTxConfirmed=1
+AppPort=2
+DutyCycle=1200000
+ConfirmedNbTrials=4
+ChMask=00000000000000000000FF00
+DevEui=REMOVED
+AppEui=REMOVED
+AppKey=REMOVED
+NwkSKey=REMOVED
+AppSKey=REMOVED
+DevAddr=REMOVED
LoRaWAN US915 Class A start!
joining...TX on freq 904500000 Hz at DR 3 power 20 dBm
TX on freq 904500000 Hz at DR 3 power 20 dBm
Event : Tx Done
RX on freq 925100000 Hz at DR 13
Event : Rx Timeout
RX on freq 923300000 Hz at DR 8
Event : Rx Timeout
TX on freq 905100000 Hz at DR 0 power 20 dBm
TX on freq 905100000 Hz at DR 0 power 20 dBm
Event : Tx Done
RX on freq 926900000 Hz at DR 10
Event : Rx Timeout
RX on freq 923300000 Hz at DR 8
Event : Rx Timeout
TX on freq 904100000 Hz at DR 3 power 20 dBm
TX on freq 904100000 Hz at DR 3 power 20 dBm
Event : Tx Done
RX on freq 923900000 Hz at DR 13
Event : Rx Timeout
RX on freq 923300000 Hz at DR 8
Event : Rx Timeout
TX on freq 903900000 Hz at DR 0 power 20 dBm
TX on freq 903900000 Hz at DR 0 power 20 dBm
Event : Tx Done
RX on freq 923300000 Hz at DR 10
Event : Rx Timeout
RX on freq 923300000 Hz at DR 8
Event : Rx Timeout
TX on freq 904900000 Hz at DR 3 power 20 dBm
TX on freq 904900000 Hz at DR 3 power 20 dBm
Event : Tx Done
RX on freq 926300000 Hz at DR 13
Event : Rx Timeout
RX on freq 923300000 Hz at DR 8
Event : Rx Timeout
TX on freq 904300000 Hz at DR 0 power 20 dBm
TX on freq 904300000 Hz at DR 0 power 20 dBm
Event : Tx Done
RX on freq 924500000 Hz at DR 10
Event : Rx Timeout
RX on freq 923300000 Hz at DR 8
Event : Rx Timeout
TX on freq 904700000 Hz at DR 3 power 20 dBm
TX on freq 904700000 Hz at DR 3 power 20 dBm
Event : Tx Done
RX on freq 925700000 Hz at DR 13
Event : Rx Timeout
RX on freq 923300000 Hz at DR 8
Event : Rx Timeout
TX on freq 905300000 Hz at DR 0 power 20 dBm
TX on freq 905300000 Hz at DR 0 power 20 dBm
Event : Tx Done
RX on freq 927500000 Hz at DR 10
Event : Rx Timeout
RX on freq 923300000 Hz at DR 8
Event : Rx Timeout
TX on freq 904500000 Hz at DR 3 power 20 dBm
TX on freq 904500000 Hz at DR 3 power 20 dBm
Event : Tx Done
RX on freq 925100000 Hz at DR 13
Event : Rx Timeout
RX on freq 923300000 Hz at DR 8
Event : Rx Timeout
TX on freq 904700000 Hz at DR 0 power 20 dBm
TX on freq 904700000 Hz at DR 0 power 20 dBm
Event : Tx Done
RX on freq 925700000 Hz at DR 10
Event : Rx Timeout
RX on freq 923300000 Hz at DR 8
Event : Rx Timeout
TX on freq 905300000 Hz at DR 3 power 20 dBm
TX on freq 905300000 Hz at DR 3 power 20 dBm
Event : Tx Done
RX on freq 927500000 Hz at DR 13
Event : Rx Done
joined
BatteryVoltage:4066
Sending dev status packet
confirmed uplink sending ...
TX on freq 904900000 Hz at DR 3 power 20 dBm
TX on freq 904900000 Hz at DR 3 power 20 dBm
Event : Tx Done
RX on freq 926300000 Hz at DR 13
Event : Rx Done
received unconfirmed downlink: rssi = -68, snr = 10, datarate = 13
I’ve tried toggling to UNCONFIRMED for the uplink mode, as well as ADR On as well. Looking for any ideas/suggestions as I can’t figured what I may be missing.
Thanks!