cleaned up the help patch some more...
svn path=/trunk/externals/iem/comport/; revision=10290
This commit is contained in:
parent
9fb73a2023
commit
1b05e2f7a4
1 changed files with 192 additions and 177 deletions
|
|
@ -1,120 +1,115 @@
|
||||||
#N canvas 458 0 800 627 10;
|
#N canvas 249 252 1031 627 10;
|
||||||
#X obj 18 436 comport 1 9600;
|
#X obj 488 438 comport 1 9600;
|
||||||
#X msg 13 189 66;
|
#X msg 276 421 66;
|
||||||
#X msg 7 147 64;
|
#X msg 234 421 64;
|
||||||
#X text 40 189 point;
|
#X text 273 403 point;
|
||||||
#X text 32 147 stream;
|
#X text 231 403 stream;
|
||||||
#X msg 18 238 86;
|
#X msg 318 421 86;
|
||||||
#X text 46 239 position;
|
#X text 315 403 position;
|
||||||
#X msg 24 283 70;
|
#X msg 380 421 70;
|
||||||
#X msg 25 323 71;
|
#X msg 420 421 71;
|
||||||
#X text 49 283 run;
|
#X text 376 403 run;
|
||||||
#X text 50 323 sleep;
|
#X text 416 403 sleep;
|
||||||
#X msg 314 61 bits 8;
|
#X msg 314 61 bits 8;
|
||||||
#X msg 314 87 stopbit 0;
|
#X msg 340 87 stopbit 0;
|
||||||
#X msg 314 113 parity 0;
|
#X msg 400 147 parity 0;
|
||||||
#X text 381 112 parity 1=even \, -1=odd \, 0=off;
|
#X text 467 146 parity 1=even \, -1=odd \, 0=off;
|
||||||
#X text 385 86 extra stopbit 1=on \, 0=off;
|
|
||||||
#X text 363 60 databits 5 \, 6 \, 7 \, 8;
|
#X text 363 60 databits 5 \, 6 \, 7 \, 8;
|
||||||
#X obj 56 414 r comctl;
|
#X obj 488 412 r comctl;
|
||||||
#X obj 245 438 s comctl;
|
#X obj 674 438 s comctl;
|
||||||
#X text 394 138 use handshake xon/off 1=on 0=off;
|
#X text 500 166 use handshake xon/off 1=on 0=off;
|
||||||
#X text 386 164 cts/rts hardwarehandshake 1=on 0=off;
|
#X text 512 186 cts/rts hardwarehandshake 1=on 0=off;
|
||||||
#X msg 318 214 pollintervall 1;
|
#X msg 460 207 pollintervall 1;
|
||||||
#X text 428 213 (default is 1 tick 1ms);
|
#X text 761 206 (default is 1 tick 1ms);
|
||||||
#X msg 317 246 close;
|
#X msg 482 229 close;
|
||||||
#X msg 317 272 open 1;
|
#X msg 503 250 open 1;
|
||||||
#X text 356 245 Close Serial port;
|
#X text 521 228 Close Serial port;
|
||||||
#X msg 313 415 devicename /dev/ttyS1;
|
#X msg 666 413 devicename /dev/ttyS1;
|
||||||
#X text 313 432 Danger !!! you can open every file in your system and
|
#X text 742 432 Danger !!! you can open every file in your system and
|
||||||
maybe if suid is root damage the system.;
|
maybe if suid is root damage the system.;
|
||||||
#X text 4 -9 (C) 1998-2005 IEM Winfried Ritsch GPL (see LICENSE.txt)
|
#X text 35 511 (C) 1998-2005 IEM Winfried Ritsch GPL (see LICENSE.txt)
|
||||||
;
|
;
|
||||||
#X obj 144 50 hsl 128 15 0 255 0 0 empty empty empty -2 -6 0 8 -262144
|
#X obj 135 50 hsl 128 15 0 255 0 0 empty empty empty -2 -6 0 8 -262144
|
||||||
-1 -1 0 1;
|
-1 -1 0 1;
|
||||||
#X floatatom 183 76 5 0 0 0 - - -;
|
#X text 550 249 Open serial port by number;
|
||||||
#X text 60 35 you can send bytes directly (0-255):;
|
#X text 878 413 open the serial port by name;
|
||||||
#X text 364 271 Open serial port by number;
|
#X msg 606 353 dtr \$1;
|
||||||
#X text 449 413 open the serial port by name;
|
#X obj 575 354 tgl 15 0 empty empty empty 0 -6 0 8 -241291 -250685
|
||||||
#X msg 362 360 dtr \$1;
|
|
||||||
#X obj 342 360 tgl 15 0 empty empty empty 0 -6 0 8 -241291 -250685
|
|
||||||
-1 0 1;
|
-1 0 1;
|
||||||
#X obj 364 380 tgl 15 0 empty empty empty 0 -6 0 8 -241291 -1 -1 0
|
#X obj 595 374 tgl 15 0 empty empty empty 0 -6 0 8 -241291 -258113
|
||||||
1;
|
|
||||||
#X msg 384 380 rts \$1;
|
|
||||||
#X text 411 359 dtr output;
|
|
||||||
#X text 433 379 rts output;
|
|
||||||
#X msg 61 388 help;
|
|
||||||
#X msg 342 339 verbose \$1;
|
|
||||||
#X obj 323 339 tgl 15 0 empty empty empty 0 -6 0 8 -241291 -250685
|
|
||||||
-1 0 1;
|
-1 0 1;
|
||||||
#X text 377 197 set poll interval for read in ms;
|
#X msg 626 373 rts \$1;
|
||||||
#X msg 123 191 info;
|
#X text 655 352 dtr output;
|
||||||
#X floatatom 111 499 7 0 0 1 baud - -;
|
#X text 675 372 rts output;
|
||||||
#X floatatom 214 540 4 0 0 3 parity - -;
|
#X msg 367 300 help;
|
||||||
#X floatatom 249 540 4 0 0 2 stop - -;
|
#X msg 585 332 verbose \$1;
|
||||||
#X floatatom 283 539 4 0 0 3 data - -;
|
#X obj 554 334 tgl 15 0 empty empty empty 0 -6 0 8 -241291 -250685
|
||||||
#X obj 491 502 print;
|
-1 0 1;
|
||||||
#X floatatom 387 502 4 0 0 0 port - -;
|
#X text 560 206 set poll interval for read in ms;
|
||||||
#X msg 317 298 devices;
|
#X msg 321 254 info;
|
||||||
|
#X floatatom 569 497 10 0 0 1 baud - -;
|
||||||
|
#X floatatom 650 538 3 0 0 3 parity - -;
|
||||||
|
#X floatatom 678 538 3 0 0 2 stop - -;
|
||||||
|
#X floatatom 705 537 3 0 0 3 data - -;
|
||||||
|
#X floatatom 787 499 3 0 0 0 port - -;
|
||||||
|
#X msg 544 291 devices;
|
||||||
#X obj 141 74 % 255;
|
#X obj 141 74 % 255;
|
||||||
#X floatatom 149 95 5 0 0 0 - - -;
|
#X floatatom 179 91 5 0 0 0 - - -;
|
||||||
#X text 158 191 status list on right outlet;
|
#X text 602 290 print available devices (wait for it...);
|
||||||
#X text 375 297 print available devices (wait for it...);
|
#X obj 142 113 key;
|
||||||
#X obj 69 75 key;
|
#X obj 170 130 sel 0;
|
||||||
#X obj 69 96 sel 0;
|
#X floatatom 249 147 4 0 0 0 ascii - -;
|
||||||
#X floatatom 58 119 5 0 0 0 ascii - -;
|
#X msg 524 271 open 0;
|
||||||
#X text 10 76 terminal:;
|
#X obj 732 503 tgl 15 0 empty empty rts/cts -10 20 1 11 -24198 -258699
|
||||||
#X msg 227 272 open 0;
|
|
||||||
#X obj 318 505 tgl 15 0 empty empty rts/cts -10 20 1 11 -24198 -258699
|
|
||||||
-1 0 1;
|
-1 0 1;
|
||||||
#X obj 352 530 tgl 15 0 empty empty xon/xoff -14 20 1 11 -24198 -258699
|
#X obj 759 529 tgl 15 0 empty empty xon/xoff -14 20 1 11 -24198 -258699
|
||||||
-1 0 1;
|
-1 0 1;
|
||||||
#X text 64 539 serial packet format:;
|
#X text 508 537 serial packet format:;
|
||||||
#X text 229 502 handshaking:;
|
#X text 658 500 handshaking:;
|
||||||
#X text 0 571 flow control inputs:;
|
#X text 468 569 flow control inputs:;
|
||||||
#X obj 145 571 tgl 15 0 empty empty dsr 0 20 1 11 -24198 -258699 -1
|
#X obj 596 569 tgl 15 0 empty empty dsr 0 20 1 11 -24198 -258699 -1
|
||||||
0 1;
|
0 1;
|
||||||
#X obj 180 571 tgl 15 0 empty empty cts 0 20 1 11 -24198 -258699 -1
|
#X obj 623 569 tgl 15 0 empty empty cts 0 20 1 11 -24198 -258699 -1
|
||||||
0 1;
|
0 1;
|
||||||
#N canvas 513 22 735 499 bauds 0;
|
#N canvas 307 43 789 479 bauds 0;
|
||||||
#X msg 229 314 baud 57600;
|
#X msg 319 274 baud 57600;
|
||||||
#X msg 229 358 baud 230400;
|
#X msg 357 312 baud 230400;
|
||||||
#X msg 229 336 baud 115200;
|
#X msg 338 293 baud 115200;
|
||||||
#X msg 222 288 baud 38400;
|
#X msg 300 255 baud 38400;
|
||||||
#X msg 229 261 baud 19200;
|
#X msg 281 236 baud 19200;
|
||||||
#X msg 229 239 baud 9600;
|
#X msg 262 217 baud 9600;
|
||||||
#X msg 229 217 baud 4800;
|
#X msg 243 198 baud 4800;
|
||||||
#X msg 229 195 baud 2400;
|
#X msg 224 179 baud 2400;
|
||||||
#X obj 162 375 s comctl;
|
#X obj 431 403 s comctl;
|
||||||
#X msg 229 173 baud 1800;
|
#X msg 205 160 baud 1800;
|
||||||
#X msg 229 151 baud 1200;
|
#X msg 186 141 baud 1200;
|
||||||
#X msg 229 129 baud 600;
|
#X msg 167 122 baud 600;
|
||||||
#X msg 229 107 baud 300;
|
#X msg 148 103 baud 300;
|
||||||
#X msg 229 85 baud 200;
|
#X msg 129 84 baud 200;
|
||||||
#X msg 229 41 baud 134;
|
#X msg 91 46 baud 134;
|
||||||
#X msg 229 19 baud 110;
|
#X msg 72 27 baud 110;
|
||||||
#X msg 229 -3 baud 75;
|
#X msg 53 8 baud 75;
|
||||||
#X msg 229 -25 baud 50;
|
#X msg 34 -11 baud 50;
|
||||||
#X msg 229 -47 baud 0;
|
#X msg 15 -30 baud 0;
|
||||||
#X msg 229 63 baud 150;
|
#X msg 110 65 baud 150;
|
||||||
#X text 303 282 this is a special baud rate that can be configured
|
#X text 368 255 this is a special baud rate that can be configured
|
||||||
;
|
;
|
||||||
#X text 12 -48 standard baud rates for linux:;
|
#X text 12 -48 standard baud rates for linux:;
|
||||||
#X text 279 -48 0 deasserts control lines and resets the serial port
|
#X text 64 -31 0 deasserts control lines and resets the serial port
|
||||||
;
|
;
|
||||||
#X text 316 358 won't work with standard setup. See setserial;
|
#X text 435 312 won't work with standard setup. See setserial;
|
||||||
#X msg 381 227 baud \$1;
|
#X msg 431 231 baud \$1;
|
||||||
#X text 386 210 on Windows some other baud rates might work;
|
#X text 518 269 on-the-fly with setserial:;
|
||||||
#X text 304 295 on-the-fly with setserial:;
|
#X text 519 298 gives 14400 baud instead of 38400;
|
||||||
#X text 383 324 gives 14400 baud instead of 38400;
|
#X text 517 284 "setserial /dev/ttyS0 spd_cust divisor 8";
|
||||||
#X text 369 310 "setserial /dev/ttyS0 spd_cust divisor 8";
|
#X msg 419 163 115200;
|
||||||
#X msg 381 32 115200;
|
#X floatatom 392 104 7 1 115200 1 divisor - -;
|
||||||
#X floatatom 395 60 7 1 115200 1 divisor - -;
|
#X obj 431 192 / 1;
|
||||||
#X obj 381 98 / 1;
|
#X obj 392 123 sel 0;
|
||||||
#X obj 395 77 sel 0;
|
#X floatatom 431 212 7 0 0 0 - - -;
|
||||||
#X floatatom 381 120 7 0 0 0 - - -;
|
#X text 482 103 (1-115200);
|
||||||
#X text 442 71 (1-115200);
|
#X obj 419 143 t b f;
|
||||||
|
#X text 390 86 On Windows some other baud rates might work:;
|
||||||
#X connect 0 0 8 0;
|
#X connect 0 0 8 0;
|
||||||
#X connect 1 0 8 0;
|
#X connect 1 0 8 0;
|
||||||
#X connect 2 0 8 0;
|
#X connect 2 0 8 0;
|
||||||
|
|
@ -135,88 +130,108 @@ maybe if suid is root damage the system.;
|
||||||
#X connect 18 0 8 0;
|
#X connect 18 0 8 0;
|
||||||
#X connect 19 0 8 0;
|
#X connect 19 0 8 0;
|
||||||
#X connect 24 0 8 0;
|
#X connect 24 0 8 0;
|
||||||
|
#X connect 28 0 30 0;
|
||||||
#X connect 29 0 31 0;
|
#X connect 29 0 31 0;
|
||||||
#X connect 30 0 32 0;
|
#X connect 30 0 32 0;
|
||||||
#X connect 31 0 33 0;
|
#X connect 31 1 34 0;
|
||||||
#X connect 32 1 31 1;
|
#X connect 32 0 24 0;
|
||||||
#X connect 33 0 24 0;
|
#X connect 34 0 28 0;
|
||||||
#X restore 622 72 pd bauds;
|
#X connect 34 1 30 1;
|
||||||
#X msg 314 139 xonxoff \$1;
|
#X restore 314 37 pd bauds;
|
||||||
#X obj 286 140 tgl 15 0 empty empty empty 0 -6 0 8 -241291 -250685
|
#X msg 420 167 xonxoff \$1;
|
||||||
|
#X obj 387 167 tgl 15 0 empty empty empty 0 -6 0 8 -241291 -250685
|
||||||
-1 0 1;
|
-1 0 1;
|
||||||
#X msg 314 165 rtscts \$1;
|
#X msg 440 187 rtscts \$1;
|
||||||
#X obj 286 167 tgl 15 0 empty empty empty 0 -6 0 8 -241291 -250685
|
#X obj 408 187 tgl 15 0 empty empty empty 0 -6 0 8 -241291 -250685
|
||||||
-1 0 1;
|
-1 0 1;
|
||||||
#X text 117 11 comport: a serial port interface;
|
#X text 17 -4 comport: a serial port interface;
|
||||||
#X msg 102 118 13;
|
#X msg 243 176 13;
|
||||||
#X obj 421 501 tgl 15 0 empty empty open -6 20 1 11 -24198 -258699
|
#X obj 814 498 tgl 15 0 empty empty open -6 20 1 11 -24198 -258699
|
||||||
-1 0 1;
|
-1 0 1;
|
||||||
#X msg 317 320 ports;
|
#X msg 565 312 ports;
|
||||||
#X obj 111 462 route baud dsr cts parity stop data rtscts xonxoff port
|
#X obj 841 531 print port_list;
|
||||||
open ports;
|
#X text 611 311 list available ports on right outlet;
|
||||||
#X obj 456 530 print port_list;
|
#X msg 275 208 48 49 50 51 52 53 54 55 56 57;
|
||||||
#X text 363 319 list available ports on right outlet;
|
#X text 137 207 send a list of bytes:;
|
||||||
#X text 95 387 print usage info;
|
#X msg 295 228 print hello_world;
|
||||||
#X msg 59 361 48 49 50 51 52 53 54 55 56 57;
|
#X text 196 228 send some text:;
|
||||||
#X text 59 344 send a list of bytes:;
|
#X msg 646 393 hupcl \$1;
|
||||||
#X msg 105 321 print hello_world;
|
#X obj 614 394 tgl 15 0 empty empty empty 17 7 0 10 -257985 -258113
|
||||||
#X text 103 304 send some text:;
|
-1 0 1;
|
||||||
#X text 393 -9 2006-2007 Martin Peach;
|
#X text 704 386 hang up connection on last close;
|
||||||
#X msg 515 380 hupcl \$1;
|
#X text 717 398 (not on Windows);
|
||||||
#X obj 515 358 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
|
#X obj 910 490 print other;
|
||||||
1;
|
#X text 37 526 2006-2008 Martin Peach;
|
||||||
#X text 573 373 hang up connection on last close;
|
#X text 205 176 <CR>:;
|
||||||
#X text 586 385 (not on Windows);
|
#X text 143 254 status list on right outlet:;
|
||||||
#X connect 0 1 77 0;
|
#X text 257 300 print usage info:;
|
||||||
|
#X obj 569 460 route baud dsr cts parity stop data rtscts xonxoff port
|
||||||
|
open ports hupcl;
|
||||||
|
#X obj 868 497 tgl 15 0 empty empty hupcl -6 20 1 11 -24198 -258699
|
||||||
|
-1 0 1;
|
||||||
|
#X msg 452 110 1;
|
||||||
|
#X msg 482 110 1.5;
|
||||||
|
#X msg 513 110 2;
|
||||||
|
#X text 444 127 number of stopbits (Windows only);
|
||||||
|
#X msg 380 127 stopbit \$1;
|
||||||
|
#X text 403 86 extra stopbit 1=on \, 0=off (linux \, MacOS);
|
||||||
|
#X text 16 30 You can send bytes directly (0-255):;
|
||||||
|
#X text 12 112 or from the terminal:;
|
||||||
|
#X text 56 420 messages for the bird patch:;
|
||||||
|
#X connect 0 1 86 0;
|
||||||
#X connect 1 0 0 0;
|
#X connect 1 0 0 0;
|
||||||
#X connect 2 0 0 0;
|
#X connect 2 0 0 0;
|
||||||
#X connect 5 0 0 0;
|
#X connect 5 0 0 0;
|
||||||
#X connect 7 0 0 0;
|
#X connect 7 0 0 0;
|
||||||
#X connect 8 0 0 0;
|
#X connect 8 0 0 0;
|
||||||
#X connect 11 0 18 0;
|
#X connect 11 0 17 0;
|
||||||
#X connect 12 0 18 0;
|
#X connect 12 0 17 0;
|
||||||
#X connect 13 0 18 0;
|
#X connect 13 0 17 0;
|
||||||
#X connect 17 0 0 0;
|
#X connect 16 0 0 0;
|
||||||
#X connect 21 0 18 0;
|
#X connect 20 0 17 0;
|
||||||
#X connect 23 0 18 0;
|
#X connect 22 0 17 0;
|
||||||
#X connect 24 0 18 0;
|
#X connect 23 0 17 0;
|
||||||
#X connect 26 0 18 0;
|
#X connect 25 0 17 0;
|
||||||
#X connect 29 0 30 0;
|
#X connect 28 0 48 0;
|
||||||
#X connect 29 0 52 0;
|
#X connect 31 0 17 0;
|
||||||
#X connect 34 0 18 0;
|
#X connect 32 0 31 0;
|
||||||
#X connect 35 0 34 0;
|
#X connect 33 0 34 0;
|
||||||
#X connect 36 0 37 0;
|
#X connect 34 0 17 0;
|
||||||
#X connect 37 0 18 0;
|
#X connect 37 0 0 0;
|
||||||
#X connect 40 0 0 0;
|
#X connect 38 0 17 0;
|
||||||
#X connect 41 0 18 0;
|
#X connect 39 0 38 0;
|
||||||
#X connect 42 0 41 0;
|
#X connect 41 0 0 0;
|
||||||
#X connect 44 0 0 0;
|
#X connect 47 0 17 0;
|
||||||
#X connect 51 0 18 0;
|
#X connect 48 0 0 0;
|
||||||
#X connect 52 0 0 0;
|
#X connect 48 0 49 0;
|
||||||
#X connect 52 0 53 0;
|
#X connect 51 0 52 0;
|
||||||
#X connect 56 0 57 0;
|
#X connect 52 1 53 0;
|
||||||
#X connect 57 1 58 0;
|
#X connect 52 1 0 0;
|
||||||
#X connect 57 1 0 0;
|
#X connect 54 0 17 0;
|
||||||
#X connect 60 0 18 0;
|
#X connect 63 0 17 0;
|
||||||
#X connect 69 0 18 0;
|
#X connect 64 0 63 0;
|
||||||
#X connect 70 0 69 0;
|
#X connect 65 0 17 0;
|
||||||
#X connect 71 0 18 0;
|
#X connect 66 0 65 0;
|
||||||
#X connect 72 0 71 0;
|
#X connect 68 0 0 0;
|
||||||
#X connect 74 0 0 0;
|
#X connect 70 0 17 0;
|
||||||
#X connect 76 0 18 0;
|
#X connect 73 0 0 0;
|
||||||
#X connect 77 0 45 0;
|
#X connect 75 0 0 0;
|
||||||
#X connect 77 1 66 0;
|
#X connect 77 0 17 0;
|
||||||
#X connect 77 2 67 0;
|
#X connect 78 0 77 0;
|
||||||
#X connect 77 3 46 0;
|
#X connect 86 0 42 0;
|
||||||
#X connect 77 4 47 0;
|
#X connect 86 1 60 0;
|
||||||
#X connect 77 5 48 0;
|
#X connect 86 2 61 0;
|
||||||
#X connect 77 6 61 0;
|
#X connect 86 3 43 0;
|
||||||
#X connect 77 7 62 0;
|
#X connect 86 4 44 0;
|
||||||
#X connect 77 8 50 0;
|
#X connect 86 5 45 0;
|
||||||
#X connect 77 9 75 0;
|
#X connect 86 6 55 0;
|
||||||
#X connect 77 10 78 0;
|
#X connect 86 7 56 0;
|
||||||
#X connect 77 11 49 0;
|
#X connect 86 8 46 0;
|
||||||
#X connect 81 0 0 0;
|
#X connect 86 9 69 0;
|
||||||
#X connect 83 0 0 0;
|
#X connect 86 10 71 0;
|
||||||
#X connect 86 0 18 0;
|
#X connect 86 11 87 0;
|
||||||
#X connect 87 0 86 0;
|
#X connect 86 12 81 0;
|
||||||
|
#X connect 88 0 92 0;
|
||||||
|
#X connect 89 0 92 0;
|
||||||
|
#X connect 90 0 92 0;
|
||||||
|
#X connect 92 0 17 0;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue