1 .\" $NetBSD: rfcomm_sppd.1,v 1.5 2007/04/21 06:15:23 plunky Exp $
3 .\" Copyright (c) 2006 Itronix Inc.
4 .\" All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
14 .\" 3. The name of Itronix Inc. may not be used to endorse
15 .\" or promote products derived from this software without specific
16 .\" prior written permission.
18 .\" THIS SOFTWARE IS PROVIDED BY ITRONIX INC. ``AS IS'' AND
19 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21 .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ITRONIX INC. BE LIABLE FOR ANY
22 .\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23 .\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 .\" LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 .\" ON ANY THEORY OF LIABILITY, WHETHER IN
26 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 .\" POSSIBILITY OF SUCH DAMAGE.
31 .\" Copyright (c) 2001-2003 Maksim Yevmenkin <m_evmenkin@yahoo.com>
32 .\" All rights reserved.
34 .\" Redistribution and use in source and binary forms, with or without
35 .\" modification, are permitted provided that the following conditions
37 .\" 1. Redistributions of source code must retain the above copyright
38 .\" notice, this list of conditions and the following disclaimer.
39 .\" 2. Redistributions in binary form must reproduce the above copyright
40 .\" notice, this list of conditions and the following disclaimer in the
41 .\" documentation and/or other materials provided with the distribution.
43 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
44 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
45 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
46 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
47 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
48 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
49 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
50 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
51 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
52 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
60 .Nd RFCOMM Serial Port Profile daemon
67 .Brq Fl a Ar address | Fl c Ar channel
71 utility is a Serial Port Profile daemon, providing serial access over
72 an RFCOMM connection to a remote device.
74 can work in client or server mode.
78 initiates an RFCOMM connection to the
87 with the local SDP server and listens on the specified RFCOMM
89 for an incoming connection.
91 The options are as follows:
92 .Bl -tag -width ".Fl c Ar channel"
95 Specify the address of the remote RFCOMM device.
96 The address can be specified as BD_ADDR or name.
97 If given as a name, then the
99 utility will attempt to resolve the name via
100 .Xr bt_gethostbyname 3 .
103 Specify the RFCOMM channel number to listen on.
105 will register the service with the local
108 Note that registering services with
110 is a privileged operation.
112 Use the local device with the specified address.
113 The device can be specified by BD_ADDR or device name.
116 for a list of available devices.
119 is specified, the connection will be set up on a system determined device.
121 Set connection link mode.
124 .Bl -tag -compact -offset indent -width "encrypt"
126 require devices be paired.
128 auth, plus enable encryption.
130 encryption, plus change of link key.
133 This is the service class that will be searched for on the remote device.
136 is given, the default
138 service class will be used.
139 Known service classes are:
141 .Bl -tag -compact -offset indent -width "DUN"
150 In client mode, the service class may be given as a channel number, for instances
151 where the remote device does not provide Service Discovery.
153 Slave pseudo tty name.
154 If this option is given,
156 will detach from the controlling process after the bluetooth connection is
157 made, and operate over the named
160 Otherwise, stdin/stdout will be used.
163 .Bl -tag -width ".Pa /dev/tty[p-sP-S][0-9a-v]" -compact
164 .It Pa /dev/pty[p-sP-S][0-9a-v]
165 master pseudo terminals
166 .It Pa /dev/tty[p-sP-S][0-9a-v]
167 slave pseudo terminals
172 .Dl rfcomm_sppd -a 00:01:02:03:04:05 -s 1 -t /dev/ttyp1
174 Will open an RFCOMM connection to the server at
175 .Li 00:01:02:03:04:05
178 Once the connection has been established,
182 can be used to communicate with the remote serial port on the
183 server, e.g. with the use of
189 to automatically create a secured link for
192 .Dl pty Qo rfcomm_sppd -a 00:01:02:03:04:05 -s DUN -m secure Qc
207 program first appeared in
213 under the sponsorship of
217 .An Maksim Yevmenkin Aq Mt m_evmenkin@yahoo.com
221 Please report if found.