Frames broken/dropped while using Basic Station

Hi,

I am trying to connect multitech using basic station to the chirpsatck. I have been checking the gateway logs and for some reason the frames are getting dropped. Please find the below logs.Can you please tell where it is going wrong

	root@mtcdt:/var/run/lora/1# ./station 
	2021-01-26 16:49:49.090 [SYS:WARN] Ignoring field: forward_crc_disabled
	2021-01-26 16:49:49.115 [SYS:WARN] Ignoring field: forward_crc_error
	2021-01-26 16:49:49.117 [SYS:WARN] Ignoring field: forward_crc_valid
	2021-01-26 16:49:49.124 [SYS:INFO] Logging     : stderr (maxsize=100000, rotate=3)
	2021-01-26 16:49:49.125 [SYS:INFO] Station Ver : 2.0.5(mlinux/std) 2020-10-19 19:44:13
	2021-01-26 16:49:49.126 [SYS:INFO] Package Ver : (null)
	2021-01-26 16:49:49.127 [SYS:INFO] proto EUI   : 80:0:a000:474d	(station.conf)
	2021-01-26 16:49:49.129 [SYS:INFO] prefix EUI  : ::0	(station.conf)
	2021-01-26 16:49:49.129 [SYS:INFO] Station EUI : 80:0:a000:474d
	2021-01-26 16:49:49.130 [SYS:INFO] Station home: ./	(builtin)
	2021-01-26 16:49:49.130 [SYS:INFO] Station temp: /var/tmp/	(builtin)
	2021-01-26 16:49:49.130 [SYS:WARN] Station in NO-CUPS mode
	2021-01-26 16:49:49.333 [TCE:INFO] Starting TC engine
	2021-01-26 16:49:49.345 [AIO:XDEB] [3] ws_connecting state=1
	2021-01-26 16:49:49.347 [AIO:XDEB] [3] ws_connecting state=2
	2021-01-26 16:49:49.347 [TCE:INFO] Connecting to INFOS: ws://192.168.1.4:3001
	2021-01-26 16:49:49.351 [AIO:XDEB] [3] ws_connecting state=3
	2021-01-26 16:49:49.351 [AIO:XDEB] [3|WS] > {"router":"80:0:a000:474d"}
	2021-01-26 16:49:49.354 [AIO:XDEB] [3|WS] < {"router":"0080:0000:a000:474d","muxs":"0080:0000:a000:474d","uri":"ws://192.168.1.4:3001/gateway/00800000a000474d"}
	2021-01-26 16:49:49.354 [TCE:INFO] Infos: 0080:0000:a000:474d 0080:0000:a000:474d ws://192.168.1.4:3001/gateway/00800000a000474d
	2021-01-26 16:49:49.355 [AIO:DEBU] [3] ws_close reason=1000
	2021-01-26 16:49:49.355 [AIO:DEBU] [3] Connection closed unexpectedly
	2021-01-26 16:49:49.355 [AIO:DEBU] [3] WS connection shutdown...
	2021-01-26 16:49:49.359 [AIO:XDEB] [3] ws_connecting state=1
	2021-01-26 16:49:49.360 [AIO:XDEB] [3] ws_connecting state=2
	2021-01-26 16:49:49.360 [TCE:VERB] Connecting to MUXS...
	2021-01-26 16:49:49.365 [AIO:XDEB] [3] ws_connecting state=3
	2021-01-26 16:49:49.365 [TCE:VERB] Connected to MUXS.
	2021-01-26 16:49:49.365 [AIO:XDEB] [3|WS] > {"msgtype":"version","station":"2.0.5(mlinux/std)","firmware":null,"package":null,"model":"mlinux","protocol":2,"features":"rmtsh prod"}
	2021-01-26 16:49:49.369 [AIO:XDEB] [3|WS] < {"msgtype":"router_config","NetID":null,"JoinEui":[[0,255],[65280,65535]],"region":"US902","hwspec":"sx1301/1","freq_range":[902000000,928000000],"DRs":[[10,125,0],[9,125,0],[8,125,0],[7,125,0],[8,500,0],[-1,0,0],[-1,0,0],[-1,0,0],[12,500,1],[11,500,1],[10,500,1],[9,500,1],[8,500,0],[7,500,1],[-1,0,0],[-1,0,0]],"sx1301_conf":[{"radio_0":{"enable":true,"freq":904300000},"radio_1":{"enable":true,"freq":905300000},"chan_FSK":{"enable":false},"chan_Lora_std":{"e
	2021-01-26 16:49:49.369 [AIO:XDEB] [3|WS] . nable":true,"radio":0,"if":300000,"bandwidth":500000,"spread_factor":7},"chan_multiSF_0":{"enable":true,"radio":0,"if":-400000},"chan_multiSF_1":{"enable":true,"radio":0,"if":-200000},"chan_multiSF_2":{"enable":true,"radio":0,"if":0},"chan_multiSF_3":{"enable":true,"radio":0,"if":200000},"chan_multiSF_4":{"enable":true,"radio":0,"if":400000},"chan_multiSF_5":{"enable":true,"radio":1,"if":-400000},"chan_multiSF_6":{"enable":true,"radio":1,"if":-200000},"chan_
	2021-01-26 16:49:49.369 [AIO:XDEB] [3|WS] . multiSF_7":{"enable":true,"radio":1,"if":0}}]}
	2021-01-26 16:49:49.370 [RAL:INFO] Lora gateway library version: Version: 5.0.1-mts-5;
	2021-01-26 16:49:49.418 [RAL:VERB] Connecting to device: /dev/spidev0.0
	2021-01-26 16:49:49.418 [RAL:DEBU] SX130x txlut table (16 entries)
	2021-01-26 16:49:49.418 [RAL:VERB] SX1301 txlut  0:  dig_gain=0 pa_gain=0 dac_gain=3 mix_gain=11 rf_power=-6
	2021-01-26 16:49:49.418 [RAL:VERB] SX1301 txlut  1:  dig_gain=0 pa_gain=0 dac_gain=3 mix_gain=13 rf_power=-3
	2021-01-26 16:49:49.418 [RAL:VERB] SX1301 txlut  2:  dig_gain=0 pa_gain=1 dac_gain=3 mix_gain=9 rf_power=0
	2021-01-26 16:49:49.418 [RAL:VERB] SX1301 txlut  3:  dig_gain=0 pa_gain=1 dac_gain=3 mix_gain=10 rf_power=3
	2021-01-26 16:49:49.418 [RAL:VERB] SX1301 txlut  4:  dig_gain=0 pa_gain=1 dac_gain=3 mix_gain=12 rf_power=6
	2021-01-26 16:49:49.419 [RAL:VERB] SX1301 txlut  5:  dig_gain=0 pa_gain=2 dac_gain=3 mix_gain=10 rf_power=10
	2021-01-26 16:49:49.419 [RAL:VERB] SX1301 txlut  6:  dig_gain=0 pa_gain=2 dac_gain=3 mix_gain=11 rf_power=11
	2021-01-26 16:49:49.419 [RAL:VERB] SX1301 txlut  7:  dig_gain=0 pa_gain=2 dac_gain=3 mix_gain=11 rf_power=12
	2021-01-26 16:49:49.419 [RAL:VERB] SX1301 txlut  8:  dig_gain=2 pa_gain=2 dac_gain=3 mix_gain=12 rf_power=13
	2021-01-26 16:49:49.419 [RAL:VERB] SX1301 txlut  9:  dig_gain=0 pa_gain=2 dac_gain=3 mix_gain=13 rf_power=14
	2021-01-26 16:49:49.419 [RAL:VERB] SX1301 txlut 10:  dig_gain=0 pa_gain=2 dac_gain=3 mix_gain=15 rf_power=16
	2021-01-26 16:49:49.419 [RAL:VERB] SX1301 txlut 11:  dig_gain=0 pa_gain=3 dac_gain=3 mix_gain=10 rf_power=20
	2021-01-26 16:49:49.419 [RAL:VERB] SX1301 txlut 12:  dig_gain=0 pa_gain=3 dac_gain=3 mix_gain=12 rf_power=23
	2021-01-26 16:49:49.420 [RAL:VERB] SX1301 txlut 13:  dig_gain=0 pa_gain=3 dac_gain=3 mix_gain=13 rf_power=25
	2021-01-26 16:49:49.424 [RAL:VERB] SX1301 txlut 14:  dig_gain=0 pa_gain=3 dac_gain=3 mix_gain=15 rf_power=26
	2021-01-26 16:49:49.424 [RAL:VERB] SX1301 txlut 15:  dig_gain=0 pa_gain=3 dac_gain=3 mix_gain=15 rf_power=27
	2021-01-26 16:49:49.424 [RAL:VERB] SX1301 rxrfchain 0: enable=1 freq=904.3MHz rssi_offset=-162.000000 type=2 tx_enable=1 tx_notch_freq=0
	2021-01-26 16:49:49.424 [RAL:VERB] SX1301 rxrfchain 1: enable=1 freq=905.3MHz rssi_offset=-162.000000 type=2 tx_enable=0 tx_notch_freq=0
	2021-01-26 16:49:49.424 [RAL:VERB] SX1301 ifchain  0: enable=1 rf_chain=0 freq=-400000 bandwidth=0 datarate=0 sync_word=0/0
	2021-01-26 16:49:49.424 [RAL:VERB] SX1301 ifchain  1: enable=1 rf_chain=0 freq=-200000 bandwidth=0 datarate=0 sync_word=0/0
	2021-01-26 16:49:49.425 [RAL:VERB] SX1301 ifchain  2: enable=1 rf_chain=0 freq=0 bandwidth=0 datarate=0 sync_word=0/0
	2021-01-26 16:49:49.425 [RAL:VERB] SX1301 ifchain  3: enable=1 rf_chain=0 freq=200000 bandwidth=0 datarate=0 sync_word=0/0
	2021-01-26 16:49:49.425 [RAL:VERB] SX1301 ifchain  4: enable=1 rf_chain=0 freq=400000 bandwidth=0 datarate=0 sync_word=0/0
	2021-01-26 16:49:49.425 [RAL:VERB] SX1301 ifchain  5: enable=1 rf_chain=1 freq=-400000 bandwidth=0 datarate=0 sync_word=0/0
	2021-01-26 16:49:49.425 [RAL:VERB] SX1301 ifchain  6: enable=1 rf_chain=1 freq=-200000 bandwidth=0 datarate=0 sync_word=0/0
	2021-01-26 16:49:49.425 [RAL:VERB] SX1301 ifchain  7: enable=1 rf_chain=1 freq=0 bandwidth=0 datarate=0 sync_word=0/0
	2021-01-26 16:49:49.425 [RAL:VERB] SX1301 ifchain  8: enable=1 rf_chain=0 freq=300000 bandwidth=1 datarate=2 sync_word=0/0
	2021-01-26 16:49:49.425 [RAL:VERB] SX1301 ifchain  9: enable=0 rf_chain=0 freq=300000 bandwidth=3 datarate=50000 sync_word=0/0
	2021-01-26 16:49:49.425 [RAL:VERB] SX130x LBT not enabled
	2021-01-26 16:49:49.425 [RAL:VERB] Station device: /dev/spidev0.0 (PPS capture enabled)
	INFO: FPGA supported features: [TX filter]  [Spectral Scan] 
	2021-01-26 16:49:52.479 [RAL:VERB] Concentrator started (3s52ms)
	2021-01-26 16:49:52.479 [S2E:INFO] Configuring for region: US902 -- 902.0MHz..928.0MHz
	2021-01-26 16:49:52.479 [S2E:VERB]   DR0  SF10/BW125 
	2021-01-26 16:49:52.480 [S2E:VERB]   DR1  SF9/BW125 
	2021-01-26 16:49:52.480 [S2E:VERB]   DR2  SF8/BW125 
	2021-01-26 16:49:52.480 [S2E:VERB]   DR3  SF7/BW125 
	2021-01-26 16:49:52.480 [S2E:VERB]   DR4  SF8/BW500 
	2021-01-26 16:49:52.480 [S2E:VERB]   DR5  undefined
	2021-01-26 16:49:52.480 [S2E:VERB]   DR6  undefined
	2021-01-26 16:49:52.480 [S2E:VERB]   DR7  undefined
	2021-01-26 16:49:52.480 [S2E:VERB]   DR8  SF12/BW500 (DN only)
	2021-01-26 16:49:52.480 [S2E:VERB]   DR9  SF11/BW500 (DN only)
	2021-01-26 16:49:52.480 [S2E:VERB]   DR10 SF10/BW500 (DN only)
	2021-01-26 16:49:52.480 [S2E:VERB]   DR11 SF9/BW500 (DN only)
	2021-01-26 16:49:52.480 [S2E:VERB]   DR12 SF8/BW500 
	2021-01-26 16:49:52.480 [S2E:VERB]   DR13 SF7/BW500 (DN only)
	2021-01-26 16:49:52.480 [S2E:VERB]   DR14 undefined
	2021-01-26 16:49:52.481 [S2E:VERB]   DR15 undefined
	2021-01-26 16:49:52.481 [S2E:VERB]   TX power: 30.0 dBm EIRP
	2021-01-26 16:49:52.481 [S2E:VERB]   JoinEui list: 10 entries
	2021-01-26 16:49:52.481 [S2E:VERB]   NetID filter: FFFFFFFF-FFFFFFFF-FFFFFFFF-FFFFFFFF
	2021-01-26 16:49:52.481 [S2E:VERB]   Dev/test settings: nocca=0 nodc=0 nodwell=0
	2021-01-26 16:50:04.453 [any:XDEB] RX mod=LORA f=905100000 bw=125 sz=243 dr=2 DC0EE6A0D2848966287F13E312FB2119E0882BD44002942E88B28566A4C2639FCCDD5448DB32D51AFF2721EF275AB2818B3E9C316454155AFE977289301DBE837BDC4F4EF3AFC7B7389AF227A41D03898760E09153AF2078E544F44CEE6271708022B3E03D47DD767EEFD97C43F482BEB1C0799F7110A669FF7A742A40B395397862AA3DA4E8D3AA060D4BFF639E3F441664D08F4FCADC220DB7C3FE4C9B1BF7B219A6C1E22F08F88B0302B0A5A12C6E9F378DAB4136CFC84E7E99380FE5FA43DC06E8B39B84408477D0E3336E834EDC6C34B3B80CB521FE7
    2021-01-26 16:50:04.453 [any:XDEB] **Dropped frame without CRC or with broken CRC**

I think that explains it?

@brocaar This is happening when just running the basic station without turning on any end device. The problem is unable to receive the end device packets when turned on…This is the bridge configuration file I have set…

  # Basic Station backend.
  [backend.basic_station]

  # ip:port to bind the Websocket listener to.
  bind=":3001"

  # TLS certificate and key files.
  #
  # When set, the websocket listener will use TLS to secure the connections
  # between the gateways and ChirpStack Gateway Bridge (optional).
  tls_cert=""
  tls_key=""

  # TLS CA certificate.
  #
  # When configured, ChirpStack Gateway Bridge will validate that the client
  # certificate of the gateway has been signed by this CA certificate.
  ca_cert=""

  # Stats interval.
  #
  # This defines the interval in which the ChirpStack Gateway Bridge forwards
  # the uplink / downlink statistics.
  stats_interval="30s"

  # Ping interval.
  ping_interval="1m0s"

  # Read timeout.
  #
  # This interval must be greater than the configured ping interval.
  read_timeout="1m5s"

  # Write timeout.
  write_timeout="1s"

  # Region.
  #
  # Please refer to the LoRaWAN Regional Parameters specification
  # for the complete list of common region names.
  #region="EU868"
  region="US915"




  frequency_min=902000000

  frequency_max=928000000

  # Concentrator configuration.
  #
  # This section contains the configuration for the SX1301 concentrator chips.
  # Example:

  [[backend.basic_station.concentrators]]

     # Multi-SF channel configuration.
     [backend.basic_station.concentrators.multi_sf]

     #Frequencies (Hz).
     frequencies=[
       903900000,
       904100000,
       904300000,
       904500000,
       904700000,
       904900000,
       905100000,
       905300000,
     ]

     # LoRa STD channel.
     [backend.basic_station.concentrators.lora_std]

     # Frequency (Hz).
     #frequency=868300000
     frequency=904600000

     # Bandwidth (Hz).
     #bandwidth=250000
     bandwidth=500000

     # Spreading factor.
     #spreading_factor=10
     spreading_factor=7

     # FSK channel.
     #[backend.basic_station.concentrators.fsk]

     # Frequency (Hz).
     #frequency=868800000

I don’t think it is uncommon that a LoRa gateway picks up data that looks like LoRa, the ISM band is used by other users and applications, so expect some “pollution”.

@brocaar ok sure thank you…I have been trying to use basic station to forward packets to the bridge. I am able to establish a connection(LNS) and the bridge sends the below message to the gw…But still unable to see any JOIN request from the end device in the gateway log…(running the basic station manually)…Also Packer forwarder is working fine without any issues.Can you please help me out with this?

message="{“msgtype”:“router_config”,“NetID”:null,“JoinEui”:null,“region”:“US902”,“hwspec”:“sx1301/1”,“freq_range”:[902000000,928000000],“DRs”:[[10,125,0],[9,125,0],[8,125,0],[7,125,0],[8,500,0],[-1,0,0],[-1,0,0],[-1,0,0],[12,500,1],[11,500,1],[10,500,1],[9,500,1],[8,500,0],[7,500,1],[-1,0,0],[-1,0,0]],“sx1301_conf”:[{“radio_0”:{“enable”:true,“freq”:904300000},“radio_1”:{“enable”:true,“freq”:905300000},“chan_FSK”:{“enable”:false},“chan_Lora_std”:{“enable”:true,“radio”:0,“if”:300000,“bandwidth”:500000,“spread_factor”:8},“chan_multiSF_0”:{“enable”:true,“radio”:0,“if”:-400000},“chan_multiSF_1”:{“enable”:true,“radio”:0,“if”:-200000},“chan_multiSF_2”:{“enable”:true,“radio”:0,“if”:0},“chan_multiSF_3”:{“enable”:true,“radio”:0,“if”:200000},“chan_multiSF_4”:{“enable”:true,“radio”:0,“if”:400000},“chan_multiSF_5”:{“enable”:true,“radio”:1,“if”:-400000},“chan_multiSF_6”:{“enable”:true,“radio”:1,“if”:-200000},“chan_multiSF_7”:{“enable”:true,“radio”:1,“if”:0}}]}"