From Slack, last week:
Hello everyone, we are currently working on a provisioning script for Kerlink Wirnet Station gateway. It would be extremely helpful if anyone could test it:
You need a:
- Running v3 stack (latest
master
- currently3e2a02b31bab5bd253ad8c7766bf6b0540cab98b
, if using Docker -thethingsnetwork/lorawan-stack-dev:3e2a02b31bab5bd253ad8c7766bf6b0540cab98b
)- Kerlink Wirnet Station gateway registered at (1.)
- Gateway info right API key at (1.)
Once you have that:
curl -sL https://raw.githubusercontent.com/TheThingsNetwork/kerlink-station-firmware/87ceb43c292408f68040a139199d27e783783be3/provision.sh | bash -s -- '192.168.4.155' '[thethings.example.com](http://thethings.example.com/)' 'example-gtw' 'NNSXS.GTSZYGHE4NBR4XJZHJWEEMLXWYIFHEYZ4WR7UAI.YAT3OFLWLUVGQ45YYXSNS7HTVTFALWYSXK6YLJ6BDUNBPJMRH3UQ'
Where:
192.168.4.155
is the gateway IPthethings.example.com
is the running stack addressexample-gtw
is the registered gateway IDNNSXS.GTSZYGHE4NBR4XJZHJWEEMLXWYIFHEYZ4WR7UAI.YAT3OFLWLUVGQ45YYXSNS7HTVTFALWYSXK6YLJ6BDUNBPJMRH3UQ
is the API keyThe script will:
- update firmware to 3.6 if it is lower than that
- install CPF if it’s not installed
- configure
lorad
andlorafwd
by replacing thelorad.json
andlorafwd.toml
by a symlink to pushed config. The old configs will, as per defaultln
implemetation on the gateway moved tolorad.json.old
andlorafwd.toml.old
respectively.Please see relevant PRs:
- script: Fetch CPF configuration from GCS by rvolosatovs · Pull Request #9 · TheThingsNetwork/kerlink-wirnet-firmware · GitHub
- docs: Document connecting Kerlink Wirnet Station to TTS by rvolosatovs · Pull Request #1716 · TheThingsNetwork/lorawan-stack · GitHub
Any feedback is really welcome!
NOTE: I suggest not piping the script directly into
bash
like this (ever, really), but rather downloading the script, reading it and then executing if you’re happy with what it does!
Also from Slack, today:
We’re still working on documentation for connecting gateways to The Things Stack. See Document connecting popular gateways · Issue #1140 · TheThingsNetwork/lorawan-stack · GitHub for more details