⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 serial-api.txt

📁 实现bluez蓝牙profile需要的库
💻 TXT
字号:
Bluetooth serial service API description****************************************Copyright (C) 2006-2007  Marcel Holtmann <marcel@holtmann.org>Manager hierarchy=================Interface	org.bluez.serial.ManagerObject path	/org/bluez/serialMethods		string CreateProxy(string uuid, string address)			Creates a serial port proxy object.			Service identifier must be provided in the uuid 128			format. Addresses can be TTY char devices or unix			socket address. Abstract namespace can be informed			replacing the null byte by 'x00'.  eg: "/dev/ttyS0",			"/tmp/gps-data", "x00/org/bluez/echo".			Possible errors:org.bluez.serial.Error.InvalidArguments					org.bluez.serial.NotAvailable					org.bluez.serial.Failed		void RemoveProxy(string path) [experimental]			Removes the serial port proxy object for given path.			Possible errors:org.bluez.serial.Error.DoesNotExist		string CreatePort(string address, string pattern) [experimental]			Creates a serial port object.			Possible errors:org.bluez.serial.Error.InvalidArguments					org.bluez.serial.Error.ConnectionCanceled					org.bluez.serial.Error.ConnectionInProgress					org.bluez.serial.Error.ConnectionAttemptFailed					org.bluez.serial.Error.NotSupported					org.bluez.serial.Error.Failed		void RemovePort(string path) [experimental]			Removes the serial port object for given path.			Possible errors:org.bluez.serial.Error.DoesNotExist		array{string} ListPorts() [experimental]			Returns an array of available serial port paths.		array{string} ListProxies() [experimental]			Returns an array of available serial port proxy paths.		string ConnectService(string address, string pattern)			Connects to a specific RFCOMM based service on a			remote device and then creates a RFCOMM TTY			device for it. The RFCOMM TTY device is returned.			Possible errors:org.bluez.serial.Error.InvalidArguments					org.bluez.serial.Error.ConnectionCanceled					org.bluez.serial.Error.ConnectionInProgress					org.bluez.serial.Error.ConnectionAttemptFailed					org.bluez.serial.Error.NotSupported					org.bluez.serial.Error.Failed		void CancelConnectService(string address, string pattern)			Cancel a previous ConnectService method call.			Possible errors:org.bluez.serial.Error.InvalidArguments					org.bluez.serial.Error.ConnectionNotInProgress		void DisconnectService(string device)			Disconnect a RFCOMM TTY device that has been			created via the ConnectService method.			Possible errors:org.bluez.serial.Error.InvalidArguments					org.bluez.serial.Error.DoesNotExistSignals		void PortCreated(string path) [experimental]		void PortRemoved(string path) [experimental]		void ProxyCreated(string path) [experimental]		void ProxyRemoved(string path) [experimental]		void ServiceConnected(string device)		void ServiceDisconnected(string device)Port hierarchy (experimental)=============================Interface	org.bluez.serial.PortObject path	/org/bluez/serial/rfcomm*Methods		string GetAddress() [experimental]			Returns the Bluetooth address of the ending point.		string GetDevice() [experimental]			Returns the TTY device node name		string GetInfo() [experimental]			Returns the port properties.Proxy hierarchy (experimental)=============================Interface	org.bluez.serial.ProxyObject path	/org/bluez/serial/rfcomm*Methods:	string Enable() [experimental]			Register the serial proxy service record and start			listenning on the specified adapter/channel.		string Disable() [experimental]			Unregister the service record and stop listenning.		string GetInfo() [experimental]			Returns the proxy properties		void SetSerialParameters(string rate, byte databits,				byte stopbits, string parity) [experimental]			Change the TTY settings. Available rates: "50", "300",			"600", "1200", "1800", "2400", "4800", "9600", "19200",			"38400", "57600" and "115200". Available data bits: 5,			6, 7 and 8. Available stop bits: 1 and 2. Available			parity: "even", "odd", "mark", "space" and "none".

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -