Go Down

Topic: MKRWAN 1300 false success connection result. (Read 5894 times) previous topic - next topic

franciscommtz

Hello:
Does anybody has noticed a false success connection result in the joinABP function?
I run the FirstConfiguration sketch giving  random session keys without any gateway in range and the joinABP function returns success. After that, the sketch sends "Error sending message :("), wich is obvious, as I dont have any gateway in range.

Best Regards!

MITEL

#1
Jan 11, 2019, 10:03 am Last Edit: Jan 11, 2019, 10:04 am by MITEL
ABP has not really a join in common terms, because there is no ack or confirmation, so you will almost always join with success (OTAA is different). It's a fire-and-forget protocol, and even sending messages normally is without confirmation , thus the node normally does not know if the packet has been received. However, the provided examples are set to have confirmation, thus they fail if no gateway, or gateway not able to send downlinks, or node not able to receive.
If if you change true with false in the following line:
Code: [Select]
modem.endPacket(true);

You will succeed also in sending.
Please remember that, if you connect to TTN, you have to comply with fair access policy that include not sending more than ten downlinks/day (that is, avoid confirmation!).

franciscommtz


Go Up