* PSCAN and ISCAN flags in hciconfig
@ 2012-12-16 17:58 Kevin Wilson
2012-12-16 21:10 ` Frederic Danis
0 siblings, 1 reply; 4+ messages in thread
From: Kevin Wilson @ 2012-12-16 17:58 UTC (permalink / raw)
To: linux-bluetooth
Hello,
I have 2 PC with Linux which once used to recognize each other by
"hcitool scan" and to create
a PAND-based connection.
Now I fail to see each other with "hcitool scan".
My question is :
I see now only the PSCAN flag when running "hciconfig" on both of then.
Is the ISCAN flag (inquiry) mandatory so that a device will be discoverable ?
following is full output on one of them:
hci0: Type: BR/EDR Bus: USB
BD Address: 00:23:4E:E5:70:3A ACL MTU: 1021:8 SCO MTU: 64:1
UP RUNNING PSCAN
RX bytes:1857 acl:0 sco:0 events:65 errors:0
TX bytes:762 acl:0 sco:0 commands:57 errors:0
Features: 0xff 0xff 0x8f 0xfe 0x9b 0xff 0x79 0x83
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF PARK
Link mode: SLAVE ACCEPT
Name: 'n-0'
Class: 0x400100
Service Classes: Telephony
Device Class: Computer, Uncategorized
HCI Version: 2.1 (0x4) Revision: 0x5259
LMP Version: 2.1 (0x4) Subversion: 0x424c
Manufacturer: Broadcom Corporation (15)
rgs,
Kevin
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: PSCAN and ISCAN flags in hciconfig
2012-12-16 17:58 PSCAN and ISCAN flags in hciconfig Kevin Wilson
@ 2012-12-16 21:10 ` Frederic Danis
2012-12-17 3:37 ` Kevin Wilson
0 siblings, 1 reply; 4+ messages in thread
From: Frederic Danis @ 2012-12-16 21:10 UTC (permalink / raw)
To: Kevin Wilson; +Cc: linux-bluetooth
On 16/12/2012 18:58, Kevin Wilson wrote:
> Hello,
> I have 2 PC with Linux which once used to recognize each other by
> "hcitool scan" and to create
> a PAND-based connection.
>
> Now I fail to see each other with "hcitool scan".
> My question is :
> I see now only the PSCAN flag when running "hciconfig" on both of then.
> Is the ISCAN flag (inquiry) mandatory so that a device will be discoverable ?
Yes, ISCAN means that your adapter will respond to inquiry scan, so it
will be discoverable.
Regards
Fred
--
Frederic Danis Open Source Technology Center
frederic.danis@intel.com Intel Corporation
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: PSCAN and ISCAN flags in hciconfig
2012-12-16 21:10 ` Frederic Danis
@ 2012-12-17 3:37 ` Kevin Wilson
2012-12-17 9:02 ` Andrei Emeltchenko
0 siblings, 1 reply; 4+ messages in thread
From: Kevin Wilson @ 2012-12-17 3:37 UTC (permalink / raw)
To: Frederic Danis; +Cc: linux-bluetooth
Hi,
Thanks Frederic.
Ok, so I rebooted the machine and still
hciconfig shows:
UP RUNNING PSCAN
and also after 'hciconfig hci0 reset"
It stays "UP RUNNING PSCAN".
So what sould I do to make the ISCAN flag set ?
systemctl status bluetooth.service
shows that it is "active (running)"
rgs,
Kevin
On Sun, Dec 16, 2012 at 11:10 PM, Frederic Danis
<frederic.danis@linux.intel.com> wrote:
> On 16/12/2012 18:58, Kevin Wilson wrote:
>>
>> Hello,
>> I have 2 PC with Linux which once used to recognize each other by
>> "hcitool scan" and to create
>> a PAND-based connection.
>>
>> Now I fail to see each other with "hcitool scan".
>> My question is :
>> I see now only the PSCAN flag when running "hciconfig" on both of then.
>> Is the ISCAN flag (inquiry) mandatory so that a device will be
>> discoverable ?
>
>
> Yes, ISCAN means that your adapter will respond to inquiry scan, so it will
> be discoverable.
>
> Regards
>
> Fred
>
> --
> Frederic Danis Open Source Technology Center
> frederic.danis@intel.com Intel Corporation
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: PSCAN and ISCAN flags in hciconfig
2012-12-17 3:37 ` Kevin Wilson
@ 2012-12-17 9:02 ` Andrei Emeltchenko
0 siblings, 0 replies; 4+ messages in thread
From: Andrei Emeltchenko @ 2012-12-17 9:02 UTC (permalink / raw)
To: Kevin Wilson; +Cc: Frederic Danis, linux-bluetooth
Hi Kevin
On Mon, Dec 17, 2012 at 05:37:09AM +0200, Kevin Wilson wrote:
> Hi,
> Thanks Frederic.
> Ok, so I rebooted the machine and still
> hciconfig shows:
> UP RUNNING PSCAN
> and also after 'hciconfig hci0 reset"
> It stays "UP RUNNING PSCAN".
>
> So what sould I do to make the ISCAN flag set ?
hciconfig hciX piscan
Best regards
Andrei Emeltchenko
>
> systemctl status bluetooth.service
> shows that it is "active (running)"
>
> rgs,
> Kevin
>
>
> On Sun, Dec 16, 2012 at 11:10 PM, Frederic Danis
> <frederic.danis@linux.intel.com> wrote:
> > On 16/12/2012 18:58, Kevin Wilson wrote:
> >>
> >> Hello,
> >> I have 2 PC with Linux which once used to recognize each other by
> >> "hcitool scan" and to create
> >> a PAND-based connection.
> >>
> >> Now I fail to see each other with "hcitool scan".
> >> My question is :
> >> I see now only the PSCAN flag when running "hciconfig" on both of then.
> >> Is the ISCAN flag (inquiry) mandatory so that a device will be
> >> discoverable ?
> >
> >
> > Yes, ISCAN means that your adapter will respond to inquiry scan, so it will
> > be discoverable.
> >
> > Regards
> >
> > Fred
> >
> > --
> > Frederic Danis Open Source Technology Center
> > frederic.danis@intel.com Intel Corporation
> >
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-12-17 9:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-16 17:58 PSCAN and ISCAN flags in hciconfig Kevin Wilson
2012-12-16 21:10 ` Frederic Danis
2012-12-17 3:37 ` Kevin Wilson
2012-12-17 9:02 ` Andrei Emeltchenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).