linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Bluez-devel] Remote name delay
@ 2005-12-01 19:17 Claudio Takahasi
  2005-12-01 20:59 ` Marcel Holtmann
  0 siblings, 1 reply; 19+ messages in thread
From: Claudio Takahasi @ 2005-12-01 19:17 UTC (permalink / raw)
  To: bluez-devel

Hi,

I am developing a standalone application to perform real D-Bus
services tests. The main features are:
1. Running all the time in the systray
2. Handle PIN Request
3. Local adapter configuration
4. Basic operations: Inquiry, Remote name, ...

However I am facing a problem in the RemoteName service when a lot of
inquiry replies is received. My app stores the inquired devices in a
hash table and when the InquiryCompleted signal is received the app
request the name for each device. The "hci_send_req" function is
returning an Input/Output error. Looking the hcidump result, the
"Command Disallowed" error is displayed :(

HCIDUMP:
> HCI Event: Command Status (0x0f) plen 4
    Remote Name Request (0x01|0x0019) status 0x0c ncmd 1
    Error: Command Disallowed
 <<<<<Indicates that the controller is in a state where it can process
this command at this time.>>>>

I noticed the same problem using the hcitool with "--flush" option and
removing the cached device information stored in the directory
"/var/lib/bluetooth".

Trying to fix this problem I did some changes in the hcid dbus
RemoteName using the clock offset and page scan repetition mode.
However I didn't reach significant improvements.
* InquiryResult signal Changes
   - Added clock offset
   - Added pscan_rep_mode
* RemoteName Changes
   - Added clock offset
   - Added pscan_rep_mode

I know that I can retrieve some entries from the file "names" in the
storage directory. But without consider this, how can I reduce the
remote name request time?

Regards,
Claudio
--
---------------------------------------------------------
Claudio Takahasi
Instituto Nokia de Tecnologia - INdT


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

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

end of thread, other threads:[~2005-12-15 19:47 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-01 19:17 [Bluez-devel] Remote name delay Claudio Takahasi
2005-12-01 20:59 ` Marcel Holtmann
2005-12-02 11:21   ` Claudio Takahasi
2005-12-02 11:30     ` Marcel Holtmann
2005-12-02 16:33       ` Claudio Takahasi
2005-12-02 16:41         ` Bastien Nocera
2005-12-02 18:38           ` Marcel Holtmann
2005-12-13 21:52             ` Claudio Takahasi
2005-12-02 18:36         ` Marcel Holtmann
2005-12-13 21:59           ` Claudio Takahasi
2005-12-13 22:05             ` Marcel Holtmann
2005-12-14 18:35               ` Claudio Takahasi
2005-12-14 19:15                 ` Marcel Holtmann
2005-12-14 19:30                   ` Claudio Takahasi
2005-12-14 21:53                 ` Johan Hedberg
2005-12-15  5:25                   ` Marcel Holtmann
2005-12-15 16:17                     ` Claudio Takahasi
2005-12-15 16:33                       ` Johan Hedberg
2005-12-15 19:47                       ` Marcel Holtmann

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).