Commit Graph

186 Commits

Author SHA1 Message Date
Gustavo F. Padovan
5ca964accf serial: add Serial.ConnectFD()
It's similar to Serial.Connect() but returns the actual RFCOMM file
descriptor instead of creating a device in /dev
2011-09-14 10:48:55 +03:00
Bruno Dilly
04a4e9a650 Add Serial Proxy and Serial Proxy Manager doc 2011-08-30 13:05:12 +03:00
Lucas De Marchi
363afd0b1d Update Control documentation
Move methods and signal to an experimental interface named MediaPlayer
as currently implemented.
2011-08-12 11:05:16 +03:00
Frédéric Danis
3163523575 audio: add profile version to HandsfreeAgent
Some phones with HFP Audio Gateway version previous to 1.5 (e.g.
Samsung SGH-D600 returning 0x0101 as profile version) do not accept an
AT+BRSF with latest features. The Handsfree agent should adapt its
AT+BRSF command depending on the remote version, so add version
information as parameter of NewConnection method.

Here is traces of buggy exchange:

< ACL data: handle 12 flags 0x02 dlen 20
    L2CAP(d): cid 0x0046 len 16 [psm 3]
      RFCOMM(d): UIH: cr 1 dlci 10 pf 0 ilen 12 fcs 0xb0
      0000: 41 54 2b 42 52 53 46 3d  31 31 38 0d              AT+BRSF=118.
> ACL data: handle 12 flags 0x02 dlen 18
    L2CAP(d): cid 0x0041 len 14 [psm 3]
      RFCOMM(d): UIH: cr 0 dlci 10 pf 1 ilen 9 fcs 0x76 credits 1
      0000: 0d 0a 45 52 52 4f 52 0d  0a                       ..ERROR..
< ACL data: handle 12 flags 0x02 dlen 8
    L2CAP(d): cid 0x0046 len 4 [psm 3]
      RFCOMM(s): DISC: cr 1 dlci 10 pf 1 ilen 0 fcs 0x6d

and after the fix (and corresponding fix in oFono):

< ACL data: handle 12 flags 0x02 dlen 19
    L2CAP(d): cid 0x0048 len 15 [psm 3]
      RFCOMM(d): UIH: cr 1 dlci 10 pf 0 ilen 11 fcs 0xb0
      0000: 41 54 2b 42 52 53 46 3d  32 32 0d                 AT+BRSF=22.
> ACL data: handle 12 flags 0x02 dlen 28
    L2CAP(d): cid 0x0041 len 24 [psm 3]
      RFCOMM(d): UIH: cr 0 dlci 10 pf 1 ilen 19 fcs 0x76 credits 1
      0000: 0d 0a 2b 42 52 53 46 3a  20 33 33 0d 0a 0d 0a 4f  ..+BRSF: 33....O
      0010: 4b 0d 0a                                          K..
< ACL data: handle 12 flags 0x02 dlen 18
    L2CAP(d): cid 0x0048 len 14 [psm 3]
      RFCOMM(d): UIH: cr 1 dlci 10 pf 0 ilen 10 fcs 0xb0
      0000: 41 54 2b 43 49 4e 44 3d  3f 0d                    AT+CIND=?.
2011-08-04 14:02:39 +03:00
Claudio Takahasi
b3ccd8541f Proximity API simplification
Delegates the Immediate Alert Level control to the caller(client).
Immediate Alert Service is shared between Path Loss and Find Me.

Three signal level states are defined: "good", "regular" and "weak".
Meaning that at least two thresholds are necessary to implement a
proper state transition. "unknown" will be returned if the link is not
active. For Path Loss, the logic to trigger the writting operation of
the Immediate Alert Level characteristic needs to be implemented in
the client. SignalLevel can be only one of the inputs to define when
and which value to write in the characteristic.
2011-08-02 16:48:49 +03:00
Claudio Takahasi
82d4778b26 Fix typo in mgmt-api 2011-07-26 13:01:46 +03:00
Claudio Takahasi
9897721d7f Add Proximity API
Covers the Proximity Monitor for Link Loss, Tx Power and Immediate
Alert services. This first proposal considers that the connections
will be managed by the bluetoothd core based on the registered
connection callbacks.

Only one instance of Immediate Alert service is allowed, "Alert Level"
characteristic of this service is used by Find Me and Path Loss. Note
that "Alert Level" for Path Loss is a LOCAL property written in the
Immediate Alert service when the threshold is reached. For Find Me
the user/application needs to actively enable the alert in the Immediate
Alert service. Link Loss has it's own instance of Alert Level
characteristic.
2011-07-09 18:31:31 +03:00
Santiago Carot-Nemesio
7aa662d813 Health Thermometer Profile API 2011-07-09 18:29:46 +03:00
Lucas De Marchi
fcb426c76a Fix common misspelled words
Accounting of misspelled words, as detected by codespell:

acording      2
ancilliary    1
appropiate    1
atribute      1
cant          1
comming       2
gracefull     1
lenght        1
mispelled     1
occured       1
occurences    1
ocurred       3
prefered      1
presense      1
reponse       1
seperate      1
succesful     1
successully   1
sucessfull    1
sucessfully   1
2011-07-03 14:36:14 +03:00
Luiz Augusto von Dentz
9c6e404f93 Mark Headset.Play method deprecated
SCO socket should be connected using either unix socket ipc or Media API
2011-06-30 11:11:02 +03:00
Antti Julku
6c558d3620 Add blacklisting support for management interface
Management interface commands for blocking and unblocking devices.
2011-06-16 21:51:44 +03:00
Santiago Carot-Nemesio
8ab32a35e7 Fix typo error in the attribute API documentation 2011-06-14 10:42:37 +03:00
Marcel Holtmann
9d67b7edf8 Revert "Document new hex-encoded pins feature" 2011-05-30 22:37:34 -07:00
Bastien Nocera
51ab3c975f doc: Add mention of the 6-digit padding problem
Passkeys used for Secure Simple pairing should always appear
zero-padded in the end-user display, as per specification
(5.4 ASSOCIATION MODELS in BLUETOOTH SPECIFICATION Version 2.1 + EDR
 [vol 1])
2011-05-25 13:32:11 -07:00
David Herrmann
bbf21e61fb Document new "hex-encoded pins" feature 2011-05-15 02:14:52 +03:00
Waldemar Rymarkiewicz
c33d02148b Update params description of PIN Code Request 2011-05-15 02:12:40 +03:00
Waldemar Rymarkiewicz
e6c56d4e71 Add secure param to mgmt_ev_pin_code_request
Update mgmt interface with secure param in PIN code request event which
is part of secure PIN requirement implementation.
2011-04-28 23:00:20 +03:00
Johan Hedberg
6f7add5435 mgmt: Add support for discovering event 2011-03-31 14:36:43 +03:00
Johan Hedberg
421efd407e mgmt: Add support for start_discovery & stop_discovery 2011-03-31 14:26:20 +03:00
Johan Hedberg
c602de90fb Add device_found and remote_name events to mgmt-api.txt 2011-03-30 13:21:25 +03:00
Johan Hedberg
9d5936a515 Clean up Out Of Band D-Bus interface naming 2011-03-28 19:16:19 +03:00
Dmitriy Paliy
8c14dfca48 Update Media API documentation
Possible error responses are added to RegisterEndpoint.
2011-03-28 17:25:42 +03:00
Dmitriy Paliy
468e11fe31 Update Adapter API documentation
RequestSession and ReleaseSession description is updated in adapter
API.
2011-03-28 17:25:39 +03:00
Szymon Janc
0d90e21062 Add oob-api.txt with documentation about OOB D-Bus methods 2011-03-27 22:59:54 +03:00
Szymon Janc
9fb2f63e0b Update mgmt-api.txt with OOB commands 2011-03-27 22:58:20 +03:00
Johan Hedberg
3011a312a7 mgmt: Implement adapter name control
This patch adds a new set_local_name command as well as a
local_name_changed event to the management interface. Instead of 248
bytes (like in the HCI spec) 249 bytes are always reserved for the name
in the messages so that there's a guarantee of it being nul-terminated
(this is not guaranteed on the HCI level).
2011-03-15 19:32:09 +02:00
Johan Hedberg
1c16543345 mgmt: Add adapter name to read_info response 2011-03-15 19:30:11 +02:00
Vinicius Costa Gomes
9dd2fb619e Add DiscoverCharacteristics method to the Attribute API 2011-03-15 10:53:07 +02:00
Waldemar Rymarkiewicz
2534fbd05a Add Sim Access Profile API
New API for Sim Access Profile.
2011-03-10 16:03:40 +02:00
Szymon Janc
2a6d4b3d17 Update mgmt-api.txt with controller index moved to mgmt packet header 2011-02-25 12:52:43 -03:00
Johan Hedberg
a20bb21f47 mgmt: Add support for auth_failed event and bonding_complete hooks
This patch adds support for the mgmt_auth_failed event together with the
related bonding_complete failure hooks to the core daemon.
2011-02-18 21:54:47 +02:00
Johan Hedberg
50102905d9 mgmt: Add User Confirmation request support 2011-02-16 22:47:25 +02:00
Elvis Pfützenreuter
bdc943dd18 Fix small typo 2011-02-09 13:57:58 -08:00
Johan Hedberg
1c93c6fa88 mgmt: Add mgmt_pair_device command
This patch adds a new management command for triggering a dedicated
bonding procedure to a remote device.
2011-02-08 23:15:23 +02:00
Johan Hedberg
9634f5c410 mgmt: Add set_io_capability command 2011-01-25 13:45:24 +02:00
Johan Hedberg
8b77225e7b mgmt: Add PIN Code request handling 2011-01-24 11:51:47 +02:00
Johan Hedberg
1e862b561c mgmt: add support for get_connections command 2011-01-21 13:55:44 +02:00
Johan Hedberg
d6fda82e31 mgmt: add support for connect failed event 2011-01-21 10:57:41 +02:00
Johan Hedberg
4c8daf053f Fix management remove key command code 2011-01-21 10:08:13 +02:00
Johan Hedberg
cc8588d684 Add support for disconnect management command 2011-01-21 10:06:50 +02:00
Johan Hedberg
48908574c4 mgmt: Add support for connected/disconnected events 2011-01-21 07:03:02 +02:00
Johan Hedberg
b115f34444 mgmt: add initial support for link key handling 2011-01-21 05:28:45 +02:00
Luiz Augusto von Dentz
3c1b20edad Add Routing property to MediaTransport interface
This should indicate to the endpoint what routing the transport is using
2011-01-19 20:44:33 +05:30
Luiz Augusto von Dentz
5937a8bf35 Remove IMTU and OMTU properties and return its values on Acquire reply
This should make Acquire blocking friendly since the client no longer has
to call GetProperties to discover how much it can write/read when using
the acquired file descriptor.
2011-01-19 20:42:32 +05:30
Johan Hedberg
006301ab40 Update Class of Device handling to the latest management interface
This patch updates the class of device handling code to match the latest
management interface. A notable feature is that UUID to service class
mapping policy remains in user space with the help of the svc_hint
parameter of the add_uuid command. This is to make it easy to update the
mapping table when new profiles come along.
2011-01-16 23:09:40 +02:00
Johan Hedberg
a31b2bfb5f mgmt: Add preliminary UUID handling
This patch adds support for the add_uuid and remove_uuid management
commands. The kernel uses them to track the list of UUIDs and
automatically set the service class bits as well as the EIR value
accordingly.
2011-01-03 22:27:21 +02:00
Johan Hedberg
6964bd2dd5 mgmt: Implement set_pairable
This patch implements support for the set_pairable managment command.
Due to the async nature of it a new btd_adapter_pairable_changed
function is added to the core daemon.
2010-12-30 15:06:16 +02:00
Johan Hedberg
9fbc76bdeb Update mgmt-api.txt to match latest implementation 2010-12-30 00:13:47 +02:00
Sheldon Demario
e7b9a1a5fa Add Broadcaster property in DeviceFound signal
Broadcaster property is required to distinguish the device role. If the
remote is sending an advertising event, two possible roles are possible:
Peripheral or Broadcaster.

This change is required to pass on qualification tests which require
filtering Broadcasting devices during General Discovery Procedure.
2010-12-24 00:38:27 +02:00
Johan Hedberg
27c58425af Change power_on & power_off adapter_ops callbacks to set_powered
The current idea is to have a single set_powered management command
which for the switching on case would leave the controller in a
non-connectable, non-pairable and non-discoverable state.
2010-12-23 14:38:52 +02:00