Hi, I am trying to connect my pynq z2 board to internet using USB wifi dongle (D-link DWA-31).
I tried using the wifi notebook already presented on pynq.
By using the terminal , I got the below result
By using python and trying the same commands as in notebook:
Please Help…
What type of WiFi network are you connecting to? It looks like you aren’t connecting or getting a DHCP address. This isn’t really a PYNQ issue. You may be better searching/posting on Linux forums.
For info, if you ut your SD card into your PC and open it you will see a boot.py file.
You can uncomment the appropriate lines and add SSID and password:
Cathal
1 Like
I am connecting to my phone’s hotspot. Also, not able to connect to any other wifi.
Is it possible that this D-link wifi dongle is not supported (As discussed here: RALink WiFi dongle with PYNQ/pynq/notebooks/common/wifi.ipynb - #10 by jbattat)
I tried that but pynq didnot completely boot then (I think it got stuck while connecting to the wifi).
Searched everywhere but no luck…
Can you share the output of?
ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: dummy0: <BROADCAST,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 1000
link/ether 06:a1:9e:1c:5e:37 brd ff:ff:ff:ff:ff:ff
3: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether 00:05:6b:01:bf:f6 brd ff:ff:ff:ff:ff:ff
inet 192.168.2.99/24 brd 192.168.2.255 scope global eth0:1
valid_lft forever preferred_lft forever
inet6 fe80::205:6bff:fe01:bff6/64 scope link
valid_lft forever preferred_lft forever
4: sit0@NONE: mtu 1480 qdisc noop state DOWN group default qlen 1000
link/sit 0.0.0.0 brd 0.0.0.0
6: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
link/ether 54:2a:a2:92:a3:15 brd ff:ff:ff:ff:ff:ff
OK, I think that means the WiFi device is recognised, so I think this is a Linux issue. Did you try search for anything related to this?
wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN group default qlen 1000
I don’t think you stated which version of PYNQ you are using. If you are using v2.6 it may be OK, but I would suggest you try the latest PYNQ image (v2.7 released recently).
Cathal