WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How to setup usbip for connection to cell phone  (Read 4557 times)

Offline jbbum

  • Newbie
  • *
  • Posts: 39
How to setup usbip for connection to cell phone
« on: July 25, 2021, 12:23:26 PM »
Looking for the extensions necessary to get cell phone connected through usb for tethering.

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14811
Re: How to setup usbip for connection to cell phone
« Reply #1 on: July 25, 2021, 12:32:06 PM »
I seem to recall somebody had networkmanager working with a mobile to make an Internet connection in piCore-9.x

Offline vinnie

  • Hero Member
  • *****
  • Posts: 1187
  • HandMace informatic works
Re: How to setup usbip for connection to cell phone
« Reply #2 on: July 25, 2021, 12:49:32 PM »
If it is for android usb tethering you don't need anything more of base tc.
Now I don't have tinycore started but going by memory you have to:
1) connect the phone
2) activate usb tethering
3) open the graphical interface for network management
4) set usb0 as interface name
5) select dhcp

and it should work.

Offline jbbum

  • Newbie
  • *
  • Posts: 39
Re: How to setup usbip for connection to cell phone
« Reply #3 on: July 25, 2021, 01:15:34 PM »
Guess I need to explain my need.  I have the pi3 onboard wifi setup as an AP.  Basically, I want to use the pi as a wifi repeater by connecting to a cell phone using usb tethering because eth0 is not available.

Offline jbbum

  • Newbie
  • *
  • Posts: 39
Re: How to setup usbip for connection to cell phone
« Reply #4 on: July 25, 2021, 01:17:05 PM »
The setup is headless.  No gui. 

Online Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14811
Re: How to setup usbip for connection to cell phone
« Reply #5 on: July 25, 2021, 01:25:51 PM »
Modemmanager/networkmanager have a cli interface.

Offline jbbum

  • Newbie
  • *
  • Posts: 39
Re: How to setup usbip for connection to cell phone
« Reply #6 on: July 25, 2021, 04:23:34 PM »
I think I need to start over.  Raspbian has the ability to recognize the usb tethering of a phone.  It registers usb0 as a device and gives it an ip.  Then you can ping over it and get a response.  I am looking for the extensions necessary to make this work on piCore without using network manager.

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11617
Re: How to setup usbip for connection to cell phone
« Reply #7 on: July 25, 2021, 05:23:18 PM »
Hi jbbum
You might need the  usbip  kernel modules extension.

Offline jbbum

  • Newbie
  • *
  • Posts: 39
Re: How to setup usbip for connection to cell phone
« Reply #8 on: July 25, 2021, 06:12:31 PM »
Hi Rich.  I loaded those modules but no usb0.  Swapped with the net-usb modules and now have the usb0.
rndis_host 1-1.4:1.0 usb0: register 'rndis_host' at usb-3f980000.usb-1.4, RNDIS device, aa:34:06:61:71:7b
[   91.231022] usbcore: registered new interface driver rndis_host.
 Now have to find a procedure to access the interface driver.

Offline jbbum

  • Newbie
  • *
  • Posts: 39
Re: How to setup usbip for connection to cell phone
« Reply #9 on: July 25, 2021, 06:38:55 PM »
ifconfig -a does give a usb0 device

Offline jbbum

  • Newbie
  • *
  • Posts: 39
Re: How to setup usbip for connection to cell phone
« Reply #10 on: July 26, 2021, 11:08:46 AM »
I can now get usb0 setup by "sudo ifconfig  ${interface}  ${ipaddr}  netmask  ${netmask}  up"
But, can't access it.  Did a ping -I usb0 but no results.

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11617
Re: How to setup usbip for connection to cell phone
« Reply #11 on: July 26, 2021, 11:19:31 AM »
Hi jbbum
... Did a ping -I usb0 but no results.
I don't see an IP address included in that command.

Offline jbbum

  • Newbie
  • *
  • Posts: 39
Re: How to setup usbip for connection to cell phone
« Reply #12 on: July 26, 2021, 11:40:42 AM »
Did the ping to 8.8.8.8.  No results except over eth0

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11617
Re: How to setup usbip for connection to cell phone
« Reply #13 on: July 26, 2021, 11:53:39 AM »
Hi jbbum
What happens if you try to ping a local address, like your router or another computer?

Offline jbbum

  • Newbie
  • *
  • Posts: 39
Re: How to setup usbip for connection to cell phone
« Reply #14 on: July 26, 2021, 12:26:12 PM »
Hi Rich  Can't ping anything on local network because not connected except eth0.  usb0 is to tether to a cell phone and use that as access to the internet.  There is no wireless connection to local network.