Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Jan 2014 07:45:25 +0100
From:      Hans Petter Selasky <hps@bitfrost.no>
To:        "Lundberg, Johannes" <johannes@brilliantservice.co.jp>,  "freebsd-usb@freebsd.org" <freebsd-usb@freebsd.org>, Fredrik Lindberg <fli@shapeshifter.se>
Subject:   Re: GPS ports in uhso
Message-ID:  <52D38B85.8030605@bitfrost.no>
In-Reply-To: <CAASDrVmgE1nSFtGfV5Aq%2BOjRHUEv4Hum16i%2BKN31sgoQs-gePQ@mail.gmail.com>
References:  <CAASDrVmgE1nSFtGfV5Aq%2BOjRHUEv4Hum16i%2BKN31sgoQs-gePQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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
> 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52D38B85.8030605>