Re: Dropping connection (bit off-topic)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi John,

On Fri, Sep 14, 2012 at 3:04 PM, John Tobias <john.tobias.ph@xxxxxxxxx> wrote:
> Hi Anderson,
>
> Could you give me some bit of information on how to respond to the
> handle 0x0039?. I'm digging the bluez sources but I'm kind a lost
> right now and I don't know exactly what library/function should I use
> in order to configure it.

I suggest you take a look on GATT Procedures on the Core spec (see
"Discover All Characteristics of a Service" on pages 1916 and the
Figure 4.5 on page 1917). You will see that "Attribute not found" is
used to inform the client that there are no more characteristics to
discover.

Also see channel_handler() in src/attrib-server.c (and the functions
called by it) to understand how BlueZ's GATT server work.

To avoid the GATT disconnection after 30 sec. you really need to
figure out what the iPhone app is trying to do, it is clear from your
hcidump logs that iPhone is disconnecting, not the Linux "client"
side.

Regards,
-- 
Anderson Lizardo
Instituto Nokia de Tecnologia - INdT
Manaus - Brazil
--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux