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:35] – [hostap] 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 ====== | ||
- | ===== hostap | + | ===== Dongle USB Edimax in Mode Master (Access Point) |
- | Si vuole che il Raspberry | + | Normalmente l' |
- | La modalità master si ottiene con il software **hostapd**, i file di configurazione sono: | + | |
+ | | ||
- | | + | Ci vuole una **versione custom di hostapd**, forse occorre anche un **modulo kernel custom**, a seconda del chip WiFi. Vedere le seguenti pagine: |
- | | + | |
- | Volendo avviare hostapd al bootstrap basta mettere in **'' | + | |
+ | | ||
+ | | ||
- | < | + | Pare che ci siano risultati diversi a seconda del chip (RTL8188CUS, |
- | DAEMON_CONF="/ | + | |
- | </ | + | |
- | tuttavia noi si vuole avviare l' | + | * **[[https:// |
+ | * **[[https:// | ||
+ | * **[[https:// | ||
+ | |||
+ | Altri riferimenti web: | ||
+ | |||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | |||
+ | ===== wpa_supplicant ===== | ||
+ | |||
+ | **''/ | ||
< | < | ||
allow-hotplug wlan0 | allow-hotplug wlan0 | ||
- | iface wifi_master | + | |
- | | + | # WiFi in Client (Managed) mode |
- | netmask 255.255.255.0 | + | iface wlan0 inet manual |
- | up / | + | |
+ | |||
+ | # If network stanza has not " | ||
+ | iface default inet dhcp | ||
</ | </ | ||
- | Le impostazioni diverse dal default in **''/ | + | FIXME C'è un problema: l' |
+ | |||
+ | Una conseguenza di tutto questo è che non si riesce a lanciare '' | ||
+ | |||
+ | ===== hostap ===== | ||
+ | |||
+ | Al bootstrap il Raspberry funziona per default in **modo managed** (station) in roaming (vedi paragrafo precedente), | ||
+ | |||
+ | La modalità master si ottiene con il software **hostapd**, | ||
+ | |||
+ | * **''/ | ||
+ | * **''/ | ||
+ | |||
+ | Le funzioni di Access Point si configurano in **''/ | ||
< | < | ||
- | # TODO: togliere il bridge? | ||
- | bridge=br0 | ||
driver=rtl871xdrv | driver=rtl871xdrv | ||
ssid=PiCar | ssid=PiCar | ||
Line 44: | Line 70: | ||
rsn_pairwise=CCMP | rsn_pairwise=CCMP | ||
</ | </ | ||
- | ===== wpa_supplicant ===== | ||
+ | Volendo avviare hostapd al bootstrap basterebbe togliere il commento in **''/ | ||
+ | |||
+ | < | ||
+ | # | ||
+ | </ | ||
+ | |||
+ | tuttavia noi si vuole avviare l' | ||
+ | |||
+ | < | ||
+ | allow-hotplug wlan0 | ||
+ | |||
+ | # WiFi in Access Point (Master) mode. | ||
+ | # Activate with: ifdown wlan0; ifup wlan0=master | ||
+ | iface master inet static | ||
+ | address 192.168.5.1 | ||
+ | netmask 255.255.255.0 | ||
+ | up | ||
+ | down start-stop-daemon --stop | ||
+ | </ | ||
+ | |||
+ | in questo modo è possibile usare i comandi per fermare o avviare l' | ||
+ | |||
+ | < | ||
+ | ifdown wlan0 | ||
+ | ifup wlan0=master | ||
+ | </ | ||
+ | |||
+ | ===== wpa_supplicant o hostap, mapping automatico ===== | ||
+ | |||
+ | Si vuole un **sistema automatico** per decidere se attivare l' | ||
+ | |||
+ | |||
+ | ===== dnsmasq ===== | ||
+ | |||
+ | ===== 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.1375785306.txt.gz · Last modified: 2013/08/06 12:35 by niccolo