Skip to contentSkip to conversation

DBT-120 and Siemens S65

Bluez-users Adis Beglerovic 3 participants 11 messages Mar 6, 2005 – Mar 10, 2005 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

Hi
Trying to connect my mobile phone and PC using blue tooth.

1.Added needed stuff in my kernel 2.6.11 on gentoo box.
When I plug inn my Dlink DBT-120 lights are ON and hcitools scan reports this:
Scanning ...

       00:01:E3:3C:79:45       Bash

where bash is my mobile phone.
and link quality is -->hcitool lq 00:01:E3:3C:79:45 Link quality: 255

Does this means that blue tooth works?
2.How do I connect to devices?
3. What tools can use for file transfer ?

Thanks

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#1 lore raw

Hi Adis,

Quoted 6 lines

Trying to connect my mobile phone and PC using blue tooth.

1.Added needed stuff in my kernel 2.6.11 on gentoo box.
When I plug inn my Dlink DBT-120 lights are ON and hcitools scan reports this:
Scanning ...

Quoted 6 lines
       00:01:E3:3C:79:45       Bash

where bash is my mobile phone.
and link quality is -->hcitool lq 00:01:E3:3C:79:45 Link quality: 255

Does this means that blue tooth works?

if "hciconfig -a" doesn't show any errors it is working.

Quoted 1 line

2.How do I connect to devices?

This depends on what you wanna do, but in general you will setup a RFCOMM connection with the "rfcomm" tool.

Quoted 1 line

3. What tools can use for file transfer ?

The Gnome desktop and also KDE have some nice Bluetooth integration that allows you to send and receive files.

Regards

Marcel

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#2 lore raw

Well I get this output when I run hciconfig -a

Can't open HCI socket.: Address family not supported by protocol What can I do to make that work?

Regarding KDE and GNOME.. I don't use any of them. Is there a nice command tool for that? Tryed obexftp but with no luck.

Thanks

Quoted 31 lines · Marcel Holtmann

Hi Adis,

Quoted 6 lines

Trying to connect my mobile phone and PC using blue tooth.

1.Added needed stuff in my kernel 2.6.11 on gentoo box.
When I plug inn my Dlink DBT-120 lights are ON and hcitools scan reports this:
Scanning ...

Quoted 6 lines
       00:01:E3:3C:79:45       Bash

where bash is my mobile phone.
and link quality is -->hcitool lq 00:01:E3:3C:79:45 Link quality: 255

Does this means that blue tooth works?

if "hciconfig -a" doesn't show any errors it is working.

Quoted 1 line

2.How do I connect to devices?

This depends on what you wanna do, but in general you will setup a RFCOMM connection with the "rfcomm" tool.

Quoted 1 line

3. What tools can use for file transfer ?

The Gnome desktop and also KDE have some nice Bluetooth integration that allows you to send and receive files.

Regards

Marcel

Quoted 10 lines

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#3 lore raw

Hi Adis,

Quoted 4 lines

Well I get this output when I run hciconfig -a

Can't open HCI socket.: Address family not supported by protocol What can I do to make that work?

are you sure that the kernel modules bluetooth.ko and hci_usb.ko are loaded?

Quoted 3 lines

Regarding KDE and GNOME.. I don't use any of them. Is there a nice command tool for that? Tryed obexftp but with no luck.

The latest version of obexftp and an OpenOBEX library with Bluetooth support should work.

Regards

Marcel

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#4 lore raw

Thanks for fast answers

Just checkign stuff that was in kernel and everything seams OK. I don't use modules everything is build inn!
Also when I start bluetooth I get :

/etc/init.d/bluetooth start
* Starting Bluetooth...

 *     Starting hcid...                                                   [ ok ]
 *     Starting sdpd...                                                   [ ok ]
 *     Starting rfcomm...

Can't open RFCOMM control socket: Address family not supported by protoc [ !! ]

Quoted 21 lines · Marcel Holtmann

Hi Adis,

Quoted 4 lines

Well I get this output when I run hciconfig -a

Can't open HCI socket.: Address family not supported by protocol What can I do to make that work?

are you sure that the kernel modules bluetooth.ko and hci_usb.ko are loaded?

Quoted 3 lines

Regarding KDE and GNOME.. I don't use any of them. Is there a nice command tool for that? Tryed obexftp but with no luck.

The latest version of obexftp and an OpenOBEX library with Bluetooth support should work.

Regards

Marcel

Quoted 10 lines

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#5 lore raw

Hi Adis,

Quoted 10 lines

Just checkign stuff that was in kernel and everything seams OK. I don't use modules everything is build inn!
Also when I start bluetooth I get :

/etc/init.d/bluetooth start
* Starting Bluetooth...

 *     Starting hcid...                                                   [ ok ]
 *     Starting sdpd...                                                   [ ok ]
 *     Starting rfcomm...

Can't open RFCOMM control socket: Address family not supported by protoc [ !! ]

make sure everything is compiled in correctly. Otherwise use modules.

Regards

Marcel

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#6 lore raw

Was following this howto http://gentoo-wiki.com/HOWTO_The_host-to-host_Bluetooth
and stuff that was added are as following:Device Drivers --->
Networking Support --->
<*> Bluetooth subsystem support --->
<*> L2CAP protocol support
<*> SCO links support
<*> RFCOMM protocol support
[*] RFCOMM TTY support
<*> BNEP protocol support
[*] Multicast filter support
[*] Protocol filter support
Bluetooth device drivers --->
<*> HCI USB driver
[*] SCO (voice) support
USB support --->
<*> Support for Host-side USB
--- USB Host Controller Drivers
<M> EHCI HCD (USB 2.0) support
<M> OHCI HCD support
<*> UHCI HCD (most Intel and VIA) support
--- USB Device Class drivers
<*> USB Audio support

Please tell me if this is wrong and.
You are also suggesting modules? Which one as a module ? Can you point me to a howto that explains it ?

Thanks

Quoted 19 lines · Marcel Holtmann

Hi Adis,

Quoted 10 lines

Just checkign stuff that was in kernel and everything seams OK. I don't use modules everything is build inn!
Also when I start bluetooth I get :

/etc/init.d/bluetooth start
* Starting Bluetooth...

 *     Starting hcid...                                                   [ ok ]
 *     Starting sdpd...                                                   [ ok ]
 *     Starting rfcomm...

Can't open RFCOMM control socket: Address family not supported by protoc [ !! ]

make sure everything is compiled in correctly. Otherwise use modules.

Regards

Marcel

Quoted 10 lines

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

maintainer
#7 lore raw

Hi Adis,

Quoted 23 lines

Was following this howto http://gentoo-wiki.com/HOWTO_The_host-to-host_Bluetooth
and stuff that was added are as following:Device Drivers --->
Networking Support --->
<*> Bluetooth subsystem support --->
<*> L2CAP protocol support
<*> SCO links support
<*> RFCOMM protocol support
[*] RFCOMM TTY support
<*> BNEP protocol support
[*] Multicast filter support
[*] Protocol filter support
Bluetooth device drivers --->
<*> HCI USB driver
[*] SCO (voice) support
USB support --->
<*> Support for Host-side USB
--- USB Host Controller Drivers
<M> EHCI HCD (USB 2.0) support
<M> OHCI HCD support
<*> UHCI HCD (most Intel and VIA) support
--- USB Device Class drivers
<*> USB Audio support

Quoted 3 lines

Please tell me if this is wrong and.
You are also suggesting modules? Which one as a module ? Can you point me to a howto that explains it ?

I never checked again, if Bluetooth built-in is still working. Most people are using a full modular kernel and this includes Bluetooth as well as USB.

Regards

Marcel

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#8 lore raw

Finaly I got great results with modules in kernel and now hcicionfig -a shows this:
hciconfig -a
hci0: Type: USB
BD Address: 00:11:95:6F:DE:D1 ACL MTU: 192:8 SCO MTU: 64:8 UP RUNNING PSCAN ISCAN
RX bytes:1754 acl:38 sco:0 events:80 errors:0
TX bytes:1007 acl:34 sco:0 commands:29 errors:0
Features: 0xff 0xff 0x0f 0x00 0x00 0x00 0x00 0x00
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF PARK
Link mode: SLAVE ACCEPT
Name: 'BlueZ (0)'
Class: 0x000100
Service Classes: Unspecified
Device Class: Computer, Uncategorized
HCI Ver: 1.1 (0x1) HCI Rev: 0x20d LMP Ver: 1.1 (0x1) LMP Subver: 0x20d
Manufacturer: Cambridge Silicon Radio (10)
But when I try to use obexftp I get to the part where it asks for pass and pass is not good.
Where do I look for pass ? In /etc/bluetooth/pin ?
Thanks

Quoted 37 lines · Marcel Holtmann

Hi Adis,

Quoted 23 lines

Was following this howto http://gentoo-wiki.com/HOWTO_The_host-to-host_Bluetooth
and stuff that was added are as following:Device Drivers --->
Networking Support --->
<*> Bluetooth subsystem support --->
<*> L2CAP protocol support
<*> SCO links support
<*> RFCOMM protocol support
[*] RFCOMM TTY support
<*> BNEP protocol support
[*] Multicast filter support
[*] Protocol filter support
Bluetooth device drivers --->
<*> HCI USB driver
[*] SCO (voice) support
USB support --->
<*> Support for Host-side USB
--- USB Host Controller Drivers
<M> EHCI HCD (USB 2.0) support
<M> OHCI HCD support
<*> UHCI HCD (most Intel and VIA) support
--- USB Device Class drivers
<*> USB Audio support

Quoted 3 lines

Please tell me if this is wrong and.
You are also suggesting modules? Which one as a module ? Can you point me to a howto that explains it ?

I never checked again, if Bluetooth built-in is still working. Most people are using a full modular kernel and this includes Bluetooth as well as USB.

Regards

Marcel

Quoted 10 lines

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#9 lore raw
In reply to Adis Beglerovic

Adis Beglerovic escribi=F3:

Quoted 5 lines

Hi
Trying to connect my mobile phone and PC using blue tooth. =20
1.Added needed stuff in my kernel 2.6.11 on gentoo box.
When I plug inn my Dlink DBT-120 lights are ON and hcitools scan report=

s

Quoted 10 lines

this:
Scanning ...

       00:01:E3:3C:79:45       Bash

where bash is my mobile phone.
and link quality is -->hcitool lq 00:01:E3:3C:79:45 Link quality: 255
=20
Does this means that blue tooth works? 2.How do I connect to devices?
3. What tools can use for file transfer ?

see this link [http://el-directorio.org/index.php?title=3DT610:Transferen=
cia_de_Archivos] (is in=20
spanish but can help you) and you can compare your hcid.conf whit it:

options {
        autoinit yes;
        security auto;
        pairing multi;
        pin_helper /usr/bin/bluez-pin;
}
device {
        name "%h-%d";
        class 0x100;
        iscan enable;
        pscan enable;
        lm accept;
        lp rswitch,hold,sniff,park;
        #encrypt enable;
}
Quoted 6 lines

Thanks
=20
=20
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users=

.

Quoted 7 lines

Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=3D6595&alloc_id=3D14396&op=3Dclick
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users
=20

--=20
Suerte and F.S.Fv.

ATT: Fredy P.
___________________________________________________
F.S.Fv. es acr=F3nimo de Free Software Forever
http://www.fsf.org/philosophy/free-sw.es.html

Normas b=E1sicas de comportamiento en el ciberespacio
http://www.netiqueta.org/

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users

#10 lore raw

Hi all

Lets try again ...
I have fully working bluetooth setup except
when I try to send files to my Siemens S65 with obexftp It asks to type in pass for Bluez(0) and no mather what I type it just not giving me access.
Pass in /etc/bluetooth/pin is 12345 and phonecode is the same. Here is the out put what happends when I run :
/usr/local/bin/obexftp -b 00:01:E3:3C:79:45 -B 5 -p wireless_script
Browsing 00:01:E3:3C:79:45 ...
Channel: 5
No custom transport
Connecting...bt: -1
failed: connect
Still trying to connect
Connecting...bt: -1
failed: connect
Still trying to connect
Connecting...bt: -1
failed: connect
Still trying to connect

After 3 tryes it stops.
Here is my hcdi.conf

# HCI daemon configuration file.
#
# $Id: hcid.conf,v 1.4 2004/04/29 20:14:21 holtmann Exp $ #

# HCId options
options {
# Automatically initialize new devices
autoinit yes;

# Security Manager mode
# none - Security manager disabled
# auto - Use local PIN for incoming connections
# user - Always ask user for a PIN
#
security user;

# Pairing mode
# none - Pairing disabled
# multi - Allow pairing with already paired devices
# once - Pair once and deny successive attempts
pairing multi; # PIN helper
pin_helper /usr/bin/bluepin;

# D-Bus PIN helper
#dbus_pin_helper;
}

# Default settings for HCI devices
device {
# Local device name
# %d - device id
# %h - host name
name "BlueZ (%d)";

# Local device class
class 0x100;

# Default packet type
#pkt_type DH1,DM1,HV1;
# Inquiry and Page scan
iscan enable; pscan enable;

# Default link mode
# none - no specific policy
# accept - always accept incoming connections
# master - become master on incoming connections,
# deny role switch on outgoing connections
#
#lm accept,master;
#
lm accept;

# Default link policy
# none - no specific policy
# rswitch - allow role switch
# hold - allow hold mode
# sniff - allow sniff mode
# park - allow park mode
#

        #lp hold,sniff;
        #
        lp rswitch,hold,sniff,park;

        # Authentication and Encryption
        #auth enable;
        #encrypt enable;
}

------------------------------------------------------------------------------------------------------------

And this is my pin >>>> 12345

-----------------------------------------------------------------------------------------------------------
pin-helper file has this stuff

#!/bin/sh
echo -n "PIN:"
cat /etc/bluetooth/pin
----------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------------
And finaly rfcomm.conf
#
# RFCOMM configuration file.
#
# $Id: rfcomm.conf,v 1.1 2002/10/07 05:58:18 maxk Exp $ #

rfcomm0 {
# Automatically bind the device at startup bind no;

# Bluetooth address of the device
device 11:22:33:44:55:66;

# RFCOMM channel for the connection
channel 1;

# Description of the connection
comment "Example Bluetooth device";
}
-----------------------------------------------------------------------------------------------

Need to get pass that password issue ....

Thanks

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bluez-users