Skip to content

Commit b12a864

Browse files
Anton VanhouckeAnton Vanhoucke
authored andcommitted
Moved wifi to separate tutorial.
1 parent adb1ad3 commit b12a864

2 files changed

Lines changed: 37 additions & 28 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
title: Setting up wifi on ev3
3+
subject: Networking
4+
---
5+
6+
I like to setup wireless networking on my robots. Robots should go untethered! Here is how. It's easy in an interactive tool call `connmanctl`. You connect once, and next time you boot, it's all configured. On my ev3dev machine it went like this:
7+
8+
anton@ev3dev:~$ connmanctl
9+
Error getting VPN connections: The name net.connman.vpn was not provided by any
10+
connmanctl> enable wifi
11+
Enabled wifi
12+
connmanctl> scan wifi
13+
Scan completed for wifi
14+
connmanctl> services
15+
*AO Wired ethernet_b827ebbde13c_cable
16+
wifi_e8de27077de3_hidden_managed_none
17+
AH04044914 wifi_e8de27077de3_41483034303434393134_managed_psk
18+
Frissie wifi_e8de27077de3_46726973736965_managed_psk
19+
ruijgt gast wifi_e8de27077de3_7275696a67742067617374_managed_psk
20+
schuur wifi_e8de27077de3_736368757572_managed_psk
21+
connmanctl> agent on
22+
Agent registered
23+
connmanctl> connect wifi_e8de27077de3_41 # You can use the TAB key at this point to autocomplete the name
24+
connmanctl> connect wifi_e8de27077de3_41483034303434393134_managed_psk
25+
Agent RequestInput wifi_e8de27077de3_41483034303434393134_managed_psk
26+
Passphrase = [ Type=psk, Requirement=mandatory ]
27+
Passphrase? *************
28+
Connected wifi_e8de27077de3_41483034303434393134_managed_psk
29+
connmanctl> quit
30+
31+
You're all set up now! After reboot connman automatically finds your local wifi again.

docs/tutorials/python-development-environment.md

Lines changed: 6 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -30,33 +30,6 @@ Scroll down and uncomment the appropriate lines for your hardware.
3030

3131
Finally do `sudo reboot`.
3232

33-
## Set up wifi ##
34-
Next I like to setup wireless networking. Robots should go untethered! Here is how. It's easy in an interactive tool call `connmanctl`. You connect once, and next time you boot, it's all configured. On my ev3dev machine it went like this:
35-
36-
anton@ev3dev:~$ connmanctl
37-
Error getting VPN connections: The name net.connman.vpn was not provided by any
38-
connmanctl> enable wifi
39-
Enabled wifi
40-
connmanctl> scan wifi
41-
Scan completed for wifi
42-
connmanctl> services
43-
*AO Wired ethernet_b827ebbde13c_cable
44-
wifi_e8de27077de3_hidden_managed_none
45-
AH04044914 wifi_e8de27077de3_41483034303434393134_managed_psk
46-
Frissie wifi_e8de27077de3_46726973736965_managed_psk
47-
ruijgt gast wifi_e8de27077de3_7275696a67742067617374_managed_psk
48-
schuur wifi_e8de27077de3_736368757572_managed_psk
49-
connmanctl> agent on
50-
Agent registered
51-
connmanctl> connect wifi_e8de27077de3_41 # You can use the TAB key at this point to autocomplete the name
52-
connmanctl> connect wifi_e8de27077de3_41483034303434393134_managed_psk
53-
Agent RequestInput wifi_e8de27077de3_41483034303434393134_managed_psk
54-
Passphrase = [ Type=psk, Requirement=mandatory ]
55-
Passphrase? *************
56-
Connected wifi_e8de27077de3_41483034303434393134_managed_psk
57-
connmanctl> quit
58-
59-
6033
## Set up development environment ##
6134
I prefer to have a passwordless ssh to the robot. For this I [add a user with the same login name as on my development computer.](https://www.raspberrypi.org/documentation/linux/usage/users.md) Remember to give yourself sudo rights as explained on that same page.
6235
After adding that user, you can [set up passwordless ssh](https://www.raspberrypi.org/documentation/remote-access/ssh/passwordless.md).
@@ -105,7 +78,7 @@ Now type the hostname of the ev3dev machine, followed by a semicolon the project
10578
## Installing ev3dev-python on the development machine ##
10679
Now you can continue where you left of on the ev3dev machine, but with a larger screen, better keyboard and more tools! There is one problem, though: PyCharm puts red curly lines under the ev3dev library.
10780

108-
![Curly lines]({{ site.github.url }}/images/osx/PyCharm/missing-lib.png")
81+
![Curly lines]({{ site.github.url }}/images/osx/PyCharm/missing-lib.png =435)
10982

11083
And that's logical, because the ev3dev library is missing on the development machine. If we install it we won't be able to run motors, but the documentation and autocomplete will be active. So on your development machine start a terminal and do:
11184

@@ -114,3 +87,8 @@ And that's logical, because the ev3dev library is missing on the development mac
11487
python setup.py install
11588
cd .. # Optional
11689
rm -r ev3dev-lang-python/ # Optional to remove the downloaded files. It's installed now anyway.
90+
91+
## Using the power of the IDE ##
92+
93+
With the IDE (PyCharm) set up and the library installed you can code much faster. PyCharm will highlight most coding errors and typos. It will also suggest to autocomplete your code and show documentation. Let's try.
94+

0 commit comments

Comments
 (0)