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

Comparing WiFi Adapters

wifidonglesleJOS has always allowed you to use WiFi adapters other then the original Lego supported Netgear device. In the post 0.9.0 release of leJOS we have improved things further updating drivers and adding new ones. This means there is now an even wider choice of devices. In this article I compare 5 nano adapters against the original device. First let’s take a look at each device.

netgear

NETGEAR N150(WNA1100)
This is the officially support WiFi device. It uses the Atheros AR9271 chipset. The cost is approximately  £10. Works well, but is much larger than the other devices shown here. Only choice if you want to use the unmodified LEGO firmware.

 

 

digitazz

DIGITAZZ 150MBPS WIRELESS ADAPTOR
This is a low cost “nano” adapter (though not as small as the others). It uses the Ralink RT 5370 chipset and the cost is approximately £5.

 

pihut

The Pi Hut USB Wi-Fi Adapter for Raspberry Pi
A “nano” adaptor sold specifically for use with the rPi. Cost is approximately £6. It uses the Ralink RT5370 chipset.

 

cslwifi

CSL – USB Wlan (WiFi) for PC / Raspberry Pi
Another “nano” adaptor aimed at the rPi market. This uses the Realtek 8188cu chipset. Cost is approximately £6.

 

 

tplink

TP-LINK TL-WN725N 150Mbps Wireless-N Nano USB Adapter
This “nano” adapter comes in two revisions, but rather unhelpfully they both have the same model number despite using different chip sets. The version 2 device tested here uses the Realtek 8188eu chipset. Cost is approximately £6.

 

edimax

Edimax EW-7811UN 150Mbps Wireless Nano
This was the first additional device support by leJOS. It uses the Realtek 8188cus chipset and costs approximately £7.

 

Benchmarks
To compare the various devices I ran a couple of tests on each one. The first was a simple continuous ping test from my PC. With the ping running I moved the EV3 (complete with dongle) around to various different locations. For most of the dongles the location made virtually no difference to the ping results. However the DIGITAZZ, Pi Hut and TP-Link devices all suffered from a number of dead spots in certain locations. These locations where only a few metres from my WiFi Router (A D-Link DIR-665). I ran this test a number of times with all of the dongles and it was easily repeatable. I’m not sure why the three had problems, perhaps this indicates an issue with the antenna design used, or some incompatibility with my router, whatever the problem it did not seem to trouble the other four devices.

The second test used a small Java program to simulate various different types of network I/O. The program ran four tests:

  • A simple command response test, sending a 16 byte command packet and waiting for a 4 byte response.
  • A larger data/response test sending 1024 bytes of data and again waiting for 4 byte response.
  • A simple streaming data test with a write size of 1024 bytes.
  • A streaming test using larger 64Kb packets

In each case the test was run for a period of 30 seconds and the data rate for the test computed. Each test was repeated 3 times and the median result used. The four tests were run in both directions (from PC to EV3, from EV3 to PC). Finally as a comparison I ran the tests using my PC and Ultrabook. The results are presented below, all figures are in Kb/S:

From PC to EV3 From EV3 to PC
Device RPC 1024+Ack 1024 64K RPC 1024+Ack 1024 64K
NETGEAR 6.57 178.43 642.70 643.38 6.04 160.29 591.87 593.90
Digitazz 2.57 97.87 702.79 609.93 3.82 155.24 606.38 622.97
Pi Hut 1.40 45.37 767.75 727.73 1.37 51.54 574.47 472.36
CSL 4.12 141.56 555.44 546.88 4.34 92.76 676.79 680.77
TP-LINK 5.90 174.65 743.46 681.80 5.98 159.77 664.64 672.88
Edimax 4.27 131.47 725.84 708.73 4.11 93.05 685.80 687.25
Ultrabook 11.99 418.48 1665.01 1885.39 11.09 347.30 1552.45 1721.08

So which is best?
None of the dongles tested is perfect. The good news is that none of them is expensive and offer remarkable value compared to just a few years ago. The Netgear while providing good performance is just too big to realistically use on a mobile robot. The TP-Link device is fast, but the dead spot issues just make it too inconsistent. The Pi Hut is just too slow for the typical usage of command/response. The Digitazz is slow and has similar deadspot issues to the TP-Link. This leaves the Edimax and CSL devices which both offer a similar level of performance. TheEdimax device is slightly smaller, but it also seems to be rather fragile, on both of my devices, part of the plastic cover has broken away.

If the deadspot issue could be resolved the TP-Link device would be my first choice, it is small, performs well and seems well made, but in my usage it has just been too inconsistent. Choosing between CSL and Edimax dongles is not easy. But overall the Edimax device has been very stable over many, many months of use so I think at this stage this would be the one I would pick.

 Notes
These results are based on using an as yet unreleased version of leJOS (post 0.9.0), although many of these devices may work with 0.9.0 I have used updated (and in the case of the TP-Link a totally new) driver. My tests are based upon using the WiFi router detailed above. With other routers the results may vary. As mentioned above the TP-Link device comes in two versions which use different chipsets but which have identical names/model numbers. This is not at all uncommon, so if you buy one of the above devices and it does not work, then it could be that the manufacturer has changed the chips it uses. If you see problems with any of these devices (or you have different results to share), please post on the leJOS forum.

Advertisements

Discussion

6 thoughts on “Comparing WiFi Adapters

  1. so weird .I just bought tplink tl wn725n . but there is no any response on my ev3. after I click the WIFI icon .it shows the message :no Access points found . Do you guys have any ideas ?

    Posted by chenjianyi | 2015/02/10, 12:40
    • Support for that chipset is not available in the 0.9.0 release. If you read the article it says… “In the post 0.9.0 release of…”, which means that this support will be available in a release after 0.9.0. Please use the leJOS forums if you want help and support with leJOS.

      Posted by gloomyandy | 2015/02/10, 14:14
      • ok, got it. So I need to give more patience.. Thank you for your reply.

        Posted by chen | 2015/02/10, 17:03
  2. And I also check the model of chip sets. Realtek RTL8188EU. So what’s the probleam? Thank you very much.

    Posted by chen | 2015/02/10, 12:54
  3. What are your thoughts on the intel 5300 chipset?

    Posted by Dan | 2016/04/02, 18:18

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 )

Google+ photo

You are commenting using your Google+ 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: