Linux bluetooth development
 help / color / mirror / Atom feed
From: Ka Kin Cheung <michaelhku2002@yahoo.com.hk>
To: bluez-users@lists.sourceforge.net
Subject: Re: [Bluez-users] rfcomm question 1
Date: Mon, 31 Jan 2005 21:41:52 +0800 (CST)	[thread overview]
Message-ID: <20050131134152.20060.qmail@web60903.mail.yahoo.com> (raw)
In-Reply-To: <1107007411.10735.16.camel@pegasus>

Hi Marcel,
    Here is the content of /etc/bluetooth/hcid.conf
#
# HCI daemon configuration file.
#
# $Id: hcid.conf,v 1.7 2004/12/13 14:16:03 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 auto;
 
        # 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)";
        name "cm218-253-8-120.hkcable.com.hk:%d"
        # Local device class
        class 0x3e0100;
 
        # 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;
 
        # Default link policy
        #   none    - no specific policy
        #   rswitch - allow role switch
        #   hold    - allow hold mode
        #   sniff   - allow sniff mode
        #   park    - allow park mode
        lp rswitch,hold,sniff,park;
 
        # Authentication and Encryption (Security Mode
3)
        #auth enable;
        #encrypt enable;
}
How can I modify the Security Mode?
Also, how can I change the PIN of my Linux PC? 
Thank you very much.
Michael

 --- Marcel Holtmann <marcel@holtmann.org> 內容:
> Hi Michael,
> 
> >     Of course, hcid is running. Then when I typed
> > "hcidump -x", and then choose the computer in
> mobile
> > phone, after I entered the PIN, the following
> occurs:
> > [root@cm218-253-8-120 root]# hcidump -x
> > HCIDump - HCI packet analyzer ver 1.16
> > device: hci0 snap_len: 1028 filter: 0xffffffff
> > > HCI Event: Connect Request (0x04) plen 10
> >   A8 D8 DD D9 0A 00 04 02 52 01
> > < HCI Command: Accept Connection Request
> (0x01|0x0009)
> > plen 7
> >   A8 D8 DD D9 0A 00 01
> > > HCI Event: Command Status (0x0f) plen 4
> >   00 01 09 04
> > > HCI Event: PIN Code Request (0x16) plen 6
> >   A8 D8 DD D9 0A 00
> > < HCI Command: PIN Code Request Reply
> (0x01|0x000d)
> > plen 23
> >   A8 D8 DD D9 0A 00 05 42 6C 75 65 5A 00 00 00 00
> 00
> > 00 00 00
> >   00 00 00
> > > HCI Event: Command Complete (0x0e) plen 10
> >   01 0D 04 00 A8 D8 DD D9 0A 00
> > > HCI Event: Connect Complete (0x03) plen 11
> >   05 29 00 A8 D8 DD D9 0A 00 01 00
> > But the mobile shows "PIN not match". So how can I
> do?
> 
> run "hcidump -X" and you might see your PIN. I guess
> it is "BlueZ" and
> why are you using security mode 3?
> 
> Regards
> 
> Marcel
> 
> 
> 
> 
>
-------------------------------------------------------
> This SF.Net email is sponsored by: IntelliVIEW --
> Interactive Reporting
> Tool for open source databases. Create drag-&-drop
> reports. Save time
> by over 75%! Publish reports on the web. Export to
> DOC, XLS, RTF, etc.
> Download a FREE copy at
> http://www.intelliview.com/go/osdn_nl
> _______________________________________________
> Bluez-users mailing list
> Bluez-users@lists.sourceforge.net
>
https://lists.sourceforge.net/lists/listinfo/bluez-users
>  

_______________________________________________________________________
新年願望第一位 : 找到友緣人
http://personals.yahoo.com.hk


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

  reply	other threads:[~2005-01-31 13:41 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-28 14:06 [Bluez-users] rfcomm question 1 Ka Kin Cheung
2005-01-28 17:36 ` Marcel Holtmann
2005-01-29  5:32   ` Ka Kin Cheung
2005-01-29 14:03     ` Marcel Holtmann
2005-01-31 13:41       ` Ka Kin Cheung [this message]
2005-01-31 14:22         ` Marcel Holtmann
2005-01-31 14:30           ` Ka Kin Cheung
2005-01-31 14:38             ` Marcel Holtmann
2005-02-01  6:25               ` [Bluez-users] rfcomm question 3 Ka Kin Cheung
2005-02-01  8:14                 ` Marcel Holtmann
2005-02-01 14:39                   ` Ka Kin Cheung
2005-02-02  2:49                   ` Ka Kin Cheung
2005-02-02  3:10                     ` Marcel Holtmann
2005-02-02  4:54                       ` Ka Kin Cheung
2005-02-02  5:34                         ` Marcel Holtmann
2005-02-03  3:42                           ` Ka Kin Cheung
2005-02-03  5:22                             ` Alain Volmat
2005-02-03 10:50                               ` Ka Kin Cheung
2005-02-03 10:59                                 ` Alain Volmat
2005-02-03 13:01                                   ` Ka Kin Cheung
2005-02-03 13:20                                     ` Marcel Holtmann
2005-02-03 14:26                                       ` Ka Kin Cheung
2005-02-03 14:54                                         ` Marcel Holtmann
2005-02-04 16:56                                     ` Marco Trudel
2005-02-05 12:48                                       ` Ka Kin Cheung
2005-02-05 13:17                                         ` Marco Trudel
2005-02-05 13:51                                           ` Marcel Holtmann
2005-02-05 14:00                                             ` Marco Trudel
2005-02-05 14:14                                               ` Marcel Holtmann
2005-02-05 17:39                                                 ` Marco Trudel
2005-02-05 18:08                                                   ` Marcel Holtmann
2005-02-17  5:37                                                     ` Ka Kin Cheung
2005-02-17  6:28                                                       ` Alain Volmat
2005-02-17  9:08                                                       ` mike
2005-02-17 13:08                                                       ` Marco Trudel
2005-02-17 13:54                                                         ` Ka Kin Cheung
2005-02-17 14:10                                                           ` Marco Trudel
2005-02-17 14:43                                                             ` Ka Kin Cheung
2005-02-17 17:04                                                               ` Marco Trudel
2005-02-18  3:28                                                                 ` Ka Kin Cheung
2005-02-19  6:49                                                                   ` Marco Trudel
2005-02-19  8:27                                                                     ` Ka Kin Cheung
2005-02-19 10:06                                                                       ` Marco Trudel
2005-02-19 13:45                                                                         ` Ka Kin Cheung
2005-02-18  3:33                                                                 ` Ka Kin Cheung
2005-02-18  7:51                                                                   ` [Bluez-users] multiple instances of OPUSH server Janice M. Ballesteros
2005-02-17 13:14                                                       ` [Bluez-users] rfcomm question 3 Marco Trudel
2005-02-02  3:16                     ` Alain Volmat

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050131134152.20060.qmail@web60903.mail.yahoo.com \
    --to=michaelhku2002@yahoo.com.hk \
    --cc=bluez-users@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox