1*53484f51SAlexander Ziaee.\"- 2*53484f51SAlexander Ziaee.\" SPDX-License-Identifier: ISC 3483b9e47SNick Hibma.\" 4483b9e47SNick Hibma.\" Copyright (c) 2008 AnyWi Technologies 5483b9e47SNick Hibma.\" All rights reserved. 6483b9e47SNick Hibma.\" 7483b9e47SNick Hibma.\" This code is derived from uark.c 8483b9e47SNick Hibma.\" 9483b9e47SNick Hibma.\" Permission to use, copy, modify, and distribute this software for any 10483b9e47SNick Hibma.\" purpose with or without fee is hereby granted, provided that the above 11483b9e47SNick Hibma.\" copyright notice and this permission notice appear in all copies. 12483b9e47SNick Hibma.\" 13483b9e47SNick Hibma.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 14483b9e47SNick Hibma.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 15483b9e47SNick Hibma.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 16483b9e47SNick Hibma.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 17483b9e47SNick Hibma.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 18483b9e47SNick Hibma.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 19483b9e47SNick Hibma.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 20483b9e47SNick Hibma.\" 21*53484f51SAlexander Ziaee.Dd December 5, 2024 22483b9e47SNick Hibma.Dt U3G 4 23483b9e47SNick Hibma.Os 24483b9e47SNick Hibma.Sh NAME 25483b9e47SNick Hibma.Nm u3g 26*53484f51SAlexander Ziaee.Nd USB support for 3G and 4G cellular modems 27483b9e47SNick Hibma.Sh SYNOPSIS 28483b9e47SNick HibmaTo compile this driver into the kernel, 29483b9e47SNick Hibmaplace the following lines in your 30483b9e47SNick Hibmakernel configuration file: 31483b9e47SNick Hibma.Bd -ragged -offset indent 3299fc5899SMartin Wilke.Cd "device usb" 3399fc5899SMartin Wilke.Cd "device ucom" 34483b9e47SNick Hibma.Cd "device u3g" 35483b9e47SNick Hibma.Ed 36483b9e47SNick Hibma.Pp 37483b9e47SNick HibmaAlternatively, to load the driver as a 38483b9e47SNick Hibmamodule at boot time, place the following line in 39483b9e47SNick Hibma.Xr loader.conf 5 : 40483b9e47SNick Hibma.Bd -literal -offset indent 41483b9e47SNick Hibmau3g_load="YES" 42483b9e47SNick Hibma.Ed 43cfab30baSDon Lewis.Pp 44*53484f51SAlexander ZiaeeIf neither of the above is done, the driver will be 45*53484f51SAlexander Ziaeeautomatically loaded by devd(8) when the device is connected. 46483b9e47SNick Hibma.Sh DESCRIPTION 47483b9e47SNick HibmaThe 48483b9e47SNick Hibma.Nm 49*53484f51SAlexander Ziaeedriver provides support for USB-to-serial interfaces 50*53484f51SAlexander Ziaeeexposed by many 3G and 4G modems. 51*53484f51SAlexander ZiaeeThe supported adapters provide the necessary modem port for 52*53484f51SAlexander Ziaee.Xr ppp 8 , 53*53484f51SAlexander Ziaeeor 54*53484f51SAlexander Ziaee.Pa net/mpd5 55*53484f51SAlexander Ziaeeconnections. 56*53484f51SAlexander ZiaeeDepending on the specific device, extra ports provide other functions 57*53484f51SAlexander Ziaeesuch as an additional command port, diagnostic port, 58*53484f51SAlexander ZiaeeGPS receiver port, or SIM toolkit port. 59483b9e47SNick Hibma.Pp 60483b9e47SNick HibmaThe device is accessed through the 61483b9e47SNick Hibma.Xr ucom 4 62483b9e47SNick Hibmadriver which makes it behave like a 63483b9e47SNick Hibma.Xr tty 4 . 64*53484f51SAlexander Ziaee.Pp 65*53484f51SAlexander ZiaeeIn some adapters a mass storage device supported by the 66*53484f51SAlexander Ziaee.Xr umass 4 67*53484f51SAlexander Ziaeedriver is present which contains Windows and Mac OS X drivers. 68*53484f51SAlexander ZiaeeThe device starts up in disk mode (TruInstall, ZeroCD, etc.) 69*53484f51SAlexander Ziaeeand requires additional commands to switch it to modem mode. 70*53484f51SAlexander ZiaeeIf your device is not switching automatically, please try to add quirks. 71*53484f51SAlexander ZiaeeSee 72*53484f51SAlexander Ziaee.Xr usbconfig 8 73*53484f51SAlexander Ziaeeand 74*53484f51SAlexander Ziaee.Xr usb_quirk 4 . 75483b9e47SNick Hibma.Sh HARDWARE 76483b9e47SNick HibmaThe 77483b9e47SNick Hibma.Nm 78*53484f51SAlexander Ziaeedriver supports the following cellular modems: 79483b9e47SNick Hibma.Pp 80483b9e47SNick Hibma.Bl -bullet -compact 81483b9e47SNick Hibma.It 82*53484f51SAlexander ZiaeeOption GT 3G Fusion, GT Fusion Quad, etc. 83*53484f51SAlexander Ziaee.Pq 3G only, not WLAN 84483b9e47SNick Hibma.It 85c5b659eeSNick HibmaOption GT 3G, GT 3G Quad, etc. 86483b9e47SNick Hibma.It 87483b9e47SNick HibmaVodafone Mobile Connect Card 3G 88483b9e47SNick Hibma.It 89b733be57SHans Petter SelaskyVodafone Mobile Broadband K3772-Z 90b733be57SHans Petter Selasky.It 917b253479SNick HibmaQualcomm Inc. CDMA MSM 927b253479SNick Hibma.It 931fbd574eSWarner LoshQualcomm Inc. GOBI 1000, 2000 and 3000 devices with MDM1000 or MDM2000 chipsets 941fbd574eSWarner Losh.It 95*53484f51SAlexander ZiaeeQUECTEL BGX, ECX, EGX, EMX, EPX, RGX series 96217481a3SAlexander V. Chernikov.It 97*53484f51SAlexander ZiaeeQuectel EM160R 98*53484f51SAlexander Ziaee.Pq see Sx CAVEATS 9971af885aSAllan Jude.It 10075d41cb6SMichael PaepckeHuawei B190, E180v, E220, E3372, E3372v153, E5573Cs322, ('<Huawei Mobile>') 101483b9e47SNick Hibma.It 10236cf7448SHiroki SatoNovatel U740, MC950D, X950D, etc. 1037b253479SNick Hibma.It 104c5b659eeSNick HibmaSierra MC875U, MC8775U, etc. 105bb130ff3SWarner Losh.It 106bb130ff3SWarner LoshPanasonic CF-F9 GOBI 107483b9e47SNick Hibma.El 108a460bc83SNick Hibma.Pp 109*53484f51SAlexander ZiaeeMany more are supported, see 11036cf7448SHiroki Sato.Pa /sys/dev/usb/serial/u3g.c 111*53484f51SAlexander Ziaeefor the complete list. 1124f4acb65SEdward Tomasz Napierala.Sh FILES 113fa196deaSEdward Tomasz Napierala.Bl -tag -width "/dev/ttyU*.*.init" -compact 114fa196deaSEdward Tomasz Napierala.It Pa /dev/ttyU*.* 1154f4acb65SEdward Tomasz Napieralafor callin ports 116fa196deaSEdward Tomasz Napierala.It Pa /dev/ttyU*.*.init 117fa196deaSEdward Tomasz Napierala.It Pa /dev/ttyU*.*.lock 1184f4acb65SEdward Tomasz Napieralacorresponding callin initial-state and lock-state devices 1194f4acb65SEdward Tomasz Napierala.Pp 120fa196deaSEdward Tomasz Napierala.It Pa /dev/cuaU*.* 1214f4acb65SEdward Tomasz Napieralafor callout ports 122fa196deaSEdward Tomasz Napierala.It Pa /dev/cuaU*.*.init 123fa196deaSEdward Tomasz Napierala.It Pa /dev/cuaU*.*.lock 1244f4acb65SEdward Tomasz Napieralacorresponding callout initial-state and lock-state devices 1254f4acb65SEdward Tomasz Napierala.El 12694df44eeSEdward Tomasz Napierala.Sh EXAMPLES 12794df44eeSEdward Tomasz NapieralaConnect to the Internet using the default configuration: 12894df44eeSEdward Tomasz Napierala.Bd -literal -offset indent 12994df44eeSEdward Tomasz Napieralappp -background u3g 13094df44eeSEdward Tomasz Napierala.Ed 131483b9e47SNick Hibma.Sh SEE ALSO 132483b9e47SNick Hibma.Xr tty 4 , 133483b9e47SNick Hibma.Xr ucom 4 , 1340ea0127aSNick Hibma.Xr usb 4 , 1350ea0127aSNick Hibma.Xr usb_quirk 4 , 136cfab30baSDon Lewis.Xr devd 8 , 13794df44eeSEdward Tomasz Napierala.Xr ppp 8 , 138814b16baSGlen Barber.Xr usbconfig 8 139483b9e47SNick Hibma.Sh HISTORY 140483b9e47SNick HibmaThe 141483b9e47SNick Hibma.Nm 1420df76605SChristian Bruefferdriver appeared in 1432a72feb4SChristian Brueffer.Fx 7.2 , 1440df76605SChristian Bruefferis based on the 1450df76605SChristian Brueffer.Xr uark 4 1460df76605SChristian Bruefferdriver, and written by 1476c899950SBaptiste Daroussin.An Andrea Guzzo Aq Mt aguzzo@anywi.com 148483b9e47SNick Hibmain September 2008. 149483b9e47SNick Hibma.Sh AUTHORS 1506c899950SBaptiste Daroussin.An -nosplit 151483b9e47SNick HibmaThe 152483b9e47SNick Hibma.Nm 153483b9e47SNick Hibmadriver was written by 1546c899950SBaptiste Daroussin.An Andrea Guzzo Aq Mt aguzzo@anywi.com 155c3fed0bbSNick Hibmaand 1566c899950SBaptiste Daroussin.An Nick Hibma Aq Mt n_hibma@FreeBSD.org . 1570df76605SChristian BruefferHardware for testing was provided by AnyWi Technologies, Leiden, NL. 15871af885aSAllan Jude.Sh CAVEATS 15971af885aSAllan JudeThe Quectel EM160R is not officially supported in PPP mode. 16071af885aSAllan JudeIn order to use it in PPP mode, the ctsrts option needs to be turned off, 16171af885aSAllan Judefor example, by adding: 162*53484f51SAlexander Ziaee.Pp 16371af885aSAllan Jude.Dl set ctsrts off 164*53484f51SAlexander Ziaee.Pp 16571af885aSAllan Judeto 16671af885aSAllan Jude.Pa /etc/ppp/ppp.conf 16771af885aSAllan Judein the correct section. 168d790c915SJoel Dahl.Sh BUGS 169d790c915SJoel DahlThe automatic mode switch from disk mode to modem mode does not work unless 170d790c915SJoel Dahlthe driver is either built into the kernel or loaded before the device is 171d790c915SJoel Dahlconnected. 172bb130ff3SWarner Losh.Pp 1731fbd574eSWarner LoshThe GOBI-based devices require the gobi loader available from the 174070264ccSWarner Losh.Pa sysutils/gobi_loader 175070264ccSWarner Loshport. 176