commun:raspberry_pi
Ceci est une ancienne révision du document !
Table des matières
Raspberry PI
V4l camera module
bcm2835-v4l2
Video streaming depuis la caméra
sur le rpi
/opt/vc/bin/raspivid -o - -t 0 -w 1280 -h 720 -fps 25|cvlc -vvv stream:///dev/stdin --sout '#standard{access=http,mux=ts,dst=:8090}' :demux=h264
sur VLC Ouvrir le flux réseau http://alarmpi_wifi:8090
wpa_supplicant
(ça s'applique à Arch Linux)
créer le fichier /etc/wpa_supplicant/wpa_supplicant.conf
- /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=/run/wpa_supplicant update_config=1
Après, exécuter les commandes suivantes
sudo wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf sudo wpa_cli
Et ensuite dans le prompt:
> scan OK <3>CTRL-EVENT-SCAN-STARTED <3>CTRL-EVENT-SCAN-RESULTS <3>CTRL-EVENT-NETWORK-NOT-FOUND > scan_results bssid / frequency / signal level / flags / ssid 10:fe:ed:2b:51:de 2462 -62 [WPA-PSK-CCMP][WPA2-PSK-CCMP][ESS] wifi_fd > add_network 0 > set_network 0 ssid "wifi_fd" OK > set_network 0 psk "mon_mot_de_passe" OK > enable_network 0 OK <3>CTRL-EVENT-SCAN-STARTED > <3>CTRL-EVENT-SCAN-RESULTS <3>SME: Trying to authenticate with 10:fe:ed:2b:51:de (SSID='wifi_fd' freq=2462 MHz) <3>Trying to associate with 10:fe:ed:2b:51:de (SSID='wifi_fd' freq=2462 MHz) <3>Associated with 10:fe:ed:2b:51:de <3>CTRL-EVENT-SUBNET-STATUS-UPDATE status=0 <3>CTRL-EVENT-REGDOM-CHANGE init=COUNTRY_IE type=COUNTRY alpha2=FR <3>WPA: Key negotiation completed with 10:fe:ed:2b:51:de [PTK=CCMP GTK=CCMP] <3>CTRL-EVENT-CONNECTED - Connection to 10:fe:ed:2b:51:de completed [id=0 id_str=] <3>WPA: Group rekeying completed with 10:fe:ed:2b:51:de [GTK=CCMP] > > save_config OK > quit
Ensuite on teste comme suit
[alarm@alarmpi ~]$ sudo dhcpcd wlan0 DUID 00:01:00:01:23:7b:1d:48:74:da:38:02:68:aa wlan0: IAID 38:02:68:aa wlan0: soliciting a DHCP lease wlan0: soliciting an IPv6 router wlan0: Router Advertisement from fe80::12fe:edff:fe2b:51de wlan0: soliciting a DHCPv6 lease wlan0: dropping DHCPv6 due to no valid routers wlan0: offered 192.168.1.130 from 192.168.1.90 wlan0: probing address 192.168.1.130/24 wlan0: leased 192.168.1.130 for 43200 seconds wlan0: adding route to 192.168.1.0/24 wlan0: adding default route via 192.168.1.90 forked to background, child pid 371
Je n'ai pas encore trouvé comment l'activer automatiquement
commun/raspberry_pi.1541957236.txt.gz · Dernière modification : (modification externe)
