hccontrol.8 revision 282958
Copyright (c) 2001-2002 Maksim Yevmenkin <m_evmenkin@yahoo.com>
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.

$Id: hccontrol.8,v 1.6 2003/08/06 21:26:38 max Exp $
$FreeBSD: stable/10/usr.sbin/bluetooth/hccontrol/hccontrol.8 282958 2015-05-15 10:56:22Z trasz $

.Dd February 7, 2015 .Dt HCCONTROL 8 .Os .Sh NAME .Nm hccontrol .Nd Bluetooth HCI configuration utility .Sh SYNOPSIS .Nm .Op Fl hN .Op Fl n Ar HCI_node_name .Ar command .Op Ar parameters ... .Sh DESCRIPTION The .Nm utility connects to the specified Netgraph node of type .Dv HCI or the first one found if none is specified and attempts to send the specified command to the HCI Netgraph node or to the associated Bluetooth device. The .Nm utility will print results to the standard output and error messages to the standard error.

p The options are as follows: l -tag -width indent t Fl h Display usage message and exit. t Fl N Show Bluetooth addresses as numbers. Normally .Nm attempts to resolve Bluetooth addresses, and display them symbolically. t Fl n Ar HCI_node_name Connect to the specified HCI Netgraph node. t Ar command One of the supported commands (see below). The special command .Cm help can be used to obtain the list of all supported commands. To get more information about a specific command use .Cm help Ar command . t Ar parameters One or more optional space separated command parameters. Many commands require a remote device address as one of the parameters. The remote device address can be specified as BD_ADDR or a name. If a name was specified then the .Nm utility will attempt to resolve the name via .Xr bt_gethostbyname 3 . .El .Sh COMMANDS The currently supported HCI commands in .Nm are:

p l -tag -width 40n -offset indent -compact t Cm Inquiry t Cm Create_Connection t Cm Disconnect t Cm Add_SCO_Connection t Cm Change_Connection_Packet_Type t Cm Remote_Name_Request t Cm Read_Remote_Supported_Features t Cm Read_Remote_Version_Information t Cm Read_Clock_Offset t Cm Role_Discovery t Cm Switch_Role t Cm Read_Link_Policy_Settings t Cm Write_Link_Policy_Settings t Cm Reset t Cm Read_Pin_Type t Cm Write_Pin_Type t Cm Read_Stored_Link_Key t Cm Write_Stored_Link_Key t Cm Delete_Stored_Link_Key t Cm Change_Local_Name t Cm Read_Local_Name t Cm Read_Connection_Accept_Timeout t Cm Write_Connection_Accept_Timeout t Cm Read_Page_Timeout t Cm Write_Page_Timeout t Cm Read_Scan_Enable t Cm Write_Scan_Enable t Cm Read_Page_Scan_Activity t Cm Write_Page_Scan_Activity t Cm Read_Inquiry_Scan_Activity t Cm Write_Inquiry_Scan_Activity t Cm Read_Authentication_Enable t Cm Write_Authentication_Enable t Cm Read_Encryption_Mode t Cm Write_Encryption_Mode t Cm Read_Class_Of_Device t Cm Write_Class_Of_Device t Cm Read_Voice_Settings t Cm Write_Voice_Settings t Cm Read_Number_Broadcast_Retransmissions t Cm Write_Number_Broadcast_Retransmissions t Cm Read_Hold_Mode_Activity t Cm Write_Hold_Mode_Activity t Cm Read_SCO_Flow_Control_Enable t Cm Write_SCO_Flow_Control_Enable t Cm Read_Link_Supervision_Timeout t Cm Write_Link_Supervision_Timeout t Cm Read_Page_Scan_Period_Mode t Cm Write_Page_Scan_Period_Mode t Cm Read_Page_Scan_Mode t Cm Write_Page_Scan_Mode t Cm Read_Local_Version_Information t Cm Read_Local_Supported_Features t Cm Read_Buffer_Size t Cm Read_Country_Code t Cm Read_BD_ADDR t Cm Read_Failed_Contact_Counter t Cm Reset_Failed_Contact_Counter t Cm Get_Link_Quality t Cm Read_RSSI .El

p The currently supported node commands in .Nm are:

p l -tag -width 40n -offset indent -compact t Cm Read_Node_State t Cm Initialize t Cm Read_Debug_Level t Cm Write_Debug_Level t Cm Read_Node_Buffer_Size t Cm Read_Node_BD_ADDR t Cm Read_Node_Features t Cm Read_Node_Stat t Cm Reset_Node_Stat t Cm Flush_Neighbor_Cache t Cm Read_Neighbor_Cache t Cm Read_Connection_List t Cm Read_Node_Link_Policy_Settings_Mask t Cm Write_Node_Link_Policy_Settings_Mask t Cm Read_Node_Packet_Mask t Cm Write_Node_Packet_Mask t Cm Read_Node_Role_Switch t Cm Write_Node_Role_Switch t Cm Read_Node_List .El .Sh EXIT STATUS .Ex -std .Sh SEE ALSO .Xr bluetooth 3 , .Xr netgraph 3 , .Xr netgraph 4 , .Xr ng_hci 4 , .Xr hcseriald 8 .Sh AUTHORS .An Maksim Yevmenkin Aq m_evmenkin@yahoo.com .Sh BUGS Most likely. Please report if found.