From owner-freebsd-usb@FreeBSD.ORG Mon Jan 20 06:29:17 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 F0A1BB73 for ; Mon, 20 Jan 2014 06:29:16 +0000 (UTC) Received: from mail-ig0-f171.google.com (mail-ig0-f171.google.com [209.85.213.171]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B6CB0157F for ; Mon, 20 Jan 2014 06:29:16 +0000 (UTC) Received: by mail-ig0-f171.google.com with SMTP id uy17so7120546igb.4 for ; Sun, 19 Jan 2014 22:29:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=lagexh0e/QASfc30spK9oJaO8EhaGXrIlgoOubQVsHQ=; b=Z6Bbn4ttBcbhrj2Rb2j9hC9W0tyQrO8l9pSczVILgWI7vW/zxhKFEJw3kDt/A7rT52 P7wtHgiBHPwo/LL+QQnbhn4iYToMsgsRYm4J3dDy66cvxeDYPTwBnwrQKwXxUH+P3vTM QCZLu/hdSWAAxYoagqmfLuNoJeIDUpHdaABhY1dNIsAiWByBSgFGv5G+hW8HfbYN10D7 7cbWCYsviX//s1wHP0vQy7ijbHXJ/qpRBLqU6W5qg1sk7RzhH+NwWsK8re/t5oxKQ5Uv 322eRcp5y7DGD8zzcqDdll35THBi8oi1eQw1Sughp36rDW1RBilbtzv7oZXEhrgbs1DO 09sA== X-Gm-Message-State: ALoCoQn7MTa4hKGuXeVffTmbVHoiCQp/CAUCo09ymzRKzLVQj9JAqPeC+GWCuBa7lzwbVwGlXI88k7Z3+EkDn2zpoWCLW6ib6peFuelz3mX4DTfi10dWEsM= X-Received: by 10.43.138.143 with SMTP id is15mr12329333icc.23.1390199350055; Sun, 19 Jan 2014 22:29:10 -0800 (PST) MIME-Version: 1.0 Received: by 10.42.128.200 with HTTP; Sun, 19 Jan 2014 22:28:53 -0800 (PST) In-Reply-To: References: <45d9ccac366912a0d241c67016714615@shapeshifter.se> <52D526AF.6030202@bitfrost.no> From: "Lundberg, Johannes" Date: Mon, 20 Jan 2014 15:28:53 +0900 Message-ID: Subject: Re: GPS ports in uhso To: Hans Petter Selasky Content-Type: multipart/mixed; boundary=001a11c1ca126d841004f061029d X-Content-Filtered-By: Mailman/MimeDel 2.1.17 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: Mon, 20 Jan 2014 06:29:17 -0000 --001a11c1ca126d841004f061029d Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit 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 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" >>> >>> >>> >> > -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 秘密保持について:この電子メールは、名宛人に送信したものであり、秘匿特権の対象となる情報を含んでいます。 もし、名宛人以外の方が受信された場合、このメールの破棄、およびこのメールに関する一切の開示、 複写、配布、その他の利用、または記載内容に基づくいかなる行動もされないようお願い申し上げます。 --- 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. --001a11c1ca126d841004f061029d Content-Type: application/octet-stream; name="uhso.patch" Content-Disposition: attachment; filename="uhso.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_hqncriur0 SW5kZXg6IHN5cy9kZXYvdXNiL25ldC91aHNvLmMKPT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQotLS0gc3lzL2Rldi91c2Iv bmV0L3Voc28uYwkocmV2aXNpb24gMjYwOTAyKQorKysgc3lzL2Rldi91c2IvbmV0L3Voc28uYwko d29ya2luZyBjb3B5KQpAQCAtMjgzLDYgKzI4Myw4IEBACiAJVUhTT19ERVYoT1BUSU9OLCBJQ09O NTA1LCBVSFNPX0FVVE9fSUZBQ0UpLAogCS8qIE9wdGlvbiBpQ09OIDQ1MiAqLwogCVVIU09fREVW KE9QVElPTiwgSUNPTjUwNSwgVUhTT19BVVRPX0lGQUNFKSwKKwkvKiBPcHRpb24gR1RNNjYxVyAq LworCVVIU09fREVWKE9QVElPTiwgR1RNNjYxVywgVUhTT19BVVRPX0lGQUNFKSwKICN1bmRlZiBV SFNPX0RFVgogfTsKIApAQCAtODE3LDYgKzgxOSw4IEBACiAJCSAgICBVSFNPX1BPUlRfU0VSSUFM IHwgVUhTT19QT1JUX05FVFdPUkssIHBvcnQpKTsKIAljYXNlIFVIU09fUE9SVF9UWVBFX0RJQUc6 CiAJY2FzZSBVSFNPX1BPUlRfVFlQRV9ESUFHMjoKKyAgICAgICAgY2FzZSBVSFNPX1BPUlRfVFlQ RV9HUFM6CisgICAgICAgIGNhc2UgVUhTT19QT1JUX1RZUEVfR1BTQ1RMOgogCWNhc2UgVUhTT19Q T1JUX1RZUEVfQ1RMOgogCWNhc2UgVUhTT19QT1JUX1RZUEVfQVBQOgogCWNhc2UgVUhTT19QT1JU X1RZUEVfQVBQMjoK --001a11c1ca126d841004f061029d--