Lora-net / lora_gateway

Driver/HAL to build a gateway using a concentrator board based on Semtech SX1301 multi-channel modem and SX1257/SX1255 RF transceivers.
Other
915 stars 742 forks source link

Debugging lgw_send (not sending) #155

Closed wavesoft closed 4 years ago

wavesoft commented 4 years ago

Hi All!

I have ported libgw and fragments of lora_pkt_fwd in order to be able to control a RAK2247 concentrator (SX1301 + 2xSX1257) from an MCU. I can say that I have read through about 80% of the library by now and my only unknown parts are the internals of SX1301.

So far I had great success with the API abstractions and I am successfully receiving uplink packets and forwarding them to my server. However, I have some issues with my downlink that I cannot explain.

In detail:

Question

  1. Why isn't the transmissions happening?
  2. How can I debug why it's not leaving the concentrator?
  3. What's the bit 7 on LGW_TX_STATUS? Can I have the full register description?

Debug Info

wavesoft commented 4 years ago

To my utter surprise, it ends up to be an SPI issue!!! Happy new year everyone!

lichuanhe commented 4 years ago

hello,the same problem comes 2me ,when the node send package with ack. sometimes the device cannot receie ack,then ,the the gateway printf "a downlink was already scheduled, overwritting it...".gateway useed the software simulated spi with mode 0,would u pls tell me how to solve this problem ,thinks very much!!!

covenant1969 commented 2 years ago

Was this one solved? Sounds a bit like my problem too.