Wiki

Clone wiki

mecanumrover / NetworkConfiguration

Installation and Setup

see Gael's doku

Raspberry networking

as access point:

/etc/dhcpcd.conf

denyinterfaces wlan0

/etc/network/interfaces

iface wlan0 inet static
   address 192.168.30.1
   netmask 255.255.255.0
   network 192.168.30.0
   broadcast 192.168.30.255

/etc/dnsmasq.conf

check if DHCP settings match the IP

/etc/hostapd/hostapd.conf

configure access point (SSID, password, channel, encryption)

if neccessary, restart networking and services

sudo ifdown wlan0
sudo ifup wlan0
sudo service hostapd restart
sudo service dnsmasq restart

as DHCP client:

/etc/dhcpcd.conf

# denyinterfaces wlan0

/etc/network/interfaces

iface wlan0 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

Software components

Scripts

Shutdown button script (using GPIO.29) inspired by http://iot-projects.com/index.php?id=raspberry-pi-shutdown-button

Updated