Skip to content

Coderbot Network Configurations

Stephen Withers edited this page Jul 23, 2015 · 6 revisions

Overview

Coderbot_Lboro has 2 connection modes, Client and AP. Client means connecting via a router, and AP means the pi creates a WIFI hotspot which you can connect to.

By default coderbot should look for the network defined in /etc/network/interfaces_cli, and if it doesn't connect will then make a hotspot with the properties defined in /etc/hostapd/hostapd.conf

wifi.py commands

#####Setting Pi Number Setting Pi number: execute sudo python wifi.py updatecfg XX , where XX is the number to set the robot as, e.g for 07, hotspot ssid will change to Lboro Coderbot 07 and the client ip will change to 192.168.0.107 (must be 2 digits)

#####extra commands sudo python wifi.py updatecfg ap ssid psk will update the hostapd.conf accordingly

sudo python wifi.py updatecfg client ssid psk X will update client porperties

This can also be done editing the files directly

Clone this wiki locally