Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rem5 opened this issue Aug 23, 2021 · 0 comments
Open

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

rem5 opened this issue Aug 23, 2021 · 0 comments

Comments

@rem5
Copy link

rem5 commented Aug 23, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant