From owner-freebsd-usb@FreeBSD.ORG Tue Jan 14 11:58:39 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id DC663246 for ; Tue, 14 Jan 2014 11:58:39 +0000 (UTC) Received: from mta05.bitpro.no (mta05.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id 934BB1DC3 for ; Tue, 14 Jan 2014 11:58:39 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta05.bitpro.no (Postfix) with ESMTPS id 0F9AA17FC8D; Tue, 14 Jan 2014 12:58:37 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id EA0BA8F9462; Tue, 14 Jan 2014 12:59:24 +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 oPPVtJuT8f04; Tue, 14 Jan 2014 12:59:24 +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 328278F9395; Tue, 14 Jan 2014 12:59:24 +0100 (CET) Message-ID: <52D526AF.6030202@bitfrost.no> Date: Tue, 14 Jan 2014 12:59:43 +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: Fredrik Lindberg , "Lundberg, Johannes" Subject: Re: GPS ports in uhso References: <45d9ccac366912a0d241c67016714615@shapeshifter.se> In-Reply-To: <45d9ccac366912a0d241c67016714615@shapeshifter.se> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-usb@freebsd.org 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: Tue, 14 Jan 2014 11:58:39 -0000 Hi Johannes, Can you make a properly formatted patch when this feature is tested and works? --HPS On 01/13/14 10:03, Fredrik Lindberg wrote: > On 13.01.2014 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? >> > > The only reason is that I didn't have a modem with a GPS port to test with > when I wrote it, so I never added it since I didn't know if anything else > was needed to get it working. > >> 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. >> > > If you get GPS data and are able to use the port, then just add it :) > > Fredrik > > _______________________________________________ > freebsd-usb@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-usb > To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org" > >