6 years, 6 months ago.

Having trouble with Gateway and LoRa example

Hi everyone, I'm trying to run this example provided by Semtech https://os.mbed.com/teams/Semtech/code/LoRaWAN-demo-76/ with a Nucleo L152RE board and the RFM9X from Adafruit, everything compiles fine but it doesn't work as intended. The program is supposed to send every 5 seconds but I'm receiving messages at random intervals and the device doesn't seem to fill the AppData frame properly, it just fills it with "0". I modified the frame to send "hola" but the random time intervals for each message persist. I'm using Mosquitto for the Gateway, I'm also new to LoRa and I don't know if I have to make additional configuration for it to work properly, it worked fine with a mDot example though.

This is what I got today when subscribing to the lora topic with the gateway

{"chan":2,"cls":0,"codr":"4/5","data":"AGhvbGEA","datr":"SF10BW125","freq":"907.5","lsnr":"-4.2","mhdr":"8004030201000a00","modu":"LORA","opts":"","port":15,"rfch":0,"rssi":-107,"seqn":10,"size":8,"timestamp":"2017-10-06T16:29:04.951445Z","tmst":1969028060} {"chan":0,"cls":0,"codr":"4/5","data":"AGhvbGEA","datr":"SF10BW125","freq":"907.1","lsnr":"-8.8","mhdr":"8004030201000200","modu":"LORA","opts":"","port":15,"rfch":0,"rssi":-109,"seqn":2,"size":8,"timestamp":"2017-10-06T16:34:58.615798Z","tmst":2322707708} {"chan":1,"cls":0,"codr":"4/5","data":"AGhvbGEA","datr":"SF10BW125","freq":"907.3","lsnr":"0","mhdr":"8004030201001000","modu":"LORA","opts":"","port":15,"rfch":0,"rssi":-105,"seqn":16,"size":8,"timestamp":"2017-10-06T16:56:58.739721Z","tmst":3642846972} {"chan":0,"cls":0,"codr":"4/5","data":"AGhvbGEA","datr":"SF10BW125","freq":"907.1","lsnr":"-0.8","mhdr":"8004030201001400","modu":"LORA","opts":"","port":15,"rfch":0,"rssi":-106,"seqn":20,"size":8,"timestamp":"2017-10-06T16:59:35.121599Z","tmst":3799233644} {"chan":4,"cls":0,"codr":"4/5","data":"AGhvbGEA","datr":"SF10BW125","freq":"907.9","lsnr":"-1.5","mhdr":"8004030201003300","modu":"LORA","opts":"","port":15,"rfch":1,"rssi":-107,"seqn":51,"size":8,"timestamp":"2017-10-06T17:20:52.997422Z","tmst":782163436} {"chan":1,"cls":0,"codr":"4/5","data":"AGhvbGEA","datr":"SF10BW125","freq":"907.3","lsnr":"-1.2","mhdr":"8004030201003f00","modu":"LORA","opts":"","port":15,"rfch":0,"rssi":-106,"seqn":63,"size":8,"timestamp":"2017-10-06T17:29:24.008558Z","tmst":1293173220} {"chan":2,"cls":0,"codr":"4/5","data":"AGhvbGEA","datr":"SF10BW125","freq":"907.5","lsnr":"-1.5","mhdr":"8004030201005100","modu":"LORA","opts":"","port":15,"rfch":0,"rssi":-106,"seqn":81,"size":8,"timestamp":"2017-10-06T17:41:55.789848Z","tmst":2044975532} {"chan":5,"cls":0,"codr":"4/5","data":"AGhvbGEA","datr":"SF10BW125","freq":"908.1","lsnr":"1.5","mhdr":"8004030201005300","modu":"LORA","opts":"","port":15,"rfch":1,"rssi":-107,"seqn":83,"size":8,"timestamp":"2017-10-06T17:43:34.320209Z","tmst":2143507212}

Be the first to answer this question.