Connect to the Internet

Last updated 22 days ago

Here's a quick tutorial on connecting your Rover to the Internet. It's especially helpful if you want to download updates and use stock RaspberryPi tutorials in your work.

Connect to the Rover via console

IP: 10.0.0.1 | Login: pi | Password: raspberry

Tutorial for TurtleOS 1.2.0

The latest version of TurtleOS has network manager installed by default which gives you the possibilitiy to set network connection via GUI interface.

Make sure if you have the latest version of TurtleOS installed on your rover. You can check it logging into SSH sesion.

1. Run network manager

Type the command in the console (run as a root to has access to make changes) .

sudo nmtui

It will launch network manager GUI interface.

2. Connect to your network

Select "Activate a connection" and choose your network from list below.

Tutorial for TurtleOS 1.1.0

The tutorial will turn on RaspberryPi internal Wifi modem and connect it to your local Wifi. The TurtleRover access point will remain functional as well giving you the possibility to both drive the Rover and develop using Internet connection.

1. Turn on RasberryPi internal Wifi

Type the commands in the console.

sudo systemctl enable wpa_supplicant@wlan0int
sudo systemctl start wpa_supplicant@wlan0int

This will enable internal Wifi modem, which is caled 'wlan0int' in the system.

2. Connect to your network

2.1 via WPS

This mode will work if you have physical access to your router. The router needs to enable the WPS option (most common - WPS button on the router panel). After enabling internal Wifi, type the commands:

sudo wpa_cli
wps_pbc

Click WPS button on your router.

The system will now look for connections and negotiate terms with your router. Wait couple of seconds until the lines finish doing Matrix-style. To close the settings type:

q

Now check if the Internet connection is established by typing:

ping turtlerover.com

If it returns values, then your did good job!

Press ctrl+c if you want the logs to stop.

2.2 via direct network details

This mode will connect to your local network based on SSID and password given. After successful step 2 run:

sudo wpa_cli

Now type:

add_network
set_network 0 ssid "[your-network-name]"
set_network 0 psk "[your-network-password]"

Exit with:

q

Now check if the Internet connection is established by typing:

ping turtlerover.com

If it returns values, then your did good job!

Press ctrl+c if you want the logs to stop.

3.3 Troubleshooting

If you still cannot connect to the Internet, please check options listed. Enter:

sudo wpa_cli

and use:

scan
scan_results

It should list you all the networks available locally. This way you can make sure if at least your modem sees the World.

Type:

list_network

Now you should see if your network is available and enabled. If you see your network flagged [DISABLED], run:

enable_network 0

(or put your [network id] listed below previous command instead of '0')