NI Linux Real-Time Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

MyRIO - USB Wireless Modules

Hi All

As my doubt is more related to the linux part, I thought it is a better idea to post my query here. I am working on NI-myRIO 1900, firmware 2.2.0f0, LV 2014. For some development application, we are exploring connectivity and file sharing using a wireless USB at the USB host port. As per this link, rt2800usb is supported; we are using a usb adapter suggested here . Modprobe command tells me that it cannot load module. I have moved the required firmware rt2870.bin to the firmware folder but to no avail. Anything that I am missing?

myRIO_not_loading_rt2800usbmodule.png

Thanks

Arya

0 Kudos
Message 1 of 16
(9,661 Views)

Hey Arya,

Can I ask whats the overall goal of using a wifi usb dongle? Are you looking at adding another wireless radio to the myRIO to connect to a second wireless network? I see you are wanting to enable wireless filesharing but I'm cursious why you need a second radio?

Does the onboard wifi radio not function as you expect?

Kyle Hartley
Senior Embedded Software Engineer

0 Kudos
Message 2 of 16
(4,822 Views)

The reason this doesn't load is because the internal radio is using compat-wireless subsystem so the other driver modules for the rt2800usb can't load at the same time since it wants the standard wireless subsystem.

You can only run one at a time... and you must remove the driver for the internal radio so that it won't load.

It seems Kyle asked the question that should be answered before going down this road, though.

0 Kudos
Message 3 of 16
(4,822 Views)

Hi Kyle, DAQjr,

Thanks for the inputs. The onboard wifi is working fine. I have an application which I am planning to put into myRIO 1950 at a later point of time. As it does not have an onboard wifi, I thought it will be a good idea to test it on myRIO 1900 (which is a loaner!) that I have with me now.

So, do I have to use rmmod command to remove the WiFi driver?

0 Kudos
Message 4 of 16
(4,822 Views)

Naturally this will prevent the internal radio from functioning...

Move everything under /lib/modules/`uname -r`/updates to some place in your home dir or whatever.

Run depmod to update the module cache.

You should now be able to load the rt2800usb driver with no issues.

Message 5 of 16
(4,822 Views)

Hi DAQjr

Yes, I am able to load the driver now. Thanks!

Arya

0 Kudos
Message 6 of 16
(4,822 Views)

Hi All

I have been encountering some serious issues, which I doubt can be due to removing the wireless driver. I am using MAX 14.0 and now I am not able to communicate with myRIO. I guess this is a known issue 473548 with MAX14.0 (not sure if this is the reason). After I disabled the wireless driver, I was about to do a software update from LV13 to LV14 in myRIO (sorry for the mistake in the first post, I have been using it with LV13), between which MAX hanged. Since then, I have not been able to communicate with myRIO (cannot even do a software restart). I have been able to connect to myRIO via SSH. Attached is the screenshot of what I get.

myRIO.PNG

Also, LV is able to detect myRIO from the project, but it hangs when I try to deploy code. I tried formatting it when it gets identified in MAX (which is rare). But a communication failure error pops up.

I am not sure if this is the right place to post this. But to avoid multiple posts, I put it here. If required, I will post it in LabVIEW forums too.

Thanks

Arya

0 Kudos
Message 7 of 16
(4,822 Views)

Hi All

Is there anything that can be done to reset/reconnect the device? I have posted the query in LV public forum as well.

Arya

0 Kudos
Message 8 of 16
(4,822 Views)

Hi Arya,

I suggest you put back in the original wifi driver and try to start over. From DMESG it seems there are errors on the wlan module.

Luca

0 Kudos
Message 9 of 16
(4,822 Views)

Hi Luca,

It is great work!!

Will you write the procedure that you were able to use wifi for from Labview from a beginning?

I think that many people are waiting for it.

gogomac

0 Kudos
Message 10 of 16
(4,822 Views)