BlueZ D-Bus Adapter API description
***********************************
Copyright (C) 2004-2008 Marcel Holtmann <marcel@holtmann.org>
Copyright (C) 2005-2006 Johan Hedberg <johan.hedberg@nokia.com>
Copyright (C) 2005-2006 Claudio Takahasi <claudio.takahasi@indt.org.br>
Copyright (C) 2006-2007 Luiz von Dentz <luiz.dentz@indt.org.br>
Adapter hierarchy
=================
Service org.bluez
Interface org.bluez.Adapter
Object path [variable prefix]/{hci0,hci1,...}
Methods dict GetProperties()
Returns all properties for the adapter. See the
properties section for available properties.
Possible Errors: org.bluez.Error.DoesNotExist
org.bluez.Error.InvalidArguments
void SetProperty(string name, variant value)
Changes the value of the specified property. Only
properties that are listed a read-write are changeable.
On success this will emit a PropertyChanged signal.
Possible Errors: org.bluez.Error.DoesNotExist
org.bluez.Error.InvalidArguments
void RequestMode(string mode) {deprecated}
This method will request a mode change. The mode
change must be confirmed by the user via the agent.
Possible modes for this call are "connectable" and
"discoverable". Any application that wants to use
Bluetooth functionality can use this method to
indicate which mode it needs to operate sucessfully.
In case the user doesn't confirm the mode change it
will return an error to indicate this rejection.
Possible Errors: org.bluez.Error.DoesNotExist
org.bluez.Error.InvalidArguments
org.bluez.Error.Rejected
void ReleaseMode() {deprecated}
Releases a mode requested via RequestMode.
Possible Errors: org.bluez.Error.DoesNotExist
void RequestSession()
This method will request a client session that
provides operational Bluetooth. A possible mode
change must be confirmed by the user via the agent.
Possible Errors: org.bluez.Error.Rejected
void ReleaseSession()
Release a previous requested session.
Possible Errors: org.bluez.Error.DoesNotExist
void StartDiscovery()
This method starts the device discovery session. This
includes an inquiry procedure and remote device name
resolving. Use StopDiscovery to release the sessions
acquired.
This process will start emitting DeviceFound and
PropertyChanged "Discovering" signals.
Possible errors: org.bluez.Error.NotReady
org.bluez.Error.Failed
void StopDiscovery()
This method will cancel any previous StartDiscovery
transaction.
Note that a discovery procedure is shared between all
discovery sessions thus calling StopDiscovery will only
release a single session.
Possible errors: org.bluez.Error.NotReady
org.bluez.Error.Failed
org.bluez.Error.NotAuthorized
object FindDevice(string address)
Returns the object path of device for given address.
The device object needs to be first created via
CreateDevice or CreatePairedDevice.
Possible Errors: org.bluez.Error.DoesNotExist
org.bluez.Error.InvalidArguments
array{object} ListDevices()
Returns list of device object paths.
Possible errors: org.bluez.Error.InvalidArguments
org.bluez.Error.Failed
org.bluez.Error.OutOfMemory
object CreateDevice(string address)
Creates a new object path for a remote device. This
method will connect to the remote device and retrieve
all SDP records.
If the object for the remote device already exists
this method will fail.
Possible errors: org.bluez.Error.InvalidArguments
org.bluez.Error.Failed
object CreatePairedDevice(string address, object agent,
string capability)
Creates a new object path for a remote device. This
method will connect to the remote device and retrieve
all SDP records and then initiate the pairing.
If previously CreateDevice was used successfully,
this method will only initiate the pairing.
Compared to CreateDevice this method will fail if
the pairing already exists, but not if the object
path already has been created. This allows applications
to use CreateDevice first and the if needed use
CreatePairedDevice to initiate pairing.
The capability parameter is the same as for the
RegisterAgent method.
Possible errors: org.bluez.Error.InvalidArguments
org.bluez.Error.Failed
void CancelDeviceCreation(string address)
Aborts either a CreateDevice call or a
CreatePairedDevice call.
Possible errors: org.bluez.Error.InvalidArguments
org.bluez.Error.NotInProgress
void RemoveDevice(object device)
This removes the remote device object at the given
path. It will remove also the pairing information.
Possible errors: org.bluez.Error.InvalidArguments
org.bluez.Error.Failed
void RegisterAgent(object agent, string capability)
This registers the adapter wide agent.
The object path defines the path the of the agent
that will be called when user input is needed.
If an application disconnects from the bus all
of its registered agents will be removed.
The capability parameter can have the values
"DisplayOnly", "DisplayYesNo", "KeyboardOnly" and
"NoInputNoOutput" which reflects the input and output
capabilities of the agent. If an empty string is
used it will fallback to "DisplayYesNo".
Possible errors: org.bluez.Error.InvalidArguments
org.bluez.Error.AlreadyExists
void UnregisterAgent(object agent)
This unregisters the agent that has been previously
registered. The object path parameter must match the
same value that has been used on registration.
Possible errors: org.bluez.Error.DoesNotExist
Signals PropertyChanged(string name, variant value)
This signal indicates a changed value of the given
property.
DeviceFound(string address, dict values)
This signal will be send every time an inquiry result
has been found by the service daemon. In general they
only appear during a device discovery.
The dictionary can contain bascially the same values
that we be returned by the GetProperties method
from the org.bluez.Device interface. In addition there
can be values for the RSSI and the TX power level.
DeviceDisappeared(string address)
This signal will be send when an inquiry session for
a periodic discovery finishes and previously found
devices are no longer in range or visible.
DeviceCreated(object device)
Parameter is object path of created device.
DeviceRemoved(object device)
Parameter is object path of removed device.
Properties string Address [readonly]
The Bluetooth device address.
string Name [readwrite]
The Bluetooth friendly name. This value can be
changed and a PropertyChanged signal will be emitted.
string Mode [readwrite] {deprecated}
The Bluetooth operation mode.
Valid modes: "off", "connectable",
"discoverable", "limited"
This is deprecated by the Powered and Discoverable
properties.
boolean Powered [readwrite]
Switch an adapter on or off. This will also set the
appropiate connectable state.
boolean Discoverable [readwrite]
Switch an adapter to discoverable or non-discoverable
to either make it visible or hide it. This is a global
setting and should only be used by the settings
application.
If the DiscoverableTimeout is set to a non-zero
value then the system will set this value back to
false after the timer expired.
In case the adapter is switched off, setting this
value will fail.
When changing the Powered property the new state of
this property will be updated via a PropertyChanged
signal.
uint32 DiscoverableTimeout [readwrite]
The discoverable timeout in seconds. A value of zero
means that the timeout is disabled and it will stay in
discoverable/limited mode forever.
The default value for the discoverable timeout should
be 180 seconds (3 minutes).
boolean Discovering [readon
没有合适的资源?快使用搜索试试~ 我知道了~
bluez-4.11
需积分: 0 6 下载量 58 浏览量
2008-10-06
11:07:36
上传
评论
收藏 895KB GZ 举报
温馨提示
共325个文件
c:127个
h:76个
in:22个
最新版本的BLUEZ协议,This release fixes an issue with the SCO server socket and an issue with uninitialized reply messages of some GetProperties methods that could have caused random crashes.
资源详情
资源评论
资源推荐
收起资源包目录
bluez-4.11 (325个子文件)
hcitool.1 5KB
rfcomm.1 4KB
sdptool.1 3KB
ciptool.1 2KB
pand.1 2KB
dund.1 1KB
dfutool.1 1KB
l2ping.1 1KB
dfubabel.1 1KB
hidd.1 798B
hciconfig.8 5KB
bluetoothd.8 3KB
hciattach.8 3KB
bccmd.8 3KB
bdaddr.8 2KB
hid2hci.8 1KB
avctrl.8 1KB
configure.ac 824B
Makefile.am 2KB
Makefile.am 2KB
Makefile.am 1KB
Makefile.am 1KB
Makefile.am 949B
Makefile.am 748B
Makefile.am 718B
Makefile.am 701B
Makefile.am 619B
Makefile.am 590B
Makefile.am 589B
Makefile.am 485B
Makefile.am 479B
Makefile.am 415B
Makefile.am 367B
Makefile.am 340B
Makefile.am 306B
Makefile.am 206B
Makefile.am 170B
apitest 18KB
AUTHORS 1KB
bluetooth_serial 631B
sdptool.c 113KB
sdp.c 106KB
csr.c 86KB
adapter.c 78KB
avdtp.c 65KB
headset.c 54KB
hci.c 51KB
hcitool.c 47KB
lexer.c 45KB
parser.c 44KB
pcm_bluetooth.c 42KB
hciconfig.c 40KB
dbus-hci.c 39KB
sbc.c 36KB
ubcsp.c 35KB
gstavdtpsink.c 34KB
a2dp.c 33KB
device.c 30KB
glib-helper.c 30KB
hciattach.c 30KB
device.c 28KB
hciemu.c 27KB
bccmd.c 27KB
proxy.c 26KB
sdpd-request.c 26KB
unix.c 26KB
manager.c 24KB
security.c 24KB
control.c 23KB
l2test.c 22KB
server.c 21KB
storage.c 21KB
service.c 20KB
gsta2dpsink.c 18KB
agent.c 18KB
hidd.c 18KB
sdp.c 17KB
main.c 17KB
sdpd-service.c 17KB
main.c 17KB
dfutool.c 17KB
sdp-xml.c 16KB
sink.c 16KB
pand.c 16KB
main.c 16KB
gstsbcenc.c 15KB
avinfo.c 15KB
object.c 14KB
connection.c 14KB
rctest.c 13KB
fakehid.c 13KB
gstsbcutil.c 13KB
dund.c 12KB
hciattach_ti.c 12KB
port.c 11KB
ciptool.c 10KB
telephony-dummy.c 10KB
gstrtpsbcpay.c 10KB
manager.c 10KB
bdaddr.c 10KB
共 325 条
- 1
- 2
- 3
- 4
zhqiang2008
- 粉丝: 4
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0