you're reading...
Connecting robots, leJOS Features

PAN Configuration

In this second article on the new communication modes available in leJOS I want to take a look at the configuration options provided by the updated menu. Let’s start by configuring an EV3 as an access point (which is the default configuration).

pannewmenu    panmenu    panaccesspt

The first image shows the new menu item used to access the PAN configuration. Selecting it shows the supported modes (USB Client, None, Access Point, Access Point+ and Bluetooth Client). If we select the access point option we get the configuration page for this mode. The top line shows the IP address that will be used for the access point (, to see the full address you can scroll the item using the left and right arrows. The other options allow you to configure more advanced features (like the netmask, broadcast address etc.), in general you will not need to change these. If you do want to change an address select it and you will be presented with:

panaddress-1     panaddress     panrestart

This first screen lets you choose to use an automatic address, or to configure the address yourself. If you choose the advanced option you will be presented with the address screen. This lets you enter the IP address using the arrow keys, when you have finished press enter. Finally when you use the back button to exit the PAN menu you will see the restarting screen displayed. This will show a series of status messages as the EV3 reconfigures the PAN.

Now let’s configure a second EV3 as a client to connect to our access point via Bluetooth.

panbtmenu     panbt     panbtdev

For this we need to select the BT Client option. The next screen allows you to choose which access point to connect to. By default the EV3 will search automatically for any device offering a NAP service (the standard Bluetooth name for a PAN access point). This setting will work fine for most situations. But if your environment (like a school) has many EV3s or if you want to make the connection a little faster, you can choose to select a particular device to connect to. The device menu will list all the Bluetooth devices that have been paired with the EV3. If your access point is not listed you may need to pair with it first.

panbtadvanced     panrestart2

Finally you can choose the advanced settings. Like the access point settings this option lets you configure many of the low level IP options. In most cases these should probably be left as they are. However you may want to assign a fixed IP address to an EV3 (say to EV2, to EV3 etc.). There are also two additional settings, the first “Persist” allows you to specify that the EV3 should try and connect to the access point on a periodic basis, not just at startup. This setting is useful once you have things setup the way you like them as it means you do not have to power the access point on first, the client will keep trying to connect until it becomes available. The second option allows you select the type of Bluetooth service you wish to connect to. The default NAP is designed to work with an access point, but others like PANU and GN can be used to connect to other devices offering Bluetooth PAN connection services (PANU will allow you to connect to a PC – but you will probably need to configure some of the other advanced settings to get this to work). Finally after completing or changing the configuration the restart screen will be displayed. This time you may see messages as the EV3 searches for the access point and establishes a connection with it.

Configuring a USB client is basically the same as a Bluetooth client except there are fewer options. I’ll leave you to explore that!

panapp     panapp2      panapp3

The final option is Access Point+. Basically this in an enhanced version of the access point which allows the PAN to be accessed via a WiFi network that is also connected to the EV3 running as an access point. The configuration is very similar to that used for the normal Access Point mode. The key difference is that in this case the access point and each EV3 connected to it must have an address that is valid on your WiFi network. To do this we need to allocate part of your WiFi networks IP address space to the PAN. This process is known as creating a sub-net, in this case the sub-net allows for 16 IP addresses. To cut a long story short (you can read about sub nets with a google search!), the address used for the access point needs to start on a multiple of 16, and this address and the following 15 addresses need to be ones that are not used by other devices on your WiFi network. On my router (and many others) addresses that have a final component above 200 (for instance or etc.) are reserved for static allocation. So by default the first usable address in this range will be used (in my case this is The other difference is that the other advanced settings when set to <auto> will use values picked up from your local WiFi configuration, allowing the EV3 to use your DNS and other settings. It sounds complex, but if you have WiFi and multiple EV3s give it a try!

In the next part of this series I’ll take a look at how the performance of Bluetooth, USB and WiFi based connections compare.

Articles in this series:
New communication modes allow your EV3s to talk
PAN Configuration
PAN Performance


10 thoughts on “PAN Configuration

  1. Hi Andy,
    some great new features. I’m not seeing, however, the PAN item in the “updated” menu, which I assume means the menu that comes with the latest lejos : 0.9.0 beta

    What am I missing?



    Posted by Rob | 2015/02/26, 07:23
    • All of these features are post 0.9.0 they are checked into our git repo and will be available in the next release of leJOS. At the momnt I’m not sure when that release will be made.

      Posted by gloomyandy | 2015/02/26, 14:13
  2. OK. Post 0.90. So the question is when will the next release be?

    Posted by Rob | 2015/02/26, 07:26
  3. Is it possible to install the current development version on an EV3?
    I’d like to use these new functions for my project.

    Posted by Andi | 2015/04/07, 09:34
  4. Hi, I am trying to set a PAN configuration at EV3 with lejos in order to send informations between 2 EV3, but I can’t see the PAN item at my menu ( I have tried at version 9.0 , 8.1 , 8.0), in which version have you worked,
    Thanks in advance for the response

    Posted by Percy Lovon Ramos | 2015/08/12, 16:36
  5. Thanks for your response, I will be waiting for the new release.

    Posted by Percy Lovon Ramos | 2015/08/13, 22:30
  6. Hello, could you please help me, how to do it with USB client? I don’t want to use wifi…
    I want to have one access point (EV1) and one connected with USB (EV2). But WITHOUT wifi!


    Posted by Vojtech Bestak | 2017/06/24, 20:43

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

About leJOS News

leJOS News keeps you up-to-date with leJOS. It features latest news, explains cool features, shows advanced techniques and highlights amazing projects. Be sure to subscribe to leJOS News and never miss an article again. Best of all, subscription is free!
Follow leJOS News on WordPress.com
%d bloggers like this: