D-Bus API description for BlueZ
*******************************
Copyright (C) 2004-2007 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) 2005-2006 Eduardo Rocha <eduardo.rocha@indt.org.br>
Constant definitions
====================
The class of device definition from the Bluetooth specification divides into
three different parts. It the major class, the minor class and the service
classes. The D-Bus interface will always use string constants to identify
any of these classes.
Service classes positioning, networking, rendering, capturing,
object transfer, audio, telephony, information
Major classes miscellaneous, computer, phone, access point,
audio/video, peripheral, imaging, wearable, toy,
uncategorized
Minor classes computer uncategorized, desktop, server, laptop, handheld,
palm, wearable
Minor classes phone uncategorized, cellular, cordless, smart phone,
modem, isdn
Minor classes access point fully, 1-17 percent, 17-33 percent,
33-50 percent, 50-67 percent, 67-83 percent,
83-99 percent, not available
Minor classes audio video uncategorized, headset, handsfree,microphone,
loudspeaker, headphones, portable audio, car audio,
set-top box, hifi audio, vcr, video camera, camcorder,
video monitor, video display and loudspeaker,
video conferencing, gaming/toy, unknown
Minor classes peripheral uncategorized, keyboard, pointing, combo
Minor classes imaging display, camera, scanner, printer
Minor classes wearable wrist watch, pager, jacket, helmet, glasses
Minor classes toy robot, vehicle, doll, controller, game
Error hierarchy
===============
Interface org.bluez.Error
Shared Errors (Can be thrown by hcid or any bluetooth service)
DeviceUnreachable
The remote device is either powered down or out of range.
AlreadyConnected
A connection request has been received on an already
connected device.
ConnectionAttemptFailed
An unexpected error (other than DeviceUnreachable) error
has occured while attempting a connection to a device.
NotConnected
The remote device is not connected, while the method call
would expect it to be, or is not in the expected state to
perform the action.
InProgress
Error returned if an operation is in progress. Since
this is a generic error that can be used in various
situations, the error message should be more clear
about what is in progress. For example "Bonding in
progress".
InvalidArguments
The DBUS request does not contain the right number of
arguments with the right type, or the arguments are there
but their value is wrong, or does not makes sense in the
current context.
OutOfMemory
Error returned when a memory allocation via malloc()
fails. This error is similar to ENOMEM.
NotAvailable
Error returned when a specified record is not
available.
NotSupported
The remote device does not support the expected
feature.
AlreadyExists
One of the requested elements already exists
DoesNotExist
One of the requested elements does not exist
Canceled
The operation was canceled.
Failed
This is a the most generic error.
It is thrown when something unexpected happens.
Hcid specific Errors (Can be thrown by hcid only)
NotReady
Error returned when the adapter is DOWN.
UnknwownMethod
This is an experimental method.
NotAuthorized
Error returned when the caller of a method is not
authorized. This might happen if a caller tries to
terminate a connection that it hasn't created.
Rejected
NoSuchAdapter
Error returned when the requested adapter doesn't
exists. This error is similar to ENODEV.
NoSuchService
RequestDeferred
NotInProgress
UnsupportedMajorClass
AuthenticationCanceled
AuthenticationFailed
AuthenticationTimeout
AuthenticationRejected
RepeatedAttempts
Manager hierarchy
=================
Service org.bluez
Interface org.bluez.Manager
Object path /org/bluez
Methods uint32 InterfaceVersion()
Returns the current interface version. At the moment
only version 0 is supported.
Possible errors: org.bluez.Error.InvalidArguments
string DefaultAdapter()
Returns object path for the default adapter.
Possible errors: org.bluez.Error.InvalidArguments
org.bluez.Error.NoSuchAdapter
string FindAdapter(string pattern)
Returns object path for the specified adapter. Valid
patterns are "hci0" or "00:11:22:33:44:55".
Possible errors: org.bluez.Error.InvalidArguments
org.bluez.Error.NoSuchAdapter
array{string} ListAdapters()
Returns list of adapter object paths under /org/bluez
Possible errors: org.bluez.Error.InvalidArguments
org.bluez.Error.Failed
org.bluez.Error.OutOfMemory
string FindService(string pattern)
Returns object path for the specified service. Valid
patterns are the unqiue identifier or a bus name.
Possible errors: org.bluez.Error.InvalidArguments
org.bluez.Error.NoSuchService
array{string} ListServices()
Returns list of object paths of current services.
Possible errors: org.bluez.Error.InvalidArguments
string ActivateService(string pattern)
Returns the unqiue bus id of the specified service.
Valid patterns are the same as for FindService(). If
the service is not running it will be started.
Signals void AdapterAdded(string path)
Parameter is object path of added adapter.
void AdapterRemoved(string path)
Parameter is object path of removed adapter.
void DefaultAdapterChanged(string path)
Parameter is object path of the new default adapter,
or an empty string if there is no available adapters.
void ServiceAdded(string path)
Parameter is object path of registered service agent.
void ServiceRemoved(string path)
Parameter is object path of unregistered service agent.
Database hierarchy
==================
Service org.bluez
Interface org.bluez.Database
Object path /org/bluez or /org/bluez/{hci0,hci1,...}
Methods void RegisterService(string identifier, string name, string description)
This method registers a new service specified by
its unique identifier. This is only needed for
services that are not started through the
Bluetooth daemon.
void UnregisterService(string identifier)
This method unregisters a service specified by
its unique identifier.
uint32 AddServiceRecord(array{byte})
Adds a new service record and returns the assigned
record handle.
Possible errors: org.bluez.Error.InvalidArguments
org.bluez.Error.Failed
uint32 AddServiceRecordFromXML(string record)
Adds a new service record and returns the assigned
record handle.
Possible errors: org.bluez.Error.InvalidArguments
org.bluez.Error.Failed
void UpdateServiceRecord(uint32 handle, array{byte})
Updates a given service record.
Possible errors: org.bluez.Error.InvalidArguments
org.bluez.Error.NotAvailable
org.bluez.Error.Failed
void UpdateServiceRecordFromXML(uint32 handle, string record)
Updates a given service record provided in the
XML format.
Possible errors: org.bluez.Error.InvalidArguments
org.bluez.Error.NotAvailable
org.bluez.Error.Failed
void RemoveServiceRecord(uint32 handle)
Remove a service record identified by its handle.
It is only possible to remove service records that
where added by the current connection.
Possible errors: org.bluez.Error.InvalidArguments
org.bluez.Error.NotAuthorized
org.bluez.Error.DoesNotExist
org.bluez.Error.Failed
void RequestAuthorization(string address, string uuid)
This method gets called when a service wants to check
if a remote device is authorized to perform some
action. The authorization request is forwarded to an
authorization agent.
The address parameter is
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
bluez-utils-3.27.tar.gz_Linux蓝牙驱动_bluez_蓝牙驱动 (351个子文件)
hcitool.1 4KB
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
hcid.conf.5 8KB
hciconfig.8 5KB
hcid.8 3KB
hciattach.8 3KB
bccmd.8 3KB
bdaddr.8 2KB
sdpd.8 2KB
hid2hci.8 1KB
avctrl.8 1KB
Makefile.am 2KB
Makefile.am 2KB
Makefile.am 1KB
Makefile.am 1KB
Makefile.am 819B
Makefile.am 704B
Makefile.am 701B
Makefile.am 652B
Makefile.am 575B
Makefile.am 574B
Makefile.am 501B
Makefile.am 485B
Makefile.am 457B
Makefile.am 403B
Makefile.am 389B
Makefile.am 333B
Makefile.am 330B
Makefile.am 315B
Makefile.am 276B
Makefile.am 254B
Makefile.am 151B
Makefile.am 36B
apitest 18KB
AUTHORS 1KB
bluetooth_serial 631B
sdptool.c 110KB
adapter.c 87KB
csr.c 86KB
avdtp.c 67KB
manager.c 57KB
parser.c 54KB
dbus-hci.c 53KB
lexer.c 49KB
headset.c 48KB
hcitool.c 45KB
lexer.c 44KB
parser.c 44KB
manager.c 42KB
pcm_bluetooth.c 41KB
hciconfig.c 41KB
ubcsp.c 35KB
sbc.c 35KB
gstavdtpsink.c 34KB
dbus-security.c 33KB
a2dp.c 31KB
hciattach.c 30KB
server.c 30KB
manager.c 28KB
device.c 28KB
gmain.c 28KB
hciemu.c 27KB
bccmd.c 27KB
dbus-sdp.c 26KB
dbus-service.c 26KB
manager.c 26KB
unix.c 26KB
control.c 25KB
request.c 24KB
security.c 22KB
l2test.c 21KB
main.c 19KB
dbus.c 19KB
connection.c 18KB
gsta2dpsink.c 18KB
main.c 18KB
main.c 17KB
dbus-test.c 17KB
dfutool.c 17KB
sdp-xml.c 16KB
main.c 16KB
main.c 16KB
service.c 16KB
gstsbcenc.c 15KB
device.c 15KB
dbus-database.c 14KB
storage.c 14KB
sink.c 14KB
fakehid.c 13KB
dbus-helper.c 13KB
gstsbcutil.c 13KB
main.c 12KB
共 351 条
- 1
- 2
- 3
- 4
资源评论
钱亚锋
- 粉丝: 85
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功