1 Instructions for using Timesync Module in singlepulse mode
2 ----------------------------------------------------------
3
4 0) Hook up hardware. Attach DB25 pin 2 on sender to DB25 pin 10 on
5 receivers. Attach grounds to grounds (e.g. 25--25).
6
7 1) Compile (type "make")
8
9 2) Copy the module to all target machines in a place that root can
10 read it (e.g. in /tmp if you're using a networked /home)
11
12 3) Enable parallel port driver:
13 A) insmod parport
14 B) insmod parport_pc
15 C) echo 7 > /proc/parport/0/irq (to enable kernel interrupt handling)
16
17 4) On each target machine, "insmod simplesync.o"
18
19 5) On sender, type "echo 1 > /proc/singlepulse" to generate a pulse.
20
21 6a) Receivers will report having received the pulse in their system
22 logs; e.g.
23
24 timesync: 979694223.291096 singlepulse received; time=979694223.291090usec
25
26 These messages are visible by typing "dmesg" on the machine, or
27 looking in /var/log/messages.
28
29 This indicates that a pulse was received at 979694223.291090 . Note
30 that the first time on the line is just a timestamp added when all
31 debugging messages are generated by the module. The "time=XX" entry
32 shows the actual pulse-time recorded by the interrupt handler.
33
34 6b) To see the most recently received pulse, type "cat /proc/pulse" on
35 the receiver.
36
37 --Jeremy Elson 16 Jan 2001
38
39
40
This page was automatically generated by the
LXR engine.
Visit the LXR main site for more
information.