Network
From Cogniteam
Contents
Network
In case you are not using a preconfigured router, the following describes the router needed configuration.
Hamster Network topology
1 Name: hamster_net
2 Security: WPA2 personal
3 Password: hamsterHAMSTER
4
5 Netmask: 255.255.255.0
6 Router's IP: 10.0.2.138
Router configuration, 2nd PI
In order to reach the slave raspberry pi on each Hamster, configure the routing table as following:
- Go to Advanced Routing → Static Routing List → Add...
- For each robot (numbered <n>), add the corresponding entry:
1 Destination IP: 192.168.<n>.0
2 Subnet Mask: 255.255.255.0
3 Default gateway: 10.0.2.<n>
Configuring the Hamsters' IP
Hamster robots arrive with a pre-configured specific IP’s. Unless you know what you are doing, this should not be changed.
Robot 1 configuration:
- Master raspberry pi IP: 10.0.2.1 or 192.168.1.1
- Slave raspberry pi IP: 192.168.1.2
Robot 2 configuration:
- Master raspberry pi IP: 10.0.2.2 or 192.168.2.1
- Slave raspberry pi IP: 192.168.2.2
The Hamster's connection configurations can be changed in the /etc/network/interfaces , and /wpa_supplicant/wpa_supplicant.conf .
SSH connection details:
1 Username: pi
2 Password: hamster