STANNIX Community


Manual: hciattach

hciattach(1)					 Linux System Administration					hciattach(1)

Name
       hciattach - attach serial devices via UART HCI to BlueZ stack

SYNOPSIS
       hciattach [OPTIONS]   [speed] [flow] [sleep] [bdaddr]

       hciattach -1

DESCRIPTION
       hciattach(1) is used to attach a serial UART to the Bluetooth stack as HCI transport interface.

OPTIONS
       -i     Send break

       -n     Don't detach from controlling terminal.

       -p     Print the PID when detaching.

       -t timeout
	      Specify an initialization timeout. Default is 5 seconds.

       -s speed
	      Specify an initial speed instead of the hardware default.

       -l     List all available configurations.

       -r     Set the HCI device into raw mode. The kernel and bluetooth daemon will ignore it.

       -h, --help
	      Show help options

ARGUMENTS
       show   This specifies the serial device to attach. A leading /dev can be omitted.

	      Examples: /dev/ttyS1 ttyS2

       type|id
	      The  type	 or  id of the Bluetooth device that is to be attached, i.e. vendor or other device specific identi‐
	      fier.  Currently supported types are
				     β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
				     β”‚ type	β”‚ Description				    β”‚
				     β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
				     β”‚ any	β”‚ Unspecified HCI_UART interface, no vendor β”‚
				     β”‚		β”‚ specific options			    β”‚
				     β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
				     β”‚ ericsson β”‚ Ericsson based modules		    β”‚
				     β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
				     β”‚ digi	β”‚ Digianswer based cards		    β”‚
				     β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
				     β”‚ xircom	β”‚ Xircom PCMCIA cards: Credit Card  Adapter β”‚
				     β”‚		β”‚ and Real Port Adapter			    β”‚
				     β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
				     β”‚ csr	β”‚ CSR  Casira  serial adapter or BrainBoxes β”‚
				     β”‚		β”‚ serial dongle (BL642)			    β”‚
				     β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
				     β”‚ bboxes	β”‚ BrainBoxes PCMCIA card (BL620)	    β”‚
				     β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
				     β”‚ swave	β”‚ Silicon Wave kits			    β”‚
				     β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
				     β”‚ bcsp	β”‚ Serial adapters using CSR chips with BCSP β”‚
				     β”‚		β”‚ serial protocol			    β”‚
				     β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
				     β”‚ ath3k	β”‚ Atheros AR300x based serial Bluetooth de‐ β”‚
				     β”‚		β”‚ vice					    β”‚
				     β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
				     β”‚ intel	β”‚ Intel Bluetooth device		    β”‚
				     β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
			  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
			  β”‚ Supported ID		  β”‚ Description				      β”‚
			  β”‚ (manufacturer id, product id) β”‚					      β”‚
			  β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
			  β”‚ 0x0105, 0x080a		  β”‚ Xircom PCMCIA cards: Credit Card  Adapter β”‚
			  β”‚				  β”‚ and Real Port Adapter		      β”‚
			  β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
			  β”‚ 0x0160, 0x0002		  β”‚ BrainBoxes PCMCIA card (BL620)	      β”‚
			  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

       speed  The  speed  specifies the UART speed to use. Baudrates higher than 115200bps require vendor specific  initial‐
	      izations that are not implemented for all types of devices. In general the following speeds are supported:

	      Supported vendor devices are automatically initialised to their respective best settings.
							    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”
							    β”‚ 9600   β”‚
							    β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€
							    β”‚ 19200  β”‚
							    β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€
							    β”‚ 38400  β”‚
							    β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€
							    β”‚ 57600  β”‚
							    β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€
							    β”‚ 115200 β”‚
							    β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€
							    β”‚ 230400 β”‚
							    β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€
							    β”‚ 460800 β”‚
							    β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€
							    β”‚ 921600 β”‚
							    β””β”€β”€β”€β”€β”€β”€β”€β”€β”˜

       flow   If the flow is appended to the list of options then hardware  flow  control  is  forced  on  the	serial	link
	      (CRTSCTS).  All above mentioned device types have flow set by default. To force no flow control use noflow in‐
	      stead.

       sleep|nosleep
	      Enables hardware specific power management feature. If sleep is appended to the list of options then this fea‐
	      ture is enabled. To disable this feature use nosleep instead. All above mentioned device	types  have  nosleep
	      set by default.

	      Note:  This option will only be valid for hardware which support hardware specific power management enable op‐
	      tion from host.

       bdaddr The bdaddr specifies the Bluetooth Address to use. Some devices (like the STLC2500) do not store the Bluetooth
	      address in hardware memory.  Instead it must be uploaded during the initialization process. If  this  argument
	      is  specified,  then  the	 address will be used to initialize the device. Otherwise, a default address will be
	      used.

RESOURCES
       

REPORTING BUGS
       

Author
       Maxim Krasnyansky , Nils Faerber 

Copyright
       Free use of this software is granted under the terms of the GNU Lesser General Public Licenses (LGPL).

BlueZ							Jan 22, 2002						hciattach(1)