GPS ports in uhso

Lundberg, Johannes johannes at brilliantservice.co.jp
Mon Jan 13 02:28:37 UTC 2014


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

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
秘密保持について:この電子メールは、名宛人に送信したものであり、秘匿特権の対象となる情報を含んでいます。
もし、名宛人以外の方が受信された場合、このメールの破棄、およびこのメールに関する一切の開示、
複写、配布、その他の利用、または記載内容に基づくいかなる行動もされないようお願い申し上げます。
---
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.


More information about the freebsd-usb mailing list