NI Linux Real-Time Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

sbRIO-9651 USB wifi

Hi,

 

After reading through several threads:

https://forums.ni.com/t5/forums/v3_1/forumtopicpage/board-id/7111/thread-id/480/page/1

https://forums.ni.com/t5/forums/v3_1/forumtopicpage/board-id/7111/page/2/thread-id/228

 

It is not yet clear to me how to configure a USB Wifi dongle.

 

Can anyone explain step by step how to do it?

 

I cannot see the option create wireless interface in MAX.

 

Thanks

0 Kudos
Message 1 of 3
(2,180 Views)

Hi Luzwavelabs,

 

I'll double-check with my 9068 that's sitting on my desk, but while I wait for some software installation to finish up, can you post what network interfaces are shown when calling ip addr show? Also, can you post the kernel messages that appear following when you plug in the USB wifi adapter into the controller (using dmesg)?

0 Kudos
Message 2 of 3
(2,166 Views)

I found that the USB dongle that I had to work with (a RaLink 2800 series USB wireless dongle) would correctly be identified when plugged in, providing a wlan0 device when listing the network interfaces using ip addr, and the interface showed up in MAX (16.0), but as soon as I tried to enable the device and use it, it was unable to see any wireless networks to associate with. Checking the kernel logs (using dmesg), I see that the issue (as is so often the case with Linux wifi) was missing firmware on the target:

 

 

//From the end of the kernel log as reported by dmesg:
[1538661.587602] usbcore: registered new interface driver rt2800usb
[1639198.212055] ieee80211 phy0: rt2x00lib_request_firmware: Info - Loading firmware file 'rt2870.bin'
[1639198.212287] rt2800usb 1-1:1.0: Direct firmware load for rt2870.bin failed with error -2
[1639198.212305] rt2800usb 1-1:1.0: Falling back to user helper
[1639198.216063] ieee80211 phy0: rt2x00lib_request_firmware: Error - Failed to request Firmware
[1639198.225088] ieee80211 phy0: rt2x00lib_request_firmware: Info - Loading firmware file 'rt2870.bin'
[1639198.225171] rt2800usb 1-1:1.0: Direct firmware load for rt2870.bin failed with error -2
[1639198.225187] rt2800usb 1-1:1.0: Falling back to user helper
[1639198.226952] ieee80211 phy0: rt2x00lib_request_firmware: Error - Failed to request Firmware

Grabbing the appropriate firmware from  https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/ and placing it on the target (the kernel expects firmware to live at /lib/firmware/, using the same directory structure as the noted git repo), I replugged the dongle, fired MAX back up, lo and behold things work fine:

usb-wifi-1.jpg

Note that my 9068 (which does not have a wifi interface normally) is connected to a wireless network (192.168.X.X network vs. the wired 10.2.X.X network).

 

So, it's certainly possible to enable and use through MAX, but it's going to likely require a bit of work.

0 Kudos
Message 3 of 3
(2,144 Views)