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

Re: [bluetooth-dev] ask about send_cmd and send_cmd_block



Hi,

If my understanding is correct, it is like this:

1. All the commands which trigger peer to peer communication (one BT
device to other), use send_cmd(). The blocking if needed in this case is
taken care by the upper layers, depending upon the senario.
2. If the command triggers some communication only between the local
host and the kit, (like read bd_address, read buffer_size etc) then
blocking is the responsibility of HCI layer and use send_cmd_block().

Someone correct me, if I am wrong!

:)Prasanna

-- 
~~~~~~~~~ I walk slow. But I never walk backwards ~~~~~~~~~~~~~

Prasanna Kumar K                 mail: kumarkp@xxxxxxx.net
Knowledge Systems Pvt Ltd        Voice: +91-80-654-5253/2
#470, East End Main Road,        Fax: +91-80-654-5252
Jayanagar 9th Block,             Web: www.knowsys.net
Bangalore 560069
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



Zhang Subing wrote:

> Hi,
>
> I want to konw for which HCI commands, use the send_cmd(), otheres use
> the send_cmd_block().
>
> Who can tell me how to decide?
>
> Thanks a lot.
>
> --
> Subing Zhang
>



-
To unsubscribe from this list: send the line "unsubscribe bluetooth-dev" in
the body of a message to majordomo@xxxxxxx.com