Outils pour utilisateurs

Outils du site


commun:raspberry_pi

Ceci est une ancienne révision du document !


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

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
commun/raspberry_pi.1541956173.txt.gz · Dernière modification : (modification externe)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki