You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Request to add a configuration option to allow reset pin numbers outside gpio chipset 0 ("/dev/gpiochip0")
What is the use-case?
Some custom boards have set the LoRa reset pin to different chipset, a current example is the SeeedStudio LoRaWAN Gateway this has the reset pin set to gpiochip1 pin 17 (pin 49)
Implementation description
add a optional parameter to the setup_pins function in rest.rs and default it to 0
Can you implement this by yourself and make a pull request?
I'm not a rust programmer but I can google just as well as the next programmer, maybe a option would be to check for the existence of chipset_number in the configuration file and set to that value else set to None.
Hi @riplatt, the above commit implement this. For now, I'm not planning to expose this through the TOML config, as the use-case is more for Raspberry Pi gateways (e.g. where the end-user will wire the shield to the Pi or when different bridge shields exist for the same shield, but with different pin mappings).
Summary
Request to add a configuration option to allow reset pin numbers outside gpio chipset 0 ("/dev/gpiochip0")
What is the use-case?
Some custom boards have set the LoRa reset pin to different chipset, a current example is the SeeedStudio LoRaWAN Gateway this has the reset pin set to gpiochip1 pin 17 (pin 49)
Implementation description
add a optional parameter to the
setup_pins
function inrest.rs
and default it to 0Can you implement this by yourself and make a pull request?
I'm not a rust programmer but I can google just as well as the next programmer, maybe a option would be to check for the existence of
chipset_number
in the configuration file and set to that value else set to None.i.e. in main change
to some thing like
The text was updated successfully, but these errors were encountered: