Nanogateway downlink issues US915 #124
Description
What are the steps to reproduce this issue?
- I send a tx with confirmation with 915.2MHz
- TTN receives ok and shows the frequency downlink wrong (869.525MHz)
What happens?
I'm testing Nanogateway with a Lopy4. I'm using US915. In ABP with unconfirmed tx, works. But with a confirmed tx, TTN receive, but the downlink is a wrong frequency and the nanogateway stop work. As a device node i'm using RN2903 transmiting only in 915.2MHz. The nanogateway is configured at the same channel, 915.2MHz.
What were you expecting to happen?
I was expecting to see a correct frequency downlink.
Any logs, error output, etc?
[ 2.881] Starting LoRaWAN nano gateway with id: b'3C71BFFFFE8752C0'
[ 7.355] WiFi connected to: velox ap 303
[ 7.363] Syncing time with pool.ntp.org ...
[ 7.521] RTC NTP sync complete
[ 8.045] Opening UDP socket to router.eu.thethings.network (52.169.76.203) port 1700...
[ 8.062] Setting up the LoRa radio at 915.1999 Mhz using SF10BW125
[ 8.073] LoRaWAN nano gateway online
[ 8.079] You may now press ENTER to enter the REPL
[ 42.936] Received packet: {"rxpk": [{"data": "gGIbAiYAHwAB4phJHYzX", "time": "2020-06-28T19:27:11.396648Z", "chan": 0, "tmst": 42915710, "stat": 1, "modu": "LORA", "lsnr": 8.0, "rssi": -37, "rfch": 0, "codr": "4/5", "freq": 915.2, "datr": "SF10BW125", "size": 15}]}
[ 43.199] Push ack
[ 47.389] Received packet: {"rxpk": [{"data": "gGIbAiYAHwAB4phJHYzX", "time": "2020-06-28T19:27:15.851636Z", "chan": 0, "tmst": 47371232, "stat": 1, "modu": "LORA", "lsnr": 8.0, "rssi": -38, "rfch": 0, "codr": "4/5", "freq": 915.2, "datr": "SF10BW125", "size": 15}]}
[ 47.672] Push ack
[ 51.802] Received packet: {"rxpk": [{"data": "gGIbAiYAHwAB4phJHYzX", "time": "2020-06-28T19:27:20.263653Z", "chan": 0, "tmst": 51783563, "stat": 1, "modu": "LORA", "lsnr": 8.0, "rssi": -37, "rfch": 0, "codr": "4/5", "freq": 915.2, "datr": "SF10BW125", "size": 15}]}
[ 52.165] Push ack
[ 56.228] Received packet: {"rxpk": [{"data": "gGIbAiYAHwAB4phJHYzX", "time": "2020-06-28T19:27:24.690616Z", "chan": 0, "tmst": 56209946, "stat": 1, "modu": "LORA", "lsnr": 8.0, "rssi": -37, "rfch": 0, "codr": "4/5", "freq": 915.2, "datr": "SF10BW125", "size": 15}]}
[ 56.492] Push ack
[ 58.339] Pull ack
[ 58.373] Downlink timestamp error!, t_us: 4294790082
[ 58.383] Pull rsp
[ 58.417] Downlink timestamp error!, t_us: 4281450966
[ 58.428] Pull rsp
[ 58.461] Downlink timestamp error!, t_us: 4285862809
[ 58.472] Pull rsp
[ 58.507] Downlink timestamp error!, t_us: 4290229674
[ 58.517] Pull rsp
[ 60.652] Received packet: {"rxpk": [{"data": "gGIbAiYAHwAB4phJHYzX", "time": "2020-06-28T19:27:29.114448Z", "chan": 0, "tmst": 60633939, "stat": 1, "modu": "LORA", "lsnr": 8.0, "rssi": -37, "rfch": 0, "codr": "4/5", "freq": 915.2, "datr": "SF10BW125", "size": 15}]}
[ 60.915] Push ack
[ 62.132] Pull rsp
Unhandled exception in callback handler
Traceback (most recent call last):
File "nanogateway.py", line 426, in
File "nanogateway.py", line 363, in _send_down_link
ValueError: frequency 869525000 out of range
Any other comments?
I'm using no board. Only a ftdi with lopy4.
The same issue happens with a join OTAA.
What versions of software are you using?
- Board type and hardware version:
-
os.uname()
(sysname='LoPy4', nodename='LoPy4', release='1.18.2.r6', version='v1.8.6-849-a210e85 on 2019-05-13', machine='LoPy4 with ESP32', lorawan='1.0.2', sigfox='1.0.1', pybytes='0.9.12')