The Acme Systems shipping office will be closed for holidays from 14 august to 22 august

Appunti relativi al FOX BOX mini (ACME-0001)

Tasto sul pannello posteriore

GPIO PC12 (Kernel ID 76)

Configurazione

# echo 76 > /sys/class/gpio/export
# echo "in" > /sys/class/gpio/pioC12/direction
# cat > /sys/class/gpio/pioC12/value
  • 1 Tasto rilasciato
  • 0 Tasto premuto

Led pannello frontale

Dal bordo verso il centro scheda

Led verde DIAG LED PC8 (72) 1=On

# echo 72 > /sys/class/gpio/export
# echo "out" > /sys/class/gpio/pioC8/direction
# echo 1 > /sys/class/gpio/pioC8/value

Led rosso SIM1 LED PC14 (78) 1=On

# echo 78 > /sys/class/gpio/export
# echo "out" > /sys/class/gpio/pioC14/direction
# echo 1 > /sys/class/gpio/pioC14/value

Led rosso SIM2 LED PC16 (80) 1=On

# echo 80 > /sys/class/gpio/export
# echo "out" > /sys/class/gpio/pioC16/direction
# echo 1 > /sys/class/gpio/pioC16/value

SIM select PA4 (4)

# echo 4 > /sys/class/gpio/export
# echo "out" > /sys/class/gpio/pioA4/direction
# echo 1 > /sys/class/gpio/pioA4/value

Modem PCIe

Abilitare il supporto USB modem ACM

Device Drivers  --->
  [*] USB support  --->
    <*>     USB Modem (CDC ACM) support
....<*>     USB Serial Converter support  --->
........[*]   USB Generic Serial Driver
........<*>   USB driver for GSM and CDMA modems

La linea PC13 (Kernel ID 77) e' collegata al pin EN dell'alimentatore del modem ed e' messa a GND da una resistenza di pull-down per cui all'accensione il modem e' spento.

Configurazione

# echo 77 > /sys/class/gpio/export
# echo "out" > /sys/class/gpio/pioC13/direction

Per accendere

# echo 1 > /sys/class/gpio/pioC13/value
usb 1-2: new high-speed USB device number 2 using atmel-ehci                                     
usb 1-2: New USB device found, idVendor=12d1, idProduct=1c25                                                  
usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3                                             
usb 1-2: Product: MU709                                                                                       
usb 1-2: Manufacturer: HUAWEI Mobile                                                                          
usb 1-2: SerialNumber: 0123456789ABCDEF                                                                       
option 1-2:2.2: GSM modem (1-port) converter detected                                                         
usb 1-2: GSM modem (1-port) converter now attached to ttyUSB0                                                 
option 1-2:2.3: GSM modem (1-port) converter detected                                                         
usb 1-2: GSM modem (1-port) converter now attached to ttyUSB1                                                 
option 1-2:2.4: GSM modem (1-port) converter detected                                                         
usb 1-2: GSM modem (1-port) converter now attached to ttyUSB2                                                 
option 1-2:2.5: GSM modem (1-port) converter detected                                                         
usb 1-2: GSM modem (1-port) converter now attached to ttyUSB3  

Per spegnere

# echo 0 > /sys/class/gpio/pioC13/value

Programma di test