From c4a712f3106d076f09ccb6783501d97e1f8490f8 Mon Sep 17 00:00:00 2001 From: Winfried Ritsch Date: Tue, 12 Apr 2005 09:14:51 +0000 Subject: This commit was generated by cvs2svn to compensate for changes in r2726, which included commits to RCS files with non-trunk default branches. svn path=/trunk/externals/iem/comport/; revision=2727 --- testcomport.pd | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 testcomport.pd (limited to 'testcomport.pd') diff --git a/testcomport.pd b/testcomport.pd new file mode 100644 index 0000000..bd3db6d --- /dev/null +++ b/testcomport.pd @@ -0,0 +1,78 @@ +#N canvas 199 244 690 400 10; +#X obj 89 121 comport 1 9600; +#X msg 5 103 66; +#X obj 80 251 print; +#X floatatom 187 80 4 0 0; +#X msg 4 61 64; +#X text 4 81 point; +#X text 3 40 stream; +#X msg 5 153 86; +#X text 5 128 position; +#X msg 8 197 70; +#X msg 6 237 71; +#X text 7 180 run; +#X text 6 215 sleep; +#X floatatom 113 159 4 0 0; +#X obj 82 215 spigot; +#X msg 101 188 1; +#X msg 135 189 0; +#X msg 353 37 bits 8; +#X msg 352 61 stopbit 0; +#X msg 351 89 parity 0; +#X msg 352 118 xonxoff 1; +#X msg 352 144 rtscts 0; +#X text 431 92 parity 1=even \, -1=odd \, 0=off; +#X text 431 63 extra stopbit 1=on \, 0=off; +#X text 433 38 databits 5 \, 6 \, 7 \, 8; +#X text 432 9 use exact or higher baudrate; +#X obj 112 96 r comctl; +#X obj 335 169 s comctl; +#X text 433 117 use handshake xon/off 1=on 0=off; +#X text 431 143 cts/rts hardwarehandshake 1=on 0=off; +#X msg 345 210 pollintervall 1; +#X text 461 211 set pollintervall for read in ms; +#X text 461 225 (default is 1 tick 1ms); +#X msg 246 264 close; +#X msg 251 288 open 1; +#X msg 353 12 baud 10000; +#X text 312 261 Close Serial port; +#X text 315 292 Open seriel board Nr (0=COM1 \, 1=COM2 \, ...); +#X msg 238 342 devicename /dev/ttyS1; +#X text 232 363 Danger !!! you can open every file in your system and +maybe if suid is root damage the system.; +#X text 233 324 set devicename for actuell port \, then close and open +again; +#X obj 240 78 spigot; +#X msg 259 51 1; +#X msg 293 52 0; +#X obj 235 25 key; +#X text 2 22 eg. for flock of bird:; +#X text 235 312 never should be needed except for sys admins (only +unix); +#X msg 269 10 baud 300; +#X connect 0 0 13 0; +#X connect 0 0 14 0; +#X connect 1 0 0 0; +#X connect 3 0 0 0; +#X connect 4 0 0 0; +#X connect 7 0 0 0; +#X connect 9 0 0 0; +#X connect 10 0 0 0; +#X connect 14 0 2 0; +#X connect 15 0 14 1; +#X connect 16 0 14 1; +#X connect 17 0 27 0; +#X connect 18 0 27 0; +#X connect 19 0 27 0; +#X connect 20 0 27 0; +#X connect 21 0 27 0; +#X connect 26 0 0 0; +#X connect 30 0 27 0; +#X connect 33 0 27 0; +#X connect 34 0 27 0; +#X connect 35 0 27 0; +#X connect 41 0 3 0; +#X connect 42 0 41 1; +#X connect 43 0 41 1; +#X connect 44 0 41 0; +#X connect 47 0 27 0; -- cgit v1.2.1