xref: /freebsd/share/man/man4/ufoma.4 (revision fa9896e082a1046ff4fbc75fcba4d18d1f2efc19)
197eeba7fSTakanori Watanabe.\" Copyright (c) 2006 Takanori Watanabe.
297eeba7fSTakanori Watanabe.\" All rights reserved.
397eeba7fSTakanori Watanabe.\"
497eeba7fSTakanori Watanabe.\" This code is derived from software contributed to The NetBSD Foundation
597eeba7fSTakanori Watanabe.\" by Lennart Augustsson.
697eeba7fSTakanori Watanabe.\"
797eeba7fSTakanori Watanabe.\" Redistribution and use in source and binary forms, with or without
897eeba7fSTakanori Watanabe.\" modification, are permitted provided that the following conditions
997eeba7fSTakanori Watanabe.\" are met:
1097eeba7fSTakanori Watanabe.\" 1. Redistributions of source code must retain the above copyright
1197eeba7fSTakanori Watanabe.\"    notice, this list of conditions and the following disclaimer.
1297eeba7fSTakanori Watanabe.\" 2. Redistributions in binary form must reproduce the above copyright
1397eeba7fSTakanori Watanabe.\"    notice, this list of conditions and the following disclaimer in the
1497eeba7fSTakanori Watanabe.\"    documentation and/or other materials provided with the distribution.
1597eeba7fSTakanori Watanabe.\"
1697eeba7fSTakanori Watanabe.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
1797eeba7fSTakanori Watanabe.\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
1897eeba7fSTakanori Watanabe.\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
1997eeba7fSTakanori Watanabe.\" PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
2097eeba7fSTakanori Watanabe.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2197eeba7fSTakanori Watanabe.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2297eeba7fSTakanori Watanabe.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2397eeba7fSTakanori Watanabe.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2497eeba7fSTakanori Watanabe.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2597eeba7fSTakanori Watanabe.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2697eeba7fSTakanori Watanabe.\" POSSIBILITY OF SUCH DAMAGE.
2797eeba7fSTakanori Watanabe.\"
28*99fc5899SMartin Wilke.Dd November 20, 2011
2997eeba7fSTakanori Watanabe.Dt UFOMA 4
3097eeba7fSTakanori Watanabe.Os
3197eeba7fSTakanori Watanabe.Sh NAME
3297eeba7fSTakanori Watanabe.Nm ufoma
3397eeba7fSTakanori Watanabe.Nd USB mobile phone support
3497eeba7fSTakanori Watanabe.Sh SYNOPSIS
350a771a3bSChristian BruefferTo compile this driver into the kernel,
360a771a3bSChristian Bruefferplace the following lines in your
370a771a3bSChristian Bruefferkernel configuration file:
380a771a3bSChristian Brueffer.Bd -ragged -offset indent
39*99fc5899SMartin Wilke.Cd "device usb"
40*99fc5899SMartin Wilke.Cd "device ucom"
4197eeba7fSTakanori Watanabe.Cd "device ufoma"
420a771a3bSChristian Brueffer.Ed
430a771a3bSChristian Brueffer.Pp
440a771a3bSChristian BruefferAlternatively, to load the driver as a
450a771a3bSChristian Brueffermodule at boot time, place the following line in
460a771a3bSChristian Brueffer.Xr loader.conf 5 :
470a771a3bSChristian Brueffer.Bd -literal -offset indent
480a771a3bSChristian Bruefferufoma_load="YES"
490a771a3bSChristian Brueffer.Ed
5097eeba7fSTakanori Watanabe.Sh DESCRIPTION
5197eeba7fSTakanori WatanabeThe
5297eeba7fSTakanori Watanabe.Nm
53b792c4fbSTakanori Watanabedriver provides support for USB mobile phone terminals in the subset of
54b792c4fbSTakanori Watanabethe Mobile Computing Promotion Consortium USB Implementation Guideline,
5597eeba7fSTakanori Watanabewhich is adopted by FOMA, the NTT DoCoMo 3G system, terminal.
56b792c4fbSTakanori WatanabeThese are partly like CDC ACM model based modems, which are supported
5797eeba7fSTakanori Watanabeby
58b792c4fbSTakanori Watanabe.Xr umodem 4 ,
59b792c4fbSTakanori Watanabebut the
60b792c4fbSTakanori Watanabe.Nm
61ae91966bSRuslan Ermilovdriver recognizes a specific USB descriptor that describes its role and
6297eeba7fSTakanori Watanabeinterface structure, and it will negotiate its role when the device is open.
63b792c4fbSTakanori WatanabeThey support a regular AT command set and
64b792c4fbSTakanori Watanabethe commands can either be multiplexed with the data stream
6597eeba7fSTakanori Watanabeor handled through separate pipes.
6697eeba7fSTakanori WatanabeIn the latter case the AT
6797eeba7fSTakanori Watanabecommands have to be given on a device separate from the data device.
6897eeba7fSTakanori Watanabe.Pp
6997eeba7fSTakanori WatanabeThe device is accessed through the
7097eeba7fSTakanori Watanabe.Xr ucom 4
7197eeba7fSTakanori Watanabedriver which makes it behave like a
7297eeba7fSTakanori Watanabe.Xr tty 4 .
7397eeba7fSTakanori Watanabe.Sh SYSCTLS
74ae91966bSRuslan ErmilovThese devices often have a few interface sets and these interfaces
75ae91966bSRuslan Ermilovhave their role, sometimes multiplexed.
76ae91966bSRuslan ErmilovThese roles are identified with the following sysctl MIBs:
7797eeba7fSTakanori Watanabe.Bl -tag -width indent
7897eeba7fSTakanori Watanabe.It Va dev.ucom.%d.supportmode
79b792c4fbSTakanori WatanabeThe modes which are supported by the interface.
8097eeba7fSTakanori Watanabe.It Va dev.ucom.%d.currentmode
8197eeba7fSTakanori WatanabeCurrent mode of the interface.
8297eeba7fSTakanori Watanabe.It Va dev.ucom.%d.openmode
8397eeba7fSTakanori WatanabeMode to transit when the device is open next.
8497eeba7fSTakanori Watanabe.El
85b792c4fbSTakanori WatanabeThe modes are as follows:
8697eeba7fSTakanori Watanabe.Bl -tag -width indent
87ae91966bSRuslan Ermilov.It Li modem
8897eeba7fSTakanori WatanabeAccepts AT commands and go and pass packet communication data.
89ae91966bSRuslan Ermilov.It Li handsfree
9097eeba7fSTakanori WatanabeAccepts AT commands but it does not pass data.
91ae91966bSRuslan Ermilov.It Li obex
9297eeba7fSTakanori WatanabeAccepts OBEX frame which is used to exchange telephone book, etc.
93ae91966bSRuslan Ermilov.It Li vendor1 , vendor2
94ae91966bSRuslan ErmilovVendor specific data may be passed.
95ae91966bSRuslan Ermilov.It Li deactivated
96ae91966bSRuslan ErmilovWhen an interface is recognized by the system but not used, the interface
97ae91966bSRuslan Ermilovwill be set to this mode.
98ae91966bSRuslan Ermilov.It Li unlinked
99ae91966bSRuslan ErmilovWhen an interface is not yet negotiated, the interface is in this mode.
10097eeba7fSTakanori Watanabe.El
10197eeba7fSTakanori Watanabe.Sh HARDWARE
10297eeba7fSTakanori WatanabeDevices supported by the
10397eeba7fSTakanori Watanabe.Nm
10497eeba7fSTakanori Watanabedriver include:
10597eeba7fSTakanori Watanabe.Pp
10697eeba7fSTakanori Watanabe.Bl -bullet -compact
10797eeba7fSTakanori Watanabe.It
10897eeba7fSTakanori WatanabeSHARP FOMA SH902i
10997eeba7fSTakanori Watanabe.It
11097eeba7fSTakanori WatanabeKYOCERA PHS AH-K3001V (a.k.a Kyopon)
1110fff54f0STakanori Watanabe.It
1120fff54f0STakanori WatanabeSANYO Vodafone3G V801SA
11397eeba7fSTakanori Watanabe.El
11497eeba7fSTakanori Watanabe.Sh SEE ALSO
115ae91966bSRuslan ErmilovSpecification can be found at:
116a2800e24STakanori Watanabe.Pp
117ae91966bSRuslan Ermilov.Bl -item -compact
118ae91966bSRuslan Ermilov.It
119ae91966bSRuslan Ermilov.Pa http://www.nttdocomo.co.jp/corporate/technology/document/foma/index.html
120ae91966bSRuslan Ermilov.It
121ae91966bSRuslan Ermilov.Pa http://www.mcpc-jp.org/doclist.htm
122ae91966bSRuslan Ermilov.El
123a2800e24STakanori Watanabe.Pp
12497eeba7fSTakanori Watanabe.Xr tty 4 ,
12597eeba7fSTakanori Watanabe.Xr ucom 4 ,
12697eeba7fSTakanori Watanabe.Xr umodem 4 ,
12797eeba7fSTakanori Watanabe.Xr usb 4
12897eeba7fSTakanori Watanabe.Sh HISTORY
12997eeba7fSTakanori WatanabeThe
13097eeba7fSTakanori Watanabe.Nm
13197eeba7fSTakanori Watanabedriver
13297eeba7fSTakanori Watanabeappeared in
133ae91966bSRuslan Ermilov.Fx 7.0 ,
134ae91966bSRuslan Ermilovpartly derived from the
13597eeba7fSTakanori Watanabe.Xr umodem 4
13697eeba7fSTakanori Watanabecode.
13797eeba7fSTakanori Watanabe.Sh BUGS
13897eeba7fSTakanori WatanabeInterfaces with multiplexed commands and data and interfaces with
13997eeba7fSTakanori Watanabecommands only are supported.
140