chiark / gitweb /
document new params
authorian <ian>
Sun, 9 Jan 2005 02:10:13 +0000 (02:10 +0000)
committerian <ian>
Sun, 9 Jan 2005 02:10:13 +0000 (02:10 +0000)
hostside/README

index 71dd7caa934e632c413ffecd61b9c2876fe501b0..78786bbacaa21bb7575d5b76cc6f337559edea8d 100644 (file)
@@ -1,12 +1,22 @@
-./hostside /dev/ttyS0 <hex-digit-pairs> c|r|n
+./hostside /dev/ttyS0 <hex-digit-pairs> c|r|n \
+  [<serial-fudge-delay> [<repeat-delay> [<iterations>]]]
 
  c = send directly to serial port as specified
  r = nmra packet with checksum - encode for pic (including preamble) and send
  n = nmra packet without checksum
 
+ delays are in us.
+ serial-fudge delay is usleep between bytes transmitted to serial port
+  (for pic to catch up in slow, debugging, mode), 0 meaning not to usleep
+ repeat-delay is -1 not to repeat, or 0 not to usleep, or +ve
+  to repeat with usleeps in between
+ iterations limits the looping (default is unlimited)
+
 Eg,
- ./hostside /dev/ttyS0 0348 n
-to tell decoder 3 to go speed 13 forwards
+ ./hostside /dev/ttyS0 0348 n 0 10000 1000
+to tell decoder 3 to go speed 13 forwards every 10ms
+ (on norway this means it actually happens every 20ms, a bit of a fudge
+  really)
 
  7f       7f       00       64       41       97         output bytes
  01111111 01111111 00000000 01100100 01000001 10010111   as bits