The best way to handle this interface is to write a device driver but
it's a hard job, so for the moment I wrote only an MS-DOS program (in
Borland Pascal 7.0) that is not memory resident.
I launch it in an iconized DOS session under Windows 95 (works also
under Windows 3.xx), and, once received the correct time and set the system
clock it exits. I added a link to it in the startup folder,
so every time I boot my PC the clock is synchronized in a few minutes. Since
only one bit per second is received the system is not overloaded. This is not
an elegant solution, but it works.
Here are the command usage and the command line arguments:
Use: DCF77 [ COMx | Pyyyy Izz ] [ -sync [ -ret ] ] [ -nochk ] [ -notmout ] Where: x is the COM port number (1..4) of the receiver (default COM2) yyyy is the I/O port number (hex) of the non-standard COM port zz is the IRQ number (dec) of the non standard COM port -sync sets the real time clock of the PC after having decoded -ret returns to DOS after having synchronized the clock -nochk skips IRQ busy checking (use carefully) -notmout skips timeout checking (use when reception is difficult)DCF77 can use a standard COM port (COM1..COM4) or a custom port by specifying the port address and the IRQ number.
Download
dcf77.pas (42,828 bytes): the full pascal source.
Download
dcf77.exe (14,576 bytes): the compiled program.
Download
dcf77.pif (967 bytes): the Windows 95 link.
Read my disclaimer.
Note: this program does not seem to work under Windows 95B (OSR2). Does anybody know how to program serial ports at 40 bauds with IRQ handling in Delphi? If you do send me an email.
The above picture shows the complete interface, connected to the active antenna in it's final location. The antenna is fixed on a 100% wood wall.
Back to DCF77. | Back to the home page. | Previous page. |
Questa pagina è disponibile anche in italiano. |