doc:appunti:hardware:raspberrypi_car
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
doc:appunti:hardware:raspberrypi_car [2013/08/06 12:24] – created niccolo | doc:appunti:hardware:raspberrypi_car [2019/02/01 17:02] – [Dongle USB Edimax in Mode Master (Access Point)] niccolo | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Raspberry Pi Car Device ====== | ====== Raspberry Pi Car Device ====== | ||
+ | |||
+ | Riferimenti web: | ||
+ | |||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | * [[http:// | ||
+ | |||
+ | ===== 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:// | ||
+ | ===== 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 '' | ||
===== 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**, | ||
- | * **''/ | ||
* **''/ | * **''/ | ||
+ | * **''/ | ||
- | ===== wpa_supplicant ===== | + | Le funzioni di Access Point si configurano in **''/ |
+ | |||
+ | < | ||
+ | driver=rtl871xdrv | ||
+ | ssid=PiCar | ||
+ | country_code=IT | ||
+ | channel=7 | ||
+ | auth_algs=1 | ||
+ | wmm_enabled=0 | ||
+ | wpa=1 | ||
+ | # TODO: usare un file di password? | ||
+ | wpa_passphrase=MySecret | ||
+ | wpa_key_mgmt=WPA-PSK | ||
+ | wpa_pairwise=TKIP | ||
+ | rsn_pairwise=CCMP | ||
+ | </ | ||
+ | |||
+ | 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 | ||
+ | |||
+ | 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.txt · Last modified: 2019/02/01 17:04 by niccolo