Academic Hardware Products (myDAQ, myRIO)

cancel
Showing results for 
Search instead for 
Did you mean: 

Possible to connect the myRIO to a router via USB-to-Ethernet cable?

Curious if it is possible to connect the myRIO to a router via a USB-to-Ethernet cable instead of using the wifi on the myRIO. I want to do it this way because for part of a design project we have to read telemetry from a remote location in a competition and part of the competition rules state that there shouldn't be any rouge signals from the robot besides from a router that sits on it. 

0 Kudos
Message 1 of 12
(15,824 Views)

Hey GusC,

 

You can indeed use a USB/Ethernet Adapter with myRIO.  We discussed this in this thread.

 

Most USB / ethernet drivers will probably use the ASIX chipset which should work 'out of the box' on myRIO.

 

For example, this one should work.

 

-Sam K

LabVIEW Hacker

Join / Follow the LabVIEW Hacker Group on google+

Message 2 of 12
(15,808 Views)

After looking through that thread I decided to purchase this adapter and it works. After plugging in the adapter in to myRIO I had to restart it for it to be detected under the network settings tab. Then I connected it to the my router and after a while the router gave it an IP address. I then changed the IP Address/DNS Name under myRIO Properties to the new IP address and it connected and works just like before. NetworkSettings.PNG

myRIO Properties.PNG

0 Kudos
Message 3 of 12
(15,677 Views)

Hey GusC,

 

Glad to hear that you got it working, and thanks for posting the update on this thread.  It's always good to have confirmation that a USB adapter works out of the box with myRIO.

 

-Sam K

LabVIEW Hacker

Join / Follow the LabVIEW Hacker Group on google+

0 Kudos
Message 4 of 12
(15,669 Views)

Dear Sir

 

I just want to ask how did you connect the converter to the myrio ?! 

and just to be sure, did you connected the myrio with this plug only and then to the pc or what ?! 

 

Regards

Nabil

0 Kudos
Message 5 of 12
(13,036 Views)

Hi,

 

For what I understand of Gus post is that yuo use the adapter in the ethernet cable side you plug it to the router and the other side (USB) to the myRio from there you have to proceed with the steps to set up the ip address as Gus pointed up. The myRio will be seeing by the network (router) not by connecting it to a PC. 

http://www.amazon.com/Cable-Matters-SuperSpeed-Gigabit-Ethernet/dp/B00BBD7NFU/ref=sr_1_2?ie=UTF8&qid...   ADAPTER

https://www.ni.com/docs/en-US/bundle/myrio-1900-getting-started/resource/376047d.pdf      myRIO 1900

 

regards 

M

 

0 Kudos
Message 6 of 12
(13,010 Views)

Hello, I bought the adapter you suggested, but unfortunately it does not work directly.

In my case, I'm using myRio 1900. I've tried plugging in the adapter before and after startup. No new adapter shows in NI MAX.

 

Afterward, I tried ssh into myRio. ifconfig shows no new interface. I tried lsmod before and after plugging it in, it adds the following line when plugged in.

 

Module                  Size  Used by
cdc_ether               5914  0
usbnet                 22889  1 cdc_ether
mii                     3569  1 usbnet

 

Afterward I tried to install the driver by referring to the manufacturer's website. But all driver needed to be compiled. So I try compiling the driver. To do that, I've installed several things including make, gcc, g++, kernel-dev. However, when I tried to do a 'make' command, it returns the following:

 

make[1]: *** /lib/modules/3.14.40-rt37-ni-3.0.0f2/build: No such file or directory.  Stop.

 

Now I don't know what else to be done. If there is a solution, please suggest it to me. Thank you.

0 Kudos
Message 7 of 12
(10,967 Views)

Hello Adam,

 

Does the myRIO show up in MAX when you plug the Ethernet cable straight into the computer instead of the router?

 

Eric

Applications Engineering

0 Kudos
Message 8 of 12
(10,934 Views)

Hello Eric,

 

No it does not show in MAX. I think this is unlikely to work since the adapter itself is not yet usable in MyRIO and the IP address is not configured accordingly.

 

Just an update. I've tried another USB-to-Ethernet adapter and tried the same thing before. It is just the same as the previous adapter. I've installed usbutils on MyRIO and execute lsusb. This is the output:

Bus 001 Device 003: ID 0bda:8153 Realtek Semiconductor Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

 

Any suggestion? Do I need to install additional software using MAX? Or MyRIO really doesn't support USB-to-Ethernet adapter?

 

0 Kudos
Message 9 of 12
(10,917 Views)

Hi Adam,

 

Did you make sure to install the myRIO drivers? Look through this page and make sure you got it all installed correctly:

 

https://www.ni.com/en/support/documentation/supplemental/13/required-and-optional-software-to-progra...

 

Another step that might help is to reset your IP address. Hold the reset button for 5 seconds to put the myRIO into safe mode, and then hold it for 5 more seconds to reset the IP settings.

 

Cheers,

Ryan

0 Kudos
Message 10 of 12
(10,883 Views)