No live data for ABP end device, reciving on gateway

Hello,

I have problem with not seeing live data for an end device, while reciving data in the gateway. I am using waveshare sx1303 868m lorawan gateway with raspberry pi 4 and as an end device I have ra-01h ai thinker connected to stm32l151c8t6a. I am using LMIC library, but removed the arduino part. In the pictures are shown settings I am using for the end device.

here is gateway’s live data:


devaddr, nwkskey and appskey all match, but just to be sure i have tried both big endian and little endian forms. i have also tried adding factory preset frequencies. I cant make my application belive that my physical end device and registered end device are the same. Both end device and application live datas are empty.

Check the “factory preset frequencies” match what the device uses. Transmissions on frequencies not listed there are not forwarded to the application.

as much as I understand, if Im using device with my code, the frequency I specify should be used for transmit. if so in lmic_project_config.h i used #define CFG_eu868 1, so i should be using 868.1, 868.3 and 868.5MHz. for those i tried:


should I be looking somewhere else?

Check the gateway log in TTN console to see if the actual transmissions use those frequencies. Keep in mind also that for ABP you will need to reset the frame counter at TTN when you reset the device. (Otherwise replay attack protection will drop any uplinks for which fcntl is smaller then the highest received in previous sessions)

    "frequency": "868100000",
    "timestamp": 1103456354

it uses 868.1mgh, frame counter reset is also selected.

i also checked the nwskey, devaddr and appskey during transmission with serial monitor and they match.

I “fixed” it. went with otaa instead of abp. still dont know what was problem with abp, but works fine with otaa.

1 Like