sx1302_hal icon indicating copy to clipboard operation
sx1302_hal copied to clipboard

Failed to set SX1250_0 in STANDBY_RC mode

Open shawaj opened this issue 2 years ago • 8 comments

I am getting this error:

root@f986d0ed3f2c:/opt/iotloragateway/packet_forwarder# sx1302/util_chip_id/chip_id -d /dev/spidev1.2
CoreCell reset through GPIO22...
Opening SPI communication interface
Note: chip version is 0x12 (v1.2)
ERROR: Failed to set SX1250_0 in STANDBY_RC mode
ERROR: failed to setup radio 0
ERROR: failed to start the gateway

And the concentrator gets very hot, very quickly.

Any idea of the issue?

shawaj avatar Oct 08 '21 03:10 shawaj

I have seen that error when there is an issue with the hardware setup. For general troubleshooting, make sure the particular concentrator board supports SPI and not USB communication and that the SX1250 transceiver is receiving 3.3V supply power. Check that you are able to run "sx1302/bin/test_loragw_com -d /dev/spidev1.2" and "sx1302/bin/test_loragw_com_1250 -d /dev/spidev1.2" and receive a stream of outputs saying "no error." After checking that, can you also share the concentrator PCB number and any mounted power jumpers?

kmuster-semtech avatar Nov 03 '21 16:11 kmuster-semtech

And the concentrator gets very hot, very quickly

That would indicate a hardware issue. Either mistaken connection of the concentrator card to the host system (which card, in which system, connected how?) or else past permanent damage from miswiring, ESD, etc.

cstratton avatar Dec 01 '21 18:12 cstratton

Noticed SX1250_0 in STANDBY_RC mod in my logs too, but not sure if it is due to the same reason. Opened #67 to track it.

gswebspace avatar Dec 21 '21 10:12 gswebspace

I have seen that error when there is an issue with the hardware setup. For general troubleshooting, make sure the particular concentrator board supports SPI and not USB communication and that the SX1250 transceiver is receiving 3.3V supply power. Check that you are able to run "sx1302/bin/test_loragw_com -d /dev/spidev1.2" and "sx1302/bin/test_loragw_com_1250 -d /dev/spidev1.2" and receive a stream of outputs saying "no error." After checking that, can you also share the concentrator PCB number and any mounted power jumpers?

I'm sure it's not a personal problem because people who use different brands of hardware and different versions of library will all encounter this problem. Please refer to this issue

wong-hao avatar Dec 22 '21 02:12 wong-hao

I'm sure it's not a personal problem because people who use different brands of hardware and different versions of library will all encounter this problem.

No, while the error message is commonly seen, the cause is very much a "personal" one unique to a given setup or hardware problem.

Most commonly, that would be not having scripts configured to use the GPIO that is actually wired to the concentrator reset in your particular configuration. Other causes have included the one earlier in this thread where someone has a damaged concentrator chip, and one at your link where someone is trying to do an unsupported "hot change" of configuration without reset.

cstratton avatar Dec 22 '21 16:12 cstratton

I had the same problem, on Raspberry Pi 3B and SX1302 gateway module, the problem was failed to set sx1250_0 STANDBY_RC mode. However, I can get the chip version by pulling the CSN of the SX1302 and the SPI chip selection control pin by pulling it high and then pulling it low, but the above problems are still impossible.

LittleFool1022 avatar Mar 04 '22 02:03 LittleFool1022

I had the same problem and I have tested the reset_lgw.sh and it works and i have changed the sx_1302_reset

ahmed560 avatar May 24 '22 15:05 ahmed560

but the problem isn't resolved

ahmed560 avatar May 24 '22 15:05 ahmed560

Thank you for your inquiry.

Customers are encouraged to submit technical questions via our dedicated support portal at https://semtech.force.com/ldp/ldp_support.

We invite all users to visit the LoRa Developer Portal Forum at https://forum.lora-developers.semtech.com and to join the thriving LoRa development community!

smtc-bot avatar Sep 30 '22 12:09 smtc-bot

Did anyone solved this problem? I am having the same problem. I am using raspberry pi 3b+ with sx1302 lorawan hat

ABHITHLALC avatar Jul 14 '23 08:07 ABHITHLALC