xoseperez / basicstation-docker

Basics™ Station Packet Forward protocol using Docker
41 stars 8 forks source link

Missing GPS Data: Time #19

Open davidgs opened 1 month ago

davidgs commented 1 month ago

In setting up my gateway (WM1302) I can't seem to get connected to the TTN servers with the following errors:

2024-05-24 14:50:37.318 [S2E:INFO] Beaconing every 2m8s on 923.3MHz(8) @ DR8 (frame layout 5/11/23)
basicstation  | 2024-05-24 14:50:37.318 [S2E:INFO] Beaconing suspend - missing GPS data: time
basicstation  | ERROR: Failed to set SX1250_0 in STANDBY_RC mode
basicstation  | 2024-05-24 14:50:38.990 [S00:ERRO] [lgw_start:908] failed to setup radio 0
basicstation  | 2024-05-24 14:50:38.990 [S00:ERRO] Concentrator start failed: lgw_start
basicstation  | 2024-05-24 14:50:38.990 [S00:CRIT] Slave radio start up failed with status 0x08
basicstation  | 2024-05-24 14:50:38.951 [RAL:ERRO] Slave (0) - EOF
basicstation  | 2024-05-24 14:50:38.952 [any:CRIT] Slave pid=42 idx=0: Fatal exit

I then get a series of:

Protocol
basicstation  | ------------------------------------------------------------------
basicstation  | Mode:          STATIC
basicstation  | Protocol:      CUPS
basicstation  | CUPS Server:   https://nam1.cloud.thethings.network:443
basicstation  | Gateway EUI:   98FC84FFFE5FC07A
basicstation  | EUI Source:    file
basicstation  |
basicstation  | Radio
basicstation  | ------------------------------------------------------------------
basicstation  | Model:         WM1302
basicstation  | Concentrator:  SX1302
basicstation  | Design:        CORECELL
basicstation  | Interface:     SPI
basicstation  | Radio Device:  /dev/spidev0.1
basicstation  | SPI Speed:     8000000
basicstation  | GPIO chip:     gpiochip0
basicstation  | Reset GPIO:    17
basicstation  | Enable GPIO:   18
basicstation  | Enable Logic:  1
basicstation  |
basicstation  | Killing process 40
2024-05-24 14:55:31.120 [SYS:INFO] Logging     : stderr (maxsize=10000000, rotate=3)
basicstation  | 2024-05-24 14:55:31.121 [SYS:INFO] Station Ver : 2.0.6(corecell/stdn) 2024-04-16 20:15:36
basicstation  | 2024-05-24 14:55:31.121 [SYS:INFO] Package Ver : (null)
basicstation  | 2024-05-24 14:55:31.121 [SYS:INFO] mbedTLS Ver : 2.28.0
basicstation  | 2024-05-24 14:55:31.121 [SYS:INFO] proto EUI   : 98fc:84ff:fe5f:c07a    (station.conf)
basicstation  | 2024-05-24 14:55:31.121 [SYS:INFO] prefix EUI  : ::1    (builtin)
basicstation  | 2024-05-24 14:55:31.121 [SYS:INFO] Station EUI : 98fc:84ff:fe5f:c07a
basicstation  | 2024-05-24 14:55:31.121 [SYS:INFO] Station home: ./ (builtin)
basicstation  | 2024-05-24 14:55:31.121 [SYS:INFO] Station temp: /var/tmp/  (builtin)
basicstation  | 2024-05-24 14:55:31.123 [RAL:DEBU] execvp argv[0]: </proc/self/exe>
basicstation  | 2024-05-24 14:55:31.123 [RAL:DEBU]        argv[1]: <-S>
basicstation  | 2024-05-24 14:55:31.123 [RAL:DEBU]        argv[2]: <(null)>
basicstation  | 2024-05-24 14:55:31.127 [S00:INFO] Logging     : stderr (maxsize=10000000, rotate=3)
basicstation  | 2024-05-24 14:55:31.127 [S00:INFO] Station Ver : 2.0.6(corecell/stdn) 2024-04-16 20:15:36
basicstation  | 2024-05-24 14:55:31.128 [S00:INFO] Package Ver : (null)
basicstation  | 2024-05-24 14:55:31.128 [S00:INFO] mbedTLS Ver : 2.28.0
basicstation  | 2024-05-24 14:55:31.128 [S00:INFO] proto EUI   : 98fc:84ff:fe5f:c07a    (station.conf)
basicstation  | 2024-05-24 14:55:31.128 [S00:INFO] prefix EUI  : ::1    (builtin)
basicstation  | 2024-05-24 14:55:31.129 [S00:INFO] Station EUI : 98fc:84ff:fe5f:c07a
basicstation  | 2024-05-24 14:55:31.129 [S00:INFO] Station home: ./ (builtin)
basicstation  | 2024-05-24 14:55:31.130 [S00:INFO] Station temp: /var/tmp/  (builtin)
basicstation  | 2024-05-24 14:55:31.130 [S00:INFO] Station slave: 0
basicstation  | 2024-05-24 14:55:31.130 [S00:INFO] Slave LGW (0) - started.
basicstation  | 2024-05-24 14:55:31.123 [RAL:INFO] Master has started slave: pid=43 idx=0 (attempt 1)
basicstation  | 2024-05-24 14:55:31.323 [TCE:INFO] Starting TC engine
basicstation  | 2024-05-24 14:55:31.324 [AIO:INFO] ./tc.trust:
basicstation  | cert. version     : 3
basicstation  | serial number     : 82:10:CF:B0:D2:40:E3:59:44:63:E0:BB:63:82:8B:00
basicstation  | issuer name       : C=US, O=Internet Security Research Group, CN=ISRG Root X1
basicstation  | subject name      : C=US, O=Internet Security Research Group, CN=ISRG Root X1
basicstation  | issued  on        : 2015-06-04 11:04:38
basicstation  | expires on        : 2035-06-04 11:04:38
basicstation  | signed using      : RSA with SHA-256
basicstation  | RSA key size      : 4096 bits
basicstation  | basic constraints : CA=true
basicstation  | key usage         : Key Cert Sign, CRL Sig2024-05-24 14:55:31.324 [TCE:INFO] Connecting to INFOS: wss://nam1.cloud.thethings.network:8887
basicstation  | 2024-05-24 14:55:31.419 [CUP:INFO] Starting a CUPS session in 0 seconds.
basicstation  | 2024-05-24 14:55:31.419 [CUP:INFO] Starting a CUPS session now.
basicstation  | 2024-05-24 14:55:31.419 [CUP:INFO] Connecting to CUPS ... https://nam1.cloud.thethings.network:443 (try #1)
basicstation  | 2024-05-24 14:55:31.479 [AIO:INFO] ./cups.trust:
basicstation  | cert. version     : 3
basicstation  | serial number     : 04:00:00:00:00:01:15:4B:5A:C3:94
basicstation  | issuer name       : C=BE, O=GlobalSign nv-sa, OU=Root CA, CN=GlobalSign Root CA
basicstation  | subject name      : C=BE, O=GlobalSign nv-sa, OU=Root CA, CN=GlobalSign Root CA
basicstation  | issued  on        : 1998-09-01 12:00:00
basicstation  | expires on        : 2028-01-28 12:00:00
basicstation  | signed using      : RSA with SHA1
basicstation  | RSA key size      : 2048 bits
basicstation  | basic constraints : CA=true
basicstation  | key usage         : Key Cert Sign, CRL Sign
basicstation  | 2024-05-24 14:55:31.547 [CUP:VERB] Retrieving update-info from CUPS https://nam1.cloud.thethings.network:443...
basicstation  | 2024-05-24 14:55:31.550 [CUP:DEBU] CUPS Request: {"router":"98fc:84ff:fe5f:c07a","cupsUri":"https://nam1.cloud.thethings.network:443","tcUri":"wss://nam1.cloud.thethings.network:8887","cupsCredCrc":2354858760,"tcCredCrc":3791551014,"station":"2.0.6(corecell/stdn) 2024-04-16 20:14:30","model":"corecell","package":null,"keys":[]}
basicstation  | 2024-05-24 14:55:32.227 [TCE:INFO] Infos: 98fc:84ff:fe5f:c07a muxs-::0 wss://nam1.cloud.thethings.network:8887/traffic/eui-98FC84FFFE5FC07A
basicstation  | 2024-05-24 14:55:32.227 [AIO:DEBU] [4] ws_close reason=1000
basicstation  | 2024-05-24 14:55:32.227 [AIO:ERRO] Recv failed: SSL - The peer notified us that the connection is going to be closed
basicstation  | 2024-05-24 14:55:32.227 [AIO:DEBU] [4] WS connection shutdown...
basicstation  | 2024-05-24 14:55:32.227 [AIO:INFO] ./tc.trust:
basicstation  | cert. version     : 3
basicstation  | serial number     : 82:10:CF:B0:D2:40:E3:59:44:63:E0:BB:63:82:8B:00
basicstation  | issuer name       : C=US, O=Internet Security Research Group, CN=ISRG Root X1
basicstation  | subject name      : C=US, O=Internet Security Research Group, CN=ISRG Root X1
basicstation  | issued  on        : 2015-06-04 11:04:38
basicstation  | expires on        : 2035-06-04 11:04:38
basicstation  | signed using      : RSA with SHA-256
basicstation  | RSA key size      : 4096 bits
basicstation  | basic constraints : CA=true
basicstation  | key usage         : Key Cert Sign, CRL Sig2024-05-24 14:55:32.227 [TCE:VERB] Connecting to MUXS...
basicstation  | 2024-05-24 14:55:32.403 [AIO:DEBU] [5] HTTP connection shutdown...
basicstation  | 2024-05-24 14:55:32.403 [CUP:INFO] Interaction with CUPS done (no updates) - next regular check in 1d
basicstation  | 2024-05-24 14:55:33.180 [S00:VERB] /app/config/reset.sh: Forked, waiting...
basicstation  | 2024-05-24 14:55:33.180 [S00:DEBU] execvp argv[0]: </app/config/reset.sh>
basicstation  | 2024-05-24 14:55:33.180 [S00:DEBU]        argv[1]: </dev/spidev0.1>
basicstation  | 2024-05-24 14:55:33.180 [S00:DEBU]        argv[2]: <0>
basicstation  | Concentrator enabled through gpiochip0:18 (using libgpiod)
basicstation  | Concentrator reset through gpiochip0:17 (using libgpiod)
basicstation  | 2024-05-24 14:55:33.207 [S00:INFO] Process /app/config/reset.sh (pid=44) completed
basicstation  | 2024-05-24 14:55:33.207 [S00:INFO] Lora gateway library version: Version: 2.1.0;
basicstation  | 2024-05-24 14:55:33.208 [S00:INFO] [LGW sx1302] full_duplex=0 clksrc=0 lorawan_public=1
basicstation  | 2024-05-24 14:55:33.208 [S00:DEBU] SX130x txlut table (16 entries)
basicstation  | 2024-05-24 14:55:33.208 [S00:INFO] SX1302 txlut  0:  rf_power=12 pa_gain=0 pwr_idx=15
basicstation  | 2024-05-24 14:55:33.208 [S00:INFO] SX1302 txlut  1:  rf_power=13 pa_gain=0 pwr_idx=16
basicstation  | 2024-05-24 14:55:33.208 [S00:INFO] SX1302 txlut  2:  rf_power=14 pa_gain=0 pwr_idx=17
basicstation  | 2024-05-24 14:55:33.208 [S00:INFO] SX1302 txlut  3:  rf_power=15 pa_gain=0 pwr_idx=19
basicstation  | 2024-05-24 14:55:33.208 [S00:INFO] SX1302 txlut  4:  rf_power=16 pa_gain=0 pwr_idx=20
basicstation  | 2024-05-24 14:55:33.208 [S00:INFO] SX1302 txlut  5:  rf_power=17 pa_gain=0 pwr_idx=22
basicstation  | 2024-05-24 14:55:33.208 [S00:INFO] SX1302 txlut  6:  rf_power=18 pa_gain=1 pwr_idx=1
basicstation  | 2024-05-24 14:55:33.208 [S00:INFO] SX1302 txlut  7:  rf_power=19 pa_gain=1 pwr_idx=2
basicstation  | 2024-05-24 14:55:33.208 [S00:INFO] SX1302 txlut  8:  rf_power=20 pa_gain=1 pwr_idx=3
basicstation  | 2024-05-24 14:55:33.208 [S00:INFO] SX1302 txlut  9:  rf_power=21 pa_gain=1 pwr_idx=4
basicstation  | 2024-05-24 14:55:33.208 [S00:INFO] SX1302 txlut 10:  rf_power=22 pa_gain=1 pwr_idx=5
basicstation  | 2024-05-24 14:55:33.208 [S00:INFO] SX1302 txlut 11:  rf_power=23 pa_gain=1 pwr_idx=6
basicstation  | 2024-05-24 14:55:33.208 [S00:INFO] SX1302 txlut 12:  rf_power=24 pa_gain=1 pwr_idx=7
basicstation  | 2024-05-24 14:55:33.208 [S00:INFO] SX1302 txlut 13:  rf_power=25 pa_gain=1 pwr_idx=9
basicstation  | 2024-05-24 14:55:33.208 [S00:INFO] SX1302 txlut 14:  rf_power=26 pa_gain=1 pwr_idx=11
basicstation  | 2024-05-24 14:55:33.208 [S00:INFO] SX1302 txlut 15:  rf_power=27 pa_gain=1 pwr_idx=14
basicstation  | 2024-05-24 14:55:33.208 [S00:INFO]  RX/TX RF0:    904.3MHz rssi_offset=-215.4 type=5 rssi_tcomp=0.000 0.000 20.410 2162.560 0.000
basicstation  | 2024-05-24 14:55:33.209 [S00:INFO]  RX    RF1:    905.0MHz rssi_offset=-215.4 type=5 rssi_tcomp=0.000 0.000 20.410 2162.560 0.000
basicstation  | 2024-05-24 14:55:33.209 [S00:INFO]  [mSF]   0:    903.9MHz rf=0 freq=-400.0 datarate=0
basicstation  | 2024-05-24 14:55:33.209 [S00:INFO]  [mSF]   1:    904.1MHz rf=0 freq=-200.0 datarate=0
basicstation  | 2024-05-24 14:55:33.209 [S00:INFO]  [mSF]   2:    904.3MHz rf=0 freq=  +0.0 datarate=0
basicstation  | 2024-05-24 14:55:33.209 [S00:INFO]  [mSF]   3:    904.5MHz rf=0 freq=+200.0 datarate=0
basicstation  | 2024-05-24 14:55:33.209 [S00:INFO]  [mSF]   4:    904.7MHz rf=1 freq=-300.0 datarate=0
basicstation  | 2024-05-24 14:55:33.209 [S00:INFO]  [mSF]   5:    904.9MHz rf=1 freq=-100.0 datarate=0
basicstation  | 2024-05-24 14:55:33.209 [S00:INFO]  [mSF]   6:    905.1MHz rf=1 freq=+100.0 datarate=0
basicstation  | 2024-05-24 14:55:33.209 [S00:INFO]  [mSF]   7:    905.3MHz rf=1 freq=+300.0 datarate=0
basicstation  | 2024-05-24 14:55:33.209 [S00:INFO]  [STD]   8:    904.6MHz rf=0 freq=+300.0 datarate=8 bw=6 Explicit header
basicstation  | 2024-05-24 14:55:33.209 [S00:INFO]  channel 9 disabled
basicstation  | 2024-05-24 14:55:33.209 [S00:INFO] Station device: spi:/dev/spidev0.1 (PPS capture enabled)
basicstation  | 2024-05-24 14:55:33.209 [S00:INFO] [lgw_com_open:84] Opening SPI communication interface
basicstation  | 2024-05-24 14:55:33.209 [S00:INFO] [lgw_spi_open:88] Setting SPI speed to 8000000
basicstation  | 2024-05-24 14:55:33.209 [S00:INFO] [lgw_connect:1192] chip version is 0x00 (v0.0)
basicstation  | 2024-05-24 14:55:33.117 [TCE:VERB] Connected to MUXS.
basicstation  | 2024-05-24 14:55:33.142 [RAL:INFO] Region plan hwspec 'sx1301/1' mapped to 1 slaves 'sx1301/1'
basicstation  | 2024-05-24 14:55:33.143 [RAL:INFO] Master sending 645 bytes of JSON sx1301conf to slave (0)
basicstation  | 2024-05-24 14:55:33.143 [S2E:INFO] Configuring for region: US915 -- 923.0MHz..928.0MHz
basicstation  | 2024-05-24 14:55:33.143 [S2E:INFO]   DR0  SF10/BW125
basicstation  | 2024-05-24 14:55:33.143 [S2E:INFO]   DR1  SF9/BW125
basicstation  | 2024-05-24 14:55:33.143 [S2E:INFO]   DR2  SF8/BW125
basicstation  | 2024-05-24 14:55:33.143 [S2E:INFO]   DR3  SF7/BW125
basicstation  | 2024-05-24 14:55:33.143 [S2E:INFO]   DR4  SF8/BW500
basicstation  | 2024-05-24 14:55:33.143 [S2E:INFO]   DR5  FSK
basicstation  | 2024-05-24 14:55:33.143 [S2E:INFO]   DR6  FSK
basicstation  | 2024-05-24 14:55:33.143 [S2E:INFO]   DR7  FSK
basicstation  | 2024-05-24 14:55:33.143 [S2E:INFO]   DR8  SF12/BW500
basicstation  | 2024-05-24 14:55:33.143 [S2E:INFO]   DR9  SF11/BW500
basicstation  | 2024-05-24 14:55:33.143 [S2E:INFO]   DR10 SF10/BW500
basicstation  | 2024-05-24 14:55:33.143 [S2E:INFO]   DR11 SF9/BW500
basicstation  | 2024-05-24 14:55:33.143 [S2E:INFO]   DR12 SF8/BW500
basicstation  | 2024-05-24 14:55:33.143 [S2E:INFO]   DR13 SF7/BW500
basicstation  | 2024-05-24 14:55:33.143 [S2E:INFO]   DR14 FSK
basicstation  | 2024-05-24 14:55:33.143 [S2E:INFO]   DR15 FSK
basicstation  | 2024-05-24 14:55:33.143 [S2E:INFO]   TX power: 26.0 dBm EIRP
basicstation  | 2024-05-24 14:55:33.143 [S2E:INFO]   JoinEui list: 0 entries
basicstation  | 2024-05-24 14:55:33.143 [S2E:INFO]   NetID filter: FFFFFFFF-FFFFFFFF-FFFFFFFF-FFFFFFFF
basicstation  | 2024-05-24 14:55:33.143 [S2E:INFO]   Dev/test settings: nocca=1 nodc=1 nodwell=1
basicstation  | 2024-05-24 14:55:33.143 [S2E:INFO] Beaconing every 2m8s on 923.3MHz(8) @ DR8 (frame layout 5/11/23)
basicstation  | 2024-05-24 14:55:33.143 [S2E:INFO] Beaconing suspend - missing GPS data: time
basicstation  | ERROR: Failed to set SX1250_0 in STANDBY_RC mode
basicstation  | 2024-05-24 14:55:34.809 [S00:ERRO] [lgw_start:908] failed to setup radio 0
basicstation  | 2024-05-24 14:55:34.809 [S00:ERRO] Concentrator start failed: lgw_start
basicstation  | 2024-05-24 14:55:34.809 [S00:CRIT] Slave radio start up failed with status 0x08
basicstation  | 2024-05-24 14:55:34.773 [RAL:ERRO] Slave (0) - EOF
basicstation  | 2024-05-24 14:55:34.774 [any:CRIT] Slave pid=43 idx=0: Fatal exit

Messages. The TTN Server logs repeated attempts to connect, and no connection succeeds.

kierenblack commented 2 weeks ago

try changing or adding DEVICE to /dev/spidev0.0