Europalab Devices produces a LoRaWAN transmitting client node, specialised for higher research of actuator and sensor assisted IoT networks. https://dev.europalab.com/nlnet/20200000/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
551B

  1. #! /bin/sh
  2. # The gpio(1) cmd seems to fail while sys/class works
  3. #gpio export 26 out # GPIO-26 defaults to low state
  4. #gpio write 26 1 # Set to high for normal operation
  5. #gpio write 26 0 && gpio write 26 1 # Force a MCU reset
  6. #
  7. NUM=26
  8. HIGH=1
  9. LOW=0
  10. SYSC=/sys/class/gpio
  11. # Reset (from custom device tree, input) GPIO for output
  12. [ -e ${SYSC}/gpio${NUM} ] || echo $NUM >${SYSC}/export && sleep 1
  13. echo out >${SYSC}/gpio${NUM}/direction
  14. echo $HIGH >${SYSC}/gpio${NUM}/value
  15. echo $LOW >${SYSC}/gpio${NUM}/value && echo $HIGH >${SYSC}/gpio${NUM}/value