Hi @brocaar
I am having a hard time receiving downlink messages after I connect the node via ABP, OTAA works perfectly.
In this test I am using the microchip nodes even if it should not influence much the whole set up.
I start creating the node in the application server.
I start with an ABP join.
(The first that I don’t care much now is that the join doesn’t finish well at all, the Node activation
parameters don’t get set, nor I see a join in MQTT.
Anyway I manually generate those parameters and I plug them into my mote)
After that I manually set the Device address
, Network session key
and the Application session key
(the Node activation
parameters) I can send messages from the device.
Finally I am able to send a message, both confirmed or unconfirmed.
The messages arrive and their content is correct
At this point I store 4 times the same message in the downlink queue
$ mosquitto_pub -h mqtt.server.com -t "application/4/node/ffff2222ffff0002/tx" -m "{\"reference\": \"avrecf1234\",\"confirmed\": true,\"fPort\":11,\"data\": \"Q2lhb0NpYW8=\"}"
$ mosquitto_pub -h mqtt.server.com -t "application/4/node/ffff2222ffff0002/tx" -m "{\"reference\": \"avrecf1234\",\"confirmed\": true,\"fPort\":11,\"data\": \"Q2lhb0NpYW8=\"}"
$ mosquitto_pub -h mqtt.server.com -t "application/4/node/ffff2222ffff0002/tx" -m "{\"reference\": \"avrecf1234\",\"confirmed\": true,\"fPort\":11,\"data\": \"Q2lhb0NpYW8=\"}"
$ mosquitto_pub -h mqtt.server.com -t "application/4/node/ffff2222ffff0002/tx" -m "{\"reference\": \"avrecf1234\",\"confirmed\": true,\"fPort\":11,\"data\": \"Q2lhb0NpYW8=\"}"
Now I send one two confirmed messages and two uncorfirmed, my expectation is that all four should receive the same messages as downlink.
However:
> mac tx cnf 2 48656c6C6F // send as confirmed messages on port 2 the value hex: 48656c6C6F
ok
mac_rx 11 EF869C848A47E610 // receive on port 11 the value hex: EF869C848A47E610
> mac tx cnf 2 48656c6C6F
ok
mac_rx 11 90A70AFBBDC5993D
> mac tx uncnf 2 48656c6C6F // send as unconfirmed messages on port 2 the value hex: 48656c6C6F
ok
mac_rx 11 93470A4F6453829F
> mac tx uncnf 2 48656c6C6F
ok
mac_rx 11 CC598FF8122706C9
> mac tx uncnf 2 48656c6C6F
ok
mac_tx_ok // do not receive downlink messages OK
As you can see all the received values are different, and no one is correct one.
If the connection is done via OTAA everything works perfectly.
It is me missing something?
Cheers,