View previous topic :: View next topic |
Author |
Message |
Deathwing00 Bodhisattva


Joined: 13 Jun 2003 Posts: 4087 Location: Dresden, Germany
|
Posted: Tue Apr 05, 2005 10:34 pm Post subject: |
|
|
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 |
|
 |
ClintonBosch n00b

Joined: 17 May 2005 Posts: 9
|
Posted: Tue May 17, 2005 8:25 am Post subject: |
|
|
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 |
|
 |
Deathwing00 Bodhisattva


Joined: 13 Jun 2003 Posts: 4087 Location: Dresden, Germany
|
Posted: Tue May 17, 2005 10:30 am Post subject: |
|
|
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 |
|
 |
ClintonBosch n00b

Joined: 17 May 2005 Posts: 9
|
Posted: Wed May 18, 2005 11:01 am Post subject: Automatically assign bnepx interface an IP |
|
|
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. |
|
Back to top |
|
 |
Deathwing00 Bodhisattva


Joined: 13 Jun 2003 Posts: 4087 Location: Dresden, Germany
|
Posted: Wed May 18, 2005 11:49 am Post subject: |
|
|
Good to know. I'll make further tests and add this to the howto. |
|
Back to top |
|
 |
Kampi n00b

Joined: 05 Apr 2003 Posts: 20 Location: Vienna, Austria, Europe
|
Posted: Mon Jun 13, 2005 2:21 pm Post subject: |
|
|
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 |
|
 |
xdanx n00b

Joined: 20 Jun 2005 Posts: 14
|
Posted: Tue Jun 21, 2005 8:49 am Post subject: |
|
|
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 |
|
 |
Deathwing00 Bodhisattva


Joined: 13 Jun 2003 Posts: 4087 Location: Dresden, Germany
|
Posted: Tue Jun 21, 2005 10:06 am Post subject: |
|
|
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 |
|
 |
xdanx n00b

Joined: 20 Jun 2005 Posts: 14
|
Posted: Tue Jun 21, 2005 7:53 pm Post subject: |
|
|
Yes I did emerge net-wireless/bluez-libs net-wireless/bluez-utils without any errors. |
|
Back to top |
|
 |
Deathwing00 Bodhisattva


Joined: 13 Jun 2003 Posts: 4087 Location: Dresden, Germany
|
Posted: Tue Jun 21, 2005 8:20 pm Post subject: |
|
|
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 |
|
 |
xdanx n00b

Joined: 20 Jun 2005 Posts: 14
|
Posted: Tue Jun 21, 2005 9:33 pm Post subject: |
|
|
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 |
|
 |
Deathwing00 Bodhisattva


Joined: 13 Jun 2003 Posts: 4087 Location: Dresden, Germany
|
Posted: Wed Jun 22, 2005 12:10 am Post subject: |
|
|
Go to /usr/src/linux and
What you have to activate is in the howto, just check it out. |
|
Back to top |
|
 |
Festiz n00b

Joined: 15 Jul 2004 Posts: 6 Location: Sweden
|
Posted: Wed Jun 22, 2005 12:17 pm Post subject: |
|
|
kdebluetoothd is not masked... _________________ //Festiz |
|
Back to top |
|
 |
Deathwing00 Bodhisattva


Joined: 13 Jun 2003 Posts: 4087 Location: Dresden, Germany
|
Posted: Wed Jun 22, 2005 12:57 pm Post subject: |
|
|
Festiz wrote: | kdebluetoothd is not masked... |
It was masked for amd64... not sure by now though. |
|
Back to top |
|
 |
xdanx n00b

Joined: 20 Jun 2005 Posts: 14
|
Posted: Fri Jul 01, 2005 8:21 am Post subject: |
|
|
Deathwing00 wrote: | Go to /usr/src/linux and
What you have to activate is in the howto, just check it out. |
all modules activated... what should i do next? |
|
Back to top |
|
 |
Deathwing00 Bodhisattva


Joined: 13 Jun 2003 Posts: 4087 Location: Dresden, Germany
|
Posted: Fri Jul 01, 2005 10:06 am Post subject: |
|
|
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 |
|
 |
Deathwing00 Bodhisattva


Joined: 13 Jun 2003 Posts: 4087 Location: Dresden, Germany
|
Posted: Fri Jul 15, 2005 2:54 pm Post subject: |
|
|
I've performed some minor updates on the howto. |
|
Back to top |
|
 |
the_mgt Apprentice


Joined: 05 Aug 2005 Posts: 259 Location: Germany, near Hannover
|
Posted: Mon Aug 08, 2005 12:16 am Post subject: |
|
|
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 |
|
 |
j_c_p Guru


Joined: 30 Aug 2003 Posts: 315 Location: France - Colmar
|
|
Back to top |
|
 |
shirazmexico n00b

Joined: 25 Oct 2005 Posts: 2
|
Posted: Tue Oct 25, 2005 6:37 pm Post subject: Windows App |
|
|
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 |
|
 |
HomerJ n00b


Joined: 12 Sep 2003 Posts: 34
|
Posted: Wed Feb 08, 2006 12:41 pm Post subject: |
|
|
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 |
|
 |
richiefrich n00b


Joined: 17 Feb 2006 Posts: 27 Location: PA, USA
|
Posted: Sat Mar 04, 2006 11:33 pm Post subject: Bnep |
|
|
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 |
|
 |
|