From owner-freebsd-usb@FreeBSD.ORG Mon Jan 13 02:28:37 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 0701D211 for ; Mon, 13 Jan 2014 02:28:37 +0000 (UTC) Received: from mail-ie0-f177.google.com (mail-ie0-f177.google.com [209.85.223.177]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id C8F87175C for ; Mon, 13 Jan 2014 02:28:36 +0000 (UTC) Received: by mail-ie0-f177.google.com with SMTP id ar20so3162764iec.22 for ; Sun, 12 Jan 2014 18:28:30 -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:from:date:message-id:subject:to:cc :content-type; bh=FVOskJZ6ZvnfmBgrPY6LDobc/foIt3ywR46NXEgdcsQ=; b=JUjHAaShbfqSsMOx4qmhvyfPY5rHKfZ8pUyMupTz1QVD4rtj95Zpe15NOtlBAuaA0A jrWcOyCZuZdqEZqpiec/7fgtvf+RLQQqKxFTdrRk3Ctf5xTf/kxTe8Zmy9v2By12vcCH kXi1UxQssSH+fVnHHZGiaQdB3xA37jqGrdB8U/SBwBcI7iPJXQKIQhSvPW76PkZAPZdo dUjL5izm3AcIOQns42ogjaIFZ0mGDlNQRt+YKiMliZGk17/XCti3aM0H2rIAzArJKfnt 3Mq/9D8pUfViPaspKtc1uXL9XmrUXI4pLYIBxE5w5rKr+zkEsJPzCLA6e8x3CCEIV5Dw 62Yw== X-Gm-Message-State: ALoCoQm6xf4bzdotwQwaIpZTFmpZyVwNojC+FFDFdEGDjOsR7jEinm99O1Wf6IHO2mzF0TS1CKMyoAjQMqiEUuFuvTLkmn2fhBGj6t254hhwJD7csh3heIw= X-Received: by 10.42.251.69 with SMTP id mr5mr18754904icb.42.1389580109994; Sun, 12 Jan 2014 18:28:29 -0800 (PST) MIME-Version: 1.0 Received: by 10.42.128.200 with HTTP; Sun, 12 Jan 2014 18:28:14 -0800 (PST) From: "Lundberg, Johannes" Date: Mon, 13 Jan 2014 11:28:14 +0900 Message-ID: Subject: GPS ports in uhso To: "freebsd-usb@freebsd.org" Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.17 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, 13 Jan 2014 02:28:37 -0000 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.