Bluez Package

Description

Bluez Package provides support for the core Bluetooth layers and protocols. It is flexible, efficient and uses a modular implementation. It has many interesting features:

  • Bluez Package  Complete modular implementation

  • Bluez Package  Symmetric multi processing safe

  • Bluez Package  Multithreaded data processing

  • Bluez Package  Support for multiple Bluetooth devices

  • Bluez Package  Real hardware abstraction

  • Bluez Package  Standard socket interface to all layers

  • Bluez Package  Device and service level security support



Bluez-Simple-Agent

Syntax

bluez-simple-agent [options]

Options

  -h, --help            show this help message and exit
  -c CAPABILITY, --capability=CAPABILITY

Example

root@cyborg:~# bluez-simple-agent
Agent registered


Bluez-Simple-Service

Syntax

bluez-simple-service

Example

root@cyborg:~# bluez-simple-service
Service record with handle 0x10008 added



Bluez-Test-Adapter

Syntax

bluez-test-adapter [options]

Options

  -i DEV_ID, --device=DEV_ID
  -h, --help            show this help message and exit

Example

root@cyborg:~# bluez-test-adapter  -i hci0
bluez-test-adapter <command>

  address
  list
  name [name]
  powered [on/off]
  pairable [on/off]
  pairabletimeout [timeout]
  discoverable [on/off]
  discoverabletimeout [timeout]
  discovering


root@cyborg:~# bluez-test-adapter  -i hci0 list
 [ /org/bluez/793/hci0 ]
    Name = cyborg-0
    Powered = 1
    Devices = dbus.Array([dbus.ObjectPath('/org/bluez/793/hci0/dev_D8_3C_69_76_31_6E')], signature=dbus.Signature('o'), variant_level=1)
    DiscoverableTimeout = 0
    PairableTimeout = 0
    Discoverable = 1
    Address = 11:11:11:11:11:11
    Discovering = 0
    Pairable = 1
    Class = 0x000000
    UUIDs = dbus.Array([dbus.String(u'00001000-0000-1000-8000-00805f9b34fb'), dbus.String(u'00001001-0000-1000-8000-00805f9b34fb'), dbus.String(u'0000112d-0000-1000-8000-00805f9b34fb'), dbus.String(u'00001112-0000-1000-8000-00805f9b34fb'), dbus.String(u'0000111f-0000-1000-8000-00805f9b34fb'), dbus.String(u'0000111e-0000-1000-8000-00805f9b34fb'), dbus.String(u'0000110c-0000-1000-8000-00805f9b34fb'), dbus.String(u'0000110e-0000-1000-8000-00805f9b34fb'), dbus.String(u'0000110a-0000-1000-8000-00805f9b34fb'), dbus.String(u'0000110b-0000-1000-8000-00805f9b34fb')], signature=dbus.Signature('s'), variant_level=1)


Bluez-Test-Audio

Syntax

 bluez-test-audio [options]

Options

  -i DEV_ID, --device=DEV_ID
  -h, --help            show this help message and exit

Example

root@cyborg:~# bluez-test-audio
bluez-test-audio <command>

	connect <bdaddr>
	disconnect <bdaddr>
	
	
root@cyborg:~# bluez-test-audio  -i hci0 discoonect 11.11.11.11.11.11


Bluez-Test-Device

Syntax

bluez-test-device [options]

Options

  -i DEV_ID, --device=DEV_ID
  -h, --help            show this help message and exit

Example

root@cyborg:~# bluez-test-device 
bluez-test-device <command>

  list
  services <address>
  create <address>
  remove <address|path>
  disconnect <address>
  discover <address> [pattern]
  class <address>
  name <address>
  alias <address> [alias]
  trusted <address> [yes/no]
  blocked <address> [yes/no]
root@cyborg:~# bluez-test-device -i hci0 list
D8:3C:69:76:31:6E ztrelian's phone


Bluez-Test-Discovery

Syntax

bluez-test-discovery [options]

Options

  -i DEV_ID, --device=DEV_ID
  -h, --help            show this help message and exit

Example

root@cyborg:~# bluez-test-discovery 
[ D8:3C:69:76:31:6E ]
    Name = ztrelian's phone
    Paired = 1
    LegacyPairing = 0
    Alias = ztrelian's phone
    Address = D8:3C:69:76:31:6E
    RSSI = 0
    Class = 0x5a020c
    Trusted = 1
    Icon = phone


Bluez-Test-Input

Syntax

bluez-test-input <command>

Options

        connect <bdaddr>
	disconnect <bdaddr>

Example

root@cyborg:~# bluez-test-input connect 11:11:11:11:11:11


Bluez-Test-Manager

Syntax

 bluez-test-manager

Example

root@cyborg:~# bluez-test-manager
Default adapter is now at path /org/bluez/793/hci0


Bluez-Test-Network

Syntax

bluez-test-network [options]

Options

  -i DEV_ID, --device=DEV_ID
  -h, --help            show this help message and exit

Example

root@cyborg:~# bluez-test-network 11:11:11:11:11:11 0x1004


Bluez-Test-Serial

Syntax

bluez-test-serial [options]

Options

  -i DEV_ID, --device=DEV_ID
  -h, --help            show this help message and exit

Example

root@cyborg:~# bluez-test-serial 11:11:11:11:11:11 0x1004


Bluez-Test-Service

Syntax

bluez-test-service [options]

Options

  -i DEV_ID, --device=DEV_ID
  -h, --help            show this help message and exit

Example

root@cyborg:~# bluez-test-service rec.bluez
Service record with handle 0x1001b added


Bluez-Test-Telephony

Syntax

bluez-test-telephony [options]

Options

  -i DEV_ID, --device=DEV_ID
  -h, --help            show this help message and exit

Example

root@cyborg:~# bluez-test-telephony 
bluez-test-telephony <command>

	connect <bdaddr>
	disconnect <bdaddr>
	outgoing <number>
	incoming <number>
	cancel
	signal <level>
	battery <level>
	roaming <yes|no>
	registration <status>
	subscriber <number>
	speakergain <bdaddr> [level]
	microphonegain <bdaddr> [level]
	play <bdaddr>
	stop <bdaddr>
	
root@cyborg:~# bluez-test-telephony connect D8:3C:69:76:31:6E
0 Comments

Leave a reply

CONTACT US

We're are building as a community and a team. Be a part of it.

Sending

©2017 Ztrela Knowledge Solutions Pvt. Ltd

Log in with your credentials

Forgot your details?