RAK2287 with BasicStation and AWS IoTCore

Hello,

I’m trying to get the RAK2287 gateway working with my RaspberryPi and AWS IoTCore. It seems like BasicStation is the way to do this, and I’ve managed to set up the CUPS authentication, etc on AWS IoTCore. I’ve compile basicstation using make platform=corecell since that uses the sx1302, rather than the sx1301 that is used for the platform=rpi.

The output I am getting is below, but the main problem I’m getting is [RAL:ERRO] Concentrator start failed: lgw_start

Any ideas/advice would be appreciated!

2021-09-29 13:05:55.910 [SYS:INFO] Logging     : stderr (maxsize=10000000, rotate=3)
2021-09-29 13:05:55.910 [SYS:INFO] Station Ver : 2.0.5(corecell/std) 2021-09-29 13:02:44
2021-09-29 13:05:55.910 [SYS:INFO] Package Ver : 1.0.0
2021-09-29 13:05:55.910 [SYS:INFO] proto EUI   : 0:dca6:3205:f1a        (/sys/class/net/eth0/address)
2021-09-29 13:05:55.910 [SYS:INFO] prefix EUI  : ::1    (builtin)
2021-09-29 13:05:55.910 [SYS:INFO] Station EUI : dca6:32ff:fe05:f1a
2021-09-29 13:05:55.910 [SYS:INFO] Station home: ./     (builtin)
2021-09-29 13:05:55.910 [SYS:INFO] Station temp: /var/tmp/      (builtin)
2021-09-29 13:05:56.112 [TCE:INFO] Starting TC engine
2021-09-29 13:05:56.113 [any:INFO] ./tc.trust:
cert. version     : 3
serial number     : A7:0E:4A:4C:34:82:B7:7F
issuer name       : C=US, O=Starfield Technologies, Inc., OU=Starfield Class 2 Certification Authority
subject name      : C=US, ST=Arizona, L=Scottsdale, O=Starfield Technologies, Inc., CN=Starfield Services Root Certificate Authority - G2
issued  on        : 2009-09-02 00:00:00
expires on        : 2034-06-28 17:39:16
signed using      : RSA with SHA-256
RSA key size      : 2048 bits
basic con2021-09-29 13:05:56.121 [any:INFO] ./tc.crt:
cert. version     : 3
serial number     : 0F:AC:53:CD:FE:9E:43:08:EE:0F:87:D8:AE:4A:4A:B3:E2:25:C7:39
issuer name       : OU=Amazon Web Services O=Amazon.com Inc. L=Seattle ST=Washington C=US
subject name      : CN=AWS IoT Certificate
issued  on        : 2021-09-29 12:54:49
expires on        : 2049-12-31 23:59:59
signed using      : RSA with SHA-256
RSA key size      : 2048 bits
basic constraints : CA=false
key usage         : Digital Signature
2021-09-29 13:05:56.121 [AIO:INFO]
2021-09-29 13:05:56.331 [AIO:XDEB] [3] ws_connecting state=1
2021-09-29 13:05:56.332 [TCE:INFO] Connecting to INFOS: wss://A3OQ74V8656RDU.lns.lorawan.us-west-2.amazonaws.com:443
2021-09-29 13:05:56.332 [CUP:INFO] Starting a CUPS session in 0 seconds.
2021-09-29 13:05:56.332 [CUP:INFO] Starting a CUPS session now.
2021-09-29 13:05:56.332 [CUP:INFO] Connecting to CUPS ... https://A3OQ74V8656RDU.cups.lorawan.us-west-2.amazonaws.com:443 (try #1)
2021-09-29 13:05:56.332 [any:INFO] ./cups.trust:
cert. version     : 3
serial number     : A7:0E:4A:4C:34:82:B7:7F
issuer name       : C=US, O=Starfield Technologies, Inc., OU=Starfield Class 2 Certification Authority
subject name      : C=US, ST=Arizona, L=Scottsdale, O=Starfield Technologies, Inc., CN=Starfield Services Root Certificate Authority - G2
issued  on        : 2009-09-02 00:00:00
expires on        : 2034-06-28 17:39:16
signed using      : RSA with SHA-256
RSA key size      : 2048 bits
basic c2021-09-29 13:05:56.341 [any:INFO] ./cups.crt:
cert. version     : 3
serial number     : 2F:B2:92:89:7F:3C:5C:D7:89:CB:36:E6:5A:1B:82:93:A7:9D:AF:B6
issuer name       : OU=Amazon Web Services O=Amazon.com Inc. L=Seattle ST=Washington C=US
subject name      : CN=AWS IoT Certificate
issued  on        : 2021-09-27 10:25:44
expires on        : 2049-12-31 23:59:59
signed using      : RSA with SHA-256
RSA key size      : 2048 bits
basic constraints : CA=false
key usage         : Digital Signature
2021-09-29 13:05:56.341 [AIO:INFO]
2021-09-29 13:05:56.557 [CUP:VERB] Retrieving update-info from CUPS https://A3OQ74V8656RDU.cups.lorawan.us-west-2.amazonaws.com:443...
2021-09-29 13:05:56.558 [AIO:XDEB] [3] ws_connecting state=1
2021-09-29 13:05:56.964 [AIO:XDEB] [3] ws_connecting state=1
2021-09-29 13:05:56.965 [AIO:XDEB] [3] ws_connecting state=2
2021-09-29 13:05:57.132 [AIO:XDEB] [3] ws_connecting state=3
2021-09-29 13:05:57.132 [AIO:XDEB] [3|WS] > {"router":"dca6:32ff:fe05:f1a"}
2021-09-29 13:05:57.189 [AIO:XDEB] [4] http_read state=4
2021-09-29 13:05:57.299 [AIO:XDEB] [3|WS] < {"router":"dca6:32ff:fe05:0f1a","muxs":"dca6:32ff:fe05:0f1a","uri":"wss://A3OQ74V8656RDU.lns.lorawan.us-west-2.amazonaws.com:443/gateway/dca632fffe050f1a"}
2021-09-29 13:05:57.300 [TCE:INFO] Infos: dca6:32ff:fe05:0f1a dca6:32ff:fe05:0f1a wss://A3OQ74V8656RDU.lns.lorawan.us-west-2.amazonaws.com:443/gateway/dca632fffe050f1a
2021-09-29 13:05:57.300 [AIO:DEBU] [3] ws_close reason=1000
2021-09-29 13:05:57.300 [AIO:XDEB] [3] ws_closing_w state=5
2021-09-29 13:05:57.300 [AIO:DEBU] Echoing close - reason=1000
2021-09-29 13:05:57.300 [AIO:DEBU] [3|WS] Server sent close: reason=1006
2021-09-29 13:05:57.300 [AIO:DEBU] [3] WS connection shutdown...
2021-09-29 13:05:57.300 [any:INFO] ./tc.trust:
cert. version     : 3
serial number     : A7:0E:4A:4C:34:82:B7:7F
issuer name       : C=US, O=Starfield Technologies, Inc., OU=Starfield Class 2 Certification Authority
subject name      : C=US, ST=Arizona, L=Scottsdale, O=Starfield Technologies, Inc., CN=Starfield Services Root Certificate Authority - G2
issued  on        : 2009-09-02 00:00:00
expires on        : 2034-06-28 17:39:16
signed using      : RSA with SHA-256
RSA key size      : 2048 bits
basic con2021-09-29 13:05:57.303 [any:INFO] ./tc.crt:
cert. version     : 3
serial number     : 0F:AC:53:CD:FE:9E:43:08:EE:0F:87:D8:AE:4A:4A:B3:E2:25:C7:39
issuer name       : OU=Amazon Web Services O=Amazon.com Inc. L=Seattle ST=Washington C=US
subject name      : CN=AWS IoT Certificate
issued  on        : 2021-09-29 12:54:49
expires on        : 2049-12-31 23:59:59
signed using      : RSA with SHA-256
RSA key size      : 2048 bits
basic constraints : CA=false
key usage         : Digital Signature
2021-09-29 13:05:57.303 [AIO:INFO]
2021-09-29 13:05:57.512 [AIO:XDEB] [3] ws_connecting state=1
2021-09-29 13:05:57.512 [TCE:VERB] Connecting to MUXS...
2021-09-29 13:05:57.512 [AIO:XDEB] [4] http_read state=4
2021-09-29 13:05:57.512 [AIO:DEBU] [4] HTTP connection shutdown...
2021-09-29 13:05:57.512 [CUP:INFO] Interaction with CUPS done (no updates) - next regular check in 1d
2021-09-29 13:05:57.708 [AIO:XDEB] [3] ws_connecting state=1
2021-09-29 13:05:57.709 [AIO:XDEB] [3] ws_connecting state=1
2021-09-29 13:05:57.712 [AIO:XDEB] [3] ws_connecting state=1
2021-09-29 13:05:57.715 [AIO:XDEB] [3] ws_connecting state=1
2021-09-29 13:05:58.116 [AIO:XDEB] [3] ws_connecting state=1
2021-09-29 13:05:58.117 [AIO:XDEB] [3] ws_connecting state=2
2021-09-29 13:05:58.288 [AIO:XDEB] [3] ws_connecting state=3
2021-09-29 13:05:58.288 [TCE:VERB] Connected to MUXS.
2021-09-29 13:05:58.288 [AIO:XDEB] [3|WS] > {"msgtype":"version","station":"2.0.5(corecell/std)","firmware":"1.0.0","package":"1.0.0","model":"corecell","protocol":2,"features":"rmtsh"}
ERROR: Failed to stop TX trigger
ERROR: Failed to stop TX trigger
ERROR: failed to close I2C device (err=-1)
2021-09-29 13:05:58.460 [AIO:XDEB] [3|WS] < {"msgtype":"router_config","NetID":null,"JoinEUI":null,"region":"EU868","hwspec":"sx1301/1","freq_range":[863000000,870000000],"DRs":[[12,125,0],[11,125,0],[10,125,0],[9,125,0],[8,125,0],[7,125,0],[7,250,0],[0,0,0],[-1,0,0],[-1,0,0],[-1,0,0],[-1,0,0],[-1,0,0],[-1,0,0],[-1,0,0],[-1,0,0]],"sx1301_conf":[{"radio_0":{"enable":true,"freq":867500000},"radio_1":{"enable":true,"freq":868500000},"chan_FSK":{"enable":true},"chan_Lora_std":{"enable":true,"radio":1,"if"
2021-09-29 13:05:58.460 [AIO:XDEB] [3|WS] . :-200000,"bandwidth":250000,"spread_factor":7},"chan_multiSF_0":{"enable":true,"radio":0,"if":-400000},"chan_multiSF_1":{"enable":true,"radio":0,"if":-200000},"chan_multiSF_2":{"enable":true,"radio":0,"if":0},"chan_multiSF_3":{"enable":true,"radio":0,"if":200000},"chan_multiSF_4":{"enable":true,"radio":0,"if":400000},"chan_multiSF_5":{"enable":true,"radio":1,"if":-400000},"chan_multiSF_6":{"enable":true,"radio":1,"if":-200000},"chan_multiSF_7":{"enable":true
2021-09-29 13:05:58.460 [AIO:XDEB] [3|WS] . ,"radio":1,"if":0}}],"protocol":0,"regionid":0,"max_eirp":0}
2021-09-29 13:05:58.460 [S2E:WARN] Unknown field in router_config - ignored: protocol (0xFD309030)
2021-09-29 13:05:58.460 [S2E:WARN] Unknown field in router_config - ignored: regionid (0xE6FFB211)
2021-09-29 13:05:58.461 [RAL:INFO] Lora gateway library version: Version: 1.0.5;
2021-09-29 13:05:58.473 [RAL:VERB] Connecting to device: /dev/spidev0.0
2021-09-29 13:05:58.473 [RAL:DEBU] SX130x txlut table (0 entries)
2021-09-29 13:05:58.473 [RAL:VERB] SX1302 rssi_tcomp: coeff_a=0.000 coeff_b=0.000 coeff_c=0.000 coeff_d=0.000 coeff_e=0.000
2021-09-29 13:05:58.473 [RAL:VERB] SX1302 rxrfchain 0: enable=1 freq=867.5MHz rssi_offset=-166.000000 type=2 tx_enable=1
2021-09-29 13:05:58.473 [RAL:VERB] SX1302 rxrfchain 1: enable=1 freq=868.5MHz rssi_offset=-166.000000 type=2 tx_enable=0
2021-09-29 13:05:58.473 [RAL:VERB] SX1302 ifchain  0: enable=1 rf_chain=0 freq=-400000 bw=0 SF=0 sync_word=0/0
2021-09-29 13:05:58.473 [RAL:VERB] SX1302 ifchain  1: enable=1 rf_chain=0 freq=-200000 bw=0 SF=0 sync_word=0/0
2021-09-29 13:05:58.473 [RAL:VERB] SX1302 ifchain  2: enable=1 rf_chain=0 freq=0 bw=0 SF=0 sync_word=0/0
2021-09-29 13:05:58.473 [RAL:VERB] SX1302 ifchain  3: enable=1 rf_chain=0 freq=200000 bw=0 SF=0 sync_word=0/0
2021-09-29 13:05:58.473 [RAL:VERB] SX1302 ifchain  4: enable=1 rf_chain=0 freq=400000 bw=0 SF=0 sync_word=0/0
2021-09-29 13:05:58.473 [RAL:VERB] SX1302 ifchain  5: enable=1 rf_chain=1 freq=-400000 bw=0 SF=0 sync_word=0/0
2021-09-29 13:05:58.473 [RAL:VERB] SX1302 ifchain  6: enable=1 rf_chain=1 freq=-200000 bw=0 SF=0 sync_word=0/0
2021-09-29 13:05:58.473 [RAL:VERB] SX1302 ifchain  7: enable=1 rf_chain=1 freq=0 bw=0 SF=0 sync_word=0/0
2021-09-29 13:05:58.473 [RAL:VERB] SX1302 ifchain  8: enable=1 rf_chain=1 freq=-200000 bw=5 SF=7 sync_word=0/0 [STD] Explicit header
2021-09-29 13:05:58.473 [RAL:VERB] SX1302 ifchain  9: enable=1 rf_chain=0 freq=0 bw=0 SF=0 sync_word=0/0
2021-09-29 13:05:58.474 [RAL:VERB] Station device: /dev/spidev0.0 (PPS capture disabled)
ERROR: Failed to load fw
ERROR: Failed to load calibration fw
ERROR: radio calibration failed
2021-09-29 13:05:59.568 [RAL:ERRO] Concentrator start failed: lgw_start
2021-09-29 13:05:59.568 [RAL:ERRO] ral_config failed with status 0x08
2021-09-29 13:05:59.568 [any:ERRO] Closing connection to muxs - error in s2e_onMsg
2021-09-29 13:05:59.568 [AIO:DEBU] [3] ws_close reason=1000
2021-09-29 13:05:59.568 [AIO:XDEB] [3] ws_closing_w state=5
2021-09-29 13:05:59.568 [AIO:DEBU] Echoing close - reason=1000
2021-09-29 13:05:59.739 [AIO:DEBU] [3|WS] Server sent close: reason=1000
2021-09-29 13:05:59.740 [AIO:DEBU] [3] WS connection shutdown...
2021-09-29 13:05:59.740 [TCE:VERB] Connection to MUXS closed in state -1
2021-09-29 13:05:59.740 [TCE:INFO] INFOS reconnect backoff 10s (retry 1)
2021-09-29 12:47:46.916 [any:INFO] ./tc.trust:
cert. version     : 3
serial number     : A7:0E:4A:4C:34:82:B7:7F
issuer name       : C=US, O=Starfield Technologies, Inc., OU=Starfield Class 2 Certification Authority
subject name      : C=US, ST=Arizona, L=Scottsdale, O=Starfield Technologies, Inc., CN=Starfield Services Root Certificate Authority - G2
issued  on        : 2009-09-02 00:00:00
expires on        : 2034-06-28 17:39:16
signed using      : RSA with SHA-256
RSA key size      : 2048 bits
basic con2021-09-29 12:47:46.924 [any:INFO] ./tc.crt:
cert. version     : 3
serial number     : EB:33:6F:F1:4F:46:6D:3E:DB:4C:4D:E3:54:5B:62:06:84:5E:67:4D
issuer name       : OU=Amazon Web Services O=Amazon.com Inc. L=Seattle ST=Washington C=US
subject name      : CN=AWS IoT Certificate
issued  on        : 2021-09-29 12:38:15
expires on        : 2049-12-31 23:59:59
signed using      : RSA with SHA-256
RSA key size      : 2048 bits
basic constraints : CA=false
key usage         : Digital Signature
2021-09-29 12:47:46.924 [AIO:INFO]
2021-09-29 12:47:47.176 [AIO:XDEB] [3] ws_connecting state=1
2021-09-29 12:47:47.176 [TCE:INFO] Connecting to INFOS: wss://A3OQ74V8656RDU.lns.lorawan.us-west-2.amazonaws.com:443
2021-09-29 12:47:47.380 [AIO:XDEB] [3] ws_connecting state=1
2021-09-29 12:47:47.381 [AIO:XDEB] [3] ws_connecting state=1
2021-09-29 12:47:47.381 [AIO:XDEB] [3] ws_connecting state=1
2021-09-29 12:47:47.382 [AIO:XDEB] [3] ws_connecting state=1
2021-09-29 12:47:47.827 [AIO:XDEB] [3] ws_connecting state=1
2021-09-29 12:47:47.827 [AIO:XDEB] [3] ws_connecting state=2
2021-09-29 12:47:48.015 [AIO:XDEB] [3] ws_connecting state=3
2021-09-29 12:47:48.015 [AIO:XDEB] [3|WS] > {"router":"dca6:32ff:fe05:f1a"}
2021-09-29 12:47:48.206 [AIO:XDEB] [3|WS] < {"router":"dca6:32ff:fe05:0f1a","muxs":"dca6:32ff:fe05:0f1a","uri":"wss://A3OQ74V8656RDU.lns.lorawan.us-west-2.amazonaws.com:443/gateway/dca632fffe050f1a"}
2021-09-29 12:47:48.206 [TCE:INFO] Infos: dca6:32ff:fe05:0f1a dca6:32ff:fe05:0f1a wss://A3OQ74V8656RDU.lns.lorawan.us-west-2.amazonaws.com:443/gateway/dca632fffe050f1a
2021-09-29 12:47:48.206 [AIO:DEBU] [3] ws_close reason=1000
2021-09-29 12:47:48.206 [AIO:XDEB] [3] ws_closing_w state=5
2021-09-29 12:47:48.206 [AIO:DEBU] Echoing close - reason=1000
2021-09-29 12:47:48.206 [AIO:DEBU] [3|WS] Server sent close: reason=1006
2021-09-29 12:47:48.206 [AIO:DEBU] [3] WS connection shutdown...
2021-09-29 12:47:48.206 [any:INFO] ./tc.trust:
cert. version     : 3
serial number     : A7:0E:4A:4C:34:82:B7:7F
issuer name       : C=US, O=Starfield Technologies, Inc., OU=Starfield Class 2 Certification Authority
subject name      : C=US, ST=Arizona, L=Scottsdale, O=Starfield Technologies, Inc., CN=Starfield Services Root Certificate Authority - G2
issued  on        : 2009-09-02 00:00:00
expires on        : 2034-06-28 17:39:16
signed using      : RSA with SHA-256
RSA key size      : 2048 bits
basic con2021-09-29 12:47:48.210 [any:INFO] ./tc.crt:
cert. version     : 3
serial number     : EB:33:6F:F1:4F:46:6D:3E:DB:4C:4D:E3:54:5B:62:06:84:5E:67:4D
issuer name       : OU=Amazon Web Services O=Amazon.com Inc. L=Seattle ST=Washington C=US
subject name      : CN=AWS IoT Certificate
issued  on        : 2021-09-29 12:38:15
expires on        : 2049-12-31 23:59:59
signed using      : RSA with SHA-256
RSA key size      : 2048 bits
basic constraints : CA=false
key usage         : Digital Signature
2021-09-29 12:47:48.210 [AIO:INFO]
2021-09-29 12:47:48.413 [AIO:XDEB] [3] ws_connecting state=1
2021-09-29 12:47:48.414 [TCE:VERB] Connecting to MUXS...
2021-09-29 12:47:48.600 [AIO:XDEB] [3] ws_connecting state=1
2021-09-29 12:47:48.601 [AIO:XDEB] [3] ws_connecting state=1
2021-09-29 12:47:48.603 [AIO:XDEB] [3] ws_connecting state=1
2021-09-29 12:47:48.606 [AIO:XDEB] [3] ws_connecting state=1
2021-09-29 12:47:49.013 [AIO:XDEB] [3] ws_connecting state=1
2021-09-29 12:47:49.014 [AIO:XDEB] [3] ws_connecting state=2
2021-09-29 12:47:49.185 [AIO:XDEB] [3] ws_connecting state=3
2021-09-29 12:47:49.185 [TCE:VERB] Connected to MUXS.
2021-09-29 12:47:49.185 [AIO:XDEB] [3|WS] > {"msgtype":"version","station":"2.0.5(rpi/std)","firmware":"1.0.0","package":"1.0.0","model":"rpi","protocol":2,"features":"rmtsh"}
lgw_board_setconf:449: Note: board configuration; lorawan_public:1, clksrc:1
lgw_rxrf_setconf:498: WARNING: NOT A VALID TX NOTCH FILTER FREQUENCY [126000..250000]Hz
lgw_rxrf_setconf:510: Note: rf_chain 0 configuration; en:1 freq:867500000 rssi_offset:-166.000000 radio_type:2 tx_enable:1 tx_notch_freq:0
lgw_rxrf_setconf:510: Note: rf_chain 1 configuration; en:1 freq:868500000 rssi_offset:-166.000000 radio_type:2 tx_enable:0 tx_notch_freq:0
lgw_rxif_setconf:629: Note: LoRa 'multi' if_chain 0 configuration; en:1 freq:-400000 SF_mask:0x7e
lgw_rxif_setconf:629: Note: LoRa 'multi' if_chain 1 configuration; en:1 freq:-200000 SF_mask:0x7e
lgw_rxif_setconf:629: Note: LoRa 'multi' if_chain 2 configuration; en:1 freq:0 SF_mask:0x7e
lgw_rxif_setconf:629: Note: LoRa 'multi' if_chain 3 configuration; en:1 freq:200000 SF_mask:0x7e
lgw_rxif_setconf:629: Note: LoRa 'multi' if_chain 4 configuration; en:1 freq:400000 SF_mask:0x7e
lgw_rxif_setconf:629: Note: LoRa 'multi' if_chain 5 configuration; en:1 freq:-400000 SF_mask:0x7e
lgw_rxif_setconf:629: Note: LoRa 'multi' if_chain 6 configuration; en:1 freq:-200000 SF_mask:0x7e
lgw_rxif_setconf:629: Note: LoRa 'multi' if_chain 7 configuration; en:1 freq:0 SF_mask:0x7e
lgw_rxif_setconf:603: Note: LoRa 'std' if_chain 8 configuration; en:1 freq:-200000 bw:2 dr:2
lgw_rxif_setconf:659: Note: FSK if_chain 9 configuration; en:1 freq:0 bw:2 dr:64000 (64000 real dr) sync:0xC194C1
2021-09-29 12:47:49.355 [AIO:XDEB] [3|WS] < {"msgtype":"router_config","NetID":null,"JoinEUI":null,"region":"EU868","hwspec":"sx1301/1","freq_range":[863000000,870000000],"DRs":[[12,125,0],[11,125,0],[10,125,0],[9,125,0],[8,125,0],[7,125,0],[7,250,0],[0,0,0],[-1,0,0],[-1,0,0],[-1,0,0],[-1,0,0],[-1,0,0],[-1,0,0],[-1,0,0],[-1,0,0]],"sx1301_conf":[{"radio_0":{"enable":true,"freq":867500000},"radio_1":{"enable":true,"freq":868500000},"chan_FSK":{"enable":true},"chan_Lora_std":{"enable":true,"radio":1,"if"
2021-09-29 12:47:49.355 [AIO:XDEB] [3|WS] . :-200000,"bandwidth":250000,"spread_factor":7},"chan_multiSF_0":{"enable":true,"radio":0,"if":-400000},"chan_multiSF_1":{"enable":true,"radio":0,"if":-200000},"chan_multiSF_2":{"enable":true,"radio":0,"if":0},"chan_multiSF_3":{"enable":true,"radio":0,"if":200000},"chan_multiSF_4":{"enable":true,"radio":0,"if":400000},"chan_multiSF_5":{"enable":true,"radio":1,"if":-400000},"chan_multiSF_6":{"enable":true,"radio":1,"if":-200000},"chan_multiSF_7":{"enable":true
2021-09-29 12:47:49.355 [AIO:XDEB] [3|WS] . ,"radio":1,"if":0}}],"protocol":0,"regionid":0,"max_eirp":0}
2021-09-29 12:47:49.355 [S2E:WARN] Unknown field in router_config - ignored: protocol (0xFD309030)
2021-09-29 12:47:49.355 [S2E:WARN] Unknown field in router_config - ignored: regionid (0xE6FFB211)
2021-09-29 12:47:49.355 [RAL:INFO] Lora gateway library version: Version: 5.0.1;
2021-09-29 12:47:49.360 [RAL:VERB] Connecting to device: /dev/spidev0.0
2021-09-29 12:47:49.360 [RAL:DEBU] SX130x txlut table (0 entries)
2021-09-29 12:47:49.360 [RAL:VERB] SX1301 rxrfchain 0: enable=1 freq=867.5MHz rssi_offset=-166.000000 type=2 tx_enable=1 tx_notch_freq=0
2021-09-29 12:47:49.360 [RAL:VERB] SX1301 rxrfchain 1: enable=1 freq=868.5MHz rssi_offset=-166.000000 type=2 tx_enable=0 tx_notch_freq=0
2021-09-29 12:47:49.360 [RAL:VERB] SX1301 ifchain  0: enable=1 rf_chain=0 freq=-400000 bandwidth=0 datarate=0 sync_word=0/0
2021-09-29 12:47:49.360 [RAL:VERB] SX1301 ifchain  1: enable=1 rf_chain=0 freq=-200000 bandwidth=0 datarate=0 sync_word=0/0
2021-09-29 12:47:49.360 [RAL:VERB] SX1301 ifchain  2: enable=1 rf_chain=0 freq=0 bandwidth=0 datarate=0 sync_word=0/0
2021-09-29 12:47:49.360 [RAL:VERB] SX1301 ifchain  3: enable=1 rf_chain=0 freq=200000 bandwidth=0 datarate=0 sync_word=0/0
2021-09-29 12:47:49.360 [RAL:VERB] SX1301 ifchain  4: enable=1 rf_chain=0 freq=400000 bandwidth=0 datarate=0 sync_word=0/0
2021-09-29 12:47:49.360 [RAL:VERB] SX1301 ifchain  5: enable=1 rf_chain=1 freq=-400000 bandwidth=0 datarate=0 sync_word=0/0
2021-09-29 12:47:49.361 [RAL:VERB] SX1301 ifchain  6: enable=1 rf_chain=1 freq=-200000 bandwidth=0 datarate=0 sync_word=0/0
2021-09-29 12:47:49.361 [RAL:VERB] SX1301 ifchain  7: enable=1 rf_chain=1 freq=0 bandwidth=0 datarate=0 sync_word=0/0
2021-09-29 12:47:49.361 [RAL:VERB] SX1301 ifchain  8: enable=1 rf_chain=1 freq=-200000 bandwidth=2 datarate=2 sync_word=0/0
2021-09-29 12:47:49.361 [RAL:VERB] SX1301 ifchain  9: enable=1 rf_chain=0 freq=0 bandwidth=0 datarate=0 sync_word=0/0
2021-09-29 12:47:49.361 [RAL:VERB] SX130x LBT not enabled
2021-09-29 12:47:49.361 [RAL:VERB] Station device: /dev/spidev0.0 (PPS capture disabled)
ERROR: FAIL TO CONNECT BOARD
2021-09-29 12:47:49.361 [RAL:ERRO] Concentrator start failed: lgw_start
2021-09-29 12:47:49.361 [RAL:ERRO] ral_config failed with status 0x08
2021-09-29 12:47:49.361 [any:ERRO] Closing connection to muxs - error in s2e_onMsg
2021-09-29 12:47:49.361 [AIO:DEBU] [3] ws_close reason=1000
2021-09-29 12:47:49.361 [AIO:XDEB] [3] ws_closing_w state=5
2021-09-29 12:47:49.361 [AIO:DEBU] Echoing close - reason=1000
2021-09-29 12:47:49.531 [AIO:DEBU] [3|WS] Server sent close: reason=1000
2021-09-29 12:47:49.531 [AIO:DEBU] [3] WS connection shutdown...
2021-09-29 12:47:49.532 [TCE:VERB] Connection to MUXS closed in state -1
2021-09-29 12:47:49.532 [TCE:INFO] INFOS reconnect backoff 10s (retry 1)

One of the first errors you get concerns the lack of the temperature sensor on this card to compensate received RSSI. You probably want to look at the difference between the Semtech and RAK versions of the classic packet forwarder to get some ideas there.

Then its possible you haven’t reduced the SPI clock speed (I’m not absolutely sure the 2287 needs that they way the 2247 did, but it’s a decent guess).

Ultimately the maker of a concentrator card also has a choice which of the two radio chips to use as a clock source, and which to use for transmission, those need to match the software configuration as well. Classically that’s in the global_conf.json so you might like at a RAK2287.

It looks like your code is using clksrc:1 while I’m pretty sure the rak2287 should have clksrc 0, or at least that’s what’s working for me with a classic packet forwarder (feeding a local bridge)