Connect to the Internet

Last updated 3 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.

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. Connect to the Rover via console

IP: 10.0.0.1 | Login: pi | Password: raspberry

2. on RasPi 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.

3. Connect to your network

3.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.

3.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')