Simultaneous OTAA for two devices


#1

Hi all,

We are testing mode OTAA for class C.
Device1 send JoinRequest to the server

`loraserver_1 | time=“2018-08-05T15:10:15Z” level=info msg=“backend/gateway: rx packet received”
loraserver_1 | time=“2018-08-05T15:10:15Z” level=info msg=“packet(s) collected” dev_eui=d004a30b001e4e3b gw_count=1 gw_macs=aa55cc0000000000 mtype=JoinRequest
appserver_1 | time=“2018-08-05T15:10:15Z” level=info msg=“js: request received” message_type=JoinReq receiver_id=70b3d57ed0000a5d sender_id=010203 transaction_id=739528614
loraserver_1 | time=“2018-08-05T15:10:15Z” level=info msg=“finished unary call with code OK” grpc.code=OK grpc.method=GetDevice grpc.service=ns.NetworkServer grpc.start_time=“2018-08-05T15:10:15Z” grpc.time_ms=0.563 peer.address=“172.18.000.000:60874” span.kind=server system=grpc
appserver_1 | time=“2018-08-05T15:10:15Z” level=info msg=“finished client unary call” grpc.code=OK grpc.method=GetDevice grpc.service=ns.NetworkServer grpc.time_ms=1.483 span.kind=client system=grpc
appserver_1 | time=“2018-08-05T15:10:15Z” level=info msg=“device-keys updated” dev_eui=d004a30b001e4e3b
appserver_1 | time=“2018-08-05T15:10:15Z” level=info msg=“device-activation created” dev_eui=d004a30b001e4e3b id=53
appserver_1 | time=“2018-08-05T15:10:15Z” level=info msg=“handler/mqtt: publishing message” qos=0 topic=application/2/node/d004a30b001e4e3b/join
appserver_1 | time=“2018-08-05T15:10:15Z” level=info msg=“js: sending response” message_type=JoinAns receiver_id=010203 result_code=Success sender_id=70b3d57ed0000a5d transaction_id=739528614
loraserver_1 | time=“2018-08-05T15:10:15Z” level=info msg=“device-queue flushed” dev_eui=d004a30b001e4e3b
loraserver_1 | time=“2018-08-05T15:10:15Z” level=info msg=“device-session saved” dev_addr=0631c78e dev_eui=d004a30b001e4e3b
loraserver_1 | time=“2018-08-05T15:10:15Z” level=info msg=“device-activation created” dev_eui=d004a30b001e4e3b id=53
loraserver_1 | time=“2018-08-05T15:10:15Z” level=info msg=“backend/gateway: publishing tx packet” qos=0 topic=gateway/aa55cc0000000000/tx
gatewaybridge_1 | time=“2018-08-05T15:10:15Z” level=info msg=“backend: downlink packet received” topic=gateway/aa55cc0000000000/tx

gatewaybridge_1 | time=“2018-08-05T15:10:15Z” level=info msg=“gateway: sending udp packet to gateway” addr=“37.70.000.000:10256” protocol_version=1 type=PullResp
gatewaybridge_1 | time=“2018-08-05T15:10:18Z” level=info msg=“gateway: received udp packet from gateway” addr=“37.70.000.000:10295” protocol_version=1 type=PushData
gatewaybridge_1 | time=“2018-08-05T15:10:18Z” level=info msg=“gateway: rxpk packet received” addr=“37.70.000.000:10295” data=“AF0KANB+1bNw0VIeAAujBNAXDehPH4k=” mac=aa55cc0000000000

gatewaybridge_1 | time=“2018-08-05T15:10:18Z” level=info msg=“backend: publishing packet” qos=0 topic=gateway/aa55cc0000000000/rx
gatewaybridge_1 | time=“2018-08-05T15:10:18Z” level=info msg=“gateway: sending udp packet to gateway” addr=“37.70.000.000:10295” protocol_version=1 type=PushACK`

then Device2 send JoinRequest to the server

` loraserver_1 | time=“2018-08-05T15:10:18Z” level=info msg=“backend/gateway: rx packet received”
loraserver_1 | time=“2018-08-05T15:10:18Z” level=info msg=“packet(s) collected” dev_eui=d004a30b001e52d1 gw_count=1 gw_macs=aa55cc0000000000 mtype=JoinRequest
appserver_1 | time=“2018-08-05T15:10:18Z” level=info msg=“js: request received” message_type=JoinReq receiver_id=70b3d57ed0000a5d sender_id=010203 transaction_id=1653860381
loraserver_1 | time=“2018-08-05T15:10:18Z” level=info msg=“finished unary call with code OK” grpc.code=OK grpc.method=GetDevice grpc.service=ns.NetworkServer grpc.start_time=“2018-08-05T15:10:18Z” grpc.time_ms=0.477 peer.address=“172.18.000.000:60874” span.kind=server system=grpc
appserver_1 | time=“2018-08-05T15:10:18Z” level=info msg=“finished client unary call” grpc.code=OK grpc.method=GetDevice grpc.service=ns.NetworkServer grpc.time_ms=1.462 span.kind=client system=grpc
appserver_1 | time=“2018-08-05T15:10:18Z” level=info msg=“device-keys updated” dev_eui=d004a30b001e52d1
appserver_1 | time=“2018-08-05T15:10:18Z” level=info msg=“device-activation created” dev_eui=d004a30b001e52d1 id=54
appserver_1 | time=“2018-08-05T15:10:18Z” level=info msg=“handler/mqtt: publishing message” qos=0 topic=application/2/node/d004a30b001e52d1/join
appserver_1 | time=“2018-08-05T15:10:18Z” level=info msg=“js: sending response” message_type=JoinAns receiver_id=010203 result_code=Success sender_id=70b3d57ed0000a5d transaction_id=1653860381
loraserver_1 | time=“2018-08-05T15:10:18Z” level=info msg=“device-queue flushed” dev_eui=d004a30b001e52d1
loraserver_1 | time=“2018-08-05T15:10:18Z” level=info msg=“device-session saved” dev_addr=07125d13 dev_eui=d004a30b001e52d1
loraserver_1 | time=“2018-08-05T15:10:18Z” level=info msg=“device-activation created” dev_eui=d004a30b001e52d1 id=54
loraserver_1 | time=“2018-08-05T15:10:18Z” level=info msg=“backend/gateway: publishing tx packet” qos=0 topic=gateway/aa55cc0000000000/tx
gatewaybridge_1 | time=“2018-08-05T15:10:18Z” level=info msg=“backend: downlink packet received” topic=gateway/aa55cc0000000000/tx

gatewaybridge_1 | time=“2018-08-05T15:10:18Z” level=info msg=“gateway: sending udp packet to gateway” addr=“37.70.000.000:10256” protocol_version=1 type=PullResp
gatewaybridge_1 | time=“2018-08-05T15:10:23Z” level=info msg=“gateway: received udp packet from gateway” addr=“37.70.000.000:10256” protocol_version=1 type=PullData

gatewaybridge_1 | time=“2018-08-05T15:10:23Z” level=info msg=“gateway: sending udp packet to gateway” addr=“37.70.000.000:10256” protocol_version=1 type=PullACK
gatewaybridge_1 | time=“2018-08-05T15:10:26Z” level=info msg=“gateway: received udp packet from gateway” addr=“37.70.000.000:10295” protocol_version=1 type=PushData
gatewaybridge_1 | time=“2018-08-05T15:10:26Z” level=info msg=“gateway: rxpk packet received” addr=“37.70.000.000:10295” data=“QBNdEgcAAAAB0+LuylEeV0lmMw==” mac=aa55cc0000000000

gatewaybridge_1 | time=“2018-08-05T15:10:26Z” level=info msg=“backend: publishing packet” qos=0 topic=gateway/aa55cc0000000000/rx
gatewaybridge_1 | time=“2018-08-05T15:10:26Z” level=info msg=“gateway: sending udp packet to gateway” addr=“37.70.000.000:10295” protocol_version=1 type=PushACK`

There is only one differences between Device1 and Device2 in log

gatewaybridge_1 | time="2018-08-05T15:10:23Z" level=info msg="gateway: sending udp packet to gateway" addr="37.70.000.000:10256" protocol_version=1 type=PullACK gatewaybridge_1 | time="2018-08-05T15:10:26Z" level=info msg="gateway: received udp packet from gateway" addr="37.70.000.000:10295" protocol_version=1 type=PushData gatewaybridge_1 | time="2018-08-05T15:10:26Z" level=info msg="gateway: rxpk packet received" addr="37.70.000.000:10295" data="QBNdEgcAAAAB0+LuylEeV0lmMw==" mac=aa55cc0000000000

As a result only device2 could send messages, device1 - could not
Any ideas?