Skip to content

activate safe mode by gpio

Art Nikpal edited this page Apr 16, 2019 · 4 revisions

gpio_safe

usage example

short 3.3V + PA03 - before boot - acivate config_safe and restore default network configs but not save it, and used before reboot!

next line must run before system started

gpioadm /etc/gpioadm.restore.conf

config example 1

#!/bin/sh

## hyphop ##

# + GND
# +  RX
# +  TX

# + +  PA10  GND 
# + +  PA13 PA14
# + +  PA02 PA16
# + +   GND PA15
# + +  PA18 3.3V =\ 
# + +  PA19 PA03 =/
# + +   GND PA00
# + +  PA07 PA01 
# + +  PG07  GND
# + +  PG06 PA06
# + +   GND PA11
# + +    5V PA12
# + +    5V 3.3V

gpios="3"

c3="config_safe"

config example 2

#!/bin/sh

## hyphop ##

#gpios="PA10 PA13 PA14 PA15 PA16"

# + GND
# +  RX
# +  TX

# + +  PA10  GND 
# + +  PA13 PA14
# + +  PA02 PA16
# + +   GND PA15
# + +  PA18 3.3V
# + +  PA19 PA03
# + +   GND PA00
# + +  PA07 PA01 
# + +  PG07  GND
# + +  PG06 PA06
# + +   GND PA11
# + +    5V PA12
# + +    5V 3.3V

### WIFI NONE = 3.3 <=> PA10
### WIFI   AP = 3.3 <=> PA16
### WIFI CLNT = 3.3 <=> PA14

#gpios="10 13 14 15 16"
gpios="10 13 14 16"

c10="wifi.mode none"
c16="wifi.mode ap"
c14="wifi.mode client"
c13="logger -s -t gpio PA13"