839adcd63d7e02b814b7ba7b9ad18220ff862760 |
|
11-Apr-2011 |
Sheldon Demario <sheldon.demario@openbossa.org> |
Fix race condition on gatttool When the connect_cb() takes too long to be called the event_loop goes to idle state and executes the callback too early
/external/bluetooth/bluez/attrib/gatttool.c
|
6a3a89774c6738df4d5b77636c4ce747b7497ae9 |
|
05-Apr-2011 |
Sheldon Demario <sheldon.demario@openbossa.org> |
Fix Characteristic read by UUID on gatttool The Characteristic read by UUID GATT procedure is not incremental, i.e. it returns the entire list in a single Read By Type request. Therefore it should not be called recursively.
/external/bluetooth/bluez/attrib/gatttool.c
|
922c5feb93adfb9773a854d8e89eb2c5604e632b |
|
16-Mar-2011 |
Sheldon Demario <sheldon.demario@openbossa.org> |
Add discover characteristics by UUID to gatttool According to the specification the characteristics discover and characteristics discover by UUID use the same opcode and the result should be filtered by callback.
/external/bluetooth/bluez/attrib/gatttool.c
|
a278db781a26c639267b1d88d5fbe08f99af6c61 |
|
15-Mar-2011 |
Elvis Pfützenreuter <epx@signove.com> |
Use new UUID functions in GATT This patch puts the new UUID functions into use for GATT-related code, and adds some convenience functions to ATT API (att.h). Example GATT server is also changed.
/external/bluetooth/bluez/attrib/gatttool.c
|
e880b7a5547137095854a20c4c0b6f7ffb1ebe34 |
|
02-Mar-2011 |
Sheldon Demario <sheldon.demario@openbossa.org> |
Add option to pass adapter to interactive gatttool
/external/bluetooth/bluez/attrib/gatttool.c
|
ed6e2d24ea216e6a1a0b9e68a3e226729c33d30f |
|
02-Mar-2011 |
Sheldon Demario <sheldon.demario@openbossa.org> |
Replace all strdup() with g_strdup() in gatttool
/external/bluetooth/bluez/attrib/gatttool.c
|
adc7ca1ece5e579998e5f3b0cca9af7bf8ac8ca1 |
|
02-Mar-2011 |
Sheldon Demario <sheldon.demario@openbossa.org> |
Add offset option to characteristic read by handle Some tests require an arbitrary offset.
/external/bluetooth/bluez/attrib/gatttool.c
|
d3a5c568829a67da1d31625531bf161d3dc9435e |
|
24-Feb-2011 |
Bruna Moreira <bruna.moreira@openbossa.org> |
Move attr_data_from_string() to utils.c The attr_data_from_string() function will be used in interactive and usual gatttool so this function was moved to common file utils.c.
/external/bluetooth/bluez/attrib/gatttool.c
|
a2e31571167744a65899688cf5d755f11c5e9442 |
|
24-Feb-2011 |
Vinicius Costa Gomes <vinicius.gomes@openbossa.org> |
gatttool: Remove extra reference to the connection IO Channel As we want the connection to be closed when the last GAttrib reference is dropped, we don't need to keep this reference.
/external/bluetooth/bluez/attrib/gatttool.c
|
0cc24599637ed6666469c68d55f4e42ff722e447 |
|
17-Feb-2011 |
Sheldon Demario <sheldon.demario@openbossa.org> |
Use PSM value to select LE or BR/EDR transport on gatttool Removes "le" parameter of gatt_connect() as well the global variables used to store the le option. LE is now the default transport, if a PSM value different than zero is given BR/EDR will be selected
/external/bluetooth/bluez/attrib/gatttool.c
|
eb4e1d6d4b8405a324bb68e9dc28d108746837ef |
|
17-Feb-2011 |
Sheldon Demario <sheldon.demario@openbossa.org> |
Move do_connect() to a common file between interactive.c and gatttool.c Since do_connect() is used in both interactive.c and gatttool.c files, it was moved to a new file that should hold all common functions
/external/bluetooth/bluez/attrib/gatttool.c
|
dba40c880f0eac0ab670e2fd6ad9259dcbc93260 |
|
16-Feb-2011 |
Brian Gix <bgix@codeaurora.org> |
Fix Min MTU to reflect values for both L2CAP & LE
/external/bluetooth/bluez/attrib/gatttool.c
|
2c8df748ac1a5268de7ba3211b7be57feb950b86 |
|
14-Feb-2011 |
Sheldon Demario <sheldon.demario@openbossa.org> |
Add connect/disconnect options on interactive mode of gatttool
/external/bluetooth/bluez/attrib/gatttool.c
|
a523620a365b2eaa3a835daec3e2bd480a8a11ff |
|
15-Feb-2011 |
Sheldon Demario <sheldon.demario@openbossa.org> |
Add an initial interactive mode to gatttool Mode required to allow better GATT procedures control. Some scenarios require sequential commands without disconnection and delay between operations. It is also desirable to change some connection parameters of an active connection.
/external/bluetooth/bluez/attrib/gatttool.c
|
48f7473068c5530b4d668fd3feae84ebe63e9479 |
|
15-Feb-2011 |
Bruna Moreira <bruna.moreira@openbossa.org> |
Add Write Request operation in gatttool Add option and callbacks for Write Request operation in gatttool.
/external/bluetooth/bluez/attrib/gatttool.c
|
46be88cb8b2f2770e93ec7cf0b0d3728cd46097e |
|
17-Jan-2011 |
Bruna Moreira <bruna.moreira@openbossa.org> |
Move common code from Discover all Characteristics to GATT library The attribute client (attrib/client.c) and gatttool share similar code to parse the PDU coming from server. This commit moves this common code to attrib/gatt.c, and simplifies the callbacks implemented by the clients. The client callbacks are now called just once and get a GSList of characteristics, instead of the raw PDU.
/external/bluetooth/bluez/attrib/gatttool.c
|
5399423bd667efa5d15d8dec895250fe5a3bbec2 |
|
08-Jan-2011 |
Claudio Takahasi <claudio.takahasi@openbossa.org> |
Move interactive code of Discover Primary to gatt.c Initial patch to move the shared code related to Discover All Primary Services and Discover Primary Services by UUID to gatt.c.
/external/bluetooth/bluez/attrib/gatttool.c
|
7f0b31cbb436a93e41f1b67cbbd2e7d217b9d0c7 |
|
07-Jan-2011 |
Brian Gix <bgix@codeaurora.org> |
Fix g_attrib_send() to include a new ID parameter Overall purpose of change is to enable a GATT procedure to be executed atomically, even if it requires multiple ATT request/response transactions. Fix g_attrib_send() to include an ID parameter, if the pkt to be sent should be added to the Head of the pkt queue. If the ID is Zero, legacy functionality is maintained, and the pkt will be added at the tail of the queuer, and a new ID will be generated, and returned to the caller. If ID is non-zero, the pkt will be added to the head of the queue, with the ID value requested, which will also be returned to the caller. Fix received_data() to not service the send queue until after the received data has been processed by calling the cmd->func() callback, to allow the callback to insert another pkt on the head of the queue. Fix all callers of g_attrib_send() to include new parameter.
/external/bluetooth/bluez/attrib/gatttool.c
|
20ccc578c85111ca8790bd773b6fa337e80b4c71 |
|
28-Nov-2010 |
Johan Hedberg <johan.hedberg@nokia.com> |
Remove unused includes
/external/bluetooth/bluez/attrib/gatttool.c
|
63beb887a63cf426ff5e3aaab4dcb432f69fc30e |
|
23-Nov-2010 |
Sheldon Demario <sheldon.demario@openbossa.org> |
Extend discover characteristic by UUID in gatttool to fetch all values If the number of characteristics returned exceeds the MTU size, it will be needed to ask for more data until the handle range is entirely searched.
/external/bluetooth/bluez/attrib/gatttool.c
|
ad0e7f2c5ab9270369301f81eb5da1954eaab82f |
|
19-Nov-2010 |
Sheldon Demario <sheldon.demario@openbossa.org> |
Implement Characteristic Value Read using UUID in the gatttool Sub-procedure used to read a Characteristic Value when the client only knows the characteristic UUID and doesn't know the handle. More than one handle and attribute value pair can be returned, it is up to the user define the handles range based on the service handles range. Usage example: $gatttool --char-read --uuid=2a00 -i hcix -b xx:xx:xx:xx:xx:xx
/external/bluetooth/bluez/attrib/gatttool.c
|
f9523a9bf583d9979b0157f8615d2a914ee588e8 |
|
18-Nov-2010 |
Claudio Takahasi <claudio.takahasi@openbossa.org> |
Implement Discover Primary Service by Service UUID in the gatttool Implement only the first interaction of the discovery procedure. If the response doesn't fit in the MTU, "start" and "end" options can be used to discover the handles ranges of the remaining primary service instances. UUID16 and UUID128 are supported in the uuid option. Usage example: $gatttool -i hcix -b xx:xx:xx:xx:xx:xx --uuid=1801 --primary
/external/bluetooth/bluez/attrib/gatttool.c
|
8022b94b0523b2bdb8a02d7d148eb58d4b189dd2 |
|
17-Nov-2010 |
Claudio Takahasi <claudio.takahasi@openbossa.org> |
Add an extra parameter in the discovery primary to specify the UUID Extends discover primary function to perform discover by UUID. UUID parameter defines which procedure will be executed: Discover All Primary Services or Discover Primary Service by Service UUID.
/external/bluetooth/bluez/attrib/gatttool.c
|
e55509e013ed24d1329cc571376883903c66928a |
|
17-Nov-2010 |
Sheldon Demario <sheldon.demario@openbossa.org> |
Adding a new option to specify security level for gatttool
/external/bluetooth/bluez/attrib/gatttool.c
|
b9b0e471f245d2a5da4a04c4d2219ebcc9c89939 |
|
04-Nov-2010 |
Claudio Takahasi <claudio.takahasi@openbossa.org> |
Enable GATT over LE link on the attribute client
/external/bluetooth/bluez/attrib/gatttool.c
|
b597e74fd9f7ca0c45a0bf12a9d7e83182d2f6ed |
|
05-Oct-2010 |
Claudio Takahasi <claudio.takahasi@openbossa.org> |
Add PSM option for GATT/ATT over BR/EDR on gatttool
/external/bluetooth/bluez/attrib/gatttool.c
|
89c9634c10f3eb73c577d001e943e46d4fb13302 |
|
05-Oct-2010 |
Johan Hedberg <johan.hedberg@nokia.com> |
gatttool: fix trying to read beyond the last handle
/external/bluetooth/bluez/attrib/gatttool.c
|
69409f28f8e0483e9eb7ab77574a0f791838a623 |
|
04-Oct-2010 |
Anderson Lizardo <anderson.lizardo@openbossa.org> |
Remove typecast from att_get_u16() calls att_get_u16() already does a cast of the void* parameter to uint16_t*.
/external/bluetooth/bluez/attrib/gatttool.c
|
19c8e310329bb6b369f11501afec9ff4223c2971 |
|
04-Oct-2010 |
Anderson Lizardo <anderson.lizardo@openbossa.org> |
Allow errors to propagate from connection callback This fix makes gatttool exit with non-zero return code on any error.
/external/bluetooth/bluez/attrib/gatttool.c
|
a25fb7211bdb6fea517dd8bf913989ad04892717 |
|
02-Oct-2010 |
Bruna Moreira <bruna.moreira@openbossa.org> |
Implement characteristic_write callback in gatttool
/external/bluetooth/bluez/attrib/gatttool.c
|
6f9ddeda639b741ffe66a333c971c7dea1d6f365 |
|
02-Oct-2010 |
Bruna Moreira <bruna.moreira@openbossa.org> |
Add new option for char value write in gatttool Add new option --char-write for char value write (write without response). Reuse current handle option and create the -n for new value. Update variable names and help messages. Note: characteristics_write callback is empty.
/external/bluetooth/bluez/attrib/gatttool.c
|
2b80d7bf27de15701dbabba96693c400caecce77 |
|
30-Sep-2010 |
Bruna Moreira <bruna.moreira@openbossa.org> |
Make handle parameter mandatory in gatttool If the characteristic read option (--char-read) is used, the handle option (-a) must be provided.
/external/bluetooth/bluez/attrib/gatttool.c
|
d7f6fd397e64590940026d08f32c58fad6fe880b |
|
04-Oct-2010 |
Marcel Holtmann <marcel@holtmann.org> |
The attribute protocol assigned PSM is 0x1f
/external/bluetooth/bluez/attrib/gatttool.c
|
399d9689584c17c6dbb158bd17605cfa071c7ca1 |
|
21-Sep-2010 |
Bruna Moreira <bruna.moreira@openbossa.org> |
Use bt_io_connect in gatttool The gatttool was migrated to use bt_io_connect() instead of making connections manually.
/external/bluetooth/bluez/attrib/gatttool.c
|
dd714804cf0ca6dea2bacfeb87319950db84e4bd |
|
21-Sep-2010 |
Vinicius Costa Gomes <vinicius.gomes@openbossa.org> |
Add support for LE connections to gatttool
/external/bluetooth/bluez/attrib/gatttool.c
|
3fd8fddef691130cfdd45db0b074fd9b783da950 |
|
14-Sep-2010 |
Claudio Takahasi <claudio.takahasi@openbossa.org> |
Change notification/indication output formating on gatttool
/external/bluetooth/bluez/attrib/gatttool.c
|
1bacf5991694fb4606f00434f266bebd53b332b1 |
|
20-Aug-2010 |
Vinicius Costa Gomes <vinicius.gomes@openbossa.org> |
Add support for Indications to gatttool Now gatttol is able to receive indication events and repond to them. For now, this response is just sending the confirmation response back to the server and printing the received update.
/external/bluetooth/bluez/attrib/gatttool.c
|
469696dbc60eaafbaae78e745e60dc37a79a292c |
|
17-Aug-2010 |
Bruna Moreira <bruna.moreira@openbossa.org> |
Add new option to set MTU size in gatttool
/external/bluetooth/bluez/attrib/gatttool.c
|
f6c5bd6417e08b706e12dec3e59512e624b6a82d |
|
09-Sep-2010 |
Vinicius Costa Gomes <vinicius.gomes@openbossa.org> |
Define maximum and default MTU values
/external/bluetooth/bluez/attrib/gatttool.c
|
da394a7e17aa455f3b71c8b1e5402541fc141425 |
|
19-Aug-2010 |
Bruna Moreira <bruna.moreira@openbossa.org> |
Pretty print UUID-128 in gatttool
/external/bluetooth/bluez/attrib/gatttool.c
|
0db74b68e85ee7af5b7d6115a380cdef8f2459e0 |
|
13-Aug-2010 |
Vinicius Costa Gomes <vinicius.gomes@openbossa.org> |
Remove gatttool unix socket transport support
/external/bluetooth/bluez/attrib/gatttool.c
|
30e62c915184537c3946f5b87331f8a8f407bc78 |
|
10-Aug-2010 |
Anderson Lizardo <anderson.lizardo@openbossa.org> |
gatttool: add characteristic descriptor discovery support The --start/--end options are reused to allow specifying the starting/ending handles. Both 16-bit and 128-bit UUIDs are pretty-printed using sdp_uuid2strn() function.
/external/bluetooth/bluez/attrib/gatttool.c
|
a764906095e956b3c7b12622309aeb921d856da9 |
|
06-Aug-2010 |
Bruna Moreira <bruna.moreira@openbossa.org> |
Add characteristics descriptor discovery option in gatttool Only skeleton for new option was added (no callback).
/external/bluetooth/bluez/attrib/gatttool.c
|
a31269eb5775faccf0068c306668a715196b7516 |
|
18-Aug-2010 |
Claudio Takahasi <claudio.takahasi@openbossa.org> |
Add listen option for gatttool Add new option --listen to watch for notifications and indications. At the momment only notifications are supported.
/external/bluetooth/bluez/attrib/gatttool.c
|
83ac94801ba3ccc58ea74cd7d48433ca4359dc90 |
|
19-Aug-2010 |
Vinicius Costa Gomes <vinicius.gomes@openbossa.org> |
Fix gatttool to use the alignment safe access functions
/external/bluetooth/bluez/attrib/gatttool.c
|
84b6027450bfd35e2504dddba49bd2eb627e3757 |
|
10-Aug-2010 |
Bruna Moreira <bruna.moreira@openbossa.org> |
Fix memory leaks in gatttool Unix channel reference count must be decremented before exiting. Do not exit main loop on recursive callbacks, thus allowing queued g_attrib_send() commands to be finished. Free memory allocated for opt_src/opt_dst.
/external/bluetooth/bluez/attrib/gatttool.c
|
ac81ac51758133b7fcc8a996aa611c5cdd875e20 |
|
06-Aug-2010 |
Bruna Moreira <bruna.moreira@openbossa.org> |
Exiting gatttool if no option is chosen If no operation is chosen, print usage help and exit gatttool.
/external/bluetooth/bluez/attrib/gatttool.c
|
8307634aa6d9dd96c12cec8b8acf1059b54e0ae6 |
|
09-Aug-2010 |
Vinicius Costa Gomes <vinicius.gomes@openbossa.org> |
Update copyright information of GATT library/tools
/external/bluetooth/bluez/attrib/gatttool.c
|
08e83df251524a9f6d6481a54a0f65de88277bdc |
|
04-Aug-2010 |
Anderson Lizardo <anderson.lizardo@openbossa.org> |
gatttool: simplify characteristic discovery output
/external/bluetooth/bluez/attrib/gatttool.c
|
4dc133a198a3032ed84941c20617aef221e56096 |
|
04-Aug-2010 |
Anderson Lizardo <anderson.lizardo@openbossa.org> |
gatttool: Replace --char-value-read with generic --char-read option The new option is useful for reading either characteristic values or descriptors, which use the same Read Request. This commit also fixes a few errors related to the handle options.
/external/bluetooth/bluez/attrib/gatttool.c
|
cafebc60e71f49b766c51b87a8bd81df65d5e4ac |
|
04-Aug-2010 |
Bruna Moreira <bruna.moreira@openbossa.org> |
Remove multiple calls for g_idle_add() in gatttool
/external/bluetooth/bluez/attrib/gatttool.c
|
0e7aa8f0acaff56a0f127988ec0b99476330e695 |
|
04-Aug-2010 |
Bruna Moreira <bruna.moreira@openbossa.org> |
Move connection operations to main in gatttool The connection operations (do_connect) were moved to main. So, the internal call to do_connect() were removed and GAttrib structure is initialized/freed in main. All callbacks receive the GAttrib structure through the user_data parameter.
/external/bluetooth/bluez/attrib/gatttool.c
|
a3f410d1f2b0ac2d86a44c10d09305ef5562bce0 |
|
03-Aug-2010 |
Anderson Lizardo <anderson.lizardo@openbossa.org> |
gatttool: coding style fixes
/external/bluetooth/bluez/attrib/gatttool.c
|
eaef3c6c2c9adad20e206e9254293f5df347879e |
|
03-Aug-2010 |
Bruna Moreira <bruna.moreira@openbossa.org> |
Add function to open connections in gatttool The do_connect() function was created to open unix/l2cap sockets. It is used by primary, characteristics and characteristics value options.
/external/bluetooth/bluez/attrib/gatttool.c
|
af40b52994e6b58280c9725fb0e0df60ad00ad33 |
|
03-Aug-2010 |
Bruna Moreira <bruna.moreira@openbossa.org> |
Change gatttool to use dec_read_by_grp_resp() The primary callback in gatttool was updated to use dec_read_by_grp_resp() function. Also, the printed message was updated to use same spec nomenclature.
/external/bluetooth/bluez/attrib/gatttool.c
|
765b7e0e566c6883652c87b57a6282d948b60df6 |
|
02-Aug-2010 |
Anderson Lizardo <anderson.lizardo@openbossa.org> |
Implement characteristic value read in gatttool
/external/bluetooth/bluez/attrib/gatttool.c
|
d8827654f9909064aad7a5d0ac69235d8898b375 |
|
02-Aug-2010 |
Bruna Moreira <bruna.moreira@openbossa.org> |
Add characteristics value read option in gatttool Only skeleton for new option was added (empty callback and options). The characteristics value readi must receive a handle.
/external/bluetooth/bluez/attrib/gatttool.c
|
416809f34b8ada1d26d0e3affc63b17ee9e31448 |
|
30-Jul-2010 |
Bruna Moreira <bruna.moreira@openbossa.org> |
Change discover characteristics output Make the discover characteristics output more readable (the result values were split in permission, characteristic value handle and uuid).
/external/bluetooth/bluez/attrib/gatttool.c
|
765a807fdced0e770cfccfc32f60df44c11ad07e |
|
30-Jul-2010 |
Bruna Moreira <bruna.moreira@openbossa.org> |
Fix memory leaks in gatttool
/external/bluetooth/bluez/attrib/gatttool.c
|
a6a0f24a24b52d66e98b1916028fba4c90dcc8e2 |
|
29-Jul-2010 |
Bruna Moreira <bruna.moreira@openbossa.org> |
Implement discovery characteristics for gatttool
/external/bluetooth/bluez/attrib/gatttool.c
|
280b92ef334e3ff4a190a2815234d21c1479fd3b |
|
29-Jul-2010 |
Bruna Moreira <bruna.moreira@openbossa.org> |
Change menu to make the start/end options more generic The start/end addresses will be used by characteristics too, so some changes were done to do the menu messages more generic.
/external/bluetooth/bluez/attrib/gatttool.c
|
e321c07ce08762b4dd89c296a5ba11c15cc866c7 |
|
28-Jul-2010 |
Bruna Moreira <bruna.moreira@openbossa.org> |
Implement discovery all primary services for gatttool
/external/bluetooth/bluez/attrib/gatttool.c
|
f1d7e6a7a91bd5d0140429e20a8e2c93b14594a7 |
|
28-Jul-2010 |
Anderson Lizardo <anderson.lizardo@openbossa.org> |
gatttool: add support for L2CAP socket connection Connect using L2CAP by default, and add a --unix/-u option to select the Unix socket (for local testing).
/external/bluetooth/bluez/attrib/gatttool.c
|
fa7e72f64b88592fa6cfc4cfb8918d93f2c1fdbd |
|
28-Jul-2010 |
Anderson Lizardo <anderson.lizardo@openbossa.org> |
gatttool: add main loop Also modify the option parsing to work properly with it.
/external/bluetooth/bluez/attrib/gatttool.c
|
e840565e174885cc93991c81d8663df430a1ff8b |
|
23-Jul-2010 |
Anderson Lizardo <anderson.lizardo@openbossa.org> |
Implement initial UNIX socket support Only socket creation and close is implemented for now.
/external/bluetooth/bluez/attrib/gatttool.c
|
01b0c411adc9ba0a687033cbbcc6d5c5fa908a34 |
|
23-Jul-2010 |
Bruna Moreira <bruna.moreira@openbossa.org> |
Add start/end options to gatttool Add new command line options to change the fields of discover primary services requests: --start: Starting handle(default 0x0001) --end: Ending handle(default 0xffff)
/external/bluetooth/bluez/attrib/gatttool.c
|
d873388b67226d9a58e496289768ba13c5949724 |
|
23-Jul-2010 |
Bruna Moreira <bruna.moreira@openbossa.org> |
Add initial gatttool skeleton New command line tool to test GATT features. For now, it is only parsing options.
/external/bluetooth/bluez/attrib/gatttool.c
|