From owner-freebsd-isdn Sun Apr 11 15:53:31 1999 Delivered-To: freebsd-isdn@freebsd.org Received: from linteuto.teuto.de (linteuto.teuto.de [194.77.23.26]) by hub.freebsd.org (Postfix) with ESMTP id E40E817096 for ; Sun, 11 Apr 1999 15:48:35 -0700 (PDT) (envelope-from martin@rumolt.teuto.de) Received: from rumolt.teuto.de (root@rumolt.teuto.de [212.8.203.81]) by linteuto.teuto.de (8.8.7/8.8.7) with ESMTP id LAA08512; Sun, 11 Apr 1999 11:11:19 +0200 Received: from martins (hwart.teuto.de [212.8.203.83]) by rumolt.teuto.de (8.8.8/8.8.7) with SMTP id IAA02733; Sun, 11 Apr 1999 08:28:16 +0200 (MEST) From: "Martin Husemann" To: "Julien Oster" , Subject: RE: Setting time from ISDN and using AOCD Date: Sun, 11 Apr 1999 08:28:16 +0200 Message-ID: <000001be83e4$7b93f9b0$53cb08d4@martins.teuto.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 In-Reply-To: <7jbtgwp506.fsf@gandalf.midearth.fuzzys.org> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > 1.) I'd like to set my system time from the ISDN timestamps. This is on my todo list. I'll have to check for an easy place to pick up the timestamps inside the I4B kernel part yet [*], then deliver them to a special /dev/i4brefclock and pick them up by xntpd (or ntpd). I've already set up a DCF77 clock, just to check how good the timestamps are on my local switch. There have been reports of the ISDN timestamps drifting a few seconds, which makes them useless from an NTP point of view. > ratetype = 0 > unitlength = 90 > unitlengthsrc = aocd This is fine, just a default until the first aocd unitlength can be calculated (which is after the first unit is charged!). This means: default unitlength is 90 secondes (but ignore this for now), take the current expected unitlength from the ratesfile, entry type 0 (which means "local call" in the distributed ratesfile). You now only need to tell isdnd when to hangup: earlyhangup = 5 Martin P.S.: * = This is hardware driver dependend, so what we realy need is a API inside I4B to tell drivers "please deliver timestamps" and a way to deliver a timestamps to the i4brefclock device. I tried it once with my active Diehl card, but I never got a timestamp from the card, and there is no way to influence the on-card stack to filter or not filter this events. Maybe Dirk Meyer is right and most switches don't deliver timestamps nowadays. It's an optional service and you can't even subscribe to it at Telekom. P.P.S.: I payed 40 DM for a DCF77 clock (Conrad), and of course had to write the driver myself. Just a hint that there are viable alternatives... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message