Hello,
I am trying to install a sx1302 has on a Raspi 3 using the Wavshare Wiki. When trying with the “./chip_id” command I get the following message:
CoreCell reset through GPIO23…
SX1261 reset through GPIO23…
CoreCell power enable through GPIO18…
CoreCell ADC reset through GPIO13…
Opening SPI communication interface
ERROR: failed to start the gateway
Here I don’t get any further, why the gateway can’t start at this point.
7 times out of 10 this is incorrect concentrator reset - logic/timing issue requiring several tries for success or most often reset pin is not correctly mapped/connected…
Yep exactly!, actually 1st category was possibly 6.5 out if 10…the other 1 in 20 is overlap with SPI problem even if correctly enabled with some cards not supporting full speed/timing and needing clock rate to be dialed back! the guilty card vendors know who they are…
I been having the same issue on SX1302CSS915GW1 dev kit from Semtech. I’ve ensured SPI and I2C are enabled several times. Can confirm they exist in /dev. I’ve also remapped the GPIO pins in 'reset_lgw.sh" to match what it appears they should be based on the board schematic.
I can get most things to work via USB, but nothing seems to work with SPI.
Using USB (./chip_id -u -d /dev/ttyACM0), I get this:
Opening USB communication interface
INFO: Configuring TTY
INFO: Flushing TTY
INFO: Setting TTY in blocking mode
INFO: Connect to MCU
INFO: Concentrator MCU version is V01.00.00
INFO: MCU status: sys_time:10826747 temperature:25.3oC
Note: chip version is 0x10 (v1.0)
INFO: using legacy timestamp
ARB: dual demodulation disabled for all SF
INFO: concentrator EUI: 0x00xxxxxxxxxxxxxxx
Closing USB communication interface
Using SPI(./chip_id -d /dev/spidev0.0), I get this:
CoreCell reset through GPIO4...
SX1261 reset through GPIO3...
CoreCell power enable through GPIO1...
CoreCell ADC reset through GPIO24...
Opening SPI communication interface
Note: chip version is 0x00 (v0.0)
ERROR: Failed to set SX1250_0 in STANDBY_RC mode
ERROR: failed to setup radio 0
ERROR: failed to start the gateway
@jreiss Below are the error logs I was talking about. What possibly could be the cause ? and how do I resolve it ?
CoreCell reset through GPIO23...
SX1261 reset through GPIO23...
CoreCell power enable through GPIO18...
CoreCell ADC reset through GPIO13...
Opening SPI communication interface
Note: chip version is 0x00 (v0.0)
ERROR: Failed to set SX1250_0 in STANDBY_RC mode
ERROR: failed to setup radio 0
ERROR: failed to start the gateway
In my case, the SPI bus is not physically connected on the dev board. So even though I was enabling it and configuring it correctly, the SPI pins were not connected (resistors not installed on board).
Your board is different but I would check the schematic if there is one.
I struggled with this for hours on end. Turns out I had to really push the concentrator really hard into the PCI slot on the HAT board, and then finally the scripts worked.
I found this in the Waveshare FAQ which lead me to try this (as well as being out of options)