All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bluez-devel] hci_conn_info struct
@ 2003-10-09 17:19 Alexandros Karypidis
  2003-10-09 17:48 ` Max Krasnyansky
  0 siblings, 1 reply; 3+ messages in thread
From: Alexandros Karypidis @ 2003-10-09 17:19 UTC (permalink / raw)
  To: bluez-devel

Hi all,

I am using hci_conn_info to obtain a list of devices I am connected to. I 
"stole" the code from looking at what "hcitool con" does. What I want to do 
now is figure out what the CoD of the peer device is. I would like to do that 
in a smart way.

I tried doing an inquiry for devices, but I never receive the device I am 
connected to in the returned list of devices! Is this a limitation of 
Bluetooth or coincidence?

In any case, it seems a little silly to scan for devices in order to find out 
the CoD of a device I am already connected to. Is there a way to achive this? 

-- 
In theory, there is no difference between theory and practice.
In practice, there is. -- Yogi Berra.

Alexandros Karypidis
University of Thessaly
Computer & Communications Engineering dept.



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Bluez-devel] hci_conn_info struct
  2003-10-09 17:19 [Bluez-devel] hci_conn_info struct Alexandros Karypidis
@ 2003-10-09 17:48 ` Max Krasnyansky
  2003-10-09 18:09   ` Alexandros Karypidis
  0 siblings, 1 reply; 3+ messages in thread
From: Max Krasnyansky @ 2003-10-09 17:48 UTC (permalink / raw)
  To: Alexandros Karypidis, bluez-devel

At 10:19 AM 10/9/2003, Alexandros Karypidis wrote:
>Hi all,
>
>I am using hci_conn_info to obtain a list of devices I am connected to. I 
>"stole" the code from looking at what "hcitool con" does. What I want to do 
>now is figure out what the CoD of the peer device is. I would like to do that 
>in a smart way.
>
>I tried doing an inquiry for devices, but I never receive the device I am 
>connected to in the returned list of devices! Is this a limitation of 
>Bluetooth or coincidence?
>
>In any case, it seems a little silly to scan for devices in order to find out 
>the CoD of a device I am already connected to. Is there a way to achive this? 

Actually if you don't specify IREQ_CACHE_FLUSH flag to hci_inquiry() it will
return cached results and device you're connected too will be on the list for sure.

Max



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Bluez-devel] hci_conn_info struct
  2003-10-09 17:48 ` Max Krasnyansky
@ 2003-10-09 18:09   ` Alexandros Karypidis
  0 siblings, 0 replies; 3+ messages in thread
From: Alexandros Karypidis @ 2003-10-09 18:09 UTC (permalink / raw)
  To: bluez-devel

On Thursday 09 October 2003 20:48, Max Krasnyansky wrote:
> At 10:19 AM 10/9/2003, Alexandros Karypidis wrote:
> >Hi all,
> >
> >I am using hci_conn_info to obtain a list of devices I am connected to. I
> >"stole" the code from looking at what "hcitool con" does. What I want to
> > do now is figure out what the CoD of the peer device is. I would like to
> > do that in a smart way.
> >
> >I tried doing an inquiry for devices, but I never receive the device I am
> >connected to in the returned list of devices! Is this a limitation of
> >Bluetooth or coincidence?
> >
> >In any case, it seems a little silly to scan for devices in order to find
> > out the CoD of a device I am already connected to. Is there a way to
> > achive this?
>
> Actually if you don't specify IREQ_CACHE_FLUSH flag to hci_inquiry() it
> will return cached results and device you're connected too will be on the
> list for sure.

Not so. This presumes that I had previously inquired for information before 
the device connected to me. It is possible that someone may connect to me 
before I have a chance to detect him with an inquiry... :-(

-- 
In theory, there is no difference between theory and practice.
In practice, there is. -- Yogi Berra.

Alexandros Karypidis
University of Thessaly
Computer & Communications Engineering dept.



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-10-09 18:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-09 17:19 [Bluez-devel] hci_conn_info struct Alexandros Karypidis
2003-10-09 17:48 ` Max Krasnyansky
2003-10-09 18:09   ` Alexandros Karypidis

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.