Dragino Private ABP

Sir
Are you getting success using ABP on DRAGINO gateway ? - Private MQTT network

RAKwireless LoRaWan ABP Example

Duty cycle is ON
Packet is UNCONFIRMED
Device Address is 00000000
Uplink period is 10000ms

Current Work Mode: LoRaWAN.
Data Packet:
0x74 0x65 0x73 0x74
Sending is requested
Sending failed
+EVT:SEND_CONFIRMED_FAILED(4)


#define ABP_BAND (RAK_REGION_AU915)

#define ABP_DEVADDR {0x00, 0x00, 0x00, 0x00}

#define ABP_APPSKEY {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}

#define ABP_NWKSKEY {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}

Is the band same for both the Dragino LNS and RAK3172? On my limited use of ABP, one thing to be careful with is the frame counters. RAK3172 reset this to zero. You have to disable frame counter checks on your LNS if you want to use RAK3172 in ABP. Else, no uplink will proceed. If this is about frame counters, you should be able to connect in the beginning since first transmission will have the first count.

If you are using private network mode on the Dragino LNS, did you set your RAK3172 to private network mode as well?
Not sure, but you might need to change your Net ID as well.

AT+NETID
AT+PNM

hi beegem and carlrowan

sorry, i didnt give enough information.

I am not using PUBLIC or PRIVATE Network.

I am using only a resource that Dragino Gateway has, that is to accept ABP connection and forward data to TCP or MQTT servers…not TTN, CHIPSTACK and soon.

I tried with RAK3272 but no success until now!

Then no need of NETID and AT+PNM

Please, dont worry, if there is other client reading these, make the test…

See instructions here!

Communication with ABP End Node - Wiki for Dragino Project

Thanks for the additional information.

Not sure if we can help here.

A few things:

  • Make sure channel settings for US915 are correct on both the RAK3172 and in the Dragino
  • Double check DevAddr, AppSKey and NWSkey
  • Use something else than all zeros for your DevAddr, AppsKey and NWSKey
  • Try unconfirmed messages, in case the Dragino “”“LNS”"" doesn’t support sending ACK’s
  • Setup a “normal” LoRaWAN with gateway and LNS and test if the RAK3172 can send data and that the data is received in the LNS.

Thanks, i will do soon!

About the RAK3272 OTA example, works 100% on TTN, au915

But, on the CHIRPSTACK i am getting many times
+EVT:SEND_CONFIRMED_FAILED(4)

sometimes got success…

Current Work Mode: LoRaWAN.
Data Packet:
0x74 0x65 0x73 0x74
Sending is requested
Sending failed
+EVT:SEND_CONFIRMED_FAILED(4)

some tip ?

chirpstack is working, because i was using in the past with Dragino device and Dragino Gateway

Fix it
AT+MASK=0002
thanks!

About Chirpstack, I have 2 Chirpstack V4 installations, one on a VPS and one on a local network (same network as the gateways).
I see send confirmed failed on the Chirpstack on the VPS, I am guessing it is latency of my internet connection (sucks and is unreliable).
My local Chirpstack is working just fine with ~15 devices connected to it.

Because of my internet connection problems, I was moving everything to a local RPi 4

  • Chirpstack
  • Grafana & InfluxDB for visualization

Yes, I agree that is a internet link. Virtual box is using 95% cpu
I suspected that this was problem.
That is making the chirpstack too slow.

I changed the channels, distance of antenna and virtual performance…

still tryng…ABP not go, but OTA goes well

OTA