Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Networking & Wireless
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Networking & Wireless
Having problems getting connected to the internet or getting your wireless card to work? Ask here.

 
Thread Tools Display Modes
Old September 27th, 2007   #1
cyberco
Spilled the Beans
 
Join Date: Aug 2007
Beans: 14
Access internet via phone using Bluetooth PAN: 'modprobe bnep' has no effect?

Using Ubunty Feisty I want to access the internet via my 3G phone using bluetooth. I've been struggling with this issue for quite a while now and would like to get it working so I don't have to switch to Windows when I'm on the road.

Here are the steps I've taken:

- pair the laptop and phone (windows mobile 5)
- phone: turn on 'internet sharing'
- For the laptop I follow the steps as described here:
http://ubuntuforums.org/showthread.p...bluetooth+pand
- 'hcitool scan' works fine and shows list of BT devices
- Edit '/etc/bluetooth/hcid.conf' and set:
autoinit yes
security auto
pairing multi
passkey "0000"
- But then: 'sudo modprobe bnep' gives no output. As if nothing happens.
-- 'iwconfig' shows no bnep0,
-- so doing 'sudo ifconfig bnep0' throws an error saying 'bnep0: error fetching interface information: Device not found'
- What I've also tried:
-- set 'PAND_ENABLED=1' in '/etc/init.d/bluetooth'
-- What's discussed here (second half): http://news.softpedia.com/news/Conne...on-50670.shtml

I'm at a loss, I have no idea what I'm doing wrong and where I should be looking for a solution.

Some relevant links that I found but didn't solve my issue:

Other way around (laptop/desktop as internet proxy for phone)
http://ubuntuforums.org/showthread.p...bluetooth+pand

General:
http://bluez.sourceforge.net/contrib/HOWTO-PAN

In Gentoo:
http://gentoo-wiki.com/HOWTO_The_host-to-host_Bluetooth

Dialup networking:
http://www.howtoforge.com/bluetooth_pand_debian_etch
cyberco is offline   Reply With Quote
Old September 30th, 2007   #2
evuraan
5 Cups of Ubuntu
 
Join Date: Dec 2005
Beans: 15
Re: Access internet via phone using Bluetooth PAN: 'modprobe bnep' has no effect?

Try calling pand manually, and see if bnep0 is created:

Code:
# pand --listen -c <macid> --role=NAP -n --persist
pand[11406]: Bluetooth PAN daemon version 3.9
pand[11406]: Connecting to <macid>
pand[11406]: bnep0 connected
evuraan is offline   Reply With Quote
Old September 30th, 2007   #3
cyberco
Spilled the Beans
 
Join Date: Aug 2007
Beans: 14
Re: Access internet via phone using Bluetooth PAN: 'modprobe bnep' has no effect?

Quote:
Originally Posted by evuraan View Post
Try calling pand manually, and see if bnep0 is created:

Code:
# pand --listen -c <macid> --role=NAP -n --persist
pand[11406]: Bluetooth PAN daemon version 3.9
pand[11406]: Connecting to <macid>
pand[11406]: bnep0 connected
That solved my problem! Thank you very much!

So the steps I now take are:

Code:
sudo pand --listen -c 00:17:83:11:AB:F9 --role=NAP -n --persist
Then in another terminal:

Code:
sudo ifconfig bnep0
sudo ifup bnep0
One small question I still have is how I can put this all in one script (which launches 'pand' in a seperate process/thread).
cyberco is offline   Reply With Quote
Old September 30th, 2007   #4
evuraan
5 Cups of Ubuntu
 
Join Date: Dec 2005
Beans: 15
Re: Access internet via phone using Bluetooth PAN: 'modprobe bnep' has no effect?

Just evoke pand without -n and --persist, you won't need to spawn another terminal.

pand man page:


Code:
       --nodetach -n
              Do not become a daemon

       --persist -p[interval]
              Persist mode
evuraan is offline   Reply With Quote
Old November 17th, 2007   #5
tech0007
Way Too Much Ubuntu
 
tech0007's Avatar
 
Join Date: Sep 2007
Beans: 207
Ubuntu 8.04 Hardy Heron
Re: Access internet via phone using Bluetooth PAN: 'modprobe bnep' has no effect?

Quote:
Originally Posted by evuraan View Post
Try calling pand manually, and see if bnep0 is created:

Code:
# pand --listen -c <macid> --role=NAP -n --persist
pand[11406]: Bluetooth PAN daemon version 3.9
pand[11406]: Connecting to <macid>
pand[11406]: bnep0 connected
I get this error why I do 'pand --listen -c <macid> --role=NAP -n --persist'

SIOCSIFADDR: No such device
bnep0: unknown interface: No such device
SIOCSIFNETMASK: No such device

I would appreciate any help.
tech0007 is offline   Reply With Quote
Old November 17th, 2007   #6
cyberco
Spilled the Beans
 
Join Date: Aug 2007
Beans: 14
Re: Access internet via phone using Bluetooth PAN: 'modprobe bnep' has no effect?

Quote:
Originally Posted by tech0007 View Post
I get this error why I do 'pand --listen -c <macid> --role=NAP -n --persist'

SIOCSIFADDR: No such device
bnep0: unknown interface: No such device
SIOCSIFNETMASK: No such device

I would appreciate any help.
According to:

http://www.ibm.com/developerworks/li...-enable.html#2

it looks as if your 'BNEP (Bluetooth Network Encapsulation Protocol)' doesn't 'register itself with the Linux networking layer as an Ethernet device'. It should show up when issuing 'ifconfig'.

I'm sorry I can't help you any further than that, but I hope it helps.
cyberco is offline   Reply With Quote
Old May 14th, 2008   #7
ivaylo
First Cup of Ubuntu
 
Join Date: May 2008
Beans: 1
Re: Access internet via phone using Bluetooth PAN: 'modprobe bnep' has no effect?

Hi,

Can anyone explain me what can be the cause for

pand[3947]: Connecting to <macid>
pand[3947]: Connect to <macid> failed. Connection refused(111)

I want to note, also that I have pan0 device and I can assign an IP on it. I don't really know where this device came from

I hope that someone will help me with this
ivaylo is offline   Reply With Quote
Old June 28th, 2008   #8
3gun
First Cup of Ubuntu
 
Join Date: Jun 2008
Beans: 2
Send a message via ICQ to 3gun
Re: Access internet via phone using Bluetooth PAN: 'modprobe bnep' has no effect?

Quote:
Originally Posted by evuraan View Post
Try calling pand manually, and see if bnep0 is created:
Code:
# pand --listen -c <macid> --role=NAP -n --persist
pand[11406]: Bluetooth PAN daemon version 3.9
pand[11406]: Connecting to <macid>
pand[11406]: bnep0 connected
that didn't solve my problem
Code:
modprobe bnep
pand --listen --role GN
ifconfig bnep0 10.0.0.1
DID work for some time. but after i tried to make it a script and put it in /etc/init.d and update-rc.d myscript defaults device became unfindable by others. even after removing script with update-rc.d -f myscript remove and rm /etc/init.d/myscript. there are outputs of some commands:
Code:
# pand --listen -c 00:09:D0:50:0F:44 --role NAP -n
pand[6521]: Bluetooth PAN daemon version 3.19
pand[6521]: Connecting to 00:09:D0:50:0F:44
pand[6521]: Connect to 00:09:D0:50:0F:44 failed. No route to host(113)
Code:
# pand --listen --role NAP -n
pand[6518]: Bluetooth PAN daemon version 3.19
// now it hangs...
also tried all of this after calling /etc/init.d/bluetooth restart. didn't help too.
there are no bnep0 in output of ifconfig.
PS: trouble came after Vista connected to Ubuntu, any ideas?
3gun is offline   Reply With Quote
Old June 28th, 2008   #9
flytripper
Way Too Much Ubuntu
 
flytripper's Avatar
 
Join Date: May 2008
Location: other side of screen
Beans: 223
Re: Access internet via phone using Bluetooth PAN: 'modprobe bnep' has no effect?

may i ask why? are you rich? have you any idea how much phone companies charge for that kind of connection? i am in england and on o2 if i acces the internet on my pc through my mobile its like 5 quid a MB. the guy in the shop looked horrified when i inquired as to the tarrif for that kind of thing..
flytripper is offline   Reply With Quote
Old June 28th, 2008   #10
3gun
First Cup of Ubuntu
 
Join Date: Jun 2008
Beans: 2
Send a message via ICQ to 3gun
Re: Access internet via phone using Bluetooth PAN: 'modprobe bnep' has no effect?

actually, i don't need an internet via phone )) my point is to connect my PC with my notebook with PAN, but i have a same problem as posted in #1

P.S. sometimes it's useful to have inet via phone. f.e. when u're on study

Last edited by 3gun; June 28th, 2008 at 10:31 AM..
3gun is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:25 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry