kerlink-wirnet-firmware icon indicating copy to clipboard operation
kerlink-wirnet-firmware copied to clipboard

Wrinet Station: needs manual update after script in oldconfig.toml ?

Open rem5 opened this issue 4 years ago • 0 comments

Summary

Lack of final automation step on Wirnet Station to connect to The Things Stack V3 ? Because we precise STACK-ADDRESS as parameter but not applied in the toml file.

Steps to Reproduce

  1. The provision.sh script works well on Wirnet Station with previous firmware at 3.2. Precised all the parameters (in my case particularly "eu1.cloud.thethings.network")

  2. Firmwares well updated, rebooting many times,... lorafwd well installed, service restarted then script finished.

  3. But antenna always seen as disconnected in V3. Because lorafwd reads /mnt/fsuser-1/lorafwd/etc/oldconfig.toml ; this file kept the old V2 server name so continue to send data to TTNv2.

Just need to edit oldconfig.toml to change gwmp.node value to the V3 server (<=> STACK-ADDRESS parameter) and reboot antenna.

gwmp.node = "eu1.cloud.thethings.network" gwmp.service.uplink = 1700 gwmp.service.downlink = 1700 gwmp.period.heartbeat = 10 gwmp.period.statistics = 30 gwmp.autorestart = 3 filter.crc.valid = true filter.crc.invalid = false filter.crc.none = false

How to check:

In the log, parsing configuration file links to this file. /mnt/fsuser-1/lora/var/log/lora.log

Wirnet local1.info lorafwd[930]: <6> Parsing configuration file: /var/run/lora/gateway-id.toml Wirnet local1.info lorafwd[930]: <6> Parsing configuration file: /mnt/fsuser-1/lorafwd/etc/oldconfig.toml Wirnet local1.notice lorafwd[930]: <5> Starting lorafwd 1.1.1 Wirnet local1.info lorafwd[930]: <6> Using configuration: Wirnet local1.info lorafwd[930]: <6> gateway.id : 7276FF000******* Wirnet local1.info lorafwd[930]: <6> filter.crc.valid : true Wirnet local1.info lorafwd[930]: <6> filter.crc.invalid : false Wirnet local1.info lorafwd[930]: <6> filter.crc.none : false Wirnet local1.info lorafwd[930]: <6> filter.lorawan.downlink : false Wirnet local1.info lorafwd[930]: <6> database.enable : false Wirnet local1.info lorafwd[930]: <6> database.limit.messages : 200 Wirnet local1.info lorafwd[930]: <6> database.delay.cooldown : 100 msec Wirnet local1.info lorafwd[930]: <6> gwmp.node : eu1.cloud.thethings.network Wirnet local1.info lorafwd[930]: <6> gwmp.service.uplink : 1700 Wirnet local1.info lorafwd[930]: <6> gwmp.service.downlink : 1700 Wirnet local1.info lorafwd[930]: <6> gwmp.period.heartbeat : 10 sec Wirnet local1.info lorafwd[930]: <6> gwmp.period.statistics : 30 sec Wirnet local1.info lorafwd[930]: <6> gwmp.autorestart : 3 Wirnet local1.info lorafwd[930]: <6> gwmp.limit.datagram : 20000 Wirnet local1.info lorafwd[930]: <6> gwmp.lorad.control : ipc:///var/run/lora/lorad Wirnet local1.info lorafwd[930]: <6> api.uplink : [ ipc:///var/run/lora/uplink ] Wirnet local1.info lorafwd[930]: <6> api.downlink : [ ipc:///var/run/lora/downlink ] Wirnet local1.info lorafwd[930]: <6> api.control : [ ipc:///var/run/lora/lorafwd ] Wirnet local1.info lorafwd[930]: <6> api.filters : [ ] Wirnet local1.info lorafwd[930]: <6> Database version: 2 (1.1.1)

Environment

Kerlink Wirnet Station, firmware 3.6

How do you propose to implement this?

Maybe just regex replace to oldconfig.toml ???

Can you do this yourself and submit a Pull Request?

Not expert at all, maybe needs to do something else (maybe wrong approach or just bad symlink ?) but this minor modification did the job for me.

rem5 avatar Aug 23 '21 15:08 rem5