NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

kern/48172: u3g(4): add 4G Systems XS Stick W14 support



>Number:         48172
>Category:       kern
>Synopsis:       u3g(4): add 4G Systems XS Stick W14 support
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Sep 01 20:10:00 +0000 2013
>Originator:     Reinhard Speyerer
>Release:        6.1.1
>Organization:
>Environment:
NetBSD neneh 6.1.1 NetBSD 6.1.1 (GENERIC) i386
>Description:
The XSStick W14 is switched to 3G mode by the u3ginit code but since its
USB PID 0x9603 is not contained in u3g_devs no ucom devices are created for it.

>How-To-Repeat:
Insert the XSStick W14 into a USB port of a system running NetBSD 6.1.1
>Fix:
Proposed patch:

--- u3g.c.~1~   2013-08-31 13:00:18.000000000 +0200
+++ u3g.c       2013-09-01 20:52:33.000000000 +0200
@@ -262,2 +262,3 @@
        { USB_VENDOR_4GSYSTEMS, USB_PRODUCT_4GSYSTEMS_XSSTICK_P14 },
+       { USB_VENDOR_4GSYSTEMS, USB_PRODUCT_4GSYSTEMS_XSSTICK_W14 },
 };
--- usbdevs.~1~ 2013-09-01 20:26:25.000000000 +0200
+++ usbdevs     2013-09-01 20:51:52.000000000 +0200
@@ -605,2 +605,3 @@
 /* 4G Systems products */
+product 4GSYSTEMS XSSTICK_W14  0x9603  4G Systems XSStick W14
 product 4GSYSTEMS XSSTICK_P14  0x9605  4G Systems XSStick P14

Lacking a kernel build environment this has only be tested using

perl -e 'undef $/; $_ = <>; s/(\x9e\x1c)\x05\x96/$1\x03\x96/; print $_;' 
/netbsd > /netbsd-w14 && cmp -l /netbsd /netbsd-w14

After booting /netbsd-w14 ucom devices are created and AT commands
can be sent to the XSStick W14:
...
Sep  1 20:31:18 netbsd /netbsd: u3ginit0 at uhub3 port 5: Switching to 3G mode
Sep  1 20:31:19 netbsd /netbsd: u3ginit0: detached
Sep  1 20:31:19 netbsd /netbsd: u3ginit0: at uhub3 port 5 (addr 3) disconnected
Sep  1 20:31:21 netbsd /netbsd: u3g0 at uhub3 port 5 configuration 1 interface 0
Sep  1 20:31:21 netbsd /netbsd: ucom0 at u3g0 portno 0: 3G Modem
Sep  1 20:31:21 netbsd /netbsd: u3g1 at uhub3 port 5 configuration 1 interface 1
Sep  1 20:31:21 netbsd /netbsd: ucom1 at u3g1 portno 1: 3G Modem
Sep  1 20:31:21 netbsd /netbsd: u3g2 at uhub3 port 5 configuration 1 interface 2
Sep  1 20:31:21 netbsd /netbsd: ucom2 at u3g2 portno 2: 3G Modem
...

netbsd# cu -l /dev/ttyU2 -s 460800
Connected
at+cgmi
4G Systems GmbH & Co. KG

OK
at+cgmm
W14

OK



Home | Main Index | Thread Index | Old Index