Message:20359 In: TECH.WW
From: G8MNYDate: Mon, 06 Apr 26 06:38:00 Z
Newsgroups: TECH.WW
Subject: TNC-PC Clock Basic program
Message-ID: <56551_GB7CIP>
Path: N2NOV|VE2PKT|VE3CGR|PI8ZTM|CX2SA|ED1ZAC|GB7CIP
R:260406/0644z @:N2NOV.#RICH.NY.USA.NOAM $:56551_GB7CIP
R:260406/0643Z 4303@VE2PKT.#TRV.QC.CAN.NOAM LinBPQ6.0.25
R:260406/0643Z 74029@VE3CGR.#SCON.ON.CAN.NOAM LinBPQ6.0.25
R:260406/0642Z @:PI8ZTM.#ZH1.NLD.EURO #:52909 [Den Haag] $:56551_GB7CIP
R:260406/0642Z @:CX2SA.SAL.URY.SOAM #:63865 [Salto] FBB7.00e $:56551_GB7CIP
R:260406/0640Z @:ED1ZAC.EAC.ESP.EU #:9683 [EANET1G.06] $:56551_GB7CIP
R:260406/0638Z @:GB7CIP.#32.GBR.EURO #:56551 [Caterham Surrey GBR]
From: G8MNY@GB7CIP.#32.GBR.EURO
To : TECH@WW
By G8MNY (New Jul 11)
Here is an old Basic program by G4WGZ to get the time & date from your 24/7
powered TNC & use it at boot time in the PC is the PC's battery clock is duff.
It was for a DOS computer, but compiled or using a batch file it should be
usable on a modern PC with this clock fault.
Save the next bit as TNCLOCK.BAS
---------------------------------------------------------------
1 'Prog to get TNC time & put it in the PC. by G4WGZ
5 TRY=1
10 OPEN"COM1:9600,N,8" AS #1
20 IF TRY>5 THEN PRINT"CLOCK NOT SET":SYSTEM
25 IF EOF(1) THEN PRINT#1,"DA"
30 INPUT#1,DA$:PRINT DA$
32 IF INSTR("?clock",DA$)>0 THEN TRY=6:GOTO 20
35 IF LEN(DA$)>18 THEN DA$=RIGHT$(DA$,18)
40 IF LEN(DA$)<18 OR MID$(DA$,3,1)<>"/" THEN TRY=TRY+1:GOTO 20
50 DATE$=MID$(DA$,4,2)+"-"+LEFT$(DA$,2)+"-"+MID$(DA$,7,2)
60 TIME$=RIGHT$(DA$,8)
70 PRINT"CLOCK SET OK"
80 SYSTEM
---------------------------------------------------------------
Line 10 assumes your TNC's COM port is port 1 & usees 9k6, 8 bit etc.
Put this next command line in AUOEXEC.BAT or in a start up program list.
------------------------------------------
BASIC TNCLOCK
------------------------------------------
(or whatever Basic U have)
That is it, if the TNC clock is OK the PC clock will be updated on boot.
Why don't U send an interesting bul?
73 De John, G8MNY @ GB7CIP
Return To Bulletin List