* [Bluez-users] Bluetooth passkey and encryption
@ 2007-02-19 6:47 Hofmann, Marco
2007-02-19 8:41 ` Marcel Holtmann
0 siblings, 1 reply; 4+ messages in thread
From: Hofmann, Marco @ 2007-02-19 6:47 UTC (permalink / raw)
To: bluez-users
Dear members,
For a project in my school I need to connect a Debian Linux Server via
Bluetooth to a serial Bluetooth dongle. It is important that a
connection can be established using only the command line. I use the
bluez-utils 3.7 on a debian unstable (kernel 2.6.17).
Without enabling any security functions the connection can be
established without a problem. As soon as encryption and PIN are enabled
a connection can not be established. I have checked the settings in the
hcid.conf according to various How-Tos to enable encryption and PIN. I
always receive an Input/Output error.
Doing the pairing with a graphical tool like kbluetoothd is possible
with encryption and PIN. So it is possible and the devices work. I am
just frustrated that I am obviously missing something somewhere. If
anyone could help that would be great.
Sincerely,
Marco.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Bluez-users] Bluetooth passkey and encryption
2007-02-19 6:47 [Bluez-users] Bluetooth passkey and encryption Hofmann, Marco
@ 2007-02-19 8:41 ` Marcel Holtmann
2007-02-19 9:31 ` Hofmann, Marco
0 siblings, 1 reply; 4+ messages in thread
From: Marcel Holtmann @ 2007-02-19 8:41 UTC (permalink / raw)
To: BlueZ users
Hi Marco,
> For a project in my school I need to connect a Debian Linux Server via
> Bluetooth to a serial Bluetooth dongle. It is important that a
> connection can be established using only the command line. I use the
> bluez-utils 3.7 on a debian unstable (kernel 2.6.17).
> Without enabling any security functions the connection can be
> established without a problem. As soon as encryption and PIN are enabled
> a connection can not be established. I have checked the settings in the
> hcid.conf according to various How-Tos to enable encryption and PIN. I
> always receive an Input/Output error.
> Doing the pairing with a graphical tool like kbluetoothd is possible
> with encryption and PIN. So it is possible and the devices work. I am
> just frustrated that I am obviously missing something somewhere. If
> anyone could help that would be great.
check with "hcidump -X -V" and look at the syslog for errors from hcid.
Regards
Marcel
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Bluez-users] Bluetooth passkey and encryption
2007-02-19 8:41 ` Marcel Holtmann
@ 2007-02-19 9:31 ` Hofmann, Marco
2007-02-19 10:19 ` Marcel Holtmann
0 siblings, 1 reply; 4+ messages in thread
From: Hofmann, Marco @ 2007-02-19 9:31 UTC (permalink / raw)
To: BlueZ users
Hi Marcel
I checked with hcidump and received the following message:
> HCI Event: PIN Code Request (0x16) plen 6
bdaddr 00:11:B1:A1:68:2B
< HCI Command: PIN Code Request Negative Reply (0x01|0x000e) plen 6
bdaddr 00:11:B1:A1:68:2B
> HCI Event: Command Complete (0x0e) plen 10
PIN Code Request Negative Reply (0x01|0x000e) ncmd 1
status 0x06 bdaddr 00:11:B1:A1:68:2B
Error: PIN or Key Missing
> HCI Event: Connect Complete (0x03) plen 11
status 0x06 handle 7 bdaddr 00:11:B1:A1:68:2B type ACL encrypt 0x00
Error: PIN or Key Missing
I set a key under the option passkey in the hcid.conf. So if that key is
not used, where would I have to set this key?
Sincerely,
Marco.
-----Original Message-----
From: bluez-users-bounces@lists.sourceforge.net
[mailto:bluez-users-bounces@lists.sourceforge.net] On Behalf Of Marcel
Holtmann
Sent: Monday, February 19, 2007 9:41 AM
To: BlueZ users
Subject: Re: [Bluez-users] Bluetooth passkey and encryption
Hi Marco,
> For a project in my school I need to connect a Debian Linux Server via
> Bluetooth to a serial Bluetooth dongle. It is important that a
> connection can be established using only the command line. I use the
> bluez-utils 3.7 on a debian unstable (kernel 2.6.17).
> Without enabling any security functions the connection can be
> established without a problem. As soon as encryption and PIN are
enabled
> a connection can not be established. I have checked the settings in
the
> hcid.conf according to various How-Tos to enable encryption and PIN. I
> always receive an Input/Output error.
> Doing the pairing with a graphical tool like kbluetoothd is possible
> with encryption and PIN. So it is possible and the devices work. I am
> just frustrated that I am obviously missing something somewhere. If
> anyone could help that would be great.
check with "hcidump -X -V" and look at the syslog for errors from hcid.
Regards
Marcel
------------------------------------------------------------------------
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
V
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Bluez-users] Bluetooth passkey and encryption
2007-02-19 9:31 ` Hofmann, Marco
@ 2007-02-19 10:19 ` Marcel Holtmann
0 siblings, 0 replies; 4+ messages in thread
From: Marcel Holtmann @ 2007-02-19 10:19 UTC (permalink / raw)
To: BlueZ users
Hi Marco,
> I checked with hcidump and received the following message:
>
> > HCI Event: PIN Code Request (0x16) plen 6
> bdaddr 00:11:B1:A1:68:2B
> < HCI Command: PIN Code Request Negative Reply (0x01|0x000e) plen 6
> bdaddr 00:11:B1:A1:68:2B
> > HCI Event: Command Complete (0x0e) plen 10
> PIN Code Request Negative Reply (0x01|0x000e) ncmd 1
> status 0x06 bdaddr 00:11:B1:A1:68:2B
> Error: PIN or Key Missing
> > HCI Event: Connect Complete (0x03) plen 11
> status 0x06 handle 7 bdaddr 00:11:B1:A1:68:2B type ACL encrypt 0x00
> Error: PIN or Key Missing
>
> I set a key under the option passkey in the hcid.conf. So if that key is
> not used, where would I have to set this key?
the passkey option is only used on incoming connection and only if
security auto has been selected. For all the rest you have to run a
passkey agent. Check the mailing list archives for details.
Regards
Marcel
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-02-19 10:19 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-19 6:47 [Bluez-users] Bluetooth passkey and encryption Hofmann, Marco
2007-02-19 8:41 ` Marcel Holtmann
2007-02-19 9:31 ` Hofmann, Marco
2007-02-19 10:19 ` Marcel Holtmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox