Lora-net / LoRaMac-node

Reference implementation and documentation of a LoRa network node.
Other
1.88k stars 1.09k forks source link

DOWINLINK data is not received. #782

Closed KwonTae-young closed 5 years ago

KwonTae-young commented 5 years ago

I have a NUCLEO-L152RE and SX1276MB1LAS. image And I am running lora_pkt_fwd in Linux environment.

I am testing ClassA with LoRaMac-node, but data of DOWNLINK is not received. The current version is v4.4.2.

Build

cmake is shown below.

cmake -DCMAKE_TOOLCHAIN_FILE="cmake/toolchain-arm-none-eabi.cmake" \
                -DAPPLICATION="LoRaMac" \
                -DSUB_PROJECT="classA" \
                -DCLASSB_ENABLED="OFF" \
                -DACTIVE_REGION="LORAMAC_REGION_KR920" \
                -DREGION_EU868="OFF" \
                -DREGION_US915="OFF" \
                -DREGION_CN779="OFF" \
                -DREGION_EU433="OFF" \
                -DREGION_AU915="OFF" \
                -DREGION_AS923="OFF" \
                -DREGION_CN470="OFF" \
                -DREGION_KR920="ON" \
                -DREGION_IN865="OFF" \
                -DREGION_RU864="OFF" \
                -DBOARD="NucleoL152" \
                -DMBED_RADIO_SHIELD="SX1276MB1LAS"  ..

UPLINK Test

Run the board and i will see the message 'UPLINK FRAME #XX' in SX1276MB1LAS. It then sends data from the packet_forwarder on Linux to the TTN. Data is well received through TTN's Gateway and Applications consoles.

NUCLEO-L152RE

###### ===== ClassA demo application v1.0.RC1 ==== ######

DevEui      : 33-35-33-34-5B-37-69-07
AppEui      : 00-00-00-00-00-00-00-00
AppKey      : 2B 7E 15 16 28 AE D2 A6 AB F7 15 88 09 CF 4F 3C

###### ===== JOINED ==== ######

ABP

DevAddr     : XXXXXXXX
NwkSKey     : XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX
AppSKey     : XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX

###### ===== MCPS-Request ==== ######
STATUS      : OK

###### ===== MCPS-Confirm ==== ######
STATUS      : OK

###### ===== UPLINK FRAME 1 ==== ######

CLASS       : A

TX PORT     : 2
TX DATA     : UNCONFIRMED
00

DATA RATE   : DR_0
U/L FREQ    : 922500000
TX POWER    : 0
CHANNEL MASK: 0007

lora_pkt_fwd

Note: LoRa packet

INFO: Received pkt from mote: 26041625 (fcnt=1)

INFO: Received pkt from mote: 26041625 (fcnt=1)

JSON up: {"rxpk":[{"tmst":928880900,"chan":5,"rfch":1,"freq":923.100000,"stat":1,"modu":"LORA","datr":"SF12BW125","codr":"4/5","lsnr":1.8,"rssi":-83,"size":14,"data":"QCUWBCaAAQACeANRl+g="},{"tmst":928880908,"chan":2,"rfch":0,"freq":922.500000,"stat":1,"modu":"LORA","datr":"SF12BW125","codr":"4/5","lsnr":8.0,"rssi":-5,"size":14,"data":"QCUWBCaAAQACeANRl+g="}]}
INFO: [down] PULL_RESP received  - token[56:102] :)

TTN Gateway console image

TTN Applications console image



UPLINK works well. However, DOWNLINK data sent from TTN's Applications console is not received through LoRaMac-node. Data is checked up to lora_pkt_fwd. However, there is no log related to DOWNLINK in the logs of LoRaMac-node.

DOWNLINK Test

TTN Applications console image

TTN Gateway console image

packey_forward

INFO: [up] PUSH_ACK received in 78 ms
INFO: [down] PULL_RESP received  - token[6:231] :)

JSON down: {"txpk":{"imme":false,"tmst":1563262276,"freq":921.9,"rfch":0,"powe":23,"modu":"LORA","datr":"SF12BW125","codr":"4/5","ipol":true,"size":33,"ncrc":true,"data":"YCUWBCaFVgADQX8AAQEZP8Ndsdm0VGqCrevZHuhY23Us"}}

INFO: Disabling GPS mode for concentrator's counter...
INFO: host/sx1301 time offset=(948723110s:627998μs) - drift=624μs
INFO: Enabling GPS mode for concentrator's counter.

NUCLEO-L152RE

There is no log related to DOWNLINK anywhere.

Version used LoRaMac-node: v4.4.2 lora_gateway: v5.0.1 packey_forwarder: v4.0.1

Is there anything else I need to do to receive DOWNLINK data? Or is it a bug in the current release?

I'm sorry I do not have enough English. :) Thank you.

KwonTae-young commented 5 years ago

There seems to be a problem with my test gateway board. I test it with another board, and the DOWNLINK works fine.