connecting Lora gateway to aws IoT core
Hi,
I have a Wise 6610 lora gateway and I wanted to connect it to aws IoT, I created the gateway using the following link: https://docs.aws.amazon.com/iot-wireless/latest/developerguide/lorawan-gateway-connection-status.html and I used this one :https://www.advantech.com/en/support/details/faq?id=1-2BRBVVD for the gateway side set up. but after I uploaded the CUPS trust, cert, and key The aws refused connection, here is the log in my gateway:
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 cert. version : 3
serial number : 97:16:1E:84:C3:0B:59:89:62:75:E1:AA:17:6F:63:77:E4:5F:3C:74
issuer name : OU=Amazon Web Services O=Amazon.com Inc. L=Seattle ST=Washington C=US
subject name : CN=AWS IoT Certificate
issued on : 2024-06-25 15:46:06
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 Signa2024-06-25 12:13:35.190 [TCE:INFO] Connecting to INFOS: wss://A2T0DLU2ZGPDHB.lns.lorawan.us-east-1.amazonaws.com:443
2024-06-25 12:13:37.865 [TCE:INFO] Infos: 74fe:48ff:fe7d:5979 74fe:48ff:fe7d:5979 wss://A2T0DLU2ZGPDHB.lns.lorawan.us-east-1.amazonaws.com:443/gateway/74fe48fffe7d5979
2024-06-25 12:13:37.865 [AIO:DEBU] [4] ws_close reason=1000
2024-06-25 12:13:37.865 [AIO:DEBU] [4|WS] Server sent close: reason=1006
2024-06-25 12:13:37.865 [AIO:DEBU] [4] WS connection shutdown...
2024-06-25 12:13:37.868 [any:INFO] /opt/basicstation/work/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 cert. version : 3
serial number : 97:16:1E:84:C3:0B:59:89:62:75:E1:AA:17:6F:63:77:E4:5F:3C:74
issuer name : OU=Amazon Web Services O=Amazon.com Inc. L=Seattle ST=Washington C=US
subject name : CN=AWS IoT Certificate
issued on : 2024-06-25 15:46:06
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 Signa2024-06-25 12:13:37.995 [TCE:VERB] Connecting to MUXS...
2024-06-25 12:13:40.654 [TCE:VERB] Connected to MUXS.
2024-06-25 12:13:40.674 [S2E:WARN] Unknown field in router_config - ignored: protocol (0xFD309030)
2024-06-25 12:13:40.674 [S2E:WARN] Unknown field in router_config - ignored: regionid (0xE6FFB211)
2024-06-25 12:13:40.675 [RAL:INFO] Lora gateway library version: Version: 3.1.0; Options: ftdi;
2024-06-25 12:13:40.686 [RAL:VERB] Connecting to device: /dev/spidev0.0
2024-06-25 12:13:40.686 [RAL:DEBU] SX130x txlut table (0 entries)
2024-06-25 12:13:40.686 [RAL:VERB] SX1301 rxrfchain 0: enable=1 freq=904.3MHz rssi_offset=-166.000000 type=2 tx_enable=1 tx_notch_freq=0
2024-06-25 12:13:40.686 [RAL:VERB] SX1301 rxrfchain 1: enable=1 freq=905.3MHz rssi_offset=-166.000000 type=2 tx_enable=0 tx_notch_freq=0
2024-06-25 12:13:40.686 [RAL:VERB] SX1301 ifchain 0: enable=1 rf_chain=0 freq=-400000 bandwidth=0 datarate=0 sync_word=0/0
2024-06-25 12:13:40.686 [RAL:VERB] SX1301 ifchain 1: enable=1 rf_chain=0 freq=-200000 bandwidth=0 datarate=0 sync_word=0/0
2024-06-25 12:13:40.687 [RAL:VERB] SX1301 ifchain 2: enable=1 rf_chain=0 freq=0 bandwidth=0 datarate=0 sync_word=0/0
2024-06-25 12:13:40.687 [RAL:VERB] SX1301 ifchain 3: enable=1 rf_chain=0 freq=200000 bandwidth=0 datarate=0 sync_word=0/0
2024-06-25 12:13:40.687 [RAL:VERB] SX1301 ifchain 4: enable=1 rf_chain=0 freq=400000 bandwidth=0 datarate=0 sync_word=0/0
2024-06-25 12:13:40.687 [RAL:VERB] SX1301 ifchain 5: enable=1 rf_chain=1 freq=-400000 bandwidth=0 datarate=0 sync_word=0/0
2024-06-25 12:13:40.687 [RAL:VERB] SX1301 ifchain 6: enable=1 rf_chain=1 freq=-200000 bandwidth=0 datarate=0 sync_word=0/0
2024-06-25 12:13:40.687 [RAL:VERB] SX1301 ifchain 7: enable=1 rf_chain=1 freq=0 bandwidth=0 datarate=0 sync_word=0/0
2024-06-25 12:13:40.687 [RAL:VERB] SX1301 ifchain 8: enable=1 rf_chain=0 freq=300000 bandwidth=1 datarate=4 sync_word=0/0
2024-06-25 12:13:40.687 [RAL:VERB] SX1301 ifchain 9: enable=0 rf_chain=0 freq=0 bandwidth=0 datarate=0 sync_word=0/0
2024-06-25 12:13:40.687 [RAL:VERB] Station device: /dev/spidev0.0 (PPS capture disabled)
2024-06-25 12:13:40.689 [RAL:ERRO] Concentrator start failed: lgw_start
2024-06-25 12:13:40.690 [RAL:ERRO] ral_config failed with status 0x08
2024-06-25 12:13:40.690 [any:ERRO] Closing connection to muxs - error in s2e_onMsg
2024-06-25 12:13:40.690 [AIO:DEBU] [4] ws_close reason=1000
2024-06-25 12:13:40.690 [AIO:DEBU] Echoing close - reason=1000
2024-06-25 12:13:40.705 [AIO:DEBU] [4|WS] Server sent close: reason=1000
2024-06-25 12:13:40.706 [AIO:DEBU] [4] WS connection shutdown...
2024-06-25 12:13:40.708 [TCE:VERB] Connection to MUXS closed in state -1
2024-06-25 12:13:40.708 [TCE:INFO] INFOS reconnect backoff 10s (retry 1)
2024-06-25 12:13:50.709 [any:INFO] /opt/basicstation/work/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 cert. version : 3
serial number : 97:16:1E:84:C3:0B:59:89:62:75:E1:AA:17:6F:63:77:E4:5F:3C:74
issuer name : OU=Amazon Web Services O=Amazon.com Inc. L=Seattle ST=Washington C=US
subject name : CN=AWS IoT Certificate
issued on : 2024-06-25 15:46:06
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 Signa2024-06-25 12:13:50.836 [TCE:INFO] Connecting to INFOS: wss://A2T0DLU2ZGPDHB.lns.lorawan.us-east-1.amazonaws.com:443
2024-06-25 12:13:53.558 [TCE:INFO] Infos: 74fe:48ff:fe7d:5979 74fe:48ff:fe7d:5979 wss://A2T0DLU2ZGPDHB.lns.lorawan.us-east-1.amazonaws.com:443/gateway/74fe48fffe7d5979
2024-06-25 12:13:53.558 [AIO:DEBU] [4] ws_close reason=1000
2024-06-25 12:13:53.559 [AIO:DEBU] [4|WS] Server sent close: reason=1006
2024-06-25 12:13:53.559 [AIO:DEBU] [4] WS connection shutdown...
2024-06-25 12:13:53.561 [any:INFO] /opt/basicstation/work/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 cert. version : 3
serial number : 97:16:1E:84:C3:0B:59:89:62:75:E1:AA:17:6F:63:77:E4:5F:3C:74
issuer name : OU=Amazon Web Services O=Amazon.com Inc. L=Seattle ST=Washington C=US
subject name : CN=AWS IoT Certificate
issued on : 2024-06-25 15:46:06
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 Signa2024-06-25 12:13:53.688 [TCE:VERB] Connecting to MUXS...
2024-06-25 12:13:56.372 [TCE:VERB] Connected to MUXS.
2024-06-25 12:13:56.399 [S2E:WARN] Unknown field in router_config - ignored: protocol (0xFD309030)
2024-06-25 12:13:56.399 [S2E:WARN] Unknown field in router_config - ignored: regionid (0xE6FFB211)
2024-06-25 12:13:56.400 [RAL:INFO] Lora gateway library version: Version: 3.1.0; Options: ftdi;
2024-06-25 12:13:56.416 [RAL:VERB] Connecting to device: /dev/spidev0.0
2024-06-25 12:13:56.416 [RAL:DEBU] SX130x txlut table (0 entries)
2024-06-25 12:13:56.416 [RAL:VERB] SX1301 rxrfchain 0: enable=1 freq=904.3MHz rssi_offset=-166.000000 type=2 tx_enable=1 tx_notch_freq=0
2024-06-25 12:13:56.416 [RAL:VERB] SX1301 rxrfchain 1: enable=1 freq=905.3MHz rssi_offset=-166.000000 type=2 tx_enable=0 tx_notch_freq=0
2024-06-25 12:13:56.417 [RAL:VERB] SX1301 ifchain 0: enable=1 rf_chain=0 freq=-400000 bandwidth=0 datarate=0 sync_word=0/0
2024-06-25 12:13:56.417 [RAL:VERB] SX1301 ifchain 1: enable=1 rf_chain=0 freq=-200000 bandwidth=0 datarate=0 sync_word=0/0
2024-06-25 12:13:56.417 [RAL:VERB] SX1301 ifchain 2: enable=1 rf_chain=0 freq=0 bandwidth=0 datarate=0 sync_word=0/0
2024-06-25 12:13:56.417 [RAL:VERB] SX1301 ifchain 3: enable=1 rf_chain=0 freq=200000 bandwidth=0 datarate=0 sync_word=0/0
2024-06-25 12:13:56.417 [RAL:VERB] SX1301 ifchain 4: enable=1 rf_chain=0 freq=400000 bandwidth=0 datarate=0 sync_word=0/0
2024-06-25 12:13:56.417 [RAL:VERB] SX1301 ifchain 5: enable=1 rf_chain=1 freq=-400000 bandwidth=0 datarate=0 sync_word=0/0
2024-06-25 12:13:56.417 [RAL:VERB] SX1301 ifchain 6: enable=1 rf_chain=1 freq=-200000 bandwidth=0 datarate=0 sync_word=0/0
2024-06-25 12:13:56.417 [RAL:VERB] SX1301 ifchain 7: enable=1 rf_chain=1 freq=0 bandwidth=0 datarate=0 sync_word=0/0
2024-06-25 12:13:56.417 [RAL:VERB] SX1301 ifchain 8: enable=1 rf_chain=0 freq=300000 bandwidth=1 datarate=4 sync_word=0/0
2024-06-25 12:13:56.417 [RAL:VERB] SX1301 ifchain 9: enable=0 rf_chain=0 freq=0 bandwidth=0 datarate=0 sync_word=0/0
2024-06-25 12:13:56.417 [RAL:VERB] Station device: /dev/spidev0.0 (PPS capture disabled)
2024-06-25 12:13:56.419 [RAL:ERRO] Concentrator start failed: lgw_start
2024-06-25 12:13:56.420 [RAL:ERRO] ral_config failed with status 0x08
2024-06-25 12:13:56.420 [any:ERRO] Closing connection to muxs - error in s2e_onMsg
2024-06-25 12:13:56.420 [AIO:DEBU] [4] ws_close reason=1000
2024-06-25 12:13:56.420 [AIO:DEBU] Echoing close - reason=1000
2024-06-25 12:13:56.436 [AIO:DEBU] [4|WS] Server sent close: reason=1000
2024-06-25 12:13:56.436 [AIO:DEBU] [4] WS connection shutdown...
2024-06-25 12:13:56.437 [TCE:VERB] Connection to MUXS closed in state -1
2024-06-25 12:13:56.437 [TCE:INFO] INFOS reconnect backoff 10s (retry 1)
anyone had similar issue or have any idea how I can resolve this.
Thanks
- Newest
- Most votes
- Most comments
Hi. This doesn't appear to be a problem with connecting to AWS. Rather, Basic Station is not able to start the concentrator:
2024-06-25 12:13:40.689 [RAL:ERRO] Concentrator start failed: lgw_start
2024-06-25 12:13:40.690 [RAL:ERRO] ral_config failed with status 0x08
In my experience, this problem is because the pin configuration is wrong, the SPI clock speed is too high or you need to use the Basic Station reset script feature to make it reset your concentrator. I think you may need support from Advantech.
Relevant content
- asked 5 months agolg...
- asked 5 months agolg...
- asked 5 months agolg...
- Accepted Answerasked 3 years agolg...
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated a year ago