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.155is the gateway IPthethings.example.comis the running stack addressexample-gtwis the registered gateway IDNNSXS.GTSZYGHE4NBR4XJZHJWEEMLXWYIFHEYZ4WR7UAI.YAT3OFLWLUVGQ45YYXSNS7HTVTFALWYSXK6YLJ6BDUNBPJMRH3UQis the API keyThe script will:
- update firmware to 3.6 if it is lower than that
- install CPF if it’s not installed
- configure
loradandlorafwdby replacing thelorad.jsonandlorafwd.tomlby a symlink to pushed config. The old configs will, as per defaultlnimplemetation on the gateway moved tolorad.json.oldandlorafwd.toml.oldrespectively.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
bashlike 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