xref: /netbsd-src/usr.sbin/btattach/btattach.8 (revision 3ee579e3bc119d1a00e5943ab6cabae8a461f180)
1*3ee579e3Swiz.\" $NetBSD: btattach.8,v 1.10 2017/08/13 18:34:03 wiz Exp $
2486e4624Splunky.\"
3486e4624Splunky.\" Copyright (c) 2007 KIYOHARA Takashi
4486e4624Splunky.\" All rights reserved.
5486e4624Splunky.\"
6486e4624Splunky.\" Redistribution and use in source and binary forms, with or without
7486e4624Splunky.\" modification, are permitted provided that the following conditions
8486e4624Splunky.\" are met:
9486e4624Splunky.\" 1. Redistributions of source code must retain the above copyright
10486e4624Splunky.\"    notice, this list of conditions and the following disclaimer.
11486e4624Splunky.\" 2. Redistributions in binary form must reproduce the above copyright
12486e4624Splunky.\"    notice, this list of conditions and the following disclaimer in the
13486e4624Splunky.\"    documentation and/or other materials provided with the distribution.
14486e4624Splunky.\"
15486e4624Splunky.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16486e4624Splunky.\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17486e4624Splunky.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18486e4624Splunky.\" DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
19486e4624Splunky.\" INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20486e4624Splunky.\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
21486e4624Splunky.\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22486e4624Splunky.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
23486e4624Splunky.\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
24486e4624Splunky.\" ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
25486e4624Splunky.\" POSSIBILITY OF SUCH DAMAGE.
26486e4624Splunky.\"
276ad4d0f8Sjmcneill.Dd August 11, 2017
28486e4624Splunky.Dt BTATTACH 8
29486e4624Splunky.Os
30486e4624Splunky.Sh NAME
31486e4624Splunky.Nm btattach
32486e4624Splunky.Nd attach serial lines as Bluetooth HCI interfaces
33486e4624Splunky.Sh SYNOPSIS
34486e4624Splunky.Nm
353e3acb56Skiyohara.Op Fl dFfoPp
36486e4624Splunky.Op Fl i Ar speed
37486e4624Splunky.Op Ar type
38486e4624Splunky.Ar tty
39486e4624Splunky.Ar speed
403e3acb56Skiyohara.Nm
413e3acb56Skiyohara.Fl t
423e3acb56Skiyohara.Op Fl dFfoPp
433e3acb56Skiyohara.Ar tty
44486e4624Splunky.Sh DESCRIPTION
45486e4624Splunky.Nm
46486e4624Splunkyis used to assign a
47486e4624Splunky.Ar tty
48486e4624Splunkyline to a Bluetooth Host Controller Interface using the
49486e4624Splunky.Xr btuart 4
50486e4624Splunkyor
51486e4624Splunky.Xr bcsp 4
52486e4624Splunkyline disciplines, and can optionally initialize the line for a
53486e4624Splunkygiven device
54486e4624Splunky.Ar type
55486e4624Splunkybefore activating the line discipline.
56486e4624Splunky.Pp
57486e4624SplunkySupported types are:
58*3ee579e3Swiz.Bl -tag -compact -width 15n -offset indent
59486e4624Splunky.It Cm bcm2035
60486e4624SplunkyBroadcom BCM2035
616ad4d0f8Sjmcneill.It Cm bcm43xx
626ad4d0f8SjmcneillBroadcom BCM43xx
636ad4d0f8Sjmcneill.It Cm bcm43xx-3wire
646ad4d0f8SjmcneillBroadcom BCM43xx (3-wire)
65486e4624Splunky.It Cm bcsp
66486e4624SplunkyGeneric BCSP (BlueCore Serial Protocol)
67486e4624Splunky.It Cm bgb2xx
68486e4624SplunkyPhilips BGB2xx module
69486e4624Splunky.It Cm btuart
70486e4624SplunkyGeneric UART (this is the default)
71486e4624Splunky.It Cm csr
7231ccbbf6SwizCambridge Silicon Radio Casira serial adapter, or
73486e4624SplunkyBrainboxes serial dongle (BL642)
74486e4624Splunky.It Cm ericsson
75486e4624SplunkyEricsson based modules
76486e4624Splunky.It Cm digi
77486e4624SplunkyDigianswer based cards
78486e4624Splunky.It Cm st
79486e4624SplunkyST Microelectronics minikits based on STLC2410/STLC2415
80486e4624Splunky.It Cm stlc2500
81486e4624SplunkyST Microelectronics minikits based on STLC2500
82486e4624Splunky.It Cm swave
83486e4624SplunkySilicon Wave kits
84486e4624Splunky.It Cm texas
85486e4624SplunkyTexas Instruments modules
8624a2c2d7Skiyohara.It Cm unistone
8724a2c2d7SkiyoharaInfineon UniStone (PBA31308) modules
88486e4624Splunky.El
89486e4624Splunky.Pp
90486e4624SplunkyWhen the line discipline is activated,
91486e4624Splunky.Nm
92486e4624Splunkydetaches and sleeps until it receives a
93486e4624Splunky.Dv SIGHUP .
94486e4624Splunky.Pp
95486e4624SplunkyThe command line options are as follows:
96486e4624Splunky.Bl -tag -width ".Fl i Ar speed"
97486e4624Splunky.It Fl d
98486e4624Splunkydebug mode.
99486e4624Splunkyprint initialization IO and do not detach.
1003e3acb56Skiyohara.It Fl F
1013e3acb56SkiyoharaDisable flow control.
102486e4624Splunky.It Fl f
103486e4624SplunkyEnable flow control.
104486e4624Splunky.It Fl i Ar speed
105486e4624SplunkySpecify an alternate
106486e4624Splunky.Ar speed
107486e4624Splunkyfor the Bluetooth module to use during the initialization phase.
108486e4624Splunky.It Fl o
109486e4624SplunkyEnable odd parity.
1103e3acb56Skiyohara.It Fl P
1113e3acb56SkiyoharaDisable parity.
112486e4624Splunky.It Fl p
113486e4624SplunkyEnable parity (even parity).
1143e3acb56Skiyohara.It Fl t
1153e3acb56SkiyoharaTest mode.
116486e4624Splunky.El
117486e4624Splunky.Pp
118486e4624SplunkyOnly the super-user may attach a Bluetooth HCI interface.
1193e3acb56Skiyohara.Pp
1208c68fa47SwizTest mode tries to guess the speed using the received link-establish
1218c68fa47Swizpacket from HCI, or
1228c68fa47Swiz.Xr btuart 4 ,
1238c68fa47Swizif there is no response.
124486e4624Splunky.Sh FILES
125*3ee579e3Swiz.Bl -tag -compact -width 20n
126486e4624Splunky.It Pa /var/run/btattach- Ns Bro tty Brc Ns .pid
127486e4624Splunky.El
128486e4624Splunky.Sh SEE ALSO
129486e4624Splunky.Xr bcsp 4 ,
130486e4624Splunky.Xr bluetooth 4 ,
131486e4624Splunky.Xr btuart 4 ,
132486e4624Splunky.Xr btconfig 8
133486e4624Splunky.Sh HISTORY
134486e4624SplunkyThe
135486e4624Splunky.Nm
136486e4624Splunkyprogram was written with reference to
137*3ee579e3Swiz.Nm hciattach
138486e4624Splunkyas provided with the BlueZ tools for Linux and first appeared in
139486e4624Splunky.Nx 5.0 .
140486e4624Splunky.Sh AUTHORS
141a5684d07Swiz.An KIYOHARA Takashi Aq Mt kiyohara@kk.iij4u.or.jp
142486e4624Splunky.An Iain Hibbert
1438c68fa47Swiz.Sh BUGS
1448c68fa47SwizNot all
1458c68fa47Swiz.Ar type
1468c68fa47Swizinitializations have been tested.
147