# RALink WiFi dongle with PYNQ/pynq/notebooks/common/wifi.ipynb

**URL:** https://discuss.pynq.io/t/ralink-wifi-dongle-with-pynq-pynq-notebooks-common-wifi-ipynb/467
**Category:** Support
**Created:** [September 17, 2019, 12:35pm UTC](https://discuss.pynq.io/t/ralink-wifi-dongle-with-pynq-pynq-notebooks-common-wifi-ipynb/467 "2019-09-17T12:35:13Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![NS\_Huang](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/ns_huang/32/151_2.png) [@NS\_Huang](https://discuss.pynq.io/u/NS_Huang)
#### Post date: [September 17, 2019, 12:35pm UTC](https://discuss.pynq.io/t/ralink-wifi-dongle-with-pynq-pynq-notebooks-common-wifi-ipynb/467/1 "2019-09-17T12:35:13Z")

</div>

Hi, dear elites,

For PYNQ-Z1 connecting to USB WiFi Dongle, I found the following example. However, does anyone know if it’s a MUST to only use RALink WiFi dongle. Since I browsed many articles, the common point is that all porting of USB WiFi Dongle on PYNQ uses RALink WiFi dongle.

Are there others enabling other types of USB WiFi Dongles on PYNQ successfully?

> <https://github.com/Xilinx/PYNQ/blob/image_v2.4/pynq/notebooks/common/wifi.ipynb>

Also, what’s the difference to directly install the USB WiFi Dongle drivers on Ubuntu 18.04 against the usage of image\_v2.4/pynq/notebooks/common/wifi.ipynb ??

Thank you

---

<div class="post-metadata">

### Author: ![Colorado\_Rob](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/colorado_rob/32/81_2.png) [@Colorado\_Rob](https://discuss.pynq.io/u/Colorado_Rob)
#### Post date: [September 18, 2019, 2:19am UTC](https://discuss.pynq.io/t/ralink-wifi-dongle-with-pynq-pynq-notebooks-common-wifi-ipynb/467/2 "2019-09-18T02:19:21Z")

</div>

I have used the [TP-Link TL-WN823N](https://amzn.to/2LAOIRX) dongle successfully with the Pynq-Z2.

---

<div class="post-metadata">

### Author: ![NS\_Huang](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/ns_huang/32/151_2.png) [@NS\_Huang](https://discuss.pynq.io/u/NS_Huang)
#### Post date: [September 18, 2019, 6:37am UTC](https://discuss.pynq.io/t/ralink-wifi-dongle-with-pynq-pynq-notebooks-common-wifi-ipynb/467/3 "2019-09-18T06:37:59Z")

</div>

Hi, Rob,

Thank you for your sharing and comment. May I ask you one more question ?

Do you just install the driver of [TP-Link TL-WN823N](https://amzn.to/2LAOIRX) on the Ubuntu 18.04 or use the test code in the following link provided by Xilinx?

> <https://github.com/Xilinx/PYNQ/blob/image_v2.4/pynq/notebooks/common/wifi.ipynb>

---

<div class="post-metadata">

### Author: ![Colorado\_Rob](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/colorado_rob/32/81_2.png) [@Colorado\_Rob](https://discuss.pynq.io/u/Colorado_Rob)
#### Post date: [September 19, 2019, 2:17am UTC](https://discuss.pynq.io/t/ralink-wifi-dongle-with-pynq-pynq-notebooks-common-wifi-ipynb/467/4 "2019-09-19T02:17:50Z")

</div>

I just plugged it in and used the /notebooks/common/wifi.ipynb to connect to my local network.

---

<div class="post-metadata">

### Author: ![NS\_Huang](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/ns_huang/32/151_2.png) [@NS\_Huang](https://discuss.pynq.io/u/NS_Huang)
#### Post date: [September 19, 2019, 7:45pm UTC](https://discuss.pynq.io/t/ralink-wifi-dongle-with-pynq-pynq-notebooks-common-wifi-ipynb/467/5 "2019-09-19T19:45:18Z")

</div>

Hi, Rob,

Thanks for the comment.

Don’t you edit the following file first and then execute “sudo ifdown wlan0” and then “sudo ifup -v wlan0” ? You only plugged in the USB Wifi dongle and then execute the /notebooks/common/wifi.ipynb. Is it that case ?

/etc/network/interfaces

## add these part

auto wlan0  
iface wlan0 inet dhcp  
wpa-ssid xxxxxx  
wpa-psk yyyyyy

---

<div class="post-metadata">

### Author: ![Colorado\_Rob](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/colorado_rob/32/81_2.png) [@Colorado\_Rob](https://discuss.pynq.io/u/Colorado_Rob)
#### Post date: [September 20, 2019, 12:50am UTC](https://discuss.pynq.io/t/ralink-wifi-dongle-with-pynq-pynq-notebooks-common-wifi-ipynb/467/6 "2019-09-20T00:50:07Z")

</div>

No. I did not edit any file.

```auto
xilinx@pynq:~$ cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
xilinx@pynq:~$ ls /etc/network/interfaces.d
eth0 wlan0

```

That file, wlan0, is written by the wifi notebook. Run the three Python cells in the notebook. It will ask you for SSID and password, then write the wlan0 file, bring up the interface, then test the network connection via that interface.

---

<div class="post-metadata">

### Author: ![NS\_Huang](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/ns_huang/32/151_2.png) [@NS\_Huang](https://discuss.pynq.io/u/NS_Huang)
#### Post date: [September 21, 2019, 5:18pm UTC](https://discuss.pynq.io/t/ralink-wifi-dongle-with-pynq-pynq-notebooks-common-wifi-ipynb/467/7 "2019-09-21T17:18:39Z")

</div>

Hi, Rob,

Thank you for the comment again.

I have the last question. Don’t you install any driver and only plug-n-play and then it works on v2.4 PYNQ-Z2 board out of the box ?

All the best,  
NS

---

<div class="post-metadata">

### Author: ![rock](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/rock/32/32_2.png) [@rock](https://discuss.pynq.io/u/rock)
#### Post date: [October 2, 2019, 12:14am UTC](https://discuss.pynq.io/t/ralink-wifi-dongle-with-pynq-pynq-notebooks-common-wifi-ipynb/467/8 "2019-10-02T00:14:48Z")

</div>

You should not need to do any extra thing - just plug in and run that notebook - it does all the steps.

---

<div class="post-metadata">

### Author: ![NS\_Huang](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/ns_huang/32/151_2.png) [@NS\_Huang](https://discuss.pynq.io/u/NS_Huang)
#### Post date: [October 2, 2019, 8:01am UTC](https://discuss.pynq.io/t/ralink-wifi-dongle-with-pynq-pynq-notebooks-common-wifi-ipynb/467/9 "2019-10-02T08:01:48Z")

</div>

Thank you.  
Finally, I purchased RT5370-based USB wifi adapter and it works as you mentioned.

---

<div class="post-metadata">

### Author: ![jbattat](https://avatars.discourse-cdn.com/v4/letter/j/bc79bd/32.png) [@jbattat](https://discuss.pynq.io/u/jbattat)
#### Post date: [June 19, 2020, 3:03pm UTC](https://discuss.pynq.io/t/ralink-wifi-dongle-with-pynq-pynq-notebooks-common-wifi-ipynb/467/10 "2020-06-19T15:03:00Z")

</div>

For reference, I tried two different WiFi modules, one worked, the other did not:

- The Wi-Pi from element14 (FCC ID: OYR-COMFAST88) Worked
- D-Link Model No.: DWA-131 (FCC ID:KA2WA131A1) Did not work.

Also, details for establishing wifi connection via serial terminal connection, see:

> [@WiFi dongle setup](https://discuss.pynq.io/t/wifi-dongle-setup/1385/3):
>
> Thank you Cathal – that fixed it. For reference and others’ benefit, here is the full setup that worked for me. I’m on a mac laptop (Catalina). The PYNQ-Z2 board is powered from my laptop via a USB-C to USB-Micro cable. Step-by-step instructions Start with PYNQ board powered down Ensure the SD card is inserted (I’m using v2.5) Plug in the USB WiFi dongle into the USB-A port on the PYNQ Power up the PYNQ board, wait for LEDs to light up appropriately Establish connection from laptop to PYNQ…

---

<div class="post-metadata">

### Author: ![rock](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/rock/32/32_2.png) [@rock](https://discuss.pynq.io/u/rock)
#### Post date: [June 22, 2020, 4:07pm UTC](https://discuss.pynq.io/t/ralink-wifi-dongle-with-pynq-pynq-notebooks-common-wifi-ipynb/467/11 "2020-06-22T16:07:20Z")

</div>

The 2nd one requires some additional kernel configurations to be added - we will hopefully add that in the next release. This is similar for a couple of other WIFI modules as well.
