doc:appunti:hardware:raspberrypi_car
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| doc:appunti:hardware:raspberrypi_car [2013/08/06 12:54] – [wpa_supplicant] niccolo | doc:appunti:hardware:raspberrypi_car [2019/02/01 17:04] (current) – niccolo | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Raspberry Pi Car Device ====== | ====== Raspberry Pi Car Device ====== | ||
| - | Riferimenti | + | ===== Dongle USB Edimax in Mode Master (Access Point) ===== |
| + | |||
| + | Normalmente l' | ||
| + | |||
| + | * [[http:// | ||
| + | * [[http:// | ||
| + | |||
| + | Ci vuole una **versione custom di hostapd**, forse occorre anche un **modulo kernel custom**, a seconda del chip WiFi. Vedere le seguenti pagine: | ||
| + | |||
| + | * https:// | ||
| + | * https:// | ||
| + | * https:// | ||
| + | |||
| + | Pare che ci siano risultati diversi a seconda del chip (RTL8188CUS, | ||
| + | |||
| + | * **[[https:// | ||
| + | * **[[https:// | ||
| + | * **[[https:// | ||
| + | |||
| + | Altri riferimenti | ||
| * [[http:// | * [[http:// | ||
| Line 7: | Line 26: | ||
| * [[http:// | * [[http:// | ||
| - | ===== Dongle USB Edimax | + | ===== wpa_supplicant |
| + | |||
| + | **''/ | ||
| + | |||
| + | < | ||
| + | allow-hotplug wlan0 | ||
| + | |||
| + | # WiFi in Client (Managed) mode | ||
| + | iface wlan0 inet manual | ||
| + | wpa-roam / | ||
| + | |||
| + | # If network stanza has not " | ||
| + | iface default inet dhcp | ||
| + | </ | ||
| + | |||
| + | FIXME C'è un problema: l' | ||
| + | |||
| + | Una conseguenza di tutto questo è che non si riesce a lanciare '' | ||
| - | Ci vuole una versione custom di hostpad.... | ||
| ===== hostap ===== | ===== hostap ===== | ||
| - | Si vuole che il Raspberry | + | Al bootstrap |
| La modalità master si ottiene con il software **hostapd**, | La modalità master si ottiene con il software **hostapd**, | ||
| Line 36: | Line 71: | ||
| </ | </ | ||
| - | Volendo avviare hostapd al bootstrap | + | Volendo avviare hostapd al bootstrap |
| < | < | ||
| - | DAEMON_CONF="/ | + | #DAEMON_CONF="/ |
| </ | </ | ||
| Line 46: | Line 81: | ||
| < | < | ||
| allow-hotplug wlan0 | allow-hotplug wlan0 | ||
| - | iface wifi_master | + | |
| + | # WiFi in Access Point (Master) mode. | ||
| + | # Activate with: ifdown wlan0; ifup wlan0=master | ||
| + | iface master | ||
| address 192.168.5.1 | address 192.168.5.1 | ||
| netmask 255.255.255.0 | netmask 255.255.255.0 | ||
| Line 53: | Line 91: | ||
| </ | </ | ||
| - | in questo modo è possibile usare i comandi per avviare o fermare l' | + | in questo modo è possibile usare i comandi per fermare |
| < | < | ||
| - | ifup wlan0=wifi_master | + | ifdown |
| - | ifdown | + | ifup wlan0=master |
| </ | </ | ||
| + | |||
| + | ===== wpa_supplicant o hostap, mapping automatico ===== | ||
| + | |||
| + | Si vuole un **sistema automatico** per decidere se attivare l' | ||
| + | |||
| + | |||
| ===== dnsmasq ===== | ===== dnsmasq ===== | ||
| - | ===== wpa_supplicant | + | ===== Alimentazione a batteria |
| + | |||
| + | Si è provato ad alimentare il Raspberry con un **2200mAh Li-Ion Rechargeable Power Bank** [[http:// | ||
| + | |||
| + | Nelle nostre condizioni il Raspberry è rimasto in funzione per oltre 24 ore, ma **alla fine si è spento**, si suppone per scaricamento della batteria e quindi per alimentazione insufficiente. | ||
| + | |||
| + | Una soluzione migliore potrebbe essere quella di utilizzare un circuito specifico per la ricarica/ | ||
| + | Attenzione alle batterie litio-polimeri! Hanno una resistenza interna molto bassa e quindi sono a rischio di carica/ | ||
doc/appunti/hardware/raspberrypi_car.1375786497.txt.gz · Last modified: by niccolo
