HelTecAutomation / CubeCell-Arduino

Heltec CubeCell Series (based on ASR6501, ASR6502 chip) Arduino support.
247 stars 138 forks source link

IfSkipJoin (stored OTAA credentials) not working #32

Closed Bwooce closed 4 years ago

Bwooce commented 4 years ago

Hi team, should IfSkipJoin work yet?

I've got the call in there, but CheckNetInfo() always fails after a reboot even after a successful join (which should be storing the parameters, right?)

I have Net_Reservation set ON too (is this related? there's no docs for it yet).

Looks like great functionality.

Heltec-Aaron-Lee commented 4 years ago

Did you try the ABP mode? ABP mode don't need join.

This part of the documents may make sense to you: https://heltec-automation-docs.readthedocs.io/en/latest/cubecell/quick_start.html#correctly-config-the-tools-menu

Bwooce commented 4 years ago

Thanks Aaron, it wasn't working in the release 0.4 (OTAA worked but rebooting never reused the old keys - CheckNetInfo always failed) but I'll try it now once I get AU915 working and report back.

Heltec-Aaron-Lee commented 4 years ago

What frequency did you try?

OstertagM commented 4 years ago

NET Reservation is NOT WORKING: grafik

AT Rev 0.6

+LORAWAN=1

+KeepNet=0
+OTAA=1
+Class=A
+ADR=1
+IsTxConfirmed=0
+AppPort=2
+DutyCycle=86400000
+ConfirmedNbTrials=8

LoRaWAN EU868 Class A start!

joining...TX on freq 868100000 Hz at DR 5
Event : Tx Done
RX on freq 868100000 Hz at DR 5
Event : Rx Done
joined
Sending dev status packet
Temperature: 0.21 *C
%RH 0.34
Bat4228
unconfirmed uplink sending ...
TX on freq 867300000 Hz at DR 5
Event : Tx Done
RX on freq 867300000 Hz at DR 5
Event : Rx Timeout
RX on freq 869525000 Hz at DR 3
Event : Rx Timeout

grafik

You can see it on second join after reset!

Heltec-Aaron-Lee commented 4 years ago

Seems the sending process is not successful at your side. the LoRaWAN OTAA parameters and keys are referred to the downlink message from the gateway and server. Try it at least one success sending.

Bwooce commented 4 years ago

Answered in Issue #67 - needs a proper downlink message to be received.