1b6b7
![]() |
|
|
|
|
|||||||
| Networking Network related discussions (including general TCP/IP stuff, routing, etc). |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hi all, I've used FreeBSD in the past but struggled with mobile broadband, so I have mainly been using Linux. As anyone had experience with tethering FreeBSD with an Android phone, I've googled around but I haven't found a lot and wondered if FreeBSD supports it.
Thanks... |
|
#2
|
||||
|
||||
|
It shouldn't be difficult but it does take a bit of fiddling. I've done it in the past.
First you'll need to get a bluetooth connection using RFCOMM. You can then use the 'standard' PPP connection. Usually you need to dial a special phonenumber; *99#. 32.4 Bluetooth Chapter 28 PPP and SLIP
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
|
#3
|
|||
|
|||
|
Thanks for the reply SirDice, when I was using my Android to tether my Linux laptop I used a cable from my Phone to may laptop connected to usb. Which once connected created /dev/usb0, then I used dhcpcd to get an ip and was wondering if the would apply with FreeBSD.
|
|
#4
|
||||
|
||||
|
I've done it with Bluetooth and a Nokia phone. I haven't tried it yet with my new Android phone though.
The idea would be the same. Instead of a Bluetooth connection, it'll be a (serial) USB connection. Setting up PPP should be the same. I haven't done this as setting up a temporary Wifi hotspot with my Android phone was a lot easier to do.
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
|
#5
|
|||
|
|||
|
I've just installed FreeBSD 9 and tried to plug in usb cable to attempt to tether. Here is some output.
lsub http://zlin.dk/p/?MWQwZWRl dmesg http://zlin.dk/p/?MDZiZWNl I'm not sure if FreeBSD is seeing my phone as a storage device, with linux it creates usb0. Whether I need to load a module manually, kldstat shows kernel and modem.ko modules loaded. |
|
#6
|
||||
|
||||
|
It should be very easy. On the phone you need to set the connection sharing method to "Mac OS X" (I don't know if "Windows" would also work) and then connect your phone to the notebook and share the connection.
On FreeBSD you should have a "ue0" network device then and just run # dhclient ue0.
|
|
#7
|
|||
|
|||
|
Ime@, it doesn't create a device when the cable is plugged in and I can't find any option for sharing method with "Mac OS X" on my phone. I was wondering if I used a USB to Ethernet adapter, which would mean I would be plugging it into a physical device(fxp0)?
Then I could use dhclient, don't know if that would work until I figured this out. |
|
#8
|
||||
|
||||
|
Maybe you need to load the if_cdce kernel module first. Does
# kldstat -v | grep cdce return anything? If not issuse # kldload if_cdce and plug in your phone.
|
|
#9
|
|||
|
|||
|
Ime@ when i run
I get "317 uhub/cdce", so i presume the module is already loaded? |
|
#10
|
||||
|
||||
|
Yes, it's loaded. Hmm, and I guess on your phone you chose to share your connection via USB?
|
|
#11
|
|||
|
|||
|
Yes, i've chosen USB to tether on my phone. Here is the output from dmesg, I get nothing about ue0 but something of da0?
http://zlin.dk/p/?ZGZhMDFh |
|
#12
|
||||
|
||||
|
Code:
umodem0: <CDC Abstract Control Model ACM> on usbus1 umodem0: data interface 2, has no CM over data, has no break Can you show the output of ifconfig(8)? |
|
#13
|
|||
|
|||
|
|
|
#14
|
||||
|
||||
|
Hummm.... strange...
What Android phone do you have? |
|
#15
|
||||
|
||||
|
@Harry_the_rat
I am using it from time to time, with WiFi Hotspot from Android phone. FreeBSD works/connects to it as to any other Access Point. I haven't tried USB tethering thought.
__________________
Religions, worst damnation of mankind. "FreeBSD has always been the operating system that GNU/Linux should have been." Frank Pohlmann, IBM http://vermaden.blogspot.com |
|
#16
|
||||
|
||||
|
The hotspot method should work, but it sucks a lot more of power of your phone's battery.
|
|
#17
|
|||
|
|||
|
Ime@, I have Samsung Galaxy Y phone, I have also tried this on Vodafone 858 Smart this morning with same effect, which are both Android phones.
@vermaden, I haven't tried wifi yet with FreeBSD but have a few wireless cards to try. I'd prefer to use tethering with a cable though. |
|
#18
|
||||
|
||||
|
Quote:
__________________
Religions, worst damnation of mankind. "FreeBSD has always been the operating system that GNU/Linux should have been." Frank Pohlmann, IBM http://vermaden.blogspot.com |
|
#19
|
|||
|
|||
|
Sorry if this thread is considered dead and I shouldn't be reviving it, but I'm having the same problem as described here. I'm wondering if anyone else knows anything about this and would be willing to give some advice.
Thank you. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Android app? | kr651129 | Feedback | 3 | June 27th, 2012 00:02 |
| Why doesn't Android use FreeBSD? | bleakwind | Off-Topic | 23 | February 13th, 2011 21:15 |
| Android+FreeBSD | venjun2000 | FreeBSD Development | 3 | December 25th, 2010 08:03 |
| iPhone usb tethering | andrnils | Peripheral Hardware | 8 | August 19th, 2010 22:34 |
| eclipse + subversion + android sdk? | mathuin | Installation and Maintenance of FreeBSD Ports or Packages | 1 | July 15th, 2009 19:04 |