Lora-net / lora_gateway

Driver/HAL to build a gateway using a concentrator board based on Semtech SX1301 multi-channel modem and SX1257/SX1255 RF transceivers.
Other
928 stars 748 forks source link

Why set gpio direction twice in iot_sk_init()@reset_lgw.sh? #170

Closed andrewintw closed 2 years ago

andrewintw commented 3 years ago

Can someone explain after set IOT_SK_SX1301_RESET_PIN as gpio output in line 30 and do reset, why it need to set as gpio input in line 37? Does it really necessary?

https://github.com/Lora-net/lora_gateway/blob/master/reset_lgw.sh

ryangriggs commented 2 years ago

I have a related question: what is the point of the 'stop' command in the reset script at all? When would this ever be used? It simply unexports the reset GPIO pin, which is done anyway at the end of the "start" command. This is confusing and maybe unnecessary?

smtc-bot commented 2 years ago

Thank you for your inquiry.

Customers are encouraged to submit technical questions via our dedicated support portal at https://semtech.force.com/ldp/ldp_support.

We invite all users to visit the LoRa Developer Portal Forum at https://forum.lora-developers.semtech.com and to join the thriving LoRa development community!