I’m facing some issues with getting my RAK2287 & RPI4 to work using Basics Station. I’ve followed the below instructions. Log files are shown at the bottom of this thread.
main ERROR: UNKNOWN TX STATUS 0x00
main ERROR: UNKNOWN TX STATUS 0x00
main 2021-08-16 16:33:33.754 [any:INFO] ./lns-ttn/tc.trust:
main cert. version : 3
main serial number : 44:AF:B0:80:D6:A3:27:BA:89:30:39:86:2E:F8:40:6B
main issuer name : O=Digital Signature Trust Co., CN=DST Root CA X3
main subject name : O=Digital Signature Trust Co., CN=DST Root CA X3
main issued on : 2000-09-30 21:12:19
main expires on : 2021-09-30 14:01:15
main signed using : RSA with SHA1
main RSA key size : 2048 bits
main basic constraints : CA=true
main key usage : Key Cert Sign, CRL Sign
main 2021-08-16 16:33:33.754 [AIO:INFO] tc has no cert configured - running server auth and client auth with token
main 2021-08-16 16:33:33.787 [TCE:INFO] Connecting to INFOS: wss://eu1.cloud.thethings.network:8887
main 2021-08-16 16:33:33.907 [TCE:INFO] Infos: dca6:32ff:fe63:331b muxs-::0 wss://eu1.cloud.thethings.network:8887/traffic/eui-DCA632FFFE63331B
main 2021-08-16 16:33:33.907 [AIO:DEBU] [3] ws_close reason=1000
main 2021-08-16 16:33:33.907 [AIO:ERRO] Recv failed: SSL - The peer notified us that the connection is going to be closed
main 2021-08-16 16:33:33.907 [AIO:DEBU] [3] WS connection shutdown...
main 2021-08-16 16:33:33.908 [any:INFO] ./lns-ttn/tc.trust:
main cert. version : 3
main serial number : 44:AF:B0:80:D6:A3:27:BA:89:30:39:86:2E:F8:40:6B
main issuer name : O=Digital Signature Trust Co., CN=DST Root CA X3
main subject name : O=Digital Signature Trust Co., CN=DST Root CA X3
main issued on : 2000-09-30 21:12:19
main expires on : 2021-09-30 14:01:15
main signed using : RSA with SHA1
main RSA key size : 2048 bits
main basic constraints : CA=true
main key usage : Key Cert Sign, CRL Sign
main 2021-08-16 16:33:33.908 [AIO:INFO] tc has no cert configured - running server auth and client auth with token
main 2021-08-16 16:33:33.929 [TCE:VERB] Connecting to MUXS...
main 2021-08-16 16:33:34.051 [TCE:VERB] Connected to MUXS.
main 2021-08-16 16:33:34.071 [SYS:VERB] rinit.sh: Forked, waiting...
main ./reset_lgw.sh: 24: echo: echo: I/O error
main RAK2287 reset through GPIO17...
main RAK2287 power enable through GPIO17...
main 2021-08-16 16:33:34.933 [SYS:INFO] Process rinit.sh (pid=1439) completed
main ERROR: Failed to stop TX trigger
main ERROR: Failed to stop TX trigger
main 2021-08-16 16:33:34.933 [RAL:INFO] Lora gateway library version: Version: 1.0.5;
main 2021-08-16 16:33:34.935 [RAL:VERB] Connecting to device: /dev/spidev0.0
main 2021-08-16 16:33:34.935 [RAL:DEBU] SX130x txlut table (16 entries)
main 2021-08-16 16:33:34.935 [RAL:VERB] SX1302 txlut 0: rf_power=12 pa_gain=0 pwr_idx=15
main 2021-08-16 16:33:34.935 [RAL:VERB] SX1302 txlut 1: rf_power=13 pa_gain=0 pwr_idx=16
main 2021-08-16 16:33:34.935 [RAL:VERB] SX1302 txlut 2: rf_power=14 pa_gain=0 pwr_idx=17
main 2021-08-16 16:33:34.935 [RAL:VERB] SX1302 txlut 3: rf_power=15 pa_gain=0 pwr_idx=19
main 2021-08-16 16:33:34.935 [RAL:VERB] SX1302 txlut 4: rf_power=16 pa_gain=0 pwr_idx=20
main 2021-08-16 16:33:34.935 [RAL:VERB] SX1302 txlut 5: rf_power=17 pa_gain=0 pwr_idx=22
main 2021-08-16 16:33:34.935 [RAL:VERB] SX1302 txlut 6: rf_power=18 pa_gain=1 pwr_idx=1
main 2021-08-16 16:33:34.935 [RAL:VERB] SX1302 txlut 7: rf_power=19 pa_gain=1 pwr_idx=2
main 2021-08-16 16:33:34.935 [RAL:VERB] SX1302 txlut 8: rf_power=20 pa_gain=1 pwr_idx=3
main 2021-08-16 16:33:34.935 [RAL:VERB] SX1302 txlut 9: rf_power=21 pa_gain=1 pwr_idx=4
main 2021-08-16 16:33:34.935 [RAL:VERB] SX1302 txlut 10: rf_power=22 pa_gain=1 pwr_idx=5
main 2021-08-16 16:33:34.935 [RAL:VERB] SX1302 txlut 11: rf_power=23 pa_gain=1 pwr_idx=6
main 2021-08-16 16:33:34.935 [RAL:VERB] SX1302 txlut 12: rf_power=24 pa_gain=1 pwr_idx=7
main 2021-08-16 16:33:34.935 [RAL:VERB] SX1302 txlut 13: rf_power=25 pa_gain=1 pwr_idx=9
main 2021-08-16 16:33:34.935 [RAL:VERB] SX1302 txlut 14: rf_power=26 pa_gain=1 pwr_idx=11
main 2021-08-16 16:33:34.935 [RAL:VERB] SX1302 txlut 15: rf_power=27 pa_gain=1 pwr_idx=14
main 2021-08-16 16:33:34.935 [RAL:VERB] SX1302 rssi_tcomp: coeff_a=0.000 coeff_b=0.000 coeff_c=20.410 coeff_d=2162.560 coeff_e=0.000
main 2021-08-16 16:33:34.935 [RAL:VERB] SX1302 rxrfchain 0: enable=1 freq=867.5MHz rssi_offset=-215.399994 type=5 tx_enable=1
main 2021-08-16 16:33:34.935 [RAL:VERB] SX1302 rxrfchain 1: enable=1 freq=868.5MHz rssi_offset=-215.399994 type=5 tx_enable=0
main 2021-08-16 16:33:34.935 [RAL:VERB] SX1302 ifchain 0: enable=1 rf_chain=1 freq=-400000 bw=0 SF=0 sync_word=0/0
main 2021-08-16 16:33:34.935 [RAL:VERB] SX1302 ifchain 1: enable=1 rf_chain=1 freq=-200000 bw=0 SF=0 sync_word=0/0
main 2021-08-16 16:33:34.935 [RAL:VERB] SX1302 ifchain 2: enable=1 rf_chain=1 freq=0 bw=0 SF=0 sync_word=0/0
main 2021-08-16 16:33:34.935 [RAL:VERB] SX1302 ifchain 3: enable=1 rf_chain=0 freq=-400000 bw=0 SF=0 sync_word=0/0
main 2021-08-16 16:33:34.935 [RAL:VERB] SX1302 ifchain 4: enable=1 rf_chain=0 freq=-200000 bw=0 SF=0 sync_word=0/0
main 2021-08-16 16:33:34.935 [RAL:VERB] SX1302 ifchain 5: enable=1 rf_chain=0 freq=0 bw=0 SF=0 sync_word=0/0
main 2021-08-16 16:33:34.935 [RAL:VERB] SX1302 ifchain 6: enable=1 rf_chain=0 freq=200000 bw=0 SF=0 sync_word=0/0
main 2021-08-16 16:33:34.935 [RAL:VERB] SX1302 ifchain 7: enable=1 rf_chain=0 freq=400000 bw=0 SF=0 sync_word=0/0
main 2021-08-16 16:33:34.935 [RAL:VERB] SX1302 ifchain 8: enable=1 rf_chain=1 freq=-200000 bw=5 SF=7 sync_word=0/0 [STD] Explicit header
main 2021-08-16 16:33:34.935 [RAL:VERB] SX1302 ifchain 9: enable=1 rf_chain=1 freq=300000 bw=4 SF=50000 sync_word=0/0
main 2021-08-16 16:33:34.935 [RAL:VERB] Station device: /dev/spidev0.0 (PPS capture disabled)
main 2021-08-16 16:33:34.936 [RAL:ERRO] Concentrator start failed: lgw_start
main 2021-08-16 16:33:34.936 [RAL:ERRO] ral_config failed with status 0x08
main 2021-08-16 16:33:34.936 [any:ERRO] Closing connection to muxs - error in s2e_onMsg
main 2021-08-16 16:33:34.936 [AIO:DEBU] [3] ws_close reason=1000
main 2021-08-16 16:33:34.936 [AIO:DEBU] Echoing close - reason=1000
main 2021-08-16 16:33:34.955 [AIO:DEBU] [3|WS] Server sent close: reason=1000
main 2021-08-16 16:33:34.955 [AIO:DEBU] [3] WS connection shutdown...
main 2021-08-16 16:33:34.955 [TCE:VERB] Connection to MUXS closed in state -1
main 2021-08-16 16:33:34.955 [TCE:INFO] INFOS reconnect backoff 10s (retry 1)
The error is caused by the BasicStation code not being able to reset the concentrator. Now, there are few things to check when this happens:
Is it the right chip model? The RAK2287 uses the SX1302 so that’s ok according to the logs
Does the module use SPI interface? Be aware that RAK is selling SPI and USB variants of the RAK2287. At the time being only the SPI variant is supported
Is the reset PIN or GPIO correct? If you are using a RAK hat then the GW_RESET_PIN should be 11 (this is equivalent to GW_RESET_GPIO=17), looks right on the logs as well
Wiring problems, dust,… shoulnd’t be the reason but if all the rest is OK then…
So I would say: double check you got the SPI version of the RAK2287 (maybe checking the original order confirmation).
Is it a software or hardware limitation? In other words: should I rather order the SPI version, or should I wait until the software supports the USB version?
It’s is a software issue. Hardware-wise, you will have to connect the hat microUSB to the Raspberry Pi USB ports since there is no USB interface on the 40-pin header.
I see similar errors in my console output. The reset fails like in @laurens example, but the concentrator is still starting. In my case, I have the SPI interface version of RAK2287 rather than the USB version. MODEL has been set to SX1302 through a balena environment variable, GW_RESET_PIN=11, and GW_RESET_GPIO=17.
I have defined GW_RESET_GPIO to be 17 through the environment variable, and this also sets SX1302_POWER_EN_PIN to 17 (as per the lines above). When overriding this, setting GW_POWER_EN_PIN to 18, the scripts run without errors.
I just found a post from @TonySmith which seems to be of relevance.
Tony writes:
To get it working with a RAK gateway I had to
1 - Change the Reset pin number from Pin23 to Pin 17 in the file reset_lgw.sh 2 - removed the use of the “Power Enable” pin in the same file as the gateway has no enable pin (my emphasis)
Sorry for intrusion but is there any benefits to use that setup instead of the default one with raspbian images supplied by RakWireless ? I’m struggling here to get my RAK2287 kit to work and connect at TTN following RakWireless wiki and applying modification they told me to get it to work with TTS instead of TTN
Thanks