CongducPham / LowCostLoRaGw

Low-cost LoRa IoT & gateway with SX12XX (SX1261/62/68; SX1272/76/77/78/79; SX1280/81), RaspberryPI and Arduino boards
701 stars 352 forks source link

no rx found #270

Open yannick-dev opened 4 years ago

yannick-dev commented 4 years ago

Hi, i tried to connect a mbed sx1272 to a pi 3B over spi . The pi is using the sd immage from the Waziup side. I used the spi connection shown in the README and the one provided by mbed on the sx1272 side. The webinterface shows a red message "no rx found". My understanding was that any sx1272 should be compatible over SPI? Is this likely to be a chip issue ?

Link to shield: https://os.mbed.com/components/SX1272MB2xAS/ Screenshot from 2020-02-15 13-38-55 IMG_20200215_134615

CongducPham commented 4 years ago

Hi, yes, it should work. Do you have a device sending to the gateway? Otherwise, just run the low-level gateway ( sudo ./lora_gateway ) and see if the module is correctly detected. regards,

yannick-dev commented 4 years ago

Thank you for your quick answer.

I updated the lora_gateway folder and rebuild it to be sure everything is up to date. When i run ./lora_gateway the result is no transciever found. i have a node running a otaa TTN request just next to the gateway, it times out. What could i test to narrow down down the problem or would it be easier to get just a nother chip that is more reliable?

ppiwowar commented 4 years ago

Another one like that here ... RPi/3, 433MHz radio (https://www.dfrobot.com/product-1664.html - I think SX127X), gateway updated to the recent version -> no rx found INTERESTINGLY: after changing radio.makefile to: CFLAGS=-DPABOOST -DMAX_DBM=14 -DBAND433 and make lora_gateway communication works like a charm (Arduino_LoRa_Ping_Pong, same radio = https://www.dfrobot.com/product-1664.htm, NodeMCU) BUT ONLY in cmd.sh after:

CongducPham commented 4 years ago

if you are using 433MHz band, then yes, -DBAND433 is needed if you want to run automatically the gateway on this band, otherwise, use web interface to indicate a frequency in 433MHz band.

It is normal that you have to kill the processes because when the gateway boot, al the software are started. Actually, after your modification, you just have to reboot.

The rx indication on the radio tab is only refreshed if you reload the page. Use the packet logger for real time.

regards,

CongducPham commented 4 years ago

For TTN, you have to enable the LoRaWAN mode and the TTN clouds.

ppiwowar commented 4 years ago

Thank You. In fact, I was struggling with DGETOPT_ISSUE which needs special attention for Buster/linux configuration. You have to remember to uncomment CFLAGS+=-DGETOPT_ISSUE in raspberry.makefile when starting from SD card image. Otherwise it works till first gateway upgrade attempt. My gateway is fully operational now with radio https://www.dfrobot.com/product-1664.htm . Same radios with nodes. Playing with various clouds now and willing to add InfluxDB + Grafana this weekend.

CongducPham commented 4 years ago

Good to hear! regards,