WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline jbbum

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

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14516
Re: How to setup usbip for connection to cell phone
« Reply #1 on: July 25, 2021, 09:32:06 AM »
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, 09:49:32 AM »
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: 33
Re: How to setup usbip for connection to cell phone
« Reply #3 on: July 25, 2021, 10:15:34 AM »
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: 33
Re: How to setup usbip for connection to cell phone
« Reply #4 on: July 25, 2021, 10:17:05 AM »
The setup is headless.  No gui. 

Offline Juanito

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

Offline jbbum

  • Newbie
  • *
  • Posts: 33
Re: How to setup usbip for connection to cell phone
« Reply #6 on: July 25, 2021, 01: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.

Offline Rich

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

Offline jbbum

  • Newbie
  • *
  • Posts: 33
Re: How to setup usbip for connection to cell phone
« Reply #8 on: July 25, 2021, 03: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: 33
Re: How to setup usbip for connection to cell phone
« Reply #9 on: July 25, 2021, 03:38:55 PM »
ifconfig -a does give a usb0 device

Offline jbbum

  • Newbie
  • *
  • Posts: 33
Re: How to setup usbip for connection to cell phone
« Reply #10 on: July 26, 2021, 08: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.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: How to setup usbip for connection to cell phone
« Reply #11 on: July 26, 2021, 08: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: 33
Re: How to setup usbip for connection to cell phone
« Reply #12 on: July 26, 2021, 08:40:42 AM »
Did the ping to 8.8.8.8.  No results except over eth0

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Re: How to setup usbip for connection to cell phone
« Reply #13 on: July 26, 2021, 08: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: 33
Re: How to setup usbip for connection to cell phone
« Reply #14 on: July 26, 2021, 09:26:12 AM »
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.