| 2a6d4b3d |
Update mgmt-api.txt with controller index moved to mgmt packet header |
Szymon Janc |
14 years ago |
1 file, +111, -104 |
| c89500ff |
Add missing items for the Management interface to TODO |
Johan Hedberg |
14 years ago |
1 file, +28, -0 |
| 886e6763 |
Remove unneeded Service ID from service SDP record |
Brian Gix |
14 years ago |
1 file, +1, -3 |
| 22d74180 |
Fix test/test-attrib script
Characteristics are not being fetched anymore when the device is
created. Discover method needs to be called actively to discover the
characteristics exposed by a given service. |
Anderson Lizardo |
14 years ago |
1 file, +8, -4 |
| 5aa3f088 |
TODO: Add item related to ATT PDU decoding issue |
Claudio Takahasi |
14 years ago |
1 file, +7, -0 |
| bd32dd62 |
Remove unused MTU variable in GAttrib struct
The MTU variable in GAttrib struct was not being used for any operation
so it should be removed. |
Bruna Moreira |
14 years ago |
1 file, +0, -2 |
| 96b7eb25 |
Use attribute data list memory allocation function on attrib server |
Claudio Takahasi |
14 years ago |
1 file, +3, -15 |
| 448456a1 |
Coding standard change replacing malloc by glib functions
Use glib memory allocation functions instead of malloc for attribute
data list in ATT protocol utility functions. |
Claudio Takahasi |
14 years ago |
2 files, +46, -31 |
| 28d393d7 |
Add sec-level option to interactive gattool |
Sheldon Demario |
14 years ago |
1 file, +44, -0 |
| 6904e0f1 |
Add Write Request in interactive gatttool |
Bruna Moreira |
14 years ago |
1 file, +52, -0 |
| d3a5c568 |
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. |
Bruna Moreira |
14 years ago |
3 files, +22, -21 |
| 607c54cb |
Add characteristics read options in interactive gatttool |
Sheldon Demario |
14 years ago |
1 file, +156, -1 |
| 91aed1d7 |
Add Characteristics Descriptor Discovery option in interactive gatttool |
Sheldon Demario |
14 years ago |
1 file, +72, -0 |
| 7aff2cea |
Create a helper function to deal with handles on interactive gatttool |
Sheldon Demario |
14 years ago |
1 file, +17, -10 |
| a2e31571 |
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. |
Vinicius Costa Gomes |
14 years ago |
1 file, +1, -1 |
| 6682df6d |
Add support for GATT client timeouts
This patch adds support to destroying the GATT connection
when a GATT server doesn't respond for more than 30 seconds.
A function to destroy the GAttrib is introduced and it is used
in the timeout case and when the last GAttrib reference is
dropped. |
Vinicius Costa Gomes |
14 years ago |
1 file, +36, -7 |
| 33e09781 |
Fix gattrib.c coding style
Just remove an extra empty line. |
Vinicius Costa Gomes |
14 years ago |
1 file, +0, -1 |
| 47316f8c |
hcitool: fix interval and window parameters
Set interval and window parameters properly if --discovery option
is present in lescan command.
According to the Bluetooth spec, during a general or limited discovery
procedure the scan interval and the scan window should be set to
11.25 ms. If --discovery option isn't present, both parameters are set
to the default value (10 ms) defined in LE Set Scan Parameters Command.
According to that command description, the interval and window parameters
should be set as follows:
Time = N * 0.625 msec
So, in order to set the time values to 11.25 and 10 ms, the parameters
should be equal to 18 (0x0012) and 16 (0x0010), respectively. |
Andre Guedes |
14 years ago |
1 file, +7, -2 |
| cf815898 |
hcitool: add discovery procedure to lescan command
This patch adds the option [--discovery=g|l] to lescan command. Use
this option to enable the general or limited discovery procedure.
If discovery option is not given scanning will display all results
ignoring the AD flags. |
Andre Guedes |
14 years ago |
1 file, +77, -5 |
| 1b80034b |
Maemo6 MCE: skip first adapter_powered callback
The maemo6 MCE plugin should be used with the flag InitiallyPowered
in main.conf set to 'true' so that BlueZ powers on the adapter
and leaves it in that state when the daemon is started. The plugin
will read the radio state from the MCE and set the state
accordingly. The maemo6 plugin is a btd_adapter_driver and those
drivers are loaded after BlueZ has read the BD address etc from the
adapter.
This patch adds a boolean flag in the callback to ignore the initial
powering on of the adapter by BlueZ, since it shouldn't be
propagated to the MCE. With InitiallyPowered set to 'false' the
adapter_powered callback is not called when the adapter is turned
on at BlueZ startup, which is why this wasn't implemented before. |
Daniel Orstadius |
14 years ago |
1 file, +6, -0 |
| ce2b40c8 |
Implement server-side ATT handle notification
Adds an initial version of ATT handle notification. Notifications are
sent to interested clients (based on the Client Characteristic
Configuration) always when the attribute is updated.
This enables services to call db_attrib_update() and send notifications
on their own terms. |
Andre Dieb Martins |
14 years ago |
1 file, +26, -0 |
| 4ae6cfca |
Check properties before setting client configs
Only enable notification/indication if the descriptor allows it. |
Andre Dieb Martins |
14 years ago |
1 file, +8, -3 |
| 34d6f0e3 |
Initial Client Characteristic Configuration implementation
This initial version creates a private copy of the Client Configuration
attribute for each client on the first write to that attribute. Further
reads/writes should use the client's private copy.
Two list of attributes are created: one for values to be indicated and
another for values to be notified. The actual notification/indication
sending is implemented in a separate commit.
This initial version also does not check for the characteristic
properties, which is implemented in a separate commit as well. |
Anderson Lizardo |
14 years ago |
1 file, +150, -31 |
| c3717e34 |
Add read/write callbacks to attribute server
These callbacks will allow profiles to act before an attribute is read
and after it is written, to e.g. update the attribute value to/from an
external source.
Note that by the time the callback is called, the necessary security
checks (attribute permissions, authentication and encryption) were
already performed by the core attribute server.
The callback can optionally return an ATT status code, which will be
sent to the client using an Error Response PDU. |
Anderson Lizardo |
14 years ago |
3 files, +31, -5 |
| 1847ffb1 |
Don't register GATT related SDP records if attrib server is disabled
GATT related SDP records should not be added if "AttributeServer" option
is false in the configuration file. Problem happens only when attribute
plugin is enabled. |
Claudio Takahasi |
14 years ago |
1 file, +8, -6 |
| 941eb997 |
Fix DBG() calls with bogus messages
Remove unnecessary trailing newlines (already added by DBG()) and
rewrite debug messages to become more useful. |
Anderson Lizardo |
14 years ago |
2 files, +4, -3 |
| 87df52f5 |
Add GStreamer version check in acinclude.m4
Since commit cc04c6a2f7500f3d29d56634e645130ff3bd80fb compilation fails
with GStreamer 0.10.28 or older. |
Szymon Janc |
14 years ago |
1 file, +2, -1 |
| 30b24e41 |
Fix typo on DBG() string format |
Anderson Lizardo |
14 years ago |
1 file, +1, -1 |
| de9dfe20 |
Check malformed notification/indication PDU
This patch implements discard of obviously malformed
GATT notification/indication PDUs. |
Elvis Pfützenreuter |
14 years ago |
1 file, +9, -1 |
| 9152acfb |
Add hcitool command to change the parameters of a given LE connection
Allows the LE master to start the Connection Parameter Update Procedure.
Parameters values consistency are not verified on purpose allowing
invalid values to test fail scenarios. |
Claudio Takahasi |
14 years ago |
1 file, +86, -0 |
| 5edfc482 |
Add hci utility function to change LE connection parameters |
Claudio Takahasi |
14 years ago |
2 files, +41, -0 |
| 8e7af67a |
Remove unneeded comma in the hcitool commands declaration |
Claudio Takahasi |
14 years ago |
1 file, +2, -2 |
| 3475c7f4 |
TODO: Add item to support characteristic authorization in the agent |
Claudio Takahasi |
14 years ago |
1 file, +6, -0 |
| 45ea4d5c |
TODO: Add item for reconnection address |
Claudio Takahasi |
14 years ago |
1 file, +8, -0 |
| 4c9f8c69 |
TODO: Add item for static random address |
Claudio Takahasi |
14 years ago |
1 file, +6, -0 |
| 950f9fd9 |
TODO: Change item related to read/write long characteristic |
Claudio Takahasi |
14 years ago |
1 file, +2, -1 |
| 6833edab |
TODO: Remove interactive gatttool item |
Claudio Takahasi |
14 years ago |
1 file, +0, -8 |
| 4bbbd663 |
TODO: Add item for privacy feature in the central |
Claudio Takahasi |
14 years ago |
1 file, +7, -0 |
| 42c3decd |
TODO: Changed item related to ATT parsing for hcidump |
Claudio Takahasi |
14 years ago |
1 file, +2, -1 |
| d576392d |
Add Characteristics Discovery option to interactive gatttool |
Sheldon Demario |
14 years ago |
1 file, +61, -0 |
| 78772855 |
Improve help messages in interactive gatttool
Includes the parameters info on help. |
Sheldon Demario |
14 years ago |
1 file, +13, -6 |
| e2761465 |
Fix potential bug in le_advertising_report()
In the current implementation of le_advertising_report(), the variable
'info' has an invalid memory address after the 'for' loop. If 'info'
is dereferenced it will access invalid memory.
This patch fixes this potential bug and improves the code's readability. |
Andre Guedes |
14 years ago |
1 file, +10, -5 |
| 0001c99c |
Fix not setting global mode when SetProperty is used
Global mode should be overwrite if user application change the adapter
mode by using SetProperty while there are sessions active, otherwise
when this sessions are released the mode restored will be the global
mode from before the sessions were created and not the mode set with
SetProperty. |
Luiz Augusto von Dentz |
14 years ago |
1 file, +11, -3 |
| 0ae4ae51 |
Fix end grp handle on Find By Type response
The attribute server was incorrectly setting the end group handle of the
last attribute to 0xFFFF on Find By Type response (used by Discover
Primary Service by UUID). |
Bruna Moreira |
14 years ago |
1 file, +0, -7 |
| ad8d1d55 |
Fix Find by Type Response with start == end grp handle
Find by type value response in attribute server was in loop when the
start/end grp handles from a primary service had same values.
Initializing end grp handle with start handle makes the special check
when end grp handle was zero unnecessary so it was removed. |
Bruna Moreira |
14 years ago |
1 file, +3, -6 |
| e787f4d0 |
Release 4.89 |
Marcel Holtmann |
14 years ago |
2 files, +12, -1 |
| 892a4b68 |
Fix indentation for source file list |
Marcel Holtmann |
14 years ago |
1 file, +4, -4 |
| ab58a677 |
Mention Brian's contributions |
Marcel Holtmann |
14 years ago |
1 file, +1, -0 |
| c23a0f47 |
Update library version |
Marcel Holtmann |
14 years ago |
1 file, +1, -1 |
| 2e637a34 |
Fix sorting and style of SDP includes |
Marcel Holtmann |
14 years ago |
1 file, +5, -5 |