SenseCAP M1 Gateway to TTN

I’m currently trying to use SenseCAP M1 as a gateway for TTN. Is it possible to do so? If yes, then how can I find my gateway’s credentials (Gateway EUI) needed to register my gateway to TTN?

1 Like

Have toy looked at the label on the Gateway?

And a convent search on here

I have checked the label, but it doesn’t contain any information about EUI, this gateway is a bit different from the SenseCAP LoRaWAN gateways.

That is a Helium gateway. It might be possible, however Helium gateway software and updates are managed by the gateway manufacturer so even if you succeed in adapting it now it might revert to helium at any point in the future if you are not careful.
I don’t expect there are many users with experience performing this operation as Helium gateways are more expensive then generic LoRaWAN gateways and most users want to keep mining to recoup their investment or even make some money. (Unlikely with current $HNT values)

There was one topic on this recently. TL:DR: It’s a Raspberry Pi with a concentrator card on it, take out the SD Card, find a new one, flash it with Raspberry OS and try a standard Packet Forwarder install.

1 Like

Many Helium hotspots can be used for any LoRaWAN network as long as it is using a RaspberryPi. Many of them use a RAK concentrator from which details are unavailable.

Nebra has made firmware for many of these hotspots using Balena Openfleet. The source is accessible so you can reverse engineer various hardware settings of a hotspot.

Hotspots using rockchip, are a different story.

2 Likes

I wonder where I would find the correct reset pins for a SenseCAP M1 Raspberry PI hat:

Chapter " Hardware Solutions"
It holds a WM1302 PCIE concentrator card.

I’ve connected this hat to a Raspberry PI 3B and run BasicStation corecell example. It successfully connects to TTN and also successfully forwards node messages to TTN, but after some time crashes when TTN closes the connection:

2023-01-03 02:14:39.713 [AIO:ERRO] Recv failed: NET - Connection was reset by peer
2023-01-03 02:14:39.713 [TCE:VERB] Connection to MUXS closed in state 4
2023-01-03 02:14:39.714 [TCE:INFO] MUXS reconnect backoff 1s (retry 0)
2023-01-03 02:14:40.717 [AIO:INFO] ./tc.trust:
cert. version     : 3
serial number     : 82:10:CF:B0:D2:40:E3:59:44:63:E0:BB:63:82:8B:00
issuer name       : C=US, O=Internet Security Research Group, CN=ISRG Root X1
subject name      : C=US, O=Internet Security Research Group, CN=ISRG Root X1
issued  on        : 2015-06-04 11:04:38
expires on        : 2035-06-04 11:04:38
signed using      : RSA with SHA-256
RSA key size      : 4096 bits
basic constraints : CA=true
key usage         : Key Cert Sign, CRL Sig2023-01-03 02:14:40.717 [TCE:VERB] Connecting to MUXS...
2023-01-03 02:14:41.196 [TCE:VERB] Connected to MUXS.
2023-01-03 02:14:41.245 [SYS:VERB] : Forked, waiting...
2023-01-03 02:14:41.249 [SYS:INFO] Process  (pid=2290) completed
2023-01-03 02:14:41.252 [HAL:INFO] [lgw_com_close:112] Closing SPI communication interface
2023-01-03 02:14:41.252 [RAL:INFO] Lora gateway library version: Version: 2.1.0;
2023-01-03 02:14:41.255 [RAL:INFO] [LGW sx1302] full_duplex=0 clksrc=0 lorawan_public=1
2023-01-03 02:14:41.255 [RAL:INFO] SX1302 txlut  0:  rf_power=12 pa_gain=0 pwr_idx=15
2023-01-03 02:14:41.255 [RAL:INFO] SX1302 txlut  1:  rf_power=13 pa_gain=0 pwr_idx=16
2023-01-03 02:14:41.255 [RAL:INFO] SX1302 txlut  2:  rf_power=14 pa_gain=0 pwr_idx=17
2023-01-03 02:14:41.255 [RAL:INFO] SX1302 txlut  3:  rf_power=15 pa_gain=0 pwr_idx=19
2023-01-03 02:14:41.255 [RAL:INFO] SX1302 txlut  4:  rf_power=16 pa_gain=0 pwr_idx=20
2023-01-03 02:14:41.255 [RAL:INFO] SX1302 txlut  5:  rf_power=17 pa_gain=0 pwr_idx=22
2023-01-03 02:14:41.255 [RAL:INFO] SX1302 txlut  6:  rf_power=18 pa_gain=1 pwr_idx=1
2023-01-03 02:14:41.255 [RAL:INFO] SX1302 txlut  7:  rf_power=19 pa_gain=1 pwr_idx=2
2023-01-03 02:14:41.255 [RAL:INFO] SX1302 txlut  8:  rf_power=20 pa_gain=1 pwr_idx=3
2023-01-03 02:14:41.255 [RAL:INFO] SX1302 txlut  9:  rf_power=21 pa_gain=1 pwr_idx=4
2023-01-03 02:14:41.255 [RAL:INFO] SX1302 txlut 10:  rf_power=22 pa_gain=1 pwr_idx=5
2023-01-03 02:14:41.255 [RAL:INFO] SX1302 txlut 11:  rf_power=23 pa_gain=1 pwr_idx=6
2023-01-03 02:14:41.255 [RAL:INFO] SX1302 txlut 12:  rf_power=24 pa_gain=1 pwr_idx=7
2023-01-03 02:14:41.255 [RAL:INFO] SX1302 txlut 13:  rf_power=25 pa_gain=1 pwr_idx=9
2023-01-03 02:14:41.255 [RAL:INFO] SX1302 txlut 14:  rf_power=26 pa_gain=1 pwr_idx=11
2023-01-03 02:14:41.255 [RAL:INFO] SX1302 txlut 15:  rf_power=27 pa_gain=1 pwr_idx=14
2023-01-03 02:14:41.255 [RAL:INFO]  RX/TX RF0:    867.5MHz rssi_offset=-215.4 type=5 rssi_tcomp=0.000 0.000 20.410 2162.560 0.000
2023-01-03 02:14:41.255 [RAL:INFO]  RX    RF1:    868.5MHz rssi_offset=-215.4 type=5 rssi_tcomp=0.000 0.000 20.410 2162.560 0.000
2023-01-03 02:14:41.256 [RAL:INFO]  [mSF]   0:    868.1MHz rf=1 freq=-400.0 datarate=0
2023-01-03 02:14:41.256 [RAL:INFO]  [mSF]   1:    868.3MHz rf=1 freq=-200.0 datarate=0
2023-01-03 02:14:41.256 [RAL:INFO]  [mSF]   2:    868.5MHz rf=1 freq=  +0.0 datarate=0
2023-01-03 02:14:41.256 [RAL:INFO]  [mSF]   3:    867.1MHz rf=0 freq=-400.0 datarate=0
2023-01-03 02:14:41.256 [RAL:INFO]  [mSF]   4:    867.3MHz rf=0 freq=-200.0 datarate=0
2023-01-03 02:14:41.256 [RAL:INFO]  [mSF]   5:    867.5MHz rf=0 freq=  +0.0 datarate=0
2023-01-03 02:14:41.256 [RAL:INFO]  [mSF]   6:    867.7MHz rf=0 freq=+200.0 datarate=0
2023-01-03 02:14:41.256 [RAL:INFO]  [mSF]   7:    867.9MHz rf=0 freq=+400.0 datarate=0
2023-01-03 02:14:41.256 [RAL:INFO]  [STD]   8:    868.3MHz rf=1 freq=-200.0 datarate=7 bw=5 Explicit header
2023-01-03 02:14:41.256 [RAL:INFO]  [FSK]   9:    868.8MHz rf=1 freq=+300.0 datarate=50000 bw=0 sync_word=0/0
2023-01-03 02:14:41.256 [RAL:INFO] Station device: spi:/dev/spidev0.0 (PPS capture disabled)
ERROR: Failed to set SX1250_0 in STANDBY_RC mode
2023-01-03 02:14:41.256 [HAL:INFO] [lgw_com_open:84] Opening SPI communication interface
2023-01-03 02:14:41.256 [HAL:INFO] [lgw_spi_open:88] Setting SPI speed to 2000000
2023-01-03 02:14:41.256 [HAL:INFO] [lgw_connect:1192] chip version is 0x10 (v1.0)
2023-01-03 02:14:42.861 [HAL:ERRO] [lgw_start:906] failed to setup radio 0
2023-01-03 02:14:42.861 [RAL:ERRO] Concentrator start failed: lgw_start
2023-01-03 02:14:42.861 [RAL:ERRO] ral_config failed with status 0x08
2023-01-03 02:14:42.861 [any:ERRO] Closing connection to muxs - error in s2e_onMsg
2023-01-03 02:14:42.915 [TCE:VERB] Connection to MUXS closed in state -1
2023-01-03 02:14:42.915 [TCE:INFO] INFOS reconnect backoff 10s (retry 1)
2023-01-03 02:14:44.972 [SYN:ERRO] SX130X#0 trigger count not ticking or weird value: 0x5A000910282828 .. 0x5A000910282828 (dxc=0)
2023-01-03 02:14:47.072 [SYN:ERRO] SX130X#0 trigger count not ticking or weird value: 0x5A000910282828 .. 0x5A000910282828 (dxc=0)
2023-01-03 02:14:49.173 [SYN:ERRO] SX130X#0 trigger count not ticking or weird value: 0x5A000910282828 .. 0x5A000910282828 (dxc=0)
2023-01-03 02:14:51.282 [SYN:ERRO] SX130X#0 trigger count not ticking or weird value: 0x5A000910282828 .. 0x5A000910282828 (dxc=0)
2023-01-03 02:14:52.927 [AIO:INFO] ./tc.trust:
cert. version     : 3
serial number     : 82:10:CF:B0:D2:40:E3:59:44:63:E0:BB:63:82:8B:00
issuer name       : C=US, O=Internet Security Research Group, CN=ISRG Root X1
subject name      : C=US, O=Internet Security Research Group, CN=ISRG Root X1
issued  on        : 2015-06-04 11:04:38
expires on        : 2035-06-04 11:04:38
signed using      : RSA with SHA-256
RSA key size      : 4096 bits
basic constraints : CA=true
key usage         : Key Cert Sign, CRL Sig2023-01-03 02:14:52.927 [TCE:INFO] Connecting to INFOS: wss://eu1.cloud.thethings.network:443
2023-01-03 02:14:53.414 [TCE:INFO] Infos: b827:ebff:feac:1111 muxs-::0 wss://eu1.cloud.thethings.network:443/traffic/eui-B827EBFFFEAC1111
2023-01-03 02:14:53.415 [AIO:ERRO] Recv failed: SSL - The peer notified us that the connection is going to be closed
2023-01-03 02:14:53.417 [AIO:INFO] ./tc.trust:
cert. version     : 3
serial number     : 82:10:CF:B0:D2:40:E3:59:44:63:E0:BB:63:82:8B:00
issuer name       : C=US, O=Internet Security Research Group, CN=ISRG Root X1
subject name      : C=US, O=Internet Security Research Group, CN=ISRG Root X1
issued  on        : 2015-06-04 11:04:38
expires on        : 2035-06-04 11:04:38
signed using      : RSA with SHA-256
RSA key size      : 4096 bits
basic constraints : CA=true
key usage         : Key Cert Sign, CRL Sig2023-01-03 02:14:53.417 [TCE:VERB] Connecting to MUXS...
2023-01-03 02:14:53.859 [TCE:VERB] Connected to MUXS.
2023-01-03 02:14:53.906 [SYS:VERB] : Forked, waiting...
2023-01-03 02:14:53.911 [SYS:INFO] Process  (pid=2302) completed
2023-01-03 02:14:53.912 [RAL:INFO] Lora gateway library version: Version: 2.1.0;
2023-01-03 02:14:53.915 [any:CRIT] Radio device '/dev/spidev0.0' in use by process: 881

Simply restarting BasicStation or the OS does not help - I still get “Radio device ‘/dev/spidev0.0’ in use by process:”. The only thing (known to me) that helps is shutting down the PI and waiting for some time.

I suspect that the reset pins are wrong, and therefore the concentrator is not really reset.
So, any hints how to find out the correct pins would be appreciated.

I’ve also found the following issue which should be resolved, but apparently still occurs in my case:

Starting BasicStation as a daemon does not really help - it restarts the process, but the same error occurs over and over again.

With the following custom command line the behavior is slightly different, but still, there is an endless failure loop.

RADIODEV=/dev/spidev0.0 …/…/build-corecell-std/bin/station --daemon --force --home=/home/lopi/basicstation/examples/corecell/lns-ttn --radio-init=/home/lopi/basicstation/examples/corecell/rinit.sh --log-file=/home/lopi/basicstation/examples/corecell/lns-ttn/station_daemon.log

2023-01-03 04:52:54.022 [SYS:INFO] Logging     : /home/lopi/basicstation/examples/corecell/lns-ttn/station_daemon.log (maxsize=10000000, rotate=3)
2023-01-03 04:52:54.023 [SYS:INFO] Station Ver : 2.0.6(corecell/std) 2023-01-01 14:07:17
2023-01-03 04:52:54.023 [SYS:INFO] Package Ver : 2.0.4
2023-01-03 04:52:54.023 [SYS:INFO] mbedTLS Ver : 2.28.0
2023-01-03 04:52:54.023 [SYS:INFO] proto EUI   : 0:b827:ebac:1111	(/sys/class/net/eth0/address)
2023-01-03 04:52:54.023 [SYS:INFO] prefix EUI  : ::1	(builtin)
2023-01-03 04:52:54.024 [SYS:INFO] Station EUI : b827:ebff:feac:1111
2023-01-03 04:52:54.024 [SYS:INFO] Station home: /home/lopi/basicstation/examples/corecell/lns-ttn/	(--home)
2023-01-03 04:52:54.024 [SYS:INFO] Station temp: /var/tmp/	(builtin)
2023-01-03 04:52:54.024 [SYS:WARN] Station in NO-CUPS mode
2023-01-03 04:52:54.026 [SYS:INFO] DAEMON: Station process 5910 started...
2023-01-03 04:52:54.228 [TCE:INFO] Starting TC engine
2023-01-03 04:52:54.234 [AIO:INFO] /home/lopi/basicstation/examples/corecell/lns-ttn/tc.trust: 
cert. version     : 3
serial number     : 82:10:CF:B0:D2:40:E3:59:44:63:E0:BB:63:82:8B:00
issuer name       : C=US, O=Internet Security Research Group, CN=ISRG Root X1
subject name      : C=US, O=Internet Security Research Group, CN=ISRG Root X1
issued  on        : 2015-06-04 11:04:38
expires on        : 2035-06-04 11:04:38
signed using      : RSA with SHA-256
RSA key size      : 4096 bits
basic constraints : CA 2023-01-03 04:52:54.234 [TCE:INFO] Connecting to INFOS: wss://eu1.cloud.thethings.network:8887
2023-01-03 04:52:54.319 [AIO:XDEB] [4] ws_connecting state=1
2023-01-03 04:52:54.362 [AIO:XDEB] [4] ws_connecting state=1
2023-01-03 04:52:54.363 [AIO:XDEB] [4] ws_connecting state=1
2023-01-03 04:52:54.649 [AIO:XDEB] [4] ws_connecting state=1
2023-01-03 04:52:54.649 [AIO:XDEB] [4] ws_connecting state=2
2023-01-03 04:52:54.649 [AIO:XDEB] [4] socket write bytes=304
2023-01-03 04:52:54.691 [AIO:XDEB] [4] ws_connecting state=3
2023-01-03 04:52:54.691 [AIO:XDEB] [4] socket read  bytes=129
2023-01-03 04:52:54.691 [AIO:XDEB] [4|WS] > {"router":"b827:ebff:feac:1111"}
2023-01-03 04:52:54.692 [AIO:XDEB] [4] socket write bytes=38
2023-01-03 04:52:54.744 [AIO:XDEB] [4] socket read  bytes=130
2023-01-03 04:52:54.744 [AIO:XDEB] [4|WS] < {"router":"b827:ebff:feac:1111","muxs":"muxs-::0","uri":"wss://eu1.cloud.thethings.network:8887/traffic/eui-B827EBFFFEAC1111"}
2023-01-03 04:52:54.744 [TCE:INFO] Infos: b827:ebff:feac:1111 muxs-::0 wss://eu1.cloud.thethings.network:8887/traffic/eui-B827EBFFFEAC1111
2023-01-03 04:52:54.744 [AIO:DEBU] [4] ws_close reason=1000
2023-01-03 04:52:54.744 [AIO:ERRO] Recv failed: SSL - The peer notified us that the connection is going to be closed
2023-01-03 04:52:54.744 [AIO:DEBU] [4] WS connection shutdown...
2023-01-03 04:52:54.746 [AIO:INFO] /home/lopi/basicstation/examples/corecell/lns-ttn/tc.trust: 
cert. version     : 3
serial number     : 82:10:CF:B0:D2:40:E3:59:44:63:E0:BB:63:82:8B:00
issuer name       : C=US, O=Internet Security Research Group, CN=ISRG Root X1
subject name      : C=US, O=Internet Security Research Group, CN=ISRG Root X1
issued  on        : 2015-06-04 11:04:38
expires on        : 2035-06-04 11:04:38
signed using      : RSA with SHA-256
RSA key size      : 4096 bits
basic constraints : CA 2023-01-03 04:52:54.746 [TCE:VERB] Connecting to MUXS...
2023-01-03 04:52:54.793 [AIO:XDEB] [4] ws_connecting state=1
2023-01-03 04:52:54.837 [AIO:XDEB] [4] ws_connecting state=1
2023-01-03 04:52:54.838 [AIO:XDEB] [4] ws_connecting state=1
2023-01-03 04:52:54.838 [AIO:XDEB] [4] ws_connecting state=1
2023-01-03 04:52:55.099 [AIO:XDEB] [4] ws_connecting state=1
2023-01-03 04:52:55.099 [AIO:XDEB] [4] ws_connecting state=2
2023-01-03 04:52:55.099 [AIO:XDEB] [4] socket write bytes=321
2023-01-03 04:52:55.166 [AIO:XDEB] [4] ws_connecting state=3
2023-01-03 04:52:55.166 [AIO:XDEB] [4] socket read  bytes=129
2023-01-03 04:52:55.166 [TCE:VERB] Connected to MUXS.
2023-01-03 04:52:55.166 [AIO:XDEB] [4|WS] > {"msgtype":"version","station":"2.0.6(corecell/std)","firmware":"2.0.4","package":"2.0.4","model":"corecell","protocol":2,"features":"rmtsh"}
2023-01-03 04:52:55.167 [AIO:XDEB] [4] socket write bytes=149
2023-01-03 04:52:55.212 [AIO:XDEB] [4] socket read  bytes=1105
2023-01-03 04:52:55.212 [AIO:XDEB] [4|WS] < {"msgtype":"router_config","NetID":null,"JoinEui":null,"region":"EU863","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],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0]],"sx1301_conf":[{"radio_0":{"enable":true,"freq":867500000},"radio_1":{"enable":true,"freq":868500000},"chan_multiSF_0":{"enable":true,"radio":1,"if":-400000},"chan_multiSF_1":{"enabl
2023-01-03 04:52:55.212 [AIO:XDEB] [4|WS] . e":true,"radio":1,"if":-200000},"chan_multiSF_2":{"enable":true,"radio":1,"if":0},"chan_multiSF_3":{"enable":true,"radio":0,"if":-400000},"chan_multiSF_4":{"enable":true,"radio":0,"if":-200000},"chan_multiSF_5":{"enable":true,"radio":0,"if":0},"chan_multiSF_6":{"enable":true,"radio":0,"if":200000},"chan_multiSF_7":{"enable":true,"radio":0,"if":400000},"chan_Lora_std":{"enable":true,"radio":1,"if":-200000,"bandwidth":250000,"spread_factor":7},"chan_FSK":{"ena
2023-01-03 04:52:55.212 [AIO:XDEB] [4|WS] . ble":true,"radio":1,"if":300000,"datarate":50000}}],"nocca":true,"nodc":true,"nodwell":true,"MuxTime":1672721575.1901913,"bcning":{"DR":3,"layout":[2,8,17],"freqs":[869525000]}}
2023-01-03 04:52:55.191 [SYS:VERB] /home/lopi/basicstation/examples/corecell/rinit.sh: Forked, waiting...
2023-01-03 04:52:55.191 [SYS:DEBU] execvp argv[0]: </bin/bash>
2023-01-03 04:52:55.192 [SYS:DEBU]        argv[1]: </home/lopi/basicstation/examples/corecell/rinit.sh>
2023-01-03 04:52:55.192 [SYS:DEBU]        argv[2]: </home/lopi/basicstation/examples/corecell/rinit.sh>
2023-01-03 04:52:55.192 [SYS:DEBU]        argv[3]: </dev/spidev0.0>
2023-01-03 04:52:56.146 [SYS:INFO] Process /home/lopi/basicstation/examples/corecell/rinit.sh (pid=5912) completed
2023-01-03 04:52:56.146 [HAL:XDEB] [lgw_stop:1198]  --- IN
2023-01-03 04:52:56.146 [HAL:XDEB] [lgw_stop:1201] Note: LoRa concentrator was not started...
2023-01-03 04:52:56.146 [RAL:INFO] Lora gateway library version: Version: 2.1.0;
2023-01-03 04:52:56.151 [RAL:INFO] [LGW sx1302] full_duplex=0 clksrc=0 lorawan_public=1
2023-01-03 04:52:56.152 [HAL:XDEB] [lgw_board_setconf:478] Note: board configuration: com_type: SPI, com_path: /dev/spidev0.0, lorawan_public:1, clksrc:0, full_duplex:0
2023-01-03 04:52:56.152 [RAL:DEBU] SX130x txlut table (16 entries)
2023-01-03 04:52:56.152 [RAL:INFO] SX1302 txlut  0:  rf_power=12 pa_gain=0 pwr_idx=15
2023-01-03 04:52:56.152 [RAL:INFO] SX1302 txlut  1:  rf_power=13 pa_gain=0 pwr_idx=16
2023-01-03 04:52:56.152 [RAL:INFO] SX1302 txlut  2:  rf_power=14 pa_gain=0 pwr_idx=17
2023-01-03 04:52:56.152 [RAL:INFO] SX1302 txlut  3:  rf_power=15 pa_gain=0 pwr_idx=19
2023-01-03 04:52:56.152 [RAL:INFO] SX1302 txlut  4:  rf_power=16 pa_gain=0 pwr_idx=20
2023-01-03 04:52:56.152 [RAL:INFO] SX1302 txlut  5:  rf_power=17 pa_gain=0 pwr_idx=22
2023-01-03 04:52:56.152 [RAL:INFO] SX1302 txlut  6:  rf_power=18 pa_gain=1 pwr_idx=1
2023-01-03 04:52:56.152 [RAL:INFO] SX1302 txlut  7:  rf_power=19 pa_gain=1 pwr_idx=2
2023-01-03 04:52:56.152 [RAL:INFO] SX1302 txlut  8:  rf_power=20 pa_gain=1 pwr_idx=3
2023-01-03 04:52:56.152 [RAL:INFO] SX1302 txlut  9:  rf_power=21 pa_gain=1 pwr_idx=4
2023-01-03 04:52:56.152 [RAL:INFO] SX1302 txlut 10:  rf_power=22 pa_gain=1 pwr_idx=5
2023-01-03 04:52:56.152 [RAL:INFO] SX1302 txlut 11:  rf_power=23 pa_gain=1 pwr_idx=6
2023-01-03 04:52:56.152 [RAL:INFO] SX1302 txlut 12:  rf_power=24 pa_gain=1 pwr_idx=7
2023-01-03 04:52:56.152 [RAL:INFO] SX1302 txlut 13:  rf_power=25 pa_gain=1 pwr_idx=9
2023-01-03 04:52:56.152 [RAL:INFO] SX1302 txlut 14:  rf_power=26 pa_gain=1 pwr_idx=11
2023-01-03 04:52:56.152 [RAL:INFO] SX1302 txlut 15:  rf_power=27 pa_gain=1 pwr_idx=14
2023-01-03 04:52:56.153 [RAL:INFO]  RX/TX RF0:    867.5MHz rssi_offset=-215.4 type=5 rssi_tcomp=0.000 0.000 20.410 2162.560 0.000
2023-01-03 04:52:56.153 [HAL:XDEB] [lgw_rxrf_setconf:535] Note: rf_chain 0 configuration; en:1 freq:867500000 rssi_offset:-215.399994 radio_type:5 tx_enable:1 single_input_mode:0
2023-01-03 04:52:56.153 [RAL:INFO]  RX    RF1:    868.5MHz rssi_offset=-215.4 type=5 rssi_tcomp=0.000 0.000 20.410 2162.560 0.000
2023-01-03 04:52:56.153 [HAL:XDEB] [lgw_rxrf_setconf:535] Note: rf_chain 1 configuration; en:1 freq:868500000 rssi_offset:-215.399994 radio_type:5 tx_enable:0 single_input_mode:0
2023-01-03 04:52:56.153 [RAL:INFO]  [mSF]   0:    868.1MHz rf=1 freq=-400.0 datarate=0
2023-01-03 04:52:56.153 [HAL:XDEB] [lgw_rxif_setconf:664] Note: LoRa 'multi' if_chain 0 configuration; en:1 freq:-400000
2023-01-03 04:52:56.153 [RAL:INFO]  [mSF]   1:    868.3MHz rf=1 freq=-200.0 datarate=0
2023-01-03 04:52:56.154 [HAL:XDEB] [lgw_rxif_setconf:664] Note: LoRa 'multi' if_chain 1 configuration; en:1 freq:-200000
2023-01-03 04:52:56.154 [RAL:INFO]  [mSF]   2:    868.5MHz rf=1 freq=  +0.0 datarate=0
2023-01-03 04:52:56.154 [HAL:XDEB] [lgw_rxif_setconf:664] Note: LoRa 'multi' if_chain 2 configuration; en:1 freq:0
2023-01-03 04:52:56.154 [RAL:INFO]  [mSF]   3:    867.1MHz rf=0 freq=-400.0 datarate=0
2023-01-03 04:52:56.154 [HAL:XDEB] [lgw_rxif_setconf:664] Note: LoRa 'multi' if_chain 3 configuration; en:1 freq:-400000
2023-01-03 04:52:56.154 [RAL:INFO]  [mSF]   4:    867.3MHz rf=0 freq=-200.0 datarate=0
2023-01-03 04:52:56.154 [HAL:XDEB] [lgw_rxif_setconf:664] Note: LoRa 'multi' if_chain 4 configuration; en:1 freq:-200000
2023-01-03 04:52:56.154 [RAL:INFO]  [mSF]   5:    867.5MHz rf=0 freq=  +0.0 datarate=0
2023-01-03 04:52:56.154 [HAL:XDEB] [lgw_rxif_setconf:664] Note: LoRa 'multi' if_chain 5 configuration; en:1 freq:0
2023-01-03 04:52:56.154 [RAL:INFO]  [mSF]   6:    867.7MHz rf=0 freq=+200.0 datarate=0
2023-01-03 04:52:56.155 [HAL:XDEB] [lgw_rxif_setconf:664] Note: LoRa 'multi' if_chain 6 configuration; en:1 freq:200000
2023-01-03 04:52:56.155 [RAL:INFO]  [mSF]   7:    867.9MHz rf=0 freq=+400.0 datarate=0
2023-01-03 04:52:56.155 [HAL:XDEB] [lgw_rxif_setconf:664] Note: LoRa 'multi' if_chain 7 configuration; en:1 freq:400000
2023-01-03 04:52:56.155 [RAL:INFO]  [STD]   8:    868.3MHz rf=1 freq=-200.0 datarate=7 bw=5 Explicit header
2023-01-03 04:52:56.155 [HAL:XDEB] [lgw_rxif_setconf:635] Note: LoRa 'std' if_chain 8 configuration; en:1 freq:-200000 bw:5 dr:7
2023-01-03 04:52:56.155 [RAL:INFO]  [FSK]   9:    868.8MHz rf=1 freq=+300.0 datarate=50000 bw=0 sync_word=0/0
2023-01-03 04:52:56.155 [HAL:XDEB] [lgw_rxif_setconf:696] Note: FSK if_chain 9 configuration; en:1 freq:300000 bw:5 dr:50000 (50000 real dr) sync:0x%0lu
2023-01-03 04:52:56.155 [RAL:INFO] Station device: spi:/dev/spidev0.0 (PPS capture disabled)
2023-01-03 04:52:56.155 [HAL:XDEB] [lgw_start:856]  --- IN
2023-01-03 04:52:56.155 [HAL:INFO] [lgw_com_open:84] Opening SPI communication interface
2023-01-03 04:52:56.156 [HAL:INFO] [lgw_spi_open:88] Setting SPI speed to 2000000
2023-01-03 04:52:56.156 [HAL:XDEB] [lgw_spi_open:133] Note: SPI port opened and configured ok
2023-01-03 04:52:56.156 [HAL:XDEB] [lgw_spi_r:241] Note: SPI read success
2023-01-03 04:52:56.156 [HAL:INFO] [lgw_connect:1192] chip version is 0x05 (v0.5)
2023-01-03 04:52:56.156 [HAL:XDEB] [lgw_connect:1194] Note: success connecting the concentrator
2023-01-03 04:52:56.156 [HAL:XDEB] [lgw_spi_w:198] Note: SPI write success
2023-01-03 04:52:56.156 [HAL:XDEB] [reg_w:1124] ==> DIRECT WRITE @ 0x5643
2023-01-03 04:52:56.156 [HAL:XDEB] [lgw_spi_r:241] Note: SPI read success
2023-01-03 04:52:56.156 [HAL:XDEB] [lgw_spi_w:198] Note: SPI write success
2023-01-03 04:52:56.156 [HAL:XDEB] [reg_w:1128] ==> READ MODIFY WRITE @ 0x5601 (offs:4 leng:1)
2023-01-03 04:52:56.156 [HAL:XDEB] [lgw_spi_r:241] Note: SPI read success
2023-01-03 04:52:56.156 [HAL:XDEB] [lgw_spi_w:198] Note: SPI write success
2023-01-03 04:52:56.156 [HAL:XDEB] [reg_w:1128] ==> READ MODIFY WRITE @ 0x5783 (offs:2 leng:1)
2023-01-03 04:52:56.157 [HAL:XDEB] [lgw_spi_r:241] Note: SPI read success
2023-01-03 04:52:56.157 [HAL:XDEB] [lgw_spi_w:198] Note: SPI write success
2023-01-03 04:52:56.157 [HAL:XDEB] [reg_w:1128] ==> READ MODIFY WRITE @ 0x5783 (offs:3 leng:1)
2023-01-03 04:52:56.657 [HAL:XDEB] [lgw_spi_r:241] Note: SPI read success
2023-01-03 04:52:56.657 [HAL:XDEB] [lgw_spi_w:198] Note: SPI write success
2023-01-03 04:52:56.657 [HAL:XDEB] [reg_w:1128] ==> READ MODIFY WRITE @ 0x5783 (offs:3 leng:1)
2023-01-03 04:52:56.667 [HAL:XDEB] [lgw_spi_r:241] Note: SPI read success
2023-01-03 04:52:56.667 [HAL:XDEB] [lgw_spi_w:198] Note: SPI write success
2023-01-03 04:52:56.667 [HAL:XDEB] [reg_w:1128] ==> READ MODIFY WRITE @ 0x5783 (offs:3 leng:1)
2023-01-03 04:52:56.677 [HAL:XDEB] [sx1302_radio_reset:448] INFO: reset sx1250 (RADIO_A) done
2023-01-03 04:52:56.677 [HAL:XDEB] [sx1302_radio_set_mode:484] Setting rf_chain_0 in sx1250 mode
2023-01-03 04:52:56.678 [HAL:XDEB] [lgw_spi_r:241] Note: SPI read success
2023-01-03 04:52:56.678 [HAL:XDEB] [lgw_spi_w:198] Note: SPI write success
2023-01-03 04:52:56.678 [HAL:XDEB] [reg_w:1128] ==> READ MODIFY WRITE @ 0x5601 (offs:0 leng:1)
2023-01-03 04:52:56.678 [HAL:XDEB] [lgw_spi_r:241] Note: SPI read success
2023-01-03 04:52:56.678 [HAL:XDEB] [lgw_spi_w:198] Note: SPI write success
2023-01-03 04:52:56.678 [HAL:XDEB] [reg_w:1128] ==> READ MODIFY WRITE @ 0x5601 (offs:4 leng:1)
2023-01-03 04:52:56.678 [HAL:XDEB] [lgw_spi_r:241] Note: SPI read success
2023-01-03 04:52:56.678 [HAL:XDEB] [lgw_spi_w:198] Note: SPI write success
2023-01-03 04:52:56.678 [HAL:XDEB] [reg_w:1128] ==> READ MODIFY WRITE @ 0x5784 (offs:2 leng:1)
2023-01-03 04:52:56.678 [HAL:XDEB] [lgw_spi_r:241] Note: SPI read success
2023-01-03 04:52:56.678 [HAL:XDEB] [lgw_spi_w:198] Note: SPI write success
2023-01-03 04:52:56.678 [HAL:XDEB] [reg_w:1128] ==> READ MODIFY WRITE @ 0x5784 (offs:3 leng:1)
2023-01-03 04:52:57.179 [HAL:XDEB] [lgw_spi_r:241] Note: SPI read success
2023-01-03 04:52:57.179 [HAL:XDEB] [lgw_spi_w:198] Note: SPI write success
2023-01-03 04:52:57.179 [HAL:XDEB] [reg_w:1128] ==> READ MODIFY WRITE @ 0x5784 (offs:3 leng:1)
2023-01-03 04:52:57.189 [HAL:XDEB] [lgw_spi_r:241] Note: SPI read success
2023-01-03 04:52:57.189 [HAL:XDEB] [lgw_spi_w:198] Note: SPI write success
2023-01-03 04:52:57.189 [HAL:XDEB] [reg_w:1128] ==> READ MODIFY WRITE @ 0x5784 (offs:3 leng:1)
2023-01-03 04:52:57.199 [HAL:XDEB] [sx1302_radio_reset:448] INFO: reset sx1250 (RADIO_B) done
2023-01-03 04:52:57.199 [HAL:XDEB] [sx1302_radio_set_mode:484] Setting rf_chain_1 in sx1250 mode
2023-01-03 04:52:57.199 [HAL:XDEB] [lgw_spi_r:241] Note: SPI read success
2023-01-03 04:52:57.199 [HAL:XDEB] [lgw_spi_w:198] Note: SPI write success
2023-01-03 04:52:57.199 [HAL:XDEB] [reg_w:1128] ==> READ MODIFY WRITE @ 0x5601 (offs:1 leng:1)
2023-01-03 04:52:57.199 [HAL:XDEB] [sx1302_radio_clock_select:380] Select Radio A clock
2023-01-03 04:52:57.200 [HAL:XDEB] [lgw_spi_r:241] Note: SPI read success
2023-01-03 04:52:57.200 [HAL:XDEB] [lgw_spi_w:198] Note: SPI write success
2023-01-03 04:52:57.200 [HAL:XDEB] [reg_w:1128] ==> READ MODIFY WRITE @ 0x57C0 (offs:0 leng:1)
2023-01-03 04:52:57.200 [HAL:XDEB] [lgw_spi_r:241] Note: SPI read success
2023-01-03 04:52:57.200 [HAL:XDEB] [lgw_spi_w:198] Note: SPI write success
2023-01-03 04:52:57.200 [HAL:XDEB] [reg_w:1128] ==> READ MODIFY WRITE @ 0x57C0 (offs:1 leng:1)
2023-01-03 04:52:57.200 [HAL:XDEB] [lgw_spi_r:241] Note: SPI read success
2023-01-03 04:52:57.200 [HAL:XDEB] [lgw_spi_w:198] Note: SPI write success
2023-01-03 04:52:57.200 [HAL:XDEB] [reg_w:1128] ==> READ MODIFY WRITE @ 0x57C0 (offs:2 leng:1)
2023-01-03 04:52:57.200 [HAL:XDEB] [lgw_spi_r:241] Note: SPI read success
2023-01-03 04:52:57.200 [HAL:XDEB] [lgw_spi_w:198] Note: SPI write success
2023-01-03 04:52:57.200 [HAL:XDEB] [reg_w:1128] ==> READ MODIFY WRITE @ 0x5601 (offs:4 leng:1)
2023-01-03 04:52:57.201 [HAL:XDEB] [lgw_spi_r:241] Note: SPI read success
2023-01-03 04:52:57.201 [HAL:XDEB] [lgw_spi_w:198] Note: SPI write success
2023-01-03 04:52:57.201 [HAL:XDEB] [reg_w:1128] ==> READ MODIFY WRITE @ 0x5780 (offs:3 leng:1)
2023-01-03 04:52:57.201 [HAL:XDEB] [lgw_spi_r:241] Note: SPI read success
2023-01-03 04:52:57.201 [HAL:XDEB] [lgw_spi_w:198] Note: SPI write success
2023-01-03 04:52:57.201 [HAL:XDEB] [reg_w:1128] ==> READ MODIFY WRITE @ 0x5783 (offs:1 leng:1)
2023-01-03 04:52:57.201 [HAL:XDEB] [lgw_spi_r:241] Note: SPI read success
2023-01-03 04:52:57.201 [HAL:XDEB] [lgw_spi_w:198] Note: SPI write success
2023-01-03 04:52:57.201 [HAL:XDEB] [reg_w:1128] ==> READ MODIFY WRITE @ 0x5783 (offs:0 leng:1)
2023-01-03 04:52:57.201 [HAL:XDEB] [sx1302_radio_calibrate:556] Calibrating sx1250 radios
2023-01-03 04:52:57.228 [HAL:XDEB] [lgw_spi_r:241] Note: SPI read success
2023-01-03 04:52:57.228 [HAL:XDEB] [lgw_spi_w:198] Note: SPI write success
2023-01-03 04:52:57.228 [HAL:XDEB] [reg_w:1128] ==> READ MODIFY WRITE @ 0x5780 (offs:3 leng:1)
2023-01-03 04:52:57.229 [HAL:XDEB] [lgw_spi_r:241] Note: SPI read success
2023-01-03 04:52:57.229 [HAL:XDEB] [lgw_spi_w:198] Note: SPI write success
2023-01-03 04:52:57.229 [HAL:XDEB] [reg_w:1128] ==> READ MODIFY WRITE @ 0x5601 (offs:4 leng:1)
2023-01-03 04:52:57.229 [HAL:XDEB] [lgw_spi_r:241] Note: SPI read success
2023-01-03 04:52:57.229 [HAL:XDEB] [lgw_spi_w:198] Note: SPI write success
2023-01-03 04:52:57.229 [HAL:XDEB] [reg_w:1128] ==> READ MODIFY WRITE @ 0x5783 (offs:2 leng:1)
2023-01-03 04:52:57.229 [HAL:XDEB] [lgw_spi_r:241] Note: SPI read success
2023-01-03 04:52:57.229 [HAL:XDEB] [lgw_spi_w:198] Note: SPI write success
2023-01-03 04:52:57.229 [HAL:XDEB] [reg_w:1128] ==> READ MODIFY WRITE @ 0x5783 (offs:3 leng:1)
2023-01-03 04:52:57.729 [HAL:XDEB] [lgw_spi_r:241] Note: SPI read success
2023-01-03 04:52:57.730 [HAL:XDEB] [lgw_spi_w:198] Note: SPI write success
2023-01-03 04:52:57.730 [HAL:XDEB] [reg_w:1128] ==> READ MODIFY WRITE @ 0x5783 (offs:3 leng:1)
2023-01-03 04:52:57.740 [HAL:XDEB] [lgw_spi_r:241] Note: SPI read success
2023-01-03 04:52:57.740 [HAL:XDEB] [lgw_spi_w:198] Note: SPI write success
2023-01-03 04:52:57.740 [HAL:XDEB] [reg_w:1128] ==> READ MODIFY WRITE @ 0x5783 (offs:3 leng:1)
2023-01-03 04:52:57.750 [HAL:XDEB] [sx1302_radio_reset:448] INFO: reset sx1250 (RADIO_A) done
2023-01-03 04:52:57.762 [HAL:ERRO] [lgw_start:906] failed to setup radio 0
2023-01-03 04:52:57.762 [RAL:ERRO] Concentrator start failed: lgw_start
2023-01-03 04:52:57.762 [RAL:ERRO] ral_config failed with status 0x08
2023-01-03 04:52:57.763 [any:ERRO] Closing connection to muxs - error in s2e_onMsg
2023-01-03 04:52:57.763 [AIO:DEBU] [4] ws_close reason=1000
2023-01-03 04:52:57.763 [___:INFO] CoreCell reset through GPIO23...
CoreCell power enable through GPIO18...
2023-01-03 04:52:57.763 [AIO:XDEB] [4] ws_closing_w state=5
2023-01-03 04:52:57.763 [AIO:DEBU] Echoing close - reason=1000
2023-01-03 04:52:57.763 [AIO:XDEB] [4] socket write bytes=8
2023-01-03 04:52:57.807 [AIO:XDEB] [4] socket read  bytes=4
2023-01-03 04:52:57.807 [AIO:DEBU] [4|WS] Server sent close: reason=1000
2023-01-03 04:52:57.807 [AIO:DEBU] [4] WS connection shutdown...
2023-01-03 04:52:57.808 [TCE:VERB] Connection to MUXS closed in state -1
2023-01-03 04:52:57.808 [TCE:INFO] INFOS reconnect backoff 10s (retry 1)

Ask the supplier or manufacturer of the device ?

Stop posting unformatted logs would be a good start - it makes the posts very difficult to read - try the </> tool!

Perfectly valid objection - I’ve edited my posts accordingly.
I’d better not post in the middle of the night any more :smiley:

2 Likes

Hey does this help?
Identifies the pins nicely
image

Maybe you would have to buy the correct hat without all the helium bits on it.

image

The pins given here are for a different HAT.

I’ve asked in the manufacturer’s forum 11 days ago and not yet received an answer.

In the meantime, I’ve installed the original (helium) firmware, and found the reset pins in a log file:

root@my-sensecapmx:/# more /mnt/data/docker/volumes/1839165_pktfwd-log/_data/pktfwd.log
****** SX1302 Packet Forwarder ******

Thu Jan  5 20:14:58 UTC 2023
Can't find region, sleep 60s and try again...
Thu Jan  5 20:15:58 UTC 2023
Find region [EU868] from /var/data/region
The region of this gateway is [EU868]
Load the following configuration files:
- /opt/sx1302_hal/packet_forwarder/global_conf.json.sx1250.EU868

CoreCell reset through GPIO17...
CoreCell reset 1261 through GPIO5...
*** Packet Forwarder ***
Version: 1.0.5
*** SX1302 HAL library version info ***
Version: 1.0.5;
***

I’ve then changed the reset script of BasicStation to use GPIO17 and GPIO5.
Since then, it seems stable.

3 Likes

Hi,
is there any place that explain the steps of installation of Basic Station on sensCAPM1? because Im not expert on basics station configuration and I could not follow the discussion. All the examples and guidance are giving only a part of the task but could not find a complete one. many thanks in advance.

Yes - 100% agree - this would be perfect, if some of you , who have this specific knowledge about it , can create a short description for the M1. Due to the more and more obvious fail from Helium, it might be a good chance to grow the TTN by - if possible- generating a transition from given Helium miner hardware based on a Rasp Pi

After reading the information from many sources - please confirm me, that the following process will be successful to bring the M1 as TTN gateway back to life -or please correct me, if i would do wrong:

  1. Remove SD card and prepare SD card for Raspberry Pie OS
  2. Install & configer this OS
  3. Install Basic Station
    4.Modify the GPIO17 and GPIO5 in the installed Basic Station script for running the Seed Lorawan concentrator card
  4. Install the Sensecap M1 as gateway at TTN

JFDI and tell us how it went?

if i will do it - yes. But actually i am not sure, if i better use the included Pi 4 for something else