This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WiFi Dongle for second WiFi device
#21
(2021-08-14, 04:16 PM)baltika_no_9 Wrote:
(2021-08-14, 04:14 PM)Paul M Wrote:
(2021-08-14, 04:02 PM)Paul M Wrote: I am using the headless image using r pi installed on my windows pc, not noobs.

I have only tried the gui version of raspberry pi configuration. I’ll try the command line / terminal with sudo next

I tried sudo raspi-config >system options> wirless LAN with the result:

Could not communicate with wpa_supplicant<ok>

There was an error running option S1 Wireless LAN<ok>
OK Paul give me a while to try the headless image.

I've used the headless image and it works fine. Here is what I did (note I use VNC but your method of connection may be different, it shouldn't affect the outcome):

Code:
1.  Downloaded the image 2020-12-16-OpenPlotter-v2-Headless.img
2.  Formatted my SD card using SD Card Formatter
3.  Copied the image to the card using Win32DiskImager
4.  Plugged the WiFi dongle into the pi (top left USB 2.0 slot)
5.  Connected the pi to my router with an ethernet cable so it gets an address on eth0 from dhcp 
6.  Put the card into the pi and booted up
7.  Scanned the network for the ip address assigned
7.  SSH into the pi using the eth0 ip address
8.  sudo raspi-config>Interface Options>VNC - enable VNC (clearly if you're using RDP for instance instead then no need for this)
9.  VNC into the pi via eth0 address
10. At the Welcome screen press Next
11. Set Country - selected UK/British etc
12. Changed pi's password
13. At the Set Up screen press next
14. Select Wifi Network - selected the SSID and entered the password
15. At the Update screen pressed Skip
16. In a terminal window enter ifconfig 

wlan1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.4  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 fda7:83dd:8aae:0:1ebf:ceff:fe69:680e  prefixlen 64  scopeid 0x0<global>
        inet6 fe80::1ebf:ceff:fe69:680e  prefixlen 64  scopeid 0x20<link>
        inet6 2a02:c7f:3121:7700:1ebf:ceff:fe69:680e  prefixlen 64  scopeid 0x0<global>
        ether 1c:bf:ce:69:68:0e  txqueuelen 1000  (Ethernet)
        RX packets 256  bytes 84838 (82.8 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 112  bytes 47039 (45.9 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan9: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 10.10.10.1  netmask 255.255.255.0  broadcast 10.10.10.255
        inet6 fe80::dea6:32ff:fef5:29ef  prefixlen 64  scopeid 0x20<link>
        ether dc:a6:32:f5:29:ef  txqueuelen 1000  (Ethernet)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 127  bytes 32526 (31.7 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        
        
You can see that the onboard adapter (wlan9) is set up as the AP and that the USB adapter is connected and has an ip address of 192.168.0.4
Check by VNC connection to 192.168.0.4 - Everything works fine

If I do a "lsusb -v" The dongle is shown as:

Bus 001 Device 003: ID 148f:5370 Ralink Technology, Corp. RT5370 Wireless Adapter
Reply


Messages In This Thread
WiFi Dongle for second WiFi device - by Paul M - 2021-08-08, 01:33 PM
RE: WiFi Dongle for second WiFi device - by baltika_no_9 - 2021-08-14, 04:58 PM

Forum Jump:


Users browsing this thread: 2 Guest(s)