Return-Path: Message-ID: <98e24d19050624042213b619f7@mail.gmail.com> From: Joel - JFX To: bluez-users@lists.sourceforge.net Subject: Re: [Bluez-users] how to scan for other bluetooth device In-Reply-To: <42BB637B.1010804@e28.com.hk> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_15100_2974870.1119612166455" References: <42BB637B.1010804@e28.com.hk> Sender: bluez-users-admin@lists.sourceforge.net Errors-To: bluez-users-admin@lists.sourceforge.net Reply-To: bluez-users@lists.sourceforge.net List-Unsubscribe: , List-Id: BlueZ users List-Post: List-Help: List-Subscribe: , List-Archive: Date: Fri, 24 Jun 2005 08:22:46 -0300 ------=_Part_15100_2974870.1119612166455 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline hi, try this config on your hcid.conf options { autoinit yes; security user; pairing multi; pin_helper /usr/bin/bluepin; }=20 device { name "(%d)"; class 0x120104; iscan enable; pscan enable; lm accept; lp hold,sniff,park; auth enable; encrypt enable; } if the hcitool scan works, you need to add your device address on=20 rfcomm.conf like this: rfcomm0 { bind yes; device 01:07:E0:41:DD:62; channel 3; comment "my Palm"; } if you need more devices, you can add a new rfcomm "conection" on your=20 rfcomm.conf: rfcomm0 { bind yes; device 01:07:E0:41:DD:62; channel 3; comment "my Palm"; } rfcomm1 { bind yes; device 02:08:E1:42:DE:63; channel 3; comment "my Mobile"; } best regards, Joel 2005/6/23, Jacky Cheung : > Hi all, >=20 > My mobile device is MOTO A760. And set it is "Find Me" >=20 > in the PC, here are my steps: >=20 > # hciconfig hci0 up > # hcitool scan >=20 > Sometimes I saw it scanning from few seconds, sometimes it returns quickl= y >=20 > Thanks a lot >=20 > Jacky Cheung > cat /etc/bluetooth/hcid.conf > # > # HCI daemon configuration file. > # > # $Id: hcid.conf,v 1.7 2004/12/13 14:16:03 holtmann Exp $ > # >=20 > # HCId options > options { > # Automatically initialize new devices > autoinit yes; >=20 > # Security Manager mode > # none - Security manager disabled > # auto - Use local PIN for incoming connections > # user - Always ask user for a PIN > # > security auto; >=20 > # Pairing mode > # none - Pairing disabled > # multi - Allow pairing with already paired devices > # once - Pair once and deny successive attempts > pairing multi; >=20 > # PIN helper > pin_helper /usr/bin/bluepin; >=20 > # D-Bus PIN helper > #dbus_pin_helper; > } >=20 > # Default settings for HCI devices > device { > # Local device name > # %d - device id > # %h - host name > name "BlueZ (%d)"; >=20 > # Local device class > class 0x3e0100; >=20 > # Default packet type > #pkt_type DH1,DM1,HV1; >=20 > # Inquiry and Page scan > iscan enable; pscan enable; >=20 > # 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; >=20 > # 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; >=20 > # Authentication and Encryption (Security Mode 3) > #auth enable; > #encrypt enable; > } > cat /etc/bluetooth/rfcomm.conf > # > # RFCOMM configuration file. > # > # $Id: rfcomm.conf,v 1.1 2002/10/07 05:58:18 maxk Exp $ > # >=20 > rfcomm0 { > # Automatically bind the device at startup > bind no; >=20 > # Bluetooth address of the device > device 11:22:33:44:55:66; >=20 > # RFCOMM channel for the connection > channel 1; >=20 > # Description of the connection > comment "Example Bluetooth device"; > } >=20 >=20 > Jacky Cheung > Software Engineer > E28 Hong Kong Limited > Tel: 3105 0493 Fax: 3105 0495 > Unit 1003, Millennium City 3, > 370 Kwun Tong Road, > Hong Kong >=20 >=20 > Michael McConnell wrote: >=20 > >On Thu, 23 Jun 2005, Jacky Cheung wrote: > > > > > > > >>my mobile device is on.. and had tried hcitool scan., but no device=20 found > >> > >> > > > >With most mobile phones, you can have Bluetooth enabled with it set=20 "hidden", > >that is, it won't respond to scans. > > > >Depending on the phone, you may have an option to toggle it visible or= =20 hidden > >(like the Nokia 6310i), or a "Find Me" option (like most Motorolas) that > >makes the phone respond to scans for the next 60 seconds, after which it= =20 will > >revert to being hidden. > > > > > > > >>Joel - JFX wrote: > >> > >> > >> > >>>the bluetooth option like "visible" on your mobile are ON?? > >>> > >>>you can scan using "hcitool scan" > >>> > >>>2005/6/23, Jacky Cheung : > >>> > >>> > >>> > >>> > >>>>Hi all, > >>>> > >>>>I am new to linux Bluetooth. I've got a question in paging other > >>>>bluetooth device, says Bluetooth support phone. > >>>> > >>>>My PC is running in Redhat9.0, and I got a USB Bluetooth device. When= =20 I > >>>>plugin the Bluetooth device, I've got the following message from > >>>>/var/log/message > >>>> > >>>>Jun 23 18:03:48 localhost kernel: hub.c: new USB device 00:1d.2-1, > >>>>assigned address 5 > >>>>Jun 23 18:03:49 localhost hcid[2611]: HCI dev 0 registered > >>>>Jun 23 18:03:49 localhost hcid[2579]: HCI dev 0 registered > >>>>Jun 23 18:03:49 localhost hcid[2611]: HCI dev 0 up > >>>>Jun 23 18:03:49 localhost hcid[2579]: HCI dev 0 up > >>>>Jun 23 18:03:49 localhost hcid[2579]: Starting security manager 0 > >>>>Jun 23 18:03:49 localhost hcid[2611]: Starting security manager 0 > >>>>Jun 23 18:03:49 localhost /sbin/hotplug: no runnable > >>>>/etc/hotplug/bluetooth.agent is installed > >>>>Jun 23 18:03:52 localhost /etc/hotplug/usb.agent: Setup hci_usb for= =20 USB > >>>>product a12/1/1120 > >>>> > >>>>Actually, I can see the Bluetooth device from hciconfig, and the phon= e > >>>>can scan the USB BT. However, I fail to scan the phone device in PC.= =20 Is > >>>>that I have missed some settings? > >>>> > >>>>Thanks > >>>> > >>>>Regards, > >>>>Jacky Cheung > >>>> > >>>>------------------------------------------------------- > >>>>SF.Net email is sponsored by: Discover Easy Linux=20 Migration Strategies > >>>> > >>>> > >>>>from IBM. Find simple to follow Roadmaps, straightforward articles, > >>> > >>> > >>>>informative Webcasts and more! Get everything you need to get up to > >>>>speed, fast. http://ads.osdn.com/?ad_id=3D7477&alloc_id=3D16492&op=3D= click > >>>>_______________________________________________ > >>>>Bluez-users mailing list > >>>>Bluez-users@lists.sourceforge.net > >>>>https://lists.sourceforge.net/lists/listinfo/bluez-users > >>>> > >>>> > >>>> > >>>> > >>>> > >>>------------------------------------------------------- > >>>SF.Net email is sponsored by: Discover Easy Linux=20 Migration Strategies > >>> > >>> > >>>from IBM. Find simple to follow Roadmaps, straightforward articles, > >> > >> > >>>informative Webcasts and more! Get everything you need to get up to > >>>speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id=16492&op=3Dclick > >>>_______________________________________________ > >>>Bluez-users mailing list > >>>Bluez-users@lists.sourceforge.net > >>>https://lists.sourceforge.net/lists/listinfo/bluez-users > >>> > >>> > >>> > >>> > >>> > >> > >>------------------------------------------------------- > >>SF.Net email is sponsored by: Discover Easy Linux=20 Migration Strategies > >>from IBM. Find simple to follow Roadmaps, straightforward articles, > >>informative Webcasts and more! Get everything you need to get up to > >>speed, fast. http://ads.osdn.com/?ad_id=3D7477&alloc_id=3D16492&op=3Dcl= ick > >>_______________________________________________ > >>Bluez-users mailing list > >>Bluez-users@lists.sourceforge.net > >>https://lists.sourceforge.net/lists/listinfo/bluez-users > >> > >> > >> > > > >-- Michael "Soruk" McConnell > > Eridani Star System > > > > MailStripper - "The easy spam filter." > > http://mailstripper.eridani.co.uk/ > > > > > > > >------------------------------------------------------- > >SF.Net email is sponsored by: Discover Easy Linux=20 Migration Strategies > >from IBM. Find simple to follow Roadmaps, straightforward articles, > >informative Webcasts and more! Get everything you need to get up to > >speed, fast. http://ads.osdn.com/?ad_id=3D7477&alloc_id=3D16492&op=3Dcli= ck > >_______________________________________________ > >Bluez-users mailing list > >Bluez-users@lists.sourceforge.net > >https://lists.sourceforge.net/lists/listinfo/bluez-users > > > > > > >=20 > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux=20 Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=3D7477&alloc_id=3D16492&op=3Dclic= k > _______________________________________________ > Bluez-users mailing list > Bluez-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bluez-users > ------=_Part_15100_2974870.1119612166455 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline hi,

try this config on your hcid.conf

options {
 &nbs= p;      autoinit yes;
   &n= bsp;    security user;
     = ;   pairing multi;
      &n= bsp; pin_helper /usr/bin/bluepin;
}     &n= bsp;            = ;            &n= bsp;            = ;            &n= bsp;            = ;        

device {
        name &q= uot;(%d)";
        class 0x= 120104;
        iscan enable;        pscan enable;
 &nb= sp;      lm accept;
   &nbs= p;    lp hold,sniff,park;
    &n= bsp;   auth enable;
      &= nbsp; encrypt enable;
}

if the hcitool scan works, you need to add your device address= on rfcomm.conf like this:

rfcomm0 {
    &nbs= p;   bind yes;
       =  device 01:0= 7:E0:41:DD:62 ;
        channel 3;
&= nbsp;       comment "my Palm";=
}

if you need more devices, you can add a new rfcomm "conec= tion" on your rfcomm.conf:

rfcomm0 {
    = ;    bind yes;
      &= nbsp; device=20 01:07:E0:41:DD:62= ;
        channel 3;
&= nbsp;       comment "my Palm";=
}
rfcomm1 {
        bind = yes;
        device 02:08:E1:42:= DE:63;
        channel 3;
  &= nbsp;     comment "my Mobile";
}
<= br> best regards,

Joel


2005/6/23, Jacky Cheung <jackycheung@e28.com.hk>:
> Hi all,
>
>= My mobile device is MOTO A760. And set it is "Find Me"
>= =20
> in the PC, here are my steps:
>
> # hciconfig hci0 up=
> # hcitool scan
>
> Sometimes I saw it scanning from f= ew seconds, sometimes it returns quickly
>
> Thanks a lot
>
> Jacky Cheung
> cat /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;
>
>    &= nbsp;    # Security Manager mode
>   &n= bsp;     #   none - Security manager disabled=
>         #   auto= - Use local PIN for incoming connections
>         #   user= - Always ask user for a PIN
>      &nb= sp;  #
>         securit= y auto;
>
>         # = Pairing mode
>         # = ;  none  - Pairing disabled
>    &= nbsp;    #   multi - Allow pairing with already pa= ired devices
>         #   once=   - Pair once and deny successive attempts
>  &nb= sp;      pairing multi;
>
> &nbs= p;       # PIN helper
>  &nbs= p;      pin_helper /usr/bin/bluepin;
>
&= gt;         # D-Bus PIN helper
>         #dbus_pin_helper;<= br>> }
>
> # Default settings for HCI devices
> devic= e {
>         # Local device = name
>         #   = %d - device id
>         #&nb= sp;  %h - host name
>         name "BlueZ (%d)&= quot;;
>
>         # L= ocal device class
>         c= lass 0x3e0100;
>
>       &n= bsp; # Default packet type
>       = ;  #pkt_type DH1,DM1,HV1;
>
>    &nbs= p;    # Inquiry and Page scan
>         iscan enable; psca= n enable;
>
>         = # Default link mode
>        = #   none   - no specific policy
>  &nb= sp;      #   accept - always accept inco= ming connections
>         #&= nbsp;  master - become master on incoming connections,
>         #            de= ny role switch on outgoing connections
>     &n= bsp;   lm accept;
>
>     &= nbsp;   # Default link policy
>    &nbs= p;    #   none    - no specifi= c policy
>         # &nb= sp; rswitch - allow role switch
>      =    #   hold    - allow hold mode
>         #   snif= f   - allow sniff mode
>      = ;   #   park    - allow park mode>         lp rswitch,hold,snif= f,park;
>
>         # = Authentication and Encryption (Security Mode 3)
>   &n= bsp;     #auth enable;
>         #encrypt enable;> }
> cat /etc/bluetooth/rfcomm.conf
> #
> # RFCOMM = configuration file.
> #
> # $Id: rfcomm.conf,v 1.1 2002/10/07 0= 5:58:18 maxk Exp $
> #
>=20
> rfcomm0 {
>         = # Automatically bind the device at startup
>    &= nbsp;    bind no;
>
>    &n= bsp;    # Bluetooth address of the device
>  = ;       device 11:22:33:44:55:66;
> >         # RFCOMM channel for = the connection
>         channel 1;
>=
>         # Description of = the connection
>         comm= ent "Example Bluetooth device";
> }
>
>
&g= t; Jacky Cheung < jackycheung@e28.com.hk> <mailto:jackycheung@e28.com.hk>
> Software Engineer
> E= 28 Hong Kong Limited
> Tel: 3105 0493 Fax: 3105 0495
> Unit 100= 3, Millennium City 3,
> 370 Kwun Tong Road,
> Hong Kong
>
>
> Mi= chael McConnell wrote:
>
> >On Thu, 23 Jun 2005, Jacky Cheu= ng wrote:
> >
> >
> >
> >>my mobile = device is on.. and had tried hcitool scan., but no device found
> >>
> >>
> >
> >With most mobil= e phones, you can have Bluetooth enabled with it set "hidden",> >that is, it won't respond to scans.
> >
> >Depe= nding on the phone, you may have an option to toggle it visible or hidden
> >(like the Nokia 6310i), or a "Find Me" option (like = most Motorolas) that
> >makes the phone respond to scans for the n= ext 60 seconds, after which it will
> >revert to being hidden.
> >
> >
> >
> >>Joel - JFX wrote:> >>
> >>
> >>
> >>>the b= luetooth option like "visible" on your mobile are ON??
> &g= t;>>
> >>>you can scan using "hcitool scan"
> &g= t;>>
> >>>2005/6/23, Jacky Cheung <jackycheung@e28.com.hk>:
> >>&= gt;
> >>>
> >>>
> >>>
> >= ;>>>Hi all,
> >>>>
> >>>>I am = new to linux Bluetooth. I've got a question in paging other
> >>= ;>>bluetooth device, says Bluetooth support phone.
> >>>>
> >>>>My PC is running in Redha= t9.0, and I got a USB Bluetooth device. When I
> >>>>plug= in the Bluetooth device, I've got the following message from
> >&g= t;>>/var/log/message
> >>>>
> >>>>Jun 23 18:03:48 localhost= kernel: hub.c: new USB device 00:1d.2-1,
> >>>>assigned = address 5
> >>>>Jun 23 18:03:49 localhost hcid[2611]: HCI= dev 0 registered
> >>>>Jun 23 18:03:49 localhost hcid[2579]: HCI dev 0 re= gistered
> >>>>Jun 23 18:03:49 localhost hcid[2611]: HCI = dev 0 up
> >>>>Jun 23 18:03:49 localhost hcid[2579]: HCI = dev 0 up
> >>>>Jun 23 18:03:49 localhost hcid[2579]: Starting sec= urity manager 0
> >>>>Jun 23 18:03:49 localhost hcid[2611= ]: Starting security manager 0
> >>>>Jun 23 18:03:49 loca= lhost /sbin/hotplug: no runnable
> >>>>/etc/hotplug/bluetooth.agent is installed
> = >>>>Jun 23 18:03:52 localhost /etc/hotplug/usb.agent: Setup hci= _usb for USB
> >>>>product a12/1/1120
> >>>= ;>
> >>>>Actually, I can see the Bluetooth device from hcic= onfig, and the phone
> >>>>can scan the USB BT. However, = I fail to scan the phone device in PC. Is
> >>>>that I ha= ve missed some settings?
> >>>>
> >>>>Thanks
> >>&g= t;>
> >>>>Regards,
> >>>>Jacky Cheun= g
> >>>>
> >>>>------------------------= -------------------------------
> >>>>SF.Net email is spon= sored by: Discover Easy Linux Migration Strategies
> >>>>=
> >>>>
> >>>>from IBM. Find simple to = follow Roadmaps, straightforward articles,
> >>>
> >>>
> >>>>informat= ive Webcasts and more! Get everything you need to get up to
> >>= ;>>speed, fast. http://ads.osdn.com/?ad_id=3D7477&alloc_id=3D16492&op=3Dclick> >>>>_______________________________________________
&= gt; >>>>Bluez-users mailing list
> >>>> Bluez-users@lists.sourceforge.net
> >>>>https://lists.sourc= eforge.net/lists/listinfo/bluez-users
> >>>>
> = >>>>
> >>>>
> >>>>
> >>>>=
> >>>------------------------------------------------------= -
> >>>SF.Net email is sponsor= ed by: Discover Easy Linux Migration Strategies
> >>>
> >>>
> >>>from IBM. Fi= nd simple to follow Roadmaps, straightforward articles,
> >>> >>
> >>>informative Webcasts and more! Get every= thing you need to get up to
> >>>speed, fast. http://ads.osdn.com/?ad_idt77&alloc_= id=16492&op=3Dclick
> >>>___________________________= ____________________
> >>>Bluez-users mailing list
> >>>Bluez-users@lists.sourceforge= .net
> >>> https://lists.sourceforge.net/lists/listinfo/bluez-users
> >&g= t;>
> >>>
> >>>
> >>>
&g= t; >>>
> >>
> >>--------------------------= -----------------------------
> >>SF.Net email is sponsored by= : Discover Easy Linux Migration Strategies
> >>from IBM. Find s= imple to follow Roadmaps, straightforward articles,
> >>informa= tive Webcasts and more! Get everything you need to get up to
> >>speed, fast. http://ads.osdn.com/?ad_id=3D7477&= alloc_id=3D16492&op=3Dclick
> >>_______________________= ________________________
> >>Bluez-users mailing list
> >>Bluez-users@lists.sourceforge.net> >> https://lists.sourceforge.net/lists/listinfo/bluez-users
> >&g= t;
> >>
> >>
> >
> >-- Michael &q= uot;Soruk" McConnell
> >   Eridani Star System
&= gt; >
> >   MailStripper - "The easy spam filter."<= br>> >   htt= p://mailstripper.eridani.co.uk/
> >
> >
> ><= br>> >-------------------------------------------------------
> >SF.Net email is sponsored by: Di= scover Easy Linux Migration Strategies
> >from IBM. Find simple to= follow Roadmaps, straightforward articles,
> >informative Webcast= s and more! Get everything you need to get up to
> >speed, fast. http://ads.osdn.com/?ad_id=3D7477&allo= c_id=3D16492&op=3Dclick
> >_______________________________= ________________
> >Bluez-users mailing list
> >Bluez-users@lists.sourceforge.net
> &= gt;htt= ps://lists.sourceforge.net/lists/listinfo/bluez-users
> >
> >
> >
>
> --------------= -----------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles= ,
> informative Webcasts and more! Get everything you need to get up = to
> speed, fast. http://ads.osdn.com/?ad_id=3D7477&alloc_id=3D16492&op=3Dclick> _______________________________________________
> Bluez-users = mailing list
> B= luez-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-users
>=
------=_Part_15100_2974870.1119612166455-- ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users