From takamune@buzz.avcp.mei.co.jp  Mon Jan 27 06:13:34 2003
Return-Path: <takamune@buzz.avcp.mei.co.jp>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 2981437B401
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 27 Jan 2003 06:13:34 -0800 (PST)
Received: from buzz.avcp.mei.co.jp (YahooBB218130092132.bbtec.net [218.130.92.132])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 13B5F43F18
	for <FreeBSD-gnats-submit@freebsd.org>; Mon, 27 Jan 2003 06:13:33 -0800 (PST)
	(envelope-from takamune@buzz.avcp.mei.co.jp)
Received: from buzz.avcp.mei.co.jp (localhost [127.0.0.1])
	by buzz.avcp.mei.co.jp (8.12.6/8.12.6) with ESMTP id h0REDQ6C001102;
	Mon, 27 Jan 2003 23:13:26 +0900 (JST)
	(envelope-from takamune@buzz.avcp.mei.co.jp)
Received: (from takamune@localhost)
	by buzz.avcp.mei.co.jp (8.12.6/8.12.6/Submit) id h0REDQa8001101;
	Mon, 27 Jan 2003 23:13:26 +0900 (JST)
Message-Id: <200301271413.h0REDQa8001101@buzz.avcp.mei.co.jp>
Date: Mon, 27 Jan 2003 23:13:26 +0900 (JST)
From: takamune@avrl.mei.co.jp
Reply-To: takamune@avrl.mei.co.jp
To: FreeBSD-gnats-submit@freebsd.org
Cc: takamune@avrl.mei.co.jp
Subject: uvscom for SUNTAC U-Cable TypeD2 (DS96L)
X-Send-Pr-Version: 3.113.1.1

>Number:         47547
>Category:       kern
>Synopsis:       uvscom for SUNTAC U-Cable TypeD2 (DS96L)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 27 06:20:01 PST 2003
>Closed-Date:    Mon Feb 10 16:18:55 PST 2003
>Last-Modified:  Mon Feb 10 16:18:55 PST 2003
>Originator:     Kazu TAKAMUNE
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
Matsushita Electric Industrial Co., Ltd.
>Environment:
FreeBSD 4.7-STABLE (Mon Jan 27 22:26:21 JST)

>Description:

Please refine uvscom driver for an USB cable "SUNTAC U-Cable TypeD2 (DS96L)".
It supports the PDC, the most major cellular phones in Japan!

>How-To-Repeat:

I have just checked it using 'FreeBSD 4.7-STABLE',
not on any 'FreeBSD current' boxes.

1) Make the device file.
    # cd /dev
    # ./MAKEDEV ucom0

2) Rebuild and install kernel and modules.
    # cd /usr/src
    # make buildkernel
    # make installkernel
    # reboot

3) Activate usb daemon.
    [/etc/rc.conf]
    usbd_enable=YES

4) Load the uvscom module.
    # kldload uvscom
   or regist the module for bootstrap.
    [/boot/loader.conf]
    uvscom_load="YES"

5) Then, kernel proves the USB device and attach it to uvscom0.
    # dmesg | grep uvscom0
    uvscom0: Sun Corporation SCC div. SUNTAC DS96L, rev 1.00/0.01, addr 2
    uvscom0: at uhub0 port 2 (addr 2) disconnected
    uvscom0: detached
    uvscom0: Sun Corporation SCC div. SUNTAC DS96L, rev 1.00/0.01, addr 2

    # usbdevs -v
    Controller /dev/usb0:
    addr 1: self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00
     port 1 powered
     port 2 addr 2: power 100 mA, config 1, SUNTAC DS96L(0x0003), Sun Corporation SCC div.(0x05db), rev 0.01

6) Try to talk the device directly.
    [ppp.conf]
    pdc:
     set device /dev/ucom0

    # ppp pcpd pdc
    Working in interactive mode
    Using interface: tun0
    ppp ON buzz> term
    deflink: Entering terminal mode on /dev/ucom0
    Type `~?' for help
    AT
    OK
    
    ppp ON buzz> 

>Fix:
Index: sys/dev/usb/usbdevs
===================================================================
RCS file: /c/ncvs/src/sys/dev/usb/usbdevs,v
retrieving revision 1.11.2.32
diff -u -u -r1.11.2.32 usbdevs
--- sys/dev/usb/usbdevs	11 Dec 2002 20:54:47 -0000	1.11.2.32
+++ sys/dev/usb/usbdevs	27 Jan 2003 03:43:00 -0000
@@ -1029,6 +1029,7 @@
 product STSN STSN0001		0x0001	Internet Access Device
 
 /* SUN Corporation products */
+product SUNTAC DS96L		0x0003	SUNTAC U-Cable type D2
 product SUNTAC PS64P1		0x0005	SUNTAC U-Cable type P1
 product SUNTAC VS10U		0x0009	SUNTAC Slipper U
 
Index: sys/dev/usb/uvscom.c
===================================================================
RCS file: /c/ncvs/src/sys/dev/usb/uvscom.c,v
retrieving revision 1.9.2.1
diff -u -u -r1.9.2.1 uvscom.c
--- sys/dev/usb/uvscom.c	8 Aug 2002 18:45:04 -0000	1.9.2.1
+++ sys/dev/usb/uvscom.c	27 Jan 2003 12:40:10 -0000
@@ -210,6 +210,8 @@
 static const struct usb_devno uvscom_devs [] = {
 	/* SUNTAC U-Cable type P1 */
 	{ USB_VENDOR_SUNTAC, USB_PRODUCT_SUNTAC_PS64P1 },
+	/* SUNTAC U-Cable type D2 */
+	{ USB_VENDOR_SUNTAC, USB_PRODUCT_SUNTAC_DS96L },
 	/* SUNTAC Slipper U */
 	{ USB_VENDOR_SUNTAC, USB_PRODUCT_SUNTAC_VS10U },
 };
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: sanpei 
State-Changed-When: Mon Feb 10 16:17:25 PST 2003 
State-Changed-Why:  
Commited(sys/dev/usb/usbdevs 1.112) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=47547 
>Unformatted:
