Date: Mon, 20 Jan 2014 15:28:53 +0900 From: "Lundberg, Johannes" <johannes@brilliantservice.co.jp> To: Hans Petter Selasky <hps@bitfrost.no> Cc: "freebsd-usb@freebsd.org" <freebsd-usb@freebsd.org> Subject: Re: GPS ports in uhso Message-ID: <CAASDrVm6sjjtjnmFP8U2pMsja-k3-AiO7_Er8ZW=Ovzbyh65kA@mail.gmail.com> In-Reply-To: <CAASDrV=Bzqp9YxqUCgBGjx91ViFYz0yn%2BuN0%2BJO9ged6QuLRGQ@mail.gmail.com> References: <CAASDrVmgE1nSFtGfV5Aq%2BOjRHUEv4Hum16i%2BKN31sgoQs-gePQ@mail.gmail.com> <45d9ccac366912a0d241c67016714615@shapeshifter.se> <52D526AF.6030202@bitfrost.no> <CAASDrV=Bzqp9YxqUCgBGjx91ViFYz0yn%2BuN0%2BJO9ged6QuLRGQ@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] Hi Here is a patch for uhso.c. It contains two parts, adding the GTM661W to the uhso driver and adding the GPS and GPSCTL ports to auto detection. -- Johannes Lundberg BRILLIANTSERVICE CO., LTD. On Tue, Jan 14, 2014 at 9:02 PM, Lundberg, Johannes < johannes@brilliantservice.co.jp> wrote: > Yes. I will do it during this week and get back to you with a patch. > > > -- > Johannes Lundberg > BRILLIANTSERVICE CO., LTD. > > > On Tue, Jan 14, 2014 at 8:59 PM, Hans Petter Selasky <hps@bitfrost.no>wrote: > >> 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" >>> >>> >>> >> > -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- $BHkL)J];}$K$D$$$F!'$3$NEE;R%a!<%k$O!"L>08?M$KAw?.$7$?$b$N$G$"$j!"HkF?FC8"$NBP>]$H$J$k>pJs$r4^$s$G$$$^$9!#(B $B$b$7!"L>08?M0J30$NJ}$,<u?.$5$l$?>l9g!"$3$N%a!<%k$NGK4~!"$*$h$S$3$N%a!<%k$K4X$9$k0l@Z$N3+<(!"(B $BJ#<L!"G[I[!"$=$NB>$NMxMQ!"$^$?$O5-:\FbMF$K4p$E$/$$$+$J$k9TF0$b$5$l$J$$$h$&$*4j$$?=$7>e$2$^$9!#(B --- CONFIDENTIALITY NOTE: The information in this email is confidential and intended solely for the addressee. Disclosure, copying, distribution or any other action of use of this email by person other than intended recipient, is prohibited. If you are not the intended recipient and have received this email in error, please destroy the original message. [-- Attachment #2 --] Index: sys/dev/usb/net/uhso.c =================================================================== --- sys/dev/usb/net/uhso.c (revision 260902) +++ sys/dev/usb/net/uhso.c (working copy) @@ -283,6 +283,8 @@ UHSO_DEV(OPTION, ICON505, UHSO_AUTO_IFACE), /* Option iCON 452 */ UHSO_DEV(OPTION, ICON505, UHSO_AUTO_IFACE), + /* Option GTM661W */ + UHSO_DEV(OPTION, GTM661W, UHSO_AUTO_IFACE), #undef UHSO_DEV }; @@ -817,6 +819,8 @@ UHSO_PORT_SERIAL | UHSO_PORT_NETWORK, port)); case UHSO_PORT_TYPE_DIAG: case UHSO_PORT_TYPE_DIAG2: + case UHSO_PORT_TYPE_GPS: + case UHSO_PORT_TYPE_GPSCTL: case UHSO_PORT_TYPE_CTL: case UHSO_PORT_TYPE_APP: case UHSO_PORT_TYPE_APP2:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAASDrVm6sjjtjnmFP8U2pMsja-k3-AiO7_Er8ZW=Ovzbyh65kA>
