From owner-freebsd-usb@FreeBSD.ORG Sun Apr 2 22:30:21 2006 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 65C4616A400 for ; Sun, 2 Apr 2006 22:30:21 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id D463F43D48 for ; Sun, 2 Apr 2006 22:30:20 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k32MUKke056502 for ; Sun, 2 Apr 2006 22:30:20 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k32MUK7f056501; Sun, 2 Apr 2006 22:30:20 GMT (envelope-from gnats) Resent-Date: Sun, 2 Apr 2006 22:30:20 GMT Resent-Message-Id: <200604022230.k32MUK7f056501@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Andy Sparrow Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CC21716A400 for ; Sun, 2 Apr 2006 22:27:10 +0000 (UTC) (envelope-from andy@spadger.best.vwh.net) Received: from rwcrmhc14.comcast.net (rwcrmhc14.comcast.net [204.127.192.84]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6EDDB43D45 for ; Sun, 2 Apr 2006 22:27:10 +0000 (GMT) (envelope-from andy@spadger.best.vwh.net) Received: from spadger.best.vwh.net (c-67-171-10-174.hsd1.wa.comcast.net[67.171.10.174]) by comcast.net (rwcrmhc14) with ESMTP id <20060402222709m1400skt2ve>; Sun, 2 Apr 2006 22:27:09 +0000 Received: by spadger.best.vwh.net (Postfix, from userid 1001) id 0AFDB8D3; Sun, 2 Apr 2006 15:27:07 -0700 (PDT) Message-Id: <20060402222708.0AFDB8D3@spadger.best.vwh.net> Date: Sun, 2 Apr 2006 15:27:07 -0700 (PDT) From: Andy Sparrow To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: usb/95241: Patch to add USB ID for OEM Pharos 360 GPS X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Andy Sparrow List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Apr 2006 22:30:21 -0000 >Number: 95241 >Category: usb >Synopsis: Patch to add USB ID for OEM Pharos 360 GPS >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: Sun Apr 02 22:30:20 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Andy Sparrow >Release: FreeBSD 5.5-PRERELEASE i386 >Organization: None >Environment: System: FreeBSD dell 5.5-PRERELEASE FreeBSD 5.5-PRERELEASE #12: Sat Apr 1 14:33:56 PST 2006 root@dell:/usr/src/sys/i386/compile/dell i386 >Description: The Pharos 360 GPS is a SiRF-II chipset USB GPS that outputs NMEA data and should work with NTP or any NMEA-aware GPS program. GPSD rates support for this device as "good". It uses a Prolific PL2303 USB->serial cable. Microsoft bundles an OEM version with some editions of Streets and Trips, but they use a unique ID for the PL2303, thus it is not recognised by the uplcom driver. Without this patch, the device winds up attached to ugenX instead of ucomX. NetBSD had PR #293371 for this in Oct 2004. >How-To-Repeat: Plug a Pharos 360 OEM GPS (as shipped by Microsoft with Streets and Trips) into a USB port. Observe how the PL2303 USB->serial adapter isn't recognised because it has a unique ID, and thus gets attached as ugenX. >Fix: The following is trivially altered from the BSD patch in the PR, man page addition is new: --- sys/dev/usb/usbdevs.orig Sat Apr 1 12:42:17 2006 +++ sys/dev/usb/usbdevs Sat Apr 1 12:49:24 2006 @@ -1158,6 +1158,7 @@ product PROLIFIC PL2305 0x2305 Parallel printer adapter product PROLIFIC ATAPI4 0x2307 ATAPI-4 Bridge Controller product PROLIFIC PL2501 0x2501 PL2501 Host-Host interface +product PROLIFIC MSGPS 0xaaa0 PL2303 Serial adapter (MS OEM Pharos 360 GPS) product PROLIFIC RSAQ3 0xaaa2 PL2303 Serial adapter (IODATA USB-RSAQ3) /* Putercom products */ --- sys/dev/usb/uplcom.c.orig Sat Apr 1 12:43:55 2006 +++ sys/dev/usb/uplcom.c Sat Apr 1 12:49:52 2006 @@ -258,6 +258,8 @@ { USB_VENDOR_HAL, USB_PRODUCT_HAL_IMR001, -1, TYPE_PL2303 }, /* Sitecom USB to Serial */ { USB_VENDOR_SITECOM, USB_PRODUCT_SITECOM_SERIAL, -1, TYPE_PL2303 }, + /* Pharos 360 USB GPS - Microsoft version */ + { USB_VENDOR_PROLIFIC, USB_PRODUCT_PROLIFIC_MSGPS, -1, TYPE_PL2303 }, { 0, 0 } }; --- share/man/man4/uplcom.4.orig Sun Apr 2 15:18:25 2006 +++ share/man/man4/uplcom.4 Sun Apr 2 15:18:05 2006 @@ -70,6 +70,8 @@ .It I/O DATA USB-RSAQ2 .It +Microsoft OEM GPS (bundled Pharos 360) +.It PLANEX USB-RS232 URS-03 .It RATOC REX-USB60 >Release-Note: >Audit-Trail: >Unformatted: