Arduino Yun – USB WiFi dongle acting as Access Point

If you want to extend the WiFi range of the Arduino Yun you need an external USB WiFi as explained on Luca Dentella’s blog.
Anyway your new USB WiFi won’t act as an access point unless you update some more settings on OpenWrt.

1. Power on your Arduino Yun (without dongle plugged) and when it’s ready move where modules.d is stored:
[sourcecode language=”bash” wraplines=”false” toolbar=”true” collapse=”false”]>>cd /etc/modules.d[/sourcecode]

Then type the following commands:
[sourcecode language=”bash” wraplines=”false” collapse=”false”]
>>mv 24-rt2x00-lib 22-rt2x00-lib
>>mv 26-rt2x00-usb 23-rt2x00-usb
>>mv 27-rt2800-lib 24-rt2800-lib
>>mv 28-rt2800-usb 25-rt2800-usb[/sourcecode]

2. Reboot Arduino Yun:
[sourcecode language=”bash” wraplines=”false” collapse=”false”]>>reboot[/sourcecode]

When the OS is ready type:

[sourcecode language=”bash” wraplines=”false” collapse=”false”]
>>mv /etc/config/wireless /var
>>wifi detect > /etc/config/wireless[/sourcecode]

3. Now we need to change some wireless settings:
[sourcecode language=”bash” wraplines=”false” collapse=”false”]>>nano /etc/config/wireless[/sourcecode]

Change the values in ‘wireless’ file as shown below:
[sourcecode language=”bash” wraplines=”false” collapse=”false”]
config wifi-device radio1

option disabled 0

4. Plug your WiFi dongle in Yun’s USB and reboot.
5. Enjoy the new antenna in Access Point mode!

Arduino Yun - External USB dongle WiFi
Arduino Yun – External USB dongle WiFi

Post a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.