Outils pour utilisateurs

Outils du site


commun:raspberry_pi

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
commun:raspberry_pi [2018/11/11 17:09] – francoiscommun:raspberry_pi [2018/12/02 17:39] (Version actuelle) – [wpa_supplicant] francois
Ligne 3: Ligne 3:
 ===== V4l camera module ===== ===== V4l camera module =====
  
-bcm2835-v4l2+Créer un fichier ''/etc/modules-load.d/camera.conf'' et ajouter la ligne: 
 +  bcm2835-v4l2
  
 ===== Video streaming depuis la caméra ===== ===== Video streaming depuis la caméra =====
Ligne 16: Ligne 17:
  
 ===== wpa_supplicant ===== ===== wpa_supplicant =====
 +
 +(ça s'applique à Arch Linux)
 +
 créer le fichier ''/etc/wpa_supplicant/wpa_supplicant.conf'' créer le fichier ''/etc/wpa_supplicant/wpa_supplicant.conf''
 <file ini /etc/wpa_supplicant/wpa_supplicant.conf> <file ini /etc/wpa_supplicant/wpa_supplicant.conf>
Ligne 62: Ligne 66:
 > quit > quit
 </code> </code>
 +
 +Ensuite on teste comme suit
 +<code>
 +[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
 +</code>
 +
 +Ensuite créer le fichier de démarrage automatique de wpa_supplicant:
 +<file ini /etc/systemd/system/wpa_supp.service>
 +[Unit]
 +Description=Wifi Network
 +After=network.target
 +
 +# Limite les re-démarrages à 5 tentatives
 +StartLimitIntervalSec=200
 +StartLimitBurst=5
 +
 +[Service]
 +ExecStart=wpa_supplicant -P/var/run/wpasupp.pid -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf
 +Type=forking
 +PIDFile=/var/run/wpasupp.pid
 +
 +# Re-essai si échec. Tempo de 30 secondes
 +Restart=always
 +RestartSec=30
 +
 +[Install]
 +WantedBy=default.target
 +</file>
 +
 +Ensuite créer le fichier d'appel dhcp:
 +<file ini /etc/systemd/system/dhcpcd_wlan0.service>
 +[Unit]
 +Description=Wifi Network
 +After=wpa_supp.service
 +
 +StartLimitIntervalSec=200
 +StartLimitBurst=5
 +
 +[Service]
 +ExecStart=/usr/bin/dhcpcd wlan0
 +Type=forking
 +PIDFile=/run/dhcpcd-wlan0.pid
 +
 +Restart=always
 +RestartSec=30
 +
 +[Install]
 +WantedBy=default.target
 +</file>
commun/raspberry_pi.1541956173.txt.gz · Dernière modification : (modification externe)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki