usb/134117: [Patch] Add support for 'Option GlobeTrotter HSDPA Modem' to dev/usb/serial/u3g.c

Flemming Jacobsen fj at batmule.dk
Thu Apr 30 20:30:06 UTC 2009


>Number:         134117
>Category:       usb
>Synopsis:       [Patch] Add support for 'Option GlobeTrotter HSDPA Modem' to dev/usb/serial/u3g.c
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-usb
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 30 20:30:06 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Flemming Jacobsen
>Release:        8.0-CURRENT
>Organization:
>Environment:
FreeBSD heartofgold.batmule.dk 8.0-CURRENT FreeBSD 8.0-CURRENT #2: Thu Apr 30 21:50:09 CEST 2009     fj at heartofgold.batmule.dk:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
The attached +2 line patch adds support for the 'Option GlobeTrotter HSDPA Modem'.
This 3G modem is used by Sonofon in Denmark.

After patching:
The system sees 3 serial devices. I have no idea what the first two are used for.
I use /dev/cuaU0.2 for ppp. Apart from this, the ppp.conf goes just like PHKs example.

heartofgold ~ 4> tip u3g2
can't open log file /var/log/aculog.
connected
at
OK
ati
Manufacturer: Option N.V.
Model: GlobeTrotter HSDPA Modem
Revision: 2.4.6Hd (Date: Oct 04 2007, Time: 14:11:38)

OK

The USB dongle says:
0682   FCC ID: NCMOGI0225 Model: GI0225
>How-To-Repeat:
Insert USB dongle, observe that it isn't recognized  ;-)
>Fix:
Apply attached patch in /usr/src/sys.

Patch attached with submission follows:

Index: dev/usb/usbdevs
===================================================================
RCS file: /home/ncvs/src/sys/dev/usb/usbdevs,v
retrieving revision 1.409
diff -u -r1.409 usbdevs
--- dev/usb/usbdevs	21 Apr 2009 05:06:31 -0000	1.409
+++ dev/usb/usbdevs	30 Apr 2009 19:47:53 -0000
@@ -1911,6 +1911,7 @@
 product OPTION GTICON322	0xd033	GlobeTrotter Icon322 storage
 product OPTION GTMAX36		0x6701	GlobeTrotter Max 3.6 Modem
 product OPTION GTMAXHSUPA	0x7001	GlobeTrotter HSUPA
+product OPTION GTHSDPA		0x6971	GlobeTrotter HSDPA Modem
 
 /* OQO */
 product OQO WIFI01		0x0002	model 01 WiFi interface
Index: dev/usb/serial/u3g.c
===================================================================
RCS file: /home/ncvs/src/sys/dev/usb/serial/u3g.c,v
retrieving revision 1.7
diff -u -r1.7 u3g.c
--- dev/usb/serial/u3g.c	5 Apr 2009 18:20:38 -0000	1.7
+++ dev/usb/serial/u3g.c	30 Apr 2009 19:49:10 -0000
@@ -165,6 +165,7 @@
 	{USB_VPI(USB_VENDOR_OPTION, USB_PRODUCT_OPTION_GTMAX36, U3GFL_NONE)},
 	{USB_VPI(USB_VENDOR_OPTION, USB_PRODUCT_OPTION_GTMAXHSUPA, U3GFL_NONE)},
 	{USB_VPI(USB_VENDOR_OPTION, USB_PRODUCT_OPTION_VODAFONEMC3G, U3GFL_NONE)},
+	{USB_VPI(USB_VENDOR_OPTION, USB_PRODUCT_OPTION_GTHSDPA, U3GFL_NONE)},
 	/* OEM: Qualcomm, Inc. */
 	{USB_VPI(USB_VENDOR_QUALCOMMINC, USB_PRODUCT_QUALCOMMINC_ZTE_STOR, U3GFL_SCSI_EJECT)},
 	{USB_VPI(USB_VENDOR_QUALCOMMINC, USB_PRODUCT_QUALCOMMINC_CDMA_MSM, U3GFL_SCSI_EJECT)},


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-usb mailing list