Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
The host-to-host Bluetooth HOWTO
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Tue Apr 05, 2005 10:34 pm    Post subject: Reply with quote

The guide is almost completed. Please, have a look at it, report issues, ideas and all that know procedure.

New things in this update:
- RFCOMM
- Personal Area Network
- Desktop Applications
Back to top
View user's profile Send private message
ClintonBosch
n00b
n00b


Joined: 17 May 2005
Posts: 9

PostPosted: Tue May 17, 2005 8:25 am    Post subject: Reply with quote

Thanks for the tutorial, it was very helpful.
The problem that I have is that I have a headless machine for a server and I want an IP address assigned to the bnep interface automatically when it is created. I have read a few times on the internet that this is possible using hotplug and also using the script /etc/bluetooth/pan/dev-up (I have created this script and in it I put "ifconfig bnep0 10.0.0.1" but when I create a connection from another machine using pand --connect <address>, the bnep0 interface is created but without an IP address). Please help
Back to top
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Tue May 17, 2005 10:30 am    Post subject: Reply with quote

It is in my agenda to create something like that but... with firewall. The problem is that currently I do not have the time... but I will in 3 weeks time.

I'll keep this as a reminder or... if there is anyone else who can try it until I end my exams, I'll do the necessary updates.
Back to top
View user's profile Send private message
ClintonBosch
n00b
n00b


Joined: 17 May 2005
Posts: 9

PostPosted: Wed May 18, 2005 11:01 am    Post subject: Automatically assign bnepx interface an IP Reply with quote

After much searching I will answer my own question incase anyone is interested:

What happens is that the PAN daemon 'pand' calls a script named
'dev-up' in /etc/bluetooth/pan/ whenever a 'bnep0' interface has been
created. In my case the pan directory did not exist ... so I just created it.
The 'dev-up' script may look as follows:

#!/bin/sh
ifconfig bnep0 10.0.0.1

On the PANU side, 'dev-up' would look like this:
#!/bin/sh
ifconfig bnep0 10.0.0.2

NNNB: Make sure that the 'dev-up' scripts have both the 'Read' and 'eXecutable'
attribute set.:oops:
Back to top
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Wed May 18, 2005 11:49 am    Post subject: Reply with quote

Good to know. I'll make further tests and add this to the howto.
Back to top
View user's profile Send private message
Kampi
n00b
n00b


Joined: 05 Apr 2003
Posts: 20
Location: Vienna, Austria, Europe

PostPosted: Mon Jun 13, 2005 2:21 pm    Post subject: Reply with quote

makentoo wrote:
Hi,

I was thinking, if i could browse internet from my Nokia 6600, using my bluetooth dongle as a gateway

Phone ----(request page)----> PC ------(forwards)------> [internet]
[internet] -----(result) ----->PC -----(forwards) ------>phone

maybe you are looking for this one:
http://www.cs.helsinki.fi/u/mraento/symbian/bt-ap.html
Back to top
View user's profile Send private message
xdanx
n00b
n00b


Joined: 20 Jun 2005
Posts: 14

PostPosted: Tue Jun 21, 2005 8:49 am    Post subject: Reply with quote

HELPP!!! I can't start pand.

# /etc/init.d/bluetooth start
* Starting Bluetooth...
[ ok ]tarting hcid...
[ ok ]tarting sdpd...
[ ok ]tarting rfcomm...
* Starting pand...
[ !! ]o open control socket: No such file or directory
[ ok ]

========================

# pand
Failed to open control socket: No such file or directory
Back to top
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Tue Jun 21, 2005 10:06 am    Post subject: Reply with quote

The error comes from bnep.c:

Code:
   ctl = socket(PF_BLUETOOTH, SOCK_RAW, BTPROTO_BNEP);
   if (ctl < 0) {
      perror("Failed to open control socket");
      return 1;
   }


Did you compile all protocols in your kernel?
Back to top
View user's profile Send private message
xdanx
n00b
n00b


Joined: 20 Jun 2005
Posts: 14

PostPosted: Tue Jun 21, 2005 7:53 pm    Post subject: Reply with quote

Yes I did emerge net-wireless/bluez-libs net-wireless/bluez-utils without any errors.
Back to top
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Tue Jun 21, 2005 8:20 pm    Post subject: Reply with quote

xdanx wrote:
Yes I did emerge net-wireless/bluez-libs net-wireless/bluez-utils without any errors.


Please, read again. I told you to compile the protocols built-in or as modules in your kernel.
Back to top
View user's profile Send private message
xdanx
n00b
n00b


Joined: 20 Jun 2005
Posts: 14

PostPosted: Tue Jun 21, 2005 9:33 pm    Post subject: Reply with quote

Deathwing00 wrote:
xdanx wrote:
Yes I did emerge net-wireless/bluez-libs net-wireless/bluez-utils without any errors.


Please, read again. I told you to compile the protocols built-in or as modules in your kernel.


Sorry, I'm new to the linux scene so I'm not sure if I compiled protocols built-in or as modules. How can I find out?
Back to top
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Wed Jun 22, 2005 12:10 am    Post subject: Reply with quote

Go to /usr/src/linux and

Quote:
# make menuconfig


What you have to activate is in the howto, just check it out.
Back to top
View user's profile Send private message
Festiz
n00b
n00b


Joined: 15 Jul 2004
Posts: 6
Location: Sweden

PostPosted: Wed Jun 22, 2005 12:17 pm    Post subject: Reply with quote

kdebluetoothd is not masked...
_________________
//Festiz
Back to top
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Wed Jun 22, 2005 12:57 pm    Post subject: Reply with quote

Festiz wrote:
kdebluetoothd is not masked...


It was masked for amd64... not sure by now though.
Back to top
View user's profile Send private message
xdanx
n00b
n00b


Joined: 20 Jun 2005
Posts: 14

PostPosted: Fri Jul 01, 2005 8:21 am    Post subject: Reply with quote

Deathwing00 wrote:
Go to /usr/src/linux and

Quote:
# make menuconfig


What you have to activate is in the howto, just check it out.


all modules activated... what should i do next?
Back to top
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Fri Jul 01, 2005 10:06 am    Post subject: Reply with quote

After you have activated all the modules, compile the kernel and the modules and install them following the usual way, that is, make && make menuconfig and then copy the kernel image to /boot and edit your bootloader menu. After that, emerge the required utilities and proceed to test and configure.
Back to top
View user's profile Send private message
Deathwing00
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Fri Jul 15, 2005 2:54 pm    Post subject: Reply with quote

I've performed some minor updates on the howto.
Back to top
View user's profile Send private message
the_mgt
Apprentice
Apprentice


Joined: 05 Aug 2005
Posts: 259
Location: Germany, near Hannover

PostPosted: Mon Aug 08, 2005 12:16 am    Post subject: Reply with quote

Nice howto! Thanks!

I had to change "lm accept;" to "lm master;" (to set up a PAN) on the server.
If you have a config_bnep0 entry in your /etc/conf.d/net, the bnep0 interface is set up according to it, i found out.

On the client, i have an extrascript to bring up the pan connection, writing the options in /etc/conf.d/bluetooth wasn't working.
Back to top
View user's profile Send private message
j_c_p
Guru
Guru


Joined: 30 Aug 2003
Posts: 315
Location: France - Colmar

PostPosted: Sun Sep 25, 2005 2:13 am    Post subject: Reply with quote

Great HowTo 8).

It works for me with a Belkin Dongle USB Bluetooth 10 (F8T009, kernel bcm2035 driver) and a Samsung SGH-E730 portable phone.

http://jcp.lespotos.com/images/Gentoo64-24092005-8-1.jpg
http://jcp.lespotos.com/images/Gentoo64-24092005-9-1.jpg
http://jcp.lespotos.com/images/Gentoo64-24092005-14.jpg
http://jcp.lespotos.com/images/Gentoo64-24092005-15.jpg


Quote:
phoenix64 jcp # hcitool scan
Scanning ...
00:12:47:A3:83:48 SAMSUNG SGH-E730

_________________
Lian Li PC60 - AMD FX 8300 - Asrock 990FX EXTREME9 - Gigabyte GTX960 G1 Gaming 4Go
Back to top
View user's profile Send private message
shirazmexico
n00b
n00b


Joined: 25 Oct 2005
Posts: 2

PostPosted: Tue Oct 25, 2005 6:37 pm    Post subject: Windows App Reply with quote

Hi
I wonder if u could help

Im trying to find a way to be able to detect the make and model number of a mobile phone via bluetooth using Java and then send the device a file in a format that it supports.

The app i intend to dev would run on windows xp pro.

Id appreciate any help/pointers you can suggest

Thanks
Shiraz

shirazmexico@hotmail.com
Back to top
View user's profile Send private message
HomerJ
n00b
n00b


Joined: 12 Sep 2003
Posts: 34

PostPosted: Wed Feb 08, 2006 12:41 pm    Post subject: Reply with quote

Hi there:

I have a PCMCIA Bluetooth card that is as follows:

Billionton PCBTC1 PCMCIA 0xff 0xff 0x0f 0x00 1.1 (0x020d) 1.1 (0x020d) CSR

Despite being listed at the top of your post, the instructions mention nothing about PCMCIA cards. Would the procedure be the same? (Because I can't get the card to show up with the commands listed here)

Anyone can help?

Thanks!

(Dell Latitude C640).
Back to top
View user's profile Send private message
richiefrich
n00b
n00b


Joined: 17 Feb 2006
Posts: 27
Location: PA, USA

PostPosted: Sat Mar 04, 2006 11:33 pm    Post subject: Bnep Reply with quote

I can't get bnep to inital for my mouse and keyboard

when i do then pand stuff then a ifconfig -a there no bnep0 or any bnep there at all
I did the modprobe bnep it loaded but for some reason doen't work :(
_________________
--=The Box said XP or better so I installed Linux=--

http://penguinslair.org

IRC channel
server --> irc.oftc.net
channel --> #penguinslair
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum