From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI Linux Real-Time Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I tether my iPhone to the NI Linux Real-Time?

Solved!
Go to solution

Hi,

I want to tether my iPhone(or Android phone) over USB to NI Linux RT OS. I can see the kernel of the NI Linux RT is LTSI. So I found this link.

https://www.freebsd.org/doc/en/books/handbook/network-usb-tethering.html

Do you think this will work for me? Have you ever done such a job before? Or is it impossible to do this in the first place?

If you have any questions, please let me know.

Best Regards.

CTA, CLA
SuninCNS
0 Kudos
Message 1 of 12
(5,104 Views)

Hi Joonam,

What type of connection were you looking for from the phone? A network-type connection, storage connection, or something else.

0 Kudos
Message 2 of 12
(3,732 Views)

Hi, Brad

I'm looking for a network-type connection. This functionality will make my cRIO controller as a "true" mobile system.

CTA, CLA
SuninCNS
0 Kudos
Message 3 of 12
(3,732 Views)

I've successfully managed to tether an Android phone to a NI Linux Real-Time controller in the past, and usually without even needing to add any additional software or kernel modules! (uses the CDC EEM support that is already built into the kernel).

For iDevices, you will need to install some additional software and, likely, add some missing kernel (I think you'll need to enable fuse userspace filesystem support, not currently built into the kernel, as I recall). This is a bit more involved.

Regardless of which approach you take, you will also need your carrier's support to tether (and to have the option available in the OS image that is running on your phone).

HTH, let me know where you want to go from here.

0 Kudos
Message 4 of 12
(3,732 Views)

Thank you for the reply.

Would you let me know the way of connecting Android phone with USB0?

When I connect my Samsung Galaxy S3 phone to the USB port0 (cRIO-9033), I see the phone reconize the USB. But the internect connection is not enabled.(I checked this with ping and ifconfig commands).

I used a command like below, but it's doesn't work also.

"ifconfig usb0 0.0.0.0 0.0.0.0 & dhclient"

Is there any other things to do?

CTA, CLA
SuninCNS
0 Kudos
Message 5 of 12
(3,732 Views)

Can you post the result of the following command right after plugging in your phone and enabling tethering over USB (http://www.samsung.com/ae/support/skp/faq/435820)

dmesg | tail

0 Kudos
Message 6 of 12
(3,732 Views)

Here is the result of the command.

bash-4.2# dmesg | tail

   [   19.810381] [drm:intel_dp_i2c_aux_ch] *ERROR* too many retries, giving up

   [ 5484.397191] usb 1-4: USB disconnect, device number 4

   [ 5485.541133] usb 1-3: USB disconnect, device number 3

   [ 5487.288920] usb 1-4: new low-speed USB device number 5 using xhci_hcd

   [ 5487.315105] usb 1-4: ep 0x81 - rounding interval to 128 microframes, ep desc says 192 microframes

   [ 5487.320601] input: LITEON Technology USB Keyboard as /devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.0/input/input7

   [ 5487.320779] hid-generic 0003:045E:07B9.0003: input: USB HID v1.10 Keyboard  [LITEON Technology USB Keyboard] on usb-0000:00:14.0-4/input0

   [ 5492.268970] usb 1-3: new high-speed USB device number 6 using xhci_hcd

   [ 5501.001488] usb 1-3: USB disconnect, device number 6

   [ 5501.358916] usb 1-3: new high-speed USB device number 7 using xhci_hcd

Best Regards

CTA, CLA
SuninCNS
0 Kudos
Message 7 of 12
(3,732 Views)

It doesn't seem like you've enabled USB tethering on the phone. If you have, can you install the usbutils package and run lsusb (posting the results here)

0 Kudos
Message 8 of 12
(3,732 Views)

제목 없음.png

I attached the result of commands, lsusb and lsmod.

FYI, I installed the fuse and tried to tether with an iPhone, it doesn't work also. But I succeeded some other trials.

1) Use Access Point, tether smartphone with Wifi

2) Use USB tethering supported router, tether smartphone with USB

At both cases, I used my smartphone as a WAN ip provider, of course.

Best Regards

CTA, CLA
SuninCNS
0 Kudos
Message 9 of 12
(3,732 Views)

Checking things, it seems that we don't configure some of the needed options for our x64-based controllers. You can build a kernel that supports this, right now I'm checking on what needs to happen to support this on our x64 kernels.

0 Kudos
Message 10 of 12
(3,732 Views)