Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic station fail '/dev/spidev0.0' in use by process #62

Closed
jawadiot opened this issue May 14, 2020 · 8 comments
Closed

Basic station fail '/dev/spidev0.0' in use by process #62

jawadiot opened this issue May 14, 2020 · 8 comments

Comments

@jawadiot
Copy link

jawadiot commented May 14, 2020

Hi,

I'm running basic station on raspberry compute 3, with concentrator RAKWIRLESS 831, i sucess to run the example live-s2.sm.tc and i can watch the led driver of the concentrator on, But the basic station stop running after connecting/deconnecting from mux, the log say that there is already process using spi, and i'm pretty sur that he talk about him( the process that fail), and i even can't find this process running.

My station.conf :

{
    /* If slave-X.conf present this acts as default settings */
    "SX1301_conf": {                    /* Actual channel plan is controlled by server */
        "lorawan_public": false,         /* is default */
        "clksrc": 1,                    /* radio_1 provides clock to concentrator */
        /* path to the SPI device, un-comment if not specified on the command line e.g., RADIODEV=/dev/spidev0.0 */
        "device": "/dev/spidev0.0",
        /* freq/enable provided by LNS - only HW specific settings listed here */
        "radio_0": {
                "type": "SX1257",
                "rssi_offset": -166.0,
                "tx_enable": true,
                "antenna_gain": 0
        },
        "radio_1": {
                "type": "SX1257",
                "rssi_offset": -166.0,
                "tx_enable": false
        }
        /* chan_multiSF_X, chan_Lora_std, chan_FSK provided by LNS */
    },
    "station_conf": {
        "log_file":  "stderr",
        "log_level": "DEBUG",           /* XDEBUG,DEBUG,VERBOSE,INFO,NOTICE,WARNING,ERROR,CRITICAL */
        "log_size":  10000000,
        "log_rotate":  3,
        "CUPS_RESYNC_INTV": "1s"
    }
}

log basic station :

pi@B827EBFFFEF65A01:/opt/basicstation/examples/live-s2.sm.tc $ station
2020-05-14 01:13:15.576 [SYS:INFO] Logging     : stderr (maxsize=10000000, rotate=3)
2020-05-14 01:13:15.576 [SYS:INFO] Station Ver : 2.0.3(rpi/std) 2020-05-13 11:08:10
2020-05-14 01:13:15.577 [SYS:INFO] Package Ver : 1.0.0
2020-05-14 01:13:15.577 [SYS:INFO] proto EUI   : 0:b827:ebf6:5a01	(/sys/class/net/eth0/address)
2020-05-14 01:13:15.577 [SYS:INFO] prefix EUI  : ::1	(builtin)
2020-05-14 01:13:15.578 [SYS:INFO] Station EUI : b827:ebff:fef6:5a01
2020-05-14 01:13:15.578 [SYS:INFO] Station home: ./	(builtin)
2020-05-14 01:13:15.578 [SYS:INFO] Station temp: /var/tmp/	(builtin)
2020-05-14 01:13:15.578 [SYS:WARN] Station in NO-CUPS mode
2020-05-14 01:13:15.780 [TCE:INFO] Starting TC engine
2020-05-14 01:13:15.780 [TCE:INFO] Connecting to INFOS: ws://127.0.0.1:3001
2020-05-14 01:13:15.789 [TCE:INFO] Infos: b827:ebff:fef6:5a01 b827:ebff:fef6:5a01 ws://127.0.0.1:3001/gateway/b827ebfffef65a01
2020-05-14 01:13:15.789 [AIO:DEBU] [3] ws_close reason=1000
2020-05-14 01:13:15.789 [AIO:DEBU] Echoing close - reason=1000
2020-05-14 01:13:15.790 [AIO:ERRO] Recv failed: NET - Connection was reset by peer
2020-05-14 01:13:15.795 [AIO:DEBU] [3] WS connection shutdown...
2020-05-14 01:13:15.796 [TCE:VERB] Connecting to MUXS...
2020-05-14 01:13:15.796 [TCE:VERB] Connected to MUXS.
2020-05-14 01:13:15.807 [RAL:INFO] Lora gateway library version: Version: 5.0.1;
2020-05-14 01:13:15.807 [RAL:DEBU] SX1301 txlut table (0 entries)
2020-05-14 01:13:15.807 [RAL:VERB] SX1301 rxrfchain 0: enable=1 freq=867500000 rssi_offset=-166.000000 type=2 tx_enable=1 tx_notch_freq=0
2020-05-14 01:13:15.807 [RAL:VERB] SX1301 rxrfchain 1: enable=1 freq=868500000 rssi_offset=-166.000000 type=2 tx_enable=0 tx_notch_freq=0
2020-05-14 01:13:15.807 [RAL:VERB] SX1301 ifchain  0: enable=1 rf_chain=0 freq=-400000 bandwidth=0 datarate=0 sync_word=0/0
2020-05-14 01:13:15.807 [RAL:VERB] SX1301 ifchain  1: enable=1 rf_chain=0 freq=-200000 bandwidth=0 datarate=0 sync_word=0/0
2020-05-14 01:13:15.807 [RAL:VERB] SX1301 ifchain  2: enable=1 rf_chain=0 freq=0 bandwidth=0 datarate=0 sync_word=0/0
2020-05-14 01:13:15.807 [RAL:VERB] SX1301 ifchain  3: enable=1 rf_chain=0 freq=200000 bandwidth=0 datarate=0 sync_word=0/0
2020-05-14 01:13:15.807 [RAL:VERB] SX1301 ifchain  4: enable=1 rf_chain=0 freq=400000 bandwidth=0 datarate=0 sync_word=0/0
2020-05-14 01:13:15.807 [RAL:VERB] SX1301 ifchain  5: enable=1 rf_chain=1 freq=-400000 bandwidth=0 datarate=0 sync_word=0/0
2020-05-14 01:13:15.807 [RAL:VERB] SX1301 ifchain  6: enable=1 rf_chain=1 freq=-200000 bandwidth=0 datarate=0 sync_word=0/0
2020-05-14 01:13:15.807 [RAL:VERB] SX1301 ifchain  7: enable=1 rf_chain=1 freq=0 bandwidth=0 datarate=0 sync_word=0/0
2020-05-14 01:13:15.807 [RAL:VERB] SX1301 ifchain  8: enable=1 rf_chain=1 freq=-200000 bandwidth=2 datarate=2 sync_word=0/0
2020-05-14 01:13:15.807 [RAL:VERB] SX1301 ifchain  9: enable=0 rf_chain=0 freq=0 bandwidth=0 datarate=0 sync_word=0/0
2020-05-14 01:13:15.807 [RAL:VERB] SX1301 LBT not enabled
2020-05-14 01:13:15.807 [RAL:INFO] Station device: /dev/spidev0.0 (PPS capture disabled)
2020-05-14 01:13:16.321 [RAL:ERRO] lgw_start failed: /dev/spidev0.0
2020-05-14 01:13:16.321 [any:ERRO] Closing connection to muxs - error in s2e_onMsg
2020-05-14 01:13:16.321 [AIO:DEBU] [3] ws_close reason=1000
2020-05-14 01:13:16.321 [AIO:DEBU] Echoing close - reason=1000
2020-05-14 01:13:16.322 [AIO:DEBU] [3] Server sent close: reason=1000
2020-05-14 01:13:16.322 [AIO:DEBU] [3] WS connection shutdown...
2020-05-14 01:13:16.322 [TCE:VERB] Connection to MUXS closed in state -1
2020-05-14 01:13:16.322 [TCE:INFO] INFOS reconnect backoff 10s (retry 1)
2020-05-14 01:13:26.324 [TCE:INFO] Connecting to INFOS: ws://127.0.0.1:3001
2020-05-14 01:13:26.326 [TCE:INFO] Infos: b827:ebff:fef6:5a01 b827:ebff:fef6:5a01 ws://127.0.0.1:3001/gateway/b827ebfffef65a01
2020-05-14 01:13:26.326 [AIO:DEBU] [3] ws_close reason=1000
2020-05-14 01:13:26.326 [AIO:DEBU] [3] Connection closed unexpectedly
2020-05-14 01:13:26.326 [AIO:DEBU] [3] WS connection shutdown...
2020-05-14 01:13:26.326 [TCE:VERB] Connecting to MUXS...
2020-05-14 01:13:26.328 [TCE:VERB] Connected to MUXS.
2020-05-14 01:13:26.336 [RAL:INFO] Lora gateway library version: Version: 5.0.1;
2020-05-14 01:13:26.336 [RAL:DEBU] SX1301 txlut table (0 entries)
2020-05-14 01:13:26.336 [RAL:VERB] SX1301 rxrfchain 0: enable=1 freq=867500000 rssi_offset=-166.000000 type=2 tx_enable=1 tx_notch_freq=0
2020-05-14 01:13:26.336 [RAL:VERB] SX1301 rxrfchain 1: enable=1 freq=868500000 rssi_offset=-166.000000 type=2 tx_enable=0 tx_notch_freq=0
2020-05-14 01:13:26.336 [RAL:VERB] SX1301 ifchain  0: enable=1 rf_chain=0 freq=-400000 bandwidth=0 datarate=0 sync_word=0/0
2020-05-14 01:13:26.336 [RAL:VERB] SX1301 ifchain  1: enable=1 rf_chain=0 freq=-200000 bandwidth=0 datarate=0 sync_word=0/0
2020-05-14 01:13:26.336 [RAL:VERB] SX1301 ifchain  2: enable=1 rf_chain=0 freq=0 bandwidth=0 datarate=0 sync_word=0/0
2020-05-14 01:13:26.336 [RAL:VERB] SX1301 ifchain  3: enable=1 rf_chain=0 freq=200000 bandwidth=0 datarate=0 sync_word=0/0
2020-05-14 01:13:26.336 [RAL:VERB] SX1301 ifchain  4: enable=1 rf_chain=0 freq=400000 bandwidth=0 datarate=0 sync_word=0/0
2020-05-14 01:13:26.336 [RAL:VERB] SX1301 ifchain  5: enable=1 rf_chain=1 freq=-400000 bandwidth=0 datarate=0 sync_word=0/0
2020-05-14 01:13:26.336 [RAL:VERB] SX1301 ifchain  6: enable=1 rf_chain=1 freq=-200000 bandwidth=0 datarate=0 sync_word=0/0
2020-05-14 01:13:26.336 [RAL:VERB] SX1301 ifchain  7: enable=1 rf_chain=1 freq=0 bandwidth=0 datarate=0 sync_word=0/0
2020-05-14 01:13:26.336 [RAL:VERB] SX1301 ifchain  8: enable=1 rf_chain=1 freq=-200000 bandwidth=2 datarate=2 sync_word=0/0
2020-05-14 01:13:26.336 [RAL:VERB] SX1301 ifchain  9: enable=0 rf_chain=0 freq=0 bandwidth=0 datarate=0 sync_word=0/0
2020-05-14 01:13:26.336 [RAL:VERB] SX1301 LBT not enabled
2020-05-14 01:13:26.336 [RAL:INFO] Station device: /dev/spidev0.0 (PPS capture disabled)
2020-05-14 01:13:26.855 [RAL:ERRO] lgw_start failed: /dev/spidev0.0
2020-05-14 01:13:26.855 [any:ERRO] Closing connection to muxs - error in s2e_onMsg
2020-05-14 01:13:26.855 [AIO:DEBU] [3] ws_close reason=1000
2020-05-14 01:13:26.855 [AIO:DEBU] Echoing close - reason=1000
2020-05-14 01:13:26.856 [AIO:DEBU] [3] Server sent close: reason=1000
2020-05-14 01:13:26.857 [AIO:DEBU] [3] WS connection shutdown...
2020-05-14 01:13:26.858 [TCE:VERB] Connection to MUXS closed in state -1
2020-05-14 01:13:26.858 [TCE:INFO] INFOS reconnect backoff 10s (retry 1)
2020-05-14 01:13:36.860 [TCE:INFO] Connecting to INFOS: ws://127.0.0.1:3001
2020-05-14 01:13:36.862 [TCE:INFO] Infos: b827:ebff:fef6:5a01 b827:ebff:fef6:5a01 ws://127.0.0.1:3001/gateway/b827ebfffef65a01
2020-05-14 01:13:36.862 [AIO:DEBU] [3] ws_close reason=1000
2020-05-14 01:13:36.862 [AIO:DEBU] Echoing close - reason=1000
2020-05-14 01:13:36.862 [AIO:ERRO] Recv failed: NET - Connection was reset by peer
2020-05-14 01:13:36.862 [AIO:DEBU] [3] WS connection shutdown...
2020-05-14 01:13:36.863 [TCE:VERB] Connecting to MUXS...
2020-05-14 01:13:36.864 [TCE:VERB] Connected to MUXS.
2020-05-14 01:13:36.878 [RAL:INFO] Lora gateway library version: Version: 5.0.1;
2020-05-14 01:13:36.878 [RAL:DEBU] SX1301 txlut table (0 entries)
2020-05-14 01:13:36.878 [RAL:VERB] SX1301 rxrfchain 0: enable=1 freq=867500000 rssi_offset=-166.000000 type=2 tx_enable=1 tx_notch_freq=0
2020-05-14 01:13:36.878 [RAL:VERB] SX1301 rxrfchain 1: enable=1 freq=868500000 rssi_offset=-166.000000 type=2 tx_enable=0 tx_notch_freq=0
2020-05-14 01:13:36.878 [RAL:VERB] SX1301 ifchain  0: enable=1 rf_chain=0 freq=-400000 bandwidth=0 datarate=0 sync_word=0/0
2020-05-14 01:13:36.878 [RAL:VERB] SX1301 ifchain  1: enable=1 rf_chain=0 freq=-200000 bandwidth=0 datarate=0 sync_word=0/0
2020-05-14 01:13:36.878 [RAL:VERB] SX1301 ifchain  2: enable=1 rf_chain=0 freq=0 bandwidth=0 datarate=0 sync_word=0/0
2020-05-14 01:13:36.878 [RAL:VERB] SX1301 ifchain  3: enable=1 rf_chain=0 freq=200000 bandwidth=0 datarate=0 sync_word=0/0
2020-05-14 01:13:36.878 [RAL:VERB] SX1301 ifchain  4: enable=1 rf_chain=0 freq=400000 bandwidth=0 datarate=0 sync_word=0/0
2020-05-14 01:13:36.878 [RAL:VERB] SX1301 ifchain  5: enable=1 rf_chain=1 freq=-400000 bandwidth=0 datarate=0 sync_word=0/0
2020-05-14 01:13:36.878 [RAL:VERB] SX1301 ifchain  6: enable=1 rf_chain=1 freq=-200000 bandwidth=0 datarate=0 sync_word=0/0
2020-05-14 01:13:36.879 [RAL:VERB] SX1301 ifchain  7: enable=1 rf_chain=1 freq=0 bandwidth=0 datarate=0 sync_word=0/0
2020-05-14 01:13:36.879 [RAL:VERB] SX1301 ifchain  8: enable=1 rf_chain=1 freq=-200000 bandwidth=2 datarate=2 sync_word=0/0
2020-05-14 01:13:36.879 [RAL:VERB] SX1301 ifchain  9: enable=0 rf_chain=0 freq=0 bandwidth=0 datarate=0 sync_word=0/0
2020-05-14 01:13:36.879 [RAL:VERB] SX1301 LBT not enabled
2020-05-14 01:13:36.879 [RAL:INFO] Station device: /dev/spidev0.0 (PPS capture disabled)
2020-05-14 01:13:37.393 [RAL:ERRO] lgw_start failed: /dev/spidev0.0
2020-05-14 01:13:37.393 [any:ERRO] Closing connection to muxs - error in s2e_onMsg
2020-05-14 01:13:37.393 [AIO:DEBU] [3] ws_close reason=1000
2020-05-14 01:13:37.393 [AIO:DEBU] Echoing close - reason=1000
2020-05-14 01:13:37.394 [AIO:DEBU] [3] Server sent close: reason=1000
2020-05-14 01:13:37.394 [AIO:DEBU] [3] WS connection shutdown...
2020-05-14 01:13:37.394 [TCE:VERB] Connection to MUXS closed in state -1
2020-05-14 01:13:37.394 [TCE:INFO] INFOS reconnect backoff 10s (retry 1)
2020-05-14 01:13:47.396 [TCE:INFO] Connecting to INFOS: ws://127.0.0.1:3001
2020-05-14 01:13:47.398 [TCE:INFO] Infos: b827:ebff:fef6:5a01 b827:ebff:fef6:5a01 ws://127.0.0.1:3001/gateway/b827ebfffef65a01
2020-05-14 01:13:47.398 [AIO:DEBU] [3] ws_close reason=1000
2020-05-14 01:13:47.398 [AIO:DEBU] Echoing close - reason=1000
2020-05-14 01:13:47.398 [AIO:ERRO] Recv failed: NET - Connection was reset by peer
2020-05-14 01:13:47.398 [AIO:DEBU] [3] WS connection shutdown...
2020-05-14 01:13:47.399 [TCE:VERB] Connecting to MUXS...
2020-05-14 01:13:47.400 [TCE:VERB] Connected to MUXS.
2020-05-14 01:13:47.415 [RAL:INFO] Lora gateway library version: Version: 5.0.1;
2020-05-14 01:13:47.415 [RAL:DEBU] SX1301 txlut table (0 entries)
2020-05-14 01:13:47.416 [RAL:VERB] SX1301 rxrfchain 0: enable=1 freq=867500000 rssi_offset=-166.000000 type=2 tx_enable=1 tx_notch_freq=0
2020-05-14 01:13:47.416 [RAL:VERB] SX1301 rxrfchain 1: enable=1 freq=868500000 rssi_offset=-166.000000 type=2 tx_enable=0 tx_notch_freq=0
2020-05-14 01:13:47.416 [RAL:VERB] SX1301 ifchain  0: enable=1 rf_chain=0 freq=-400000 bandwidth=0 datarate=0 sync_word=0/0
2020-05-14 01:13:47.416 [RAL:VERB] SX1301 ifchain  1: enable=1 rf_chain=0 freq=-200000 bandwidth=0 datarate=0 sync_word=0/0
2020-05-14 01:13:47.416 [RAL:VERB] SX1301 ifchain  2: enable=1 rf_chain=0 freq=0 bandwidth=0 datarate=0 sync_word=0/0
2020-05-14 01:13:47.416 [RAL:VERB] SX1301 ifchain  3: enable=1 rf_chain=0 freq=200000 bandwidth=0 datarate=0 sync_word=0/0
2020-05-14 01:13:47.416 [RAL:VERB] SX1301 ifchain  4: enable=1 rf_chain=0 freq=400000 bandwidth=0 datarate=0 sync_word=0/0
2020-05-14 01:13:47.416 [RAL:VERB] SX1301 ifchain  5: enable=1 rf_chain=1 freq=-400000 bandwidth=0 datarate=0 sync_word=0/0
2020-05-14 01:13:47.416 [RAL:VERB] SX1301 ifchain  6: enable=1 rf_chain=1 freq=-200000 bandwidth=0 datarate=0 sync_word=0/0
2020-05-14 01:13:47.416 [RAL:VERB] SX1301 ifchain  7: enable=1 rf_chain=1 freq=0 bandwidth=0 datarate=0 sync_word=0/0
2020-05-14 01:13:47.416 [RAL:VERB] SX1301 ifchain  8: enable=1 rf_chain=1 freq=-200000 bandwidth=2 datarate=2 sync_word=0/0
2020-05-14 01:13:47.416 [RAL:VERB] SX1301 ifchain  9: enable=0 rf_chain=0 freq=0 bandwidth=0 datarate=0 sync_word=0/0
2020-05-14 01:13:47.416 [RAL:VERB] SX1301 LBT not enabled
2020-05-14 01:13:47.416 [RAL:INFO] Station device: /dev/spidev0.0 (PPS capture disabled)
2020-05-14 01:13:50.326 [S2E:INFO] Configuring for region: EU863 -- 863.0MHz..870.0MHz
2020-05-14 01:13:50.326 [S2E:VERB]   DR0  SF12/BW125 
2020-05-14 01:13:50.326 [S2E:VERB]   DR1  SF11/BW125 
2020-05-14 01:13:50.326 [S2E:VERB]   DR2  SF10/BW125 
2020-05-14 01:13:50.326 [S2E:VERB]   DR3  SF9/BW125 
2020-05-14 01:13:50.326 [S2E:VERB]   DR4  SF8/BW125 
2020-05-14 01:13:50.326 [S2E:VERB]   DR5  SF7/BW125 
2020-05-14 01:13:50.326 [S2E:VERB]   DR6  SF7/BW250 
2020-05-14 01:13:50.326 [S2E:VERB]   DR7  FSK 
2020-05-14 01:13:50.326 [S2E:VERB]   DR8  undefined
2020-05-14 01:13:50.326 [S2E:VERB]   DR9  undefined
2020-05-14 01:13:50.326 [S2E:VERB]   DR10 undefined
2020-05-14 01:13:50.326 [S2E:VERB]   DR11 undefined
2020-05-14 01:13:50.326 [S2E:VERB]   DR12 undefined
2020-05-14 01:13:50.326 [S2E:VERB]   DR13 undefined
2020-05-14 01:13:50.326 [S2E:VERB]   DR14 undefined
2020-05-14 01:13:50.326 [S2E:VERB]   DR15 undefined
2020-05-14 01:13:50.326 [S2E:VERB]   TX power: 16.0 dBm EIRP
2020-05-14 01:13:50.326 [S2E:VERB]             27.0 dBm EIRP for 869.4MHz..869.65MHz
2020-05-14 01:13:50.326 [S2E:VERB]   JoinEui list: 0 entries
2020-05-14 01:13:50.326 [S2E:VERB]   NetID filter: FFFFFFFF-FFFFFFFF-FFFFFFFF-FFFFFFFF
2020-05-14 01:13:50.326 [S2E:VERB]   Dev/test settings: nocca=0 nodc=0 nodwell=0
2020-05-14 01:14:32.331 [SYN:INFO] MCU/SX1301 drift stats: min: 0.0ppm  q50: 1.4ppm  q80: 2.4ppm  max: 16.7ppm - threshold q90: -11.9ppm
2020-05-14 01:14:32.331 [SYN:INFO] Avg MCU drift vs SX1301#0: 1.0ppm
2020-05-14 01:14:47.401 [AIO:WARN] [3] Ignoring WS ping/pong message
2020-05-14 01:14:51.232 [SYN:INFO] Time sync qualities: min=39 q90=83 max=111 (previous q90=2147483647)
2020-05-14 01:14:52.403 [AIO:DEBU] [3] Connection closed unexpectedly
2020-05-14 01:14:52.403 [AIO:DEBU] [3] WS connection shutdown...
2020-05-14 01:14:52.403 [TCE:VERB] Connection to MUXS closed in state 4
2020-05-14 01:14:52.403 [TCE:INFO] MUXS reconnect backoff 4s (retry 2)
2020-05-14 01:14:56.404 [TCE:VERB] Connecting to MUXS...
2020-05-14 01:14:56.405 [TCE:VERB] Connected to MUXS.
2020-05-14 01:14:56.418 [any:CRIT] Radio device '/dev/spidev0.0' in use by process: 1000

gateway_bridge log :

pi@B827EBFFFEF65A01:~ $ bridge_log
-- Logs begin at Wed 2020-05-13 23:17:02 BST. --
May 13 23:17:13 B827EBFFFEF65A01 systemd[1]: Started ChirpStack Gateway Bridge.
May 13 23:17:15 B827EBFFFEF65A01 chirpstack-gateway-bridge[559]: time="2020-05-13T23:17:15+01:00" level=info msg="starting ChirpStack Gateway Bridge" docs="https://www.chirpstack.io/gateway-bridge/" version=3.5.0
May 13 23:17:15 B827EBFFFEF65A01 chirpstack-gateway-bridge[559]: time="2020-05-13T23:17:15+01:00" level=info msg="backend/basicstation: starting websocket listener" bind="[::]:3001" ca_cert= tls_cert= tls_key=
May 13 23:17:15 B827EBFFFEF65A01 chirpstack-gateway-bridge[559]: time="2020-05-13T23:17:15+01:00" level=info msg="integration/mqtt: connected to mqtt broker"
May 14 02:13:15 B827EBFFFEF65A01 chirpstack-gateway-bridge[559]: time="2020-05-14T02:13:15+01:00" level=info msg="backend/basicstation: router-info request received" gateway_id=b827ebfffef65a01 remote_addr="127.0.0.1:43632" router_uri="ws://127.0.0.1:3001/gateway/b827ebfffef65a01"
May 14 02:13:15 B827EBFFFEF65A01 chirpstack-gateway-bridge[559]: time="2020-05-14T02:13:15+01:00" level=info msg="backend/basicstation: gateway connected" gateway_id=b827ebfffef65a01 remote_addr="127.0.0.1:43634"
May 14 02:13:15 B827EBFFFEF65A01 chirpstack-gateway-bridge[559]: time="2020-05-14T02:13:15+01:00" level=info msg="integration/mqtt: subscribing to topic" qos=0 topic="gateway/b827ebfffef65a01/command/#"
May 14 02:13:15 B827EBFFFEF65A01 chirpstack-gateway-bridge[559]: time="2020-05-14T02:13:15+01:00" level=info msg="backend/basicstation: gateway version received" firmware=1.0.0 gateway_id=b827ebfffef65a01 model=rpi package=1.0.0 protocol=2 station="2.0.3(rpi/std)"
May 14 02:13:15 B827EBFFFEF65A01 chirpstack-gateway-bridge[559]: time="2020-05-14T02:13:15+01:00" level=info msg="backend/basicstation: router-config message sent to gateway" gateway_id=b827ebfffef65a01
May 14 02:13:16 B827EBFFFEF65A01 chirpstack-gateway-bridge[559]: time="2020-05-14T02:13:16+01:00" level=info msg="backend/basicstation: gateway disconnected" gateway_id=b827ebfffef65a01 remote_addr="127.0.0.1:43634"
May 14 02:13:16 B827EBFFFEF65A01 chirpstack-gateway-bridge[559]: time="2020-05-14T02:13:16+01:00" level=info msg="integration/mqtt: unsubscribe topic" topic="gateway/b827ebfffef65a01/command/#"
May 14 02:13:26 B827EBFFFEF65A01 chirpstack-gateway-bridge[559]: time="2020-05-14T02:13:26+01:00" level=info msg="backend/basicstation: router-info request received" gateway_id=b827ebfffef65a01 remote_addr="127.0.0.1:43636" router_uri="ws://127.0.0.1:3001/gateway/b827ebfffef65a01"
May 14 02:13:26 B827EBFFFEF65A01 chirpstack-gateway-bridge[559]: time="2020-05-14T02:13:26+01:00" level=info msg="backend/basicstation: gateway connected" gateway_id=b827ebfffef65a01 remote_addr="127.0.0.1:43638"
May 14 02:13:26 B827EBFFFEF65A01 chirpstack-gateway-bridge[559]: time="2020-05-14T02:13:26+01:00" level=info msg="integration/mqtt: subscribing to topic" qos=0 topic="gateway/b827ebfffef65a01/command/#"
May 14 02:13:26 B827EBFFFEF65A01 chirpstack-gateway-bridge[559]: time="2020-05-14T02:13:26+01:00" level=info msg="backend/basicstation: gateway version received" firmware=1.0.0 gateway_id=b827ebfffef65a01 model=rpi package=1.0.0 protocol=2 station="2.0.3(rpi/std)"
May 14 02:13:26 B827EBFFFEF65A01 chirpstack-gateway-bridge[559]: time="2020-05-14T02:13:26+01:00" level=info msg="backend/basicstation: router-config message sent to gateway" gateway_id=b827ebfffef65a01
May 14 02:13:26 B827EBFFFEF65A01 chirpstack-gateway-bridge[559]: time="2020-05-14T02:13:26+01:00" level=info msg="backend/basicstation: gateway disconnected" gateway_id=b827ebfffef65a01 remote_addr="127.0.0.1:43638"
May 14 02:13:26 B827EBFFFEF65A01 chirpstack-gateway-bridge[559]: time="2020-05-14T02:13:26+01:00" level=info msg="integration/mqtt: unsubscribe topic" topic="gateway/b827ebfffef65a01/command/#"
May 14 02:13:36 B827EBFFFEF65A01 chirpstack-gateway-bridge[559]: time="2020-05-14T02:13:36+01:00" level=info msg="backend/basicstation: router-info request received" gateway_id=b827ebfffef65a01 remote_addr="127.0.0.1:43640" router_uri="ws://127.0.0.1:3001/gateway/b827ebfffef65a01"
May 14 02:13:36 B827EBFFFEF65A01 chirpstack-gateway-bridge[559]: time="2020-05-14T02:13:36+01:00" level=info msg="backend/basicstation: gateway connected" gateway_id=b827ebfffef65a01 remote_addr="127.0.0.1:43642"
May 14 02:13:36 B827EBFFFEF65A01 chirpstack-gateway-bridge[559]: time="2020-05-14T02:13:36+01:00" level=info msg="integration/mqtt: subscribing to topic" qos=0 topic="gateway/b827ebfffef65a01/command/#"
May 14 02:13:36 B827EBFFFEF65A01 chirpstack-gateway-bridge[559]: time="2020-05-14T02:13:36+01:00" level=info msg="backend/basicstation: gateway version received" firmware=1.0.0 gateway_id=b827ebfffef65a01 model=rpi package=1.0.0 protocol=2 station="2.0.3(rpi/std)"
May 14 02:13:36 B827EBFFFEF65A01 chirpstack-gateway-bridge[559]: time="2020-05-14T02:13:36+01:00" level=info msg="backend/basicstation: router-config message sent to gateway" gateway_id=b827ebfffef65a01
May 14 02:13:37 B827EBFFFEF65A01 chirpstack-gateway-bridge[559]: time="2020-05-14T02:13:37+01:00" level=info msg="backend/basicstation: gateway disconnected" gateway_id=b827ebfffef65a01 remote_addr="127.0.0.1:43642"
May 14 02:13:37 B827EBFFFEF65A01 chirpstack-gateway-bridge[559]: time="2020-05-14T02:13:37+01:00" level=info msg="integration/mqtt: unsubscribe topic" topic="gateway/b827ebfffef65a01/command/#"
May 14 02:13:47 B827EBFFFEF65A01 chirpstack-gateway-bridge[559]: time="2020-05-14T02:13:47+01:00" level=info msg="backend/basicstation: router-info request received" gateway_id=b827ebfffef65a01 remote_addr="127.0.0.1:43644" router_uri="ws://127.0.0.1:3001/gateway/b827ebfffef65a01"
May 14 02:13:47 B827EBFFFEF65A01 chirpstack-gateway-bridge[559]: time="2020-05-14T02:13:47+01:00" level=info msg="backend/basicstation: gateway connected" gateway_id=b827ebfffef65a01 remote_addr="127.0.0.1:43646"
May 14 02:13:47 B827EBFFFEF65A01 chirpstack-gateway-bridge[559]: time="2020-05-14T02:13:47+01:00" level=info msg="integration/mqtt: subscribing to topic" qos=0 topic="gateway/b827ebfffef65a01/command/#"
May 14 02:13:47 B827EBFFFEF65A01 chirpstack-gateway-bridge[559]: time="2020-05-14T02:13:47+01:00" level=info msg="backend/basicstation: gateway version received" firmware=1.0.0 gateway_id=b827ebfffef65a01 model=rpi package=1.0.0 protocol=2 station="2.0.3(rpi/std)"
May 14 02:13:47 B827EBFFFEF65A01 chirpstack-gateway-bridge[559]: time="2020-05-14T02:13:47+01:00" level=info msg="backend/basicstation: router-config message sent to gateway" gateway_id=b827ebfffef65a01
May 14 02:14:52 B827EBFFFEF65A01 chirpstack-gateway-bridge[559]: time="2020-05-14T02:14:52+01:00" level=info msg="backend/basicstation: gateway disconnected" gateway_id=b827ebfffef65a01 remote_addr="127.0.0.1:43646"
May 14 02:14:52 B827EBFFFEF65A01 chirpstack-gateway-bridge[559]: time="2020-05-14T02:14:52+01:00" level=info msg="integration/mqtt: unsubscribe topic" topic="gateway/b827ebfffef65a01/command/#"
May 14 02:14:56 B827EBFFFEF65A01 chirpstack-gateway-bridge[559]: time="2020-05-14T02:14:56+01:00" level=info msg="backend/basicstation: gateway connected" gateway_id=b827ebfffef65a01 remote_addr="127.0.0.1:43648"
May 14 02:14:56 B827EBFFFEF65A01 chirpstack-gateway-bridge[559]: time="2020-05-14T02:14:56+01:00" level=info msg="integration/mqtt: subscribing to topic" qos=0 topic="gateway/b827ebfffef65a01/command/#"
May 14 02:14:56 B827EBFFFEF65A01 chirpstack-gateway-bridge[559]: time="2020-05-14T02:14:56+01:00" level=info msg="backend/basicstation: gateway version received" firmware=1.0.0 gateway_id=b827ebfffef65a01 model=rpi package=1.0.0 protocol=2 station="2.0.3(rpi/std)"
May 14 02:14:56 B827EBFFFEF65A01 chirpstack-gateway-bridge[559]: time="2020-05-14T02:14:56+01:00" level=info msg="backend/basicstation: router-config message sent to gateway" gateway_id=b827ebfffef65a01
May 14 02:14:56 B827EBFFFEF65A01 chirpstack-gateway-bridge[559]: time="2020-05-14T02:14:56+01:00" level=info msg="backend/basicstation: gateway disconnected" gateway_id=b827ebfffef65a01 remote_addr="127.0.0.1:43648"
May 14 02:14:56 B827EBFFFEF65A01 chirpstack-gateway-bridge[559]: time="2020-05-14T02:14:56+01:00" level=info msg="integration/mqtt: unsubscribe topic" topic="gateway/b827ebfffef65a01/command/#"

I'mreally stuck about this, can you help me please ?

@beitler
Copy link
Contributor

beitler commented May 14, 2020

This is related to #53. A fix will be available in the next release.
Until then, as a work around you could start station in daemon mode using flag -d (see station --help for more details). This will cause station to start in the background, and additionally it will fork into a child-process such that the parent remains the daemon control process which restarts the the child when it exits for some reason. In the log you will see something like:

2020-05-14 10:55:23.175 [any:CRIT] Radio device '/dev/spidev32766.0' in use by process: 17882
2020-05-14 10:55:23.596 [SYS:ERRO] DAEMON: Station process 17882 died (exit code 0x1E00)
2020-05-14 10:55:23.606 [SYS:INFO] DAEMON: Station process 17943 started...

In order to be able to inspect the log in daemon mode you should specify a log file inside station.conf, like this:

...
    "station_conf": {
        "log_file":  "/var/log/station.log",
        "log_level": "DEBUG",  /* XDEBUG,DEBUG,VERBOSE,INFO,NOTICE,WARNING,ERROR,CRITICAL */
        "log_size":  10000000,
        "log_rotate":  3,
         ...
    }
...

@jawadiot
Copy link
Author

jawadiot commented May 14, 2020

Your solution works well !!!
Despite the fact that the service connects disconnects I still managed to make a communication between a sensor and the Gateway bridge I do not know if it is really bad that it starts and restarts but in any case it works,thank you for your help.

beitler added a commit that referenced this issue Jan 31, 2022
* deps: Updated sx1302_hal dependency to version 2.1.0 (no LBT yet) (Resolves #89, #103, #121, #130)
* deps: Added sx1302_hal patch for handling of latched xticks rollover
* deps: Updated mbedTLS dependency to version 2.28.0 (LTS)
* deps: Fixed lgw patch causing IQ inversion in 500kHz channel (Resolves #81)
* s2e: Added support for AU915 (Resolves #43)
* s2e: Added support for LoRaWAN Regional Parameters Common Names (Resolves #18)
* s2e: Fixed dnchnl2 issue (Resolves #79)
* s2e: Fixed class C backoff logic (Resolves #87)
* s2e: Fixed class B beacon format (Resolves #129, #131)
* s2e: Fixed DR range check in upchannels list parser (Resolves #141)
* ral: Changed handling of xticks for lgw1302
* ral: Fixed radio in use issue (Resolves #53, #62)
* ral: Fixed types in txpow assignment (master/slave) (Resolves #118)
* ral: Fixed class B beacon parameters (Resolves #132)
* sx130xconf: Fixed parsing of rssi_tcomp values for sx1302 (Resolves #144)
* tls: Fixed TLS cert parsing issue (Resolves #76)
* sys_linux: Added support for usb/spi prefix in radio devname
* sys_linux: Added mbedTLS version to startup log
* sys_linux: Changed version to be printed to stdout (Resolves #51)
* sys_linux: Changed default max dbuf size (Resolves #95)
* sys_linux: Fixed relative home path handling (Resolves #140)
* sys_linux: Fixed memory corruption during system command execution (Resolves #146)
* tc/cups: Fixed sync on credset file IO (Resolves #94)
* timesync: Fixed UTC to PPS alignment
* log: Changed verbosity of XDEBUG log level
* log: Changed logging experience for improved clarity
* log: Added HAL log integration into logging module
* make: Changed makefiles for more space-friendliness (Resolves #66)
* net: Changed strictness on line-endings in key files (Resolves #68)
* gps: Fixed parsing of ublox NAV-TIMEGPS message
* Restored LICENSE file (Resolves #63, #67)
@beitler beitler closed this as completed Jan 31, 2022
@GitUser8675309
Copy link

I have the same issue here in 2024. Is there a fix for this?

@beitler
Copy link
Contributor

beitler commented May 1, 2024

I have the same issue here in 2024. Is there a fix for this?

Can you please provide logs?

@GitUser8675309
Copy link

Hi Beitler,
Here's the output.

$ docker compose up
WARN[0000] /home/gerry/docker-compose.yml: version is obsolete
[+] Running 20/20
✔ basicstation Pulled 38.7s
✔ 59f5764b1f6d Pull complete 18.6s
✔ d25f96231021 Pull complete 18.9s
✔ bb18e33e1caf Pull complete 20.8s
✔ 0d20bfb20cea Pull complete 20.9s
✔ e19e63a02380 Pull complete 21.0s
✔ 86ebbdeb7b51 Pull complete 21.1s
✔ 4f4fb700ef54 Pull complete 21.1s
✔ 479634a35477 Pull complete 21.2s
✔ bcab80059af9 Pull complete 21.2s
✔ 5442132ede36 Pull complete 21.3s
✔ c3ce9eb5ac75 Pull complete 21.4s
✔ 9b5701f42b0b Pull complete 24.2s
✔ 91b4b4d6dc2f Pull complete 24.3s
✔ 9ccdbfcb8f3f Pull complete 24.3s
✔ fd2bc0fab3b3 Pull complete 30.8s
✔ 0b1c45d39382 Pull complete 31.0s
✔ e7fc4261f017 Pull complete 31.1s
✔ e925e200ba5a Pull complete 36.9s
✔ 7cc391a815a2 Pull complete 37.0s
[+] Running 1/1
✔ Container basicstation Created 8.6s
Attaching to basicstation
basicstation | ERROR: DEVICE set to auto discover but no concentrator found! (INTERFACE set to SPI)
basicstation | ------------------------------------------------------------------
basicstation | BasicStation (TM) Packet Forwarder Container v2.8.3
basicstation | (c) Xose Pérez 2022-2024
basicstation |
basicstation | Based on:
basicstation | * basicstation v2.0.6
basicstation | * sx1302_hal v2.1.0
basicstation | * picoGW_hal v0.2.3
basicstation | ------------------------------------------------------------------
basicstation |
basicstation | Protocol
basicstation | ------------------------------------------------------------------
basicstation | Mode: DYNAMIC
basicstation | Protocol: LNS
basicstation | LNS Server: wss://eu1.cloud.thethings.network:8887
basicstation | Gateway EUI: D83ADDFFFE78ADB2
basicstation | EUI Source: eth0
basicstation |
basicstation | Radio
basicstation | ------------------------------------------------------------------
basicstation | Model: SX1303
basicstation | Concentrator: SX1303
basicstation | Design: CORECELL
basicstation | Interface: SPI
basicstation | Radio Device: /dev/spidev0.1
basicstation | SPI Speed: 8000000
basicstation | Reset GPIO: 17
basicstation | Enable GPIO: 0
basicstation |
basicstation | 2024-04-30 21:42:28.580 [SYS:INFO] Logging : stderr (maxsize=10000000, rotate=3)
basicstation | 2024-04-30 21:42:28.581 [SYS:INFO] Station Ver : 2.0.6(corecell/stdn) 2024-04-16 20:15:36
basicstation | 2024-04-30 21:42:28.581 [SYS:INFO] Package Ver : (null)
basicstation | 2024-04-30 21:42:28.581 [SYS:INFO] mbedTLS Ver : 2.28.0
basicstation | 2024-04-30 21:42:28.581 [SYS:INFO] proto EUI : d83a:ddff:fe78:adb2 (station.conf)
basicstation | 2024-04-30 21:42:28.581 [SYS:INFO] prefix EUI : ::1 (builtin)
basicstation | 2024-04-30 21:42:28.581 [SYS:INFO] Station EUI : d83a:ddff:fe78:adb2
basicstation | 2024-04-30 21:42:28.581 [SYS:INFO] Station home: ./ (builtin)
basicstation | 2024-04-30 21:42:28.581 [SYS:INFO] Station temp: /var/tmp/ (builtin)
basicstation | 2024-04-30 21:42:28.581 [SYS:WARN] Station in NO-CUPS mode
basicstation | 2024-04-30 21:42:28.582 [RAL:DEBU] execvp argv[0]: </proc/self/exe>
basicstation | 2024-04-30 21:42:28.582 [RAL:DEBU] argv[1]: <-S>
basicstation | 2024-04-30 21:42:28.582 [RAL:DEBU] argv[2]: <(null)>
basicstation | 2024-04-30 21:42:28.585 [S00:INFO] Logging : stderr (maxsize=10000000, rotate=3)
basicstation | 2024-04-30 21:42:28.585 [S00:INFO] Station Ver : 2.0.6(corecell/stdn) 2024-04-16 20:15:36
basicstation | 2024-04-30 21:42:28.585 [S00:INFO] Package Ver : (null)
basicstation | 2024-04-30 21:42:28.585 [S00:INFO] mbedTLS Ver : 2.28.0
basicstation | 2024-04-30 21:42:28.585 [S00:INFO] proto EUI : d83a:ddff:fe78:adb2 (station.conf)
basicstation | 2024-04-30 21:42:28.585 [S00:INFO] prefix EUI : ::1 (builtin)
basicstation | 2024-04-30 21:42:28.585 [S00:INFO] Station EUI : d83a:ddff:fe78:adb2
basicstation | 2024-04-30 21:42:28.585 [S00:INFO] Station home: ./ (builtin)
basicstation | 2024-04-30 21:42:28.585 [S00:INFO] Station temp: /var/tmp/ (builtin)
basicstation | 2024-04-30 21:42:28.585 [S00:INFO] Station slave: 0
basicstation | 2024-04-30 21:42:28.585 [S00:WARN] Station in NO-CUPS mode
basicstation | 2024-04-30 21:42:28.585 [S00:INFO] Slave LGW (0) - started.
basicstation | 2024-04-30 21:42:28.582 [RAL:INFO] Master has started slave: pid=66 idx=0 (attempt 1)
basicstation | 2024-04-30 21:42:28.782 [TCE:INFO] Starting TC engine
basicstation | 2024-04-30 21:42:28.830 [AIO:INFO] ./tc.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-04-30 21:42:28.831 [TCE:INFO] Connecting to INFOS: wss://eu1.cloud.thethings.network :8887
basicstation | 2024-04-30 21:42:30.026 [TCE:INFO] Infos: d83a:ddff:fe78:adb2 muxs-::0 wss://eu1.cloud.th ethings.network:8887/traffic/eui-D83ADDFFFE78ADB2
basicstation | 2024-04-30 21:42:30.026 [AIO:DEBU] [4] ws_close reason=1000
basicstation | 2024-04-30 21:42:30.026 [AIO:ERRO] Recv failed: SSL - The peer notified us that the conne ction is going to be closed
basicstation | 2024-04-30 21:42:30.026 [AIO:DEBU] [4] WS connection shutdown...
basicstation | 2024-04-30 21:42:30.074 [AIO:INFO] ./tc.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-04-30 21:42:30.074 [TCE:VERB] Connecting to MUXS...
basicstation | 2024-04-30 21:42:31.034 [TCE:VERB] Connected to MUXS.
basicstation | 2024-04-30 21:42:31.432 [S00:VERB] /app/config/reset.sh: Forked, waiting...
basicstation | 2024-04-30 21:42:31.432 [S00:DEBU] execvp argv[0]: </app/config/reset.sh>
basicstation | 2024-04-30 21:42:31.432 [S00:DEBU] argv[1]: </dev/spidev0.1>
basicstation | 2024-04-30 21:42:31.432 [S00:DEBU] argv[2]: <0>
basicstation | Concentrator reset through GPIO17 (using sysfs)
basicstation | Warning: /sys/class/gpio/gpio17 does not exist
basicstation | 2024-04-30 21:42:31.461 [S00:INFO] Process /app/config/reset.sh (pid=67) completed
basicstation | 2024-04-30 21:42:31.461 [S00:INFO] Lora gateway library version: Version: 2.1.0;
basicstation | 2024-04-30 21:42:31.462 [S00:INFO] [LGW sx1302] full_duplex=0 clksrc=0 lorawan_public=1
basicstation | 2024-04-30 21:42:31.463 [S00:DEBU] SX130x txlut table (16 entries)
basicstation | 2024-04-30 21:42:31.463 [S00:INFO] SX1302 txlut 0: rf_power=12 pa_gain=0 pwr_idx=15
basicstation | 2024-04-30 21:42:31.463 [S00:INFO] SX1302 txlut 1: rf_power=13 pa_gain=0 pwr_idx=16
basicstation | 2024-04-30 21:42:31.463 [S00:INFO] SX1302 txlut 2: rf_power=14 pa_gain=0 pwr_idx=17
basicstation | 2024-04-30 21:42:31.463 [S00:INFO] SX1302 txlut 3: rf_power=15 pa_gain=0 pwr_idx=19
basicstation | 2024-04-30 21:42:31.463 [S00:INFO] SX1302 txlut 4: rf_power=16 pa_gain=0 pwr_idx=20
basicstation | 2024-04-30 21:42:31.463 [S00:INFO] SX1302 txlut 5: rf_power=17 pa_gain=0 pwr_idx=22
basicstation | 2024-04-30 21:42:31.463 [S00:INFO] SX1302 txlut 6: rf_power=18 pa_gain=1 pwr_idx=1
basicstation | 2024-04-30 21:42:31.463 [S00:INFO] SX1302 txlut 7: rf_power=19 pa_gain=1 pwr_idx=2
basicstation | 2024-04-30 21:42:31.463 [S00:INFO] SX1302 txlut 8: rf_power=20 pa_gain=1 pwr_idx=3
basicstation | 2024-04-30 21:42:31.463 [S00:INFO] SX1302 txlut 9: rf_power=21 pa_gain=1 pwr_idx=4
basicstation | 2024-04-30 21:42:31.463 [S00:INFO] SX1302 txlut 10: rf_power=22 pa_gain=1 pwr_idx=5
basicstation | 2024-04-30 21:42:31.463 [S00:INFO] SX1302 txlut 11: rf_power=23 pa_gain=1 pwr_idx=6
basicstation | 2024-04-30 21:42:31.463 [S00:INFO] SX1302 txlut 12: rf_power=24 pa_gain=1 pwr_idx=7
basicstation | 2024-04-30 21:42:31.463 [S00:INFO] SX1302 txlut 13: rf_power=25 pa_gain=1 pwr_idx=9
basicstation | 2024-04-30 21:42:31.463 [S00:INFO] SX1302 txlut 14: rf_power=26 pa_gain=1 pwr_idx=11
basicstation | 2024-04-30 21:42:31.463 [S00:INFO] SX1302 txlut 15: rf_power=27 pa_gain=1 pwr_idx=14
basicstation | 2024-04-30 21:42:31.463 [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-04-30 21:42:31.463 [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-04-30 21:42:31.463 [S00:INFO] [mSF] 0: 903.9MHz rf=0 freq=-400.0 datarate=0
basicstation | 2024-04-30 21:42:31.463 [S00:INFO] [mSF] 1: 904.1MHz rf=0 freq=-200.0 datarate=0
basicstation | 2024-04-30 21:42:31.463 [S00:INFO] [mSF] 2: 904.3MHz rf=0 freq= +0.0 datarate=0
basicstation | 2024-04-30 21:42:31.463 [S00:INFO] [mSF] 3: 904.5MHz rf=0 freq=+200.0 datarate=0
basicstation | 2024-04-30 21:42:31.463 [S00:INFO] [mSF] 4: 904.7MHz rf=1 freq=-300.0 datarate=0
basicstation | 2024-04-30 21:42:31.463 [S00:INFO] [mSF] 5: 904.9MHz rf=1 freq=-100.0 datarate=0
basicstation | 2024-04-30 21:42:31.463 [S00:INFO] [mSF] 6: 905.1MHz rf=1 freq=+100.0 datarate=0
basicstation | 2024-04-30 21:42:31.463 [S00:INFO] [mSF] 7: 905.3MHz rf=1 freq=+300.0 datarate=0
basicstation | 2024-04-30 21:42:31.463 [S00:INFO] [STD] 8: 904.6MHz rf=0 freq=+300.0 datarate=8 bw =6 Explicit header
basicstation | 2024-04-30 21:42:31.463 [S00:INFO] channel 9 disabled
basicstation | 2024-04-30 21:42:31.463 [S00:INFO] Station device: spi:/dev/spidev0.1 (PPS capture enable d)
basicstation | 2024-04-30 21:42:31.463 [S00:INFO] [lgw_com_open:84] Opening SPI communication interface
basicstation | 2024-04-30 21:42:31.463 [S00:INFO] [lgw_spi_open:88] Setting SPI speed to 8000000
basicstation | 2024-04-30 21:42:31.463 [S00:INFO] [lgw_connect:1192] chip version is 0x00 (v0.0)
basicstation | 2024-04-30 21:42:31.318 [RAL:INFO] Region plan hwspec 'sx1301/1' mapped to 1 slaves 'sx13 01/1'
basicstation | 2024-04-30 21:42:31.319 [RAL:INFO] Master sending 645 bytes of JSON sx1301conf to slave ( 0)
basicstation | 2024-04-30 21:42:31.319 [S2E:INFO] Configuring for region: US915 -- 923.0MHz..928.0MHz
basicstation | 2024-04-30 21:42:31.319 [S2E:INFO] DR0 SF10/BW125
basicstation | 2024-04-30 21:42:31.319 [S2E:INFO] DR1 SF9/BW125
basicstation | 2024-04-30 21:42:31.319 [S2E:INFO] DR2 SF8/BW125
basicstation | 2024-04-30 21:42:31.319 [S2E:INFO] DR3 SF7/BW125
basicstation | 2024-04-30 21:42:31.319 [S2E:INFO] DR4 SF8/BW500
basicstation | 2024-04-30 21:42:31.319 [S2E:INFO] DR5 FSK
basicstation | 2024-04-30 21:42:31.319 [S2E:INFO] DR6 FSK
basicstation | 2024-04-30 21:42:31.319 [S2E:INFO] DR7 FSK
basicstation | 2024-04-30 21:42:31.319 [S2E:INFO] DR8 SF12/BW500
basicstation | 2024-04-30 21:42:31.319 [S2E:INFO] DR9 SF11/BW500
basicstation | 2024-04-30 21:42:31.319 [S2E:INFO] DR10 SF10/BW500
basicstation | 2024-04-30 21:42:31.319 [S2E:INFO] DR11 SF9/BW500
basicstation | 2024-04-30 21:42:31.319 [S2E:INFO] DR12 SF8/BW500
basicstation | 2024-04-30 21:42:31.319 [S2E:INFO] DR13 SF7/BW500
basicstation | 2024-04-30 21:42:31.319 [S2E:INFO] DR14 FSK
basicstation | 2024-04-30 21:42:31.319 [S2E:INFO] DR15 FSK
basicstation | 2024-04-30 21:42:31.319 [S2E:INFO] TX power: 26.0 dBm EIRP
basicstation | 2024-04-30 21:42:31.319 [S2E:INFO] JoinEui list: 0 entries
basicstation | 2024-04-30 21:42:31.319 [S2E:INFO] NetID filter: FFFFFFFF-FFFFFFFF-FFFFFFFF-FFFFFFFF
basicstation | 2024-04-30 21:42:31.319 [S2E:INFO] Dev/test settings: nocca=1 nodc=1 nodwell=1
basicstation | 2024-04-30 21:42:31.319 [S2E:INFO] Beaconing every 2m8s on 923.3MHz(8) @ DR8 (frame layou t 5/11/23)
basicstation | 2024-04-30 21:42:31.319 [S2E:INFO] Beaconing suspend - missing GPS data: time
basicstation | ERROR: Failed to set SX1250_0 in STANDBY_RC mode
basicstation | 2024-04-30 21:42:33.064 [S00:ERRO] [lgw_start:908] failed to setup radio 0
basicstation | 2024-04-30 21:42:33.064 [S00:ERRO] Concentrator start failed: lgw_start
basicstation | 2024-04-30 21:42:33.064 [S00:CRIT] Slave radio start up failed with status 0x08
basicstation | 2024-04-30 21:42:32.952 [RAL:ERRO] Slave (0) - EOF
basicstation | 2024-04-30 21:42:32.953 [any:CRIT] Slave pid=66 idx=0: Fatal exit
basicstation exited with code 0
gerry@rak-gateway:~ $

@VitorBFreitas
Copy link

@GitUser8675309 Did you managed to fix it?

@beitler
Copy link
Contributor

beitler commented Aug 22, 2024

The issue described by @GitUser8675309 is different than the original issue.

In this situation, station is compiled in master/slave configuration (stdn variant).

basicstation | 2024-04-30 21:42:28.581 [SYS:INFO] Station Ver : 2.0.6(corecell/stdn) 2024-04-16 20:15:36

This is intended for 'multi-board' setups, however, here it is used with a single radio board S00. The radio is failing to start up causing the child process to die which in turn is interpreted as a fatal error on the parent process.

basicstation | ERROR: Failed to set SX1250_0 in STANDBY_RC mode
basicstation | 2024-04-30 21:42:33.064 [S00:ERRO] [lgw_start:908] failed to setup radio 0
basicstation | 2024-04-30 21:42:33.064 [S00:ERRO] Concentrator start failed: lgw_start
basicstation | 2024-04-30 21:42:33.064 [S00:CRIT] Slave radio start up failed with status 0x08
basicstation | 2024-04-30 21:42:32.952 [RAL:ERRO] Slave (0) - EOF
basicstation | 2024-04-30 21:42:32.953 [any:CRIT] Slave pid=66 idx=0: Fatal exit
basicstation exited with code 0

I suggest to avoid using a master/slave in a scenario where a single board is used. Also, master/slave for corecell should be considered experimental at this stage. It was intended for Concentrator Design 1.5.

@VitorBFreitas do you observe the same behavior as @GitUser8675309 ? Can you provide logs that indicate the failure mode?

@VitorBFreitas
Copy link

@beitler My issue was misunderstood, sorry. The GPIO library I was using, sysfs, was deprecated. I just needed to add USE_LIBGPIOD to my Docker Compose file to use the libgpiod library. Thank you for your reply anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants