From owner-freebsd-usb@FreeBSD.ORG Mon Jan 13 06:44:20 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2AC8E643 for ; Mon, 13 Jan 2014 06:44:20 +0000 (UTC) Received: from mta05.bitpro.no (mta05.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id D736318CC for ; Mon, 13 Jan 2014 06:44:19 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta05.bitpro.no (Postfix) with ESMTPS id 7784117FC62; Mon, 13 Jan 2014 07:44:18 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id EB2CA8F37C7; Mon, 13 Jan 2014 07:45:05 +0100 (CET) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DLOhF+rkkgtA; Mon, 13 Jan 2014 07:45:05 +0100 (CET) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) by mail.lockless.no (Postfix) with ESMTPSA id D28D48F37B8; Mon, 13 Jan 2014 07:45:04 +0100 (CET) Message-ID: <52D38B85.8030605@bitfrost.no> Date: Mon, 13 Jan 2014 07:45:25 +0100 From: Hans Petter Selasky Organization: Bitfrost A/S User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: "Lundberg, Johannes" , "freebsd-usb@freebsd.org" , Fredrik Lindberg Subject: Re: GPS ports in uhso References: In-Reply-To: Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Jan 2014 06:44:20 -0000 Hi Fredrik, Can you answer these questions: --HPS On 01/13/14 03:28, Lundberg, Johannes wrote: > Hi > > I've been playing around getting GPS working with my GTM661W and the uhso > driver. > > The ports are defined in uhso.c but in the method > uhso_probe_iface_auto > the GPS and GPSCTL ports are not in the switch(port) case. Is there a > reason for this? > > I tried simply adding like this > > 823 case UHSO_PORT_TYPE_MODEM: > 824 return (UHSO_IFACE_SPEC(UHSO_IF_BULK, > 825 UHSO_PORT_SERIAL, port)); > 826 case UHSO_PORT_TYPE_MSD: > > to > > 823 case UHSO_PORT_TYPE_GPS: > 824 case UHSO_PORT_TYPE_GPSCTL: > 825 case UHSO_PORT_TYPE_MODEM: > 826 return (UHSO_IFACE_SPEC(UHSO_IF_BULK, > 827 UHSO_PORT_SERIAL, port)); > 828 case UHSO_PORT_TYPE_MSD: > > Sorry for the manual patch. I can send a patch file later if needed. > I don't have an antenna at the moment so I can't confirm that the data is > accurate > but I'm getting output similar to what I expect in the GPS port and I can > control it via the GPSCTL port. > > Best regards > -- > Johannes Lundberg >