The LoRa Developer Forum is now in read-only mode and new content will not be added. If you require technical support related to LoRa, please contact our experts here. For sales enquiries, please contact us here.

FORUM

Problems setting up LoRa Basics Station

Hello

I am currently in the process of setting up a LoRa Basics Station using Raspberry Pi 3 and IMST iC880A LoRa concentrator, which should communicate with a private LNS, namely ChirpStack (the whole stack is deployed on a single machine on the same internal network that the gateway is also connected to).

Now, I’ve followed the getting started guide and attempted to setup my own configuration to make the gateway to work properly, but without luck so far. The error log from the Basics Station is as follows:

2021-03-04 11:54:42.641 [TCE:INFO] Infos: b827:ebff:fe98:68ff b827:ebff:fe98:68ff ws://192.168.1.203:3001/gateway/b827ebfffe9868ff
2021-03-04 11:54:42.662 [RAL:ERRO] Unsupported hwspec=sx1301/0
2021-03-04 11:54:42.662 [any:ERRO] Closing connection to muxs - error in s2e_onMsg
2021-03-04 11:54:42.667 [TCE:INFO] INFOS reconnect backoff 10s (retry 1)
2021-03-04 11:54:52.679 [TCE:INFO] Connecting to INFOS: ws://192.168.1.203:3001
2021-03-04 11:54:52.692 [TCE:INFO] Infos: b827:ebff:fe98:68ff b827:ebff:fe98:68ff ws://192.168.1.203:3001/gateway/b827ebfffe9868ff
2021-03-04 11:54:52.712 [RAL:ERRO] Unsupported hwspec=sx1301/0
2021-03-04 11:54:52.712 [any:ERRO] Closing connection to muxs - error in s2e_onMsg
2021-03-04 11:54:52.718 [TCE:INFO] INFOS reconnect backoff 10s (retry 1)

The IP address seen in this log is the ChirpStack deployment residing on the internal network. The logs from the ChirpStack Gateway Bridge indicates that the connection is initiated, but immediately dropped, so I assume this means that the endpoint is valid. However, I noted the following

Unsupported hwspec=sx1301/0

I have reiterated over the documentation regarding concentrator design, but I cannot see anything wrong with the station.conffile I want to use. The configuration file is as follows:

{
	"SX1301_conf": 
	{
		"lorawan_public": true,
	        "clksrc": 1,
		"device": "/dev/spidev0.0",
		"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
		}
    	},
	"station_conf": 
	{
		"routerid": "GATEWAY_EUI_PLACEHOLDER",
		"log_file":  "/var/log/station.log",
		"log_level": "INFO",  				/* XDEBUG,DEBUG,VERBOSE,INFO,NOTICE,WARNING,ERROR,CRITICAL */
		"log_size":  10e6,
		"log_rotate":  3
	}
}

Any help is greatly appreciated, and please excuse the long post :slight_smile:

Hi,

What is your gateway-bridge configuration ?
All lines in the [[backend.basic_station.concentrators]] should not be commented and set to your actual regional parameters, which, I guess, is commented in your configuration file.

1 Like

You’re right, that removed the initial problem, but new ones have arised. I’ve now added that particular field to the config file chirpstack-gateway-bridge.toml. However, I started to get the error Concentrator start failed: lgw_start, which turned out to be a common problem.

Adding a shellscript to radio_init in station.conf as described in iC880A Quick Start guide, but that did not work. Instead, I manually implemented the C-equivalent to reset the concentrator, compiled like so:

gcc iC880A-SPI_reset.c -I/usr/local/include -L/usr/local/lib -lwiringPi

Now, instead I get the following error on the gateway:

2021-03-05 08:08:55.365 [TCE:INFO] Connecting to INFOS: ws://192.168.1.203:3001
2021-03-05 08:08:55.377 [TCE:INFO] Infos: b827:ebff:fe98:68ff b827:ebff:fe98:68ff ws://192.168.1.203:3001/gateway/b827ebfffe9868ff
2021-03-05 08:08:55.398 [RAL:INFO] Lora gateway library version: Version: 5.0.1;
2021-03-05 08:08:58.349 [S2E:INFO] Configuring for region: EU863 -- 863.0MHz..870.0MHz
2021-03-05 08:08:58.350 [___:INFO] ERROR: Failed to load fw 1
ERROR: Version of calibration firmware not expected, actual:0 expected:2

Some initial queries tells me it has something to do with wiring, but I can’t see any problems with that on my side. I’ve previously used jumper wires directly to the RPi 3, but I am now using a LinkLab LoRa gateway shield

Nevermind, I must be asleep still. I did not set the pin number correctly in the C-program, which is 6 according to the WiringPi documentation. The gateway is now displayed as active in ChirpStack

1 Like

Hi…The mistake looks like there is a character not expected on the declaration. Would you be able to check the code where you presented the logs? Could you if it’s not too much trouble, share with me a screen capture with the climate factors?