From owner-freebsd-usb@FreeBSD.ORG Sat Nov 25 09:06:39 2006 Return-Path: X-Original-To: freebsd-usb@freebsd.org Delivered-To: freebsd-usb@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 05F6E16A416 for ; Sat, 25 Nov 2006 09:06:39 +0000 (UTC) (envelope-from granbo@tonnikala.org) Received: from tonnikala.org (tonnikala.net [62.142.121.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 07D5743D78 for ; Sat, 25 Nov 2006 09:05:48 +0000 (GMT) (envelope-from granbo@tonnikala.org) Received: from granbo by tonnikala.org with local (Exim 3.35 #1 (Debian)) id 1GntUU-0001OA-00; Sat, 25 Nov 2006 11:06:30 +0200 Date: Sat, 25 Nov 2006 11:06:30 +0200 From: Bo Granlund To: Nikolay Denev Message-ID: <20061125090630.GC17442@sushi.tonnikala.net> References: <20061125032050.GA17442@sushi.tonnikala.net> <4567D5A9.5010602@totalterror.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4567D5A9.5010602@totalterror.net> User-Agent: Mutt/1.3.28i Cc: freebsd-usb@freebsd.org Subject: Re: USB GPS receiver as reference clock X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Nov 2006 09:06:39 -0000 Hello, Nikolay Denev [niki@totalterror.net] wrote: > Bo Granlund wrote: > >Hi, > > > >I have in my posession a Globalsat BU-353 GPS receiver that I would like to > >use as a NMEA time reference with Freebsd ntpd. The device identifies with > >freebsd as: > > > >ugen0: Prolific Technology Inc. USB-Serial Controller, rev 1.10/3.00, addr > >2 > > > >I'm running 6.2-RC1. I have tried to search with google for hints howto > >configure this device with ntpd. I have the following /etc/ntp.conf: > > > >------8<--------8<--------8<--------8< > >enable stats monitor pps > >server 127.127.20.1 > >driftfile /etc/ntp/ntp.drift > >logconfig +clockall > >------8<--------8<--------8<--------8< > > > >As far as I understand this 127.127.20.1 uses nmea and tries to open > >/dev/gps1 device for NMEA output. What device file should I link /dev/gps1 > >to, and if it doesn't exist, how do I create it? > > > >Any hints will be greatly appreciated. I hope this is not simply a matter > >of > >RTFM since I have searched the net quite extensively for any hints. :) > > > >kind regards, > >Bo Granlund > > Try to load the uplcom(4) module. Probably this will get your USB GPS > receiver identified as USB Serial port /dev/cuaU[0-9] I loaded the uplcom module and reattached the gps receiver. And then I linked /dev/cuaU0 to /dev/gps1. Cat'ing /dev/gps1 returns NMEA data, but when I try start ntpd this comes to the logs: Nov 25 10:58:24 battleangel ntpd[798]: refclock_nmea: time_pps_create failed: Inappropriate ioctl for device Do you have any clue as to why it complains about an inappropriate ioctl? Thanks for the uplcom pointer, now I got somewhat forward in my attempts to make ntpd work with my usb receiver. kind regards, Bo Granlund