chirpstack / chirpstack-gateway-os

OpenWrt based gateway images including ChirpStack components.
https://www.chirpstack.io
131 stars 57 forks source link

GatewayOS 4.2 - sx1302 reset pin #100

Closed thinkl33t closed 8 months ago

thinkl33t commented 1 year ago

Summary

Please can we add an openwrt config variable for the sx1302_reset_pin on sx1302 for chirpstack-concentratord?

What is the use-case?

I’m using an old RAK helium miner as a chirpstack gateway - its pretty much the same as the rak_2287 but needs sx1302_reset_pin=25 setting in concentratord.conf to be detected. Adding this config entry manually makes concentratord work fine with this board.

Currently i've been adding this to the config manuall but it gets overwritten every config change.

Implementation description

Can you implement this by yourself and make a pull request?

cristitomescuconsitro commented 10 months ago

I'm having the same issue. Where did you found concentratord.conf file ? On my gatewayOS install there is no such file.

brocaar commented 8 months ago

From the CLI, you can (now) add a sx1302_reset_pin config option under the sx1302 configuration in /etc/config/chirpstack-concentratord. Then you need to restart using /etc/init.d/chirpstack-concentratord. This config change will be persisted :-)

See also:

https://github.com/chirpstack/chirpstack-openwrt-feed/blob/master/chirpstack/chirpstack-concentratord/files/chirpstack-concentratord.sh#L122

(There will be a new GW OS release today with some more improvements)