aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Peach <mrpeach@users.sourceforge.net>2013-02-20 18:21:59 +0000
committerMartin Peach <mrpeach@users.sourceforge.net>2013-02-20 18:21:59 +0000
commit9f482e3bae9e19b403b98716fa04f32ec26541d9 (patch)
treea319da7fc58980cf9a9df502dd3a13e3026b0572
parent7e532c52874ea7ff3111f1e98fbe523250bd6be6 (diff)
Cleaned up packxbee help patch.
svn path=/trunk/externals/mrpeach/; revision=17040
-rw-r--r--xbee/packxbee-help.pd988
1 files changed, 530 insertions, 458 deletions
diff --git a/xbee/packxbee-help.pd b/xbee/packxbee-help.pd
index b1fdd3a..54eabbc 100644
--- a/xbee/packxbee-help.pd
+++ b/xbee/packxbee-help.pd
@@ -1,211 +1,37 @@
-#N canvas 154 423 1227 436 10;
+#N canvas 552 104 622 751 10;
#X declare -lib mrpeach;
-#X msg 80 53 AT DH 0x0013A200;
-#X text 193 52 set upper 32 bits of destination address;
-#X msg 103 76 AT DL 0x407694DB;
-#X msg 128 101 AT MY;
-#X text 80 9 get upper 32 bits of destination address;
-#X text 97 31 get loweer 32 bits of destination address;
-#X msg 37 10 AT DH;
-#X msg 60 33 AT DL;
-#X msg 148 121 AT MP;
-#X text 171 99 get our 16-bit address (Read Only);
-#X msg 171 144 AT NC;
-#X text 210 141 get number of remaining children (Read Only);
-#X msg 193 166 AT SH;
-#X text 232 163 get serial number high 32 bits (Read Only);
-#X text 253 184 get serial number low 32 bits (Read Only);
-#X msg 214 187 AT SL;
-#X msg 234 207 AT NI diddley;
-#X text 321 204 set node identifier string;
-#X msg 254 227 AT NI;
-#X text 299 225 get node identifier string;
-#X text 527 50 prefix hexadecimal parameters with 0x;
-#X msg 274 247 AT NP;
-#X text 319 245 get maximum payload;
-#X msg 294 267 AT DD;
-#X text 336 264 get device type identifier;
-#X text 191 119 get endpoint parent's 16-bit address (Read Only);
-#X msg 328 301 AT CH;
-#X text 366 300 get operating channel;
-#X msg 348 321 AT ID;
-#X text 386 320 get 64-bit PAN ID;
-#X text 529 342 set 64-bit PAN ID;
-#X msg 390 363 AT ID 0x0;
-#X text 458 362 set coordinator chosen 64-bit PAN ID;
-#X msg 370 343 AT ID 0xFEEAFEEBFEECFEED;
-#X text 210 74 set lower 32 bits of destination address;
-#X msg 412 385 AT OP;
-#X text 455 383 get operating 64-bit PAN ID;
-#X msg 432 405 AT NH;
-#X msg 452 425 AT NH 0xFF;
-#X text 528 443 set maximum unicast hops (float arg);
-#X text 525 423 set maximum unicast hops (symbol arg);
-#X text 475 403 get maximum unicast hops (no arg);
-#X msg 492 465 AT BH;
-#X text 535 463 get maximum broadcastcast hops (no arg);
-#X text 585 483 set maximum broadcast hops (symbol arg);
-#X msg 512 485 AT BH 0x1E;
-#X msg 532 505 AT BH 3;
-#X text 585 502 set maximum broadcast hops (float arg);
-#X msg 552 525 AT OI;
-#X text 595 523 get operating 16-bit PAN ID;
-#X msg 472 445 AT NH 2;
-#X msg 573 546 AT NT;
-#X text 616 544 get node discovery timeout;
-#X text 662 564 set node discovery timeout;
-#X msg 593 566 AT NT 0xFF;
-#X msg 613 586 AT NO;
-#X msg 633 606 AT NO 3;
-#X text 656 584 get node discovery options;
-#X text 684 604 set node discovery options;
-#X msg 654 627 AT SC;
-#X msg 673 646 AT SC 0xFFFF;
-#X text 697 625 get scan channel bitmask;
-#X text 754 645 set scan channels;
-#X msg 692 665 AT SD;
-#X msg 711 684 AT SD 3;
-#X text 735 663 get scan duration;
-#X text 762 683 set scan duration;
-#X text 66 300 get zigbee stack profile;
-#X text 94 320 set zigbee stack profile;
-#X msg 28 301 AT ZS;
-#X msg 47 320 AT ZS 0;
-#X msg 68 341 AT NJ;
-#X msg 88 361 AT NJ 0xFF;
-#X text 106 340 get node join time;
-#X text 161 360 set node join time;
-#X obj 410 700 s topackxbee;
-#X obj 614 688 r topackxbee;
-#X msg 108 381 AT JV;
-#X text 146 380 get channel verification;
-#X text 181 400 set channel verification;
-#X msg 128 401 AT JV 1;
-#X text 203 437 get power level;
-#X msg 165 438 AT PL;
-#X msg 185 458 AT PM;
-#X text 223 457 get power mode;
-#X msg 205 478 AT DB;
-#X msg 225 498 AT PP;
-#X text 263 497 get peak power dBm;
-#X text 243 477 get received signal strength -dBm;
-#X text 283 517 get API mode;
-#X msg 245 518 AT AP;
-#X msg 325 598 AT AO;
-#X text 363 597 get API options;
-#X msg 345 618 AT BD;
-#X text 383 617 get interface data rate;
-#X msg 365 638 AT NB;
-#X text 403 637 get interface parity;
-#X msg 385 658 AT SB;
-#X text 423 657 get interface stop bits;
-#X msg 405 678 AT RO;
-#X text 443 677 get packetization timeout;
-#X obj 1080 736 s topackxbee;
-#X msg 954 593 AT D7;
-#X msg 936 575 AT D6;
-#X msg 708 347 AT IR;
-#X text 746 346 get IO sample rate;
-#X msg 728 367 AT IC;
-#X text 766 366 get IO digital change detection;
-#X msg 748 387 AT P0;
-#X text 786 386 get PWM0 function;
-#X msg 768 407 AT P1;
-#X text 806 406 get PWM1 function;
-#X msg 788 427 AT P2;
-#X text 826 426 get PWM2 function;
-#X msg 808 447 AT P3;
-#X text 846 446 get PWM3 function;
-#X msg 828 467 AT D0;
-#X text 872 466 get AD0/DIO0 function;
-#X msg 846 485 AT D1;
-#X msg 864 503 AT D2;
-#X text 908 502 get AD2/DIO2 function;
-#X text 890 484 get AD1/DIO1 function;
-#X msg 882 521 AT D3;
-#X msg 900 539 AT D4;
-#X msg 918 557 AT D5;
-#X text 926 520 get AD3/DIO3 function;
-#X text 944 538 get DIO4 function;
-#X text 962 556 get DIO5 function;
-#X text 974 574 get DIO6 configuration;
-#X text 992 592 get DIO7 configuration;
-#X msg 972 611 AT D8;
-#X text 1010 610 get DIO8 configuration;
-#X msg 991 630 AT LT;
-#X text 1026 628 get Associate LED blink time 10ms;
-#X msg 1009 648 AT PR;
-#X text 1044 646 get pullup resistors;
-#X text 1067 664 get supply voltage 1200/1024mV;
-#X msg 1028 667 AT %V;
-#X msg 1048 687 AT V+;
-#X text 1087 684 get supply voltage threshold 1200/1024mV;
-#X msg 1068 707 AT TP;
-#X text 1107 704 get temperature C;
-#X obj 1275 662 s topackxbee;
-#X msg 979 349 AT VR;
-#X text 1018 346 get firmware version;
-#X msg 999 369 AT HV;
-#X text 1038 366 get hardware version;
-#X msg 1019 389 AT AI;
-#X text 1058 386 get association indication;
-#X msg 1039 409 AT CC;
-#X text 1078 406 get AT command sequence character;
-#X msg 1069 439 AT ND;
-#X text 1108 436 node discover;
-#X text 1179 459 resolve destination node;
-#X msg 1109 479 AT IS;
-#X msg 1129 499 AT 1S;
-#X text 1157 477 force sample;
-#X text 1167 497 force xbee sample;
-#X msg 143 705 devices;
-#X msg 11 546 API 1;
-#X msg 33 568 API 2;
-#X obj 84 636 s topackxbee;
-#X text 50 545 set API mode 1;
-#X text 74 569 set API mode 2 (escaped characters);
-#X text 55 583 mode 2 is the default setting;
-#X text 314 537 set API mode;
-#X msg 265 538 AT AP 1;
-#X text 334 557 set API mode;
-#X msg 285 558 AT AP 2;
-#X msg 1162 532 AT AC;
-#X text 1202 530 apply changes;
-#X msg 1182 552 AT WR;
-#X text 1222 550 write parameters to non-volatile memory;
-#X msg 1202 572 AT RE;
-#X text 1242 570 restore defaults;
-#X msg 1222 592 AT FR;
-#X text 1262 590 software reset;
-#X msg 1242 612 AT NR;
-#X text 1282 610 network reset;
-#X msg 1262 632 AT CB 1;
-#X text 1312 630 commisioning pushbutton;
-#X text 1115 515 ***DANGEROUS***;
-#X text 14 704 list available ports;
-#X obj 792 322 s topackxbee;
-#X text 640 79 queue set interface data rate;
-#X msg 566 79 ATQ BD 7;
-#X msg 183 652 baud 115200;
-#X msg 207 676 baud 9600;
-#X text 660 99 queue set interface data rate;
-#X msg 586 99 ATQ BD 3;
-#X msg 150 751 verbosity \$1;
-#X obj 96 736 hradio 15 1 0 3 empty empty verbosity 0 -8 0 10 -4034
+#X obj 400 56 cnv 15 150 200 empty empty empty 20 12 0 14 -232576 -66577
+0;
+#X obj -15 8 cnv 15 400 280 empty empty empty 20 12 0 14 -232576 -66577
+0;
+#X obj -15 290 cnv 15 600 240 empty empty empty 20 12 0 14 -204786
+-66577 0;
+#X obj -15 533 cnv 15 600 200 empty empty empty 20 12 0 14 -262130
+-66577 0;
+#X obj 269 664 cnv 15 300 25 empty empty unpackxbee: 1 12 0 14 -257985
+-159808 0;
+#X obj 74 181 cnv 15 300 25 empty empty packxbee: 1 12 0 14 -159808
+-257985 0;
+#X obj 119 134 r topackxbee;
+#X msg 251 301 devices;
+#X msg -1 14 API 1;
+#X msg 21 36 API 2;
+#X text 38 13 set API mode 1;
+#X text 62 37 set API mode 2 (escaped characters);
+#X text 43 51 mode 2 is the default setting;
+#X msg 326 376 baud 115200;
+#X msg 350 400 baud 9600;
+#X msg 280 570 verbosity \$1;
+#X obj 280 549 hradio 15 1 0 3 empty empty verbosity 0 -8 0 10 -4034
-1 -1 0;
-#X msg 713 226 verbosity \$1;
-#X obj 659 211 hradio 15 1 0 3 empty empty verbosity 0 -8 0 10 -4034
--1 -1 2;
-#X msg 656 169 TX 0x0013A200406ADE1E 0x79D6 0 0 64;
-#X obj 237 742 t f f;
-#X obj 237 796 print data;
-#N canvas 43 599 1232 329 status 1;
+#X obj 360 446 t f f;
+#X obj 360 695 print data;
+#N canvas 21 647 1232 329 status 0;
#X obj 73 16 inlet;
#X floatatom 184 218 5 0 0 0 - - -;
#X obj 254 99 print unpack5;
#X obj 73 46 route AT_Command_Response;
#X obj 73 82 list split 3;
-#X obj 184 142 route ND;
#X obj 184 120 list trim;
#X symbolatom 201 234 7 0 0 0 - - -;
#X symbolatom 219 251 20 0 0 0 - - -;
@@ -306,7 +132,7 @@
#X text 983 280 data length;
#X text 991 256 status;
#X obj 936 124 unpack 0 0 s s s 0 0;
-#X obj 229 162 print AT_response;
+#X obj 247 167 print AT_response;
#X text 948 192 addr16;
#X obj 1101 160 select 0 1 2 3 4;
#X symbolatom 1101 360 32 0 0 0 - - -;
@@ -316,269 +142,515 @@
#X msg 1138 226 set Invalid_Command;
#X msg 1157 246 set Invalid_Parameter;
#X msg 1175 269 set Transmission_Failed;
+#X obj 184 142 route ND SL;
+#X obj 61 309 print SL;
#X connect 0 0 3 0;
#X connect 3 0 4 0;
-#X connect 3 1 19 0;
-#X connect 4 0 9 0;
-#X connect 4 1 6 0;
+#X connect 3 1 18 0;
+#X connect 4 0 8 0;
+#X connect 4 1 5 0;
#X connect 4 2 2 0;
-#X connect 5 0 36 0;
-#X connect 5 1 102 0;
-#X connect 6 0 5 0;
-#X connect 9 0 10 0;
-#X connect 9 1 11 0;
-#X connect 9 2 12 0;
-#X connect 19 0 45 0;
-#X connect 19 1 46 0;
-#X connect 36 0 1 0;
-#X connect 36 1 7 0;
-#X connect 36 2 8 0;
-#X connect 36 3 32 0;
-#X connect 36 4 33 0;
-#X connect 36 5 37 0;
-#X connect 36 6 38 0;
-#X connect 36 7 34 0;
-#X connect 36 8 35 0;
-#X connect 45 0 20 0;
-#X connect 45 1 21 0;
-#X connect 45 2 24 0;
-#X connect 45 3 28 0;
-#X connect 45 4 27 0;
-#X connect 45 4 67 0;
-#X connect 45 5 26 0;
-#X connect 45 5 81 0;
-#X connect 46 0 64 0;
-#X connect 46 1 87 0;
-#X connect 54 0 60 0;
-#X connect 54 0 61 0;
-#X connect 54 0 62 0;
-#X connect 54 0 63 0;
+#X connect 5 0 111 0;
+#X connect 8 0 9 0;
+#X connect 8 1 10 0;
+#X connect 8 2 11 0;
+#X connect 18 0 44 0;
+#X connect 18 1 45 0;
+#X connect 35 0 1 0;
+#X connect 35 1 6 0;
+#X connect 35 2 7 0;
+#X connect 35 3 31 0;
+#X connect 35 4 32 0;
+#X connect 35 5 36 0;
+#X connect 35 6 37 0;
+#X connect 35 7 33 0;
+#X connect 35 8 34 0;
+#X connect 44 0 19 0;
+#X connect 44 1 20 0;
+#X connect 44 2 23 0;
+#X connect 44 3 27 0;
+#X connect 44 4 26 0;
+#X connect 44 4 66 0;
+#X connect 44 5 25 0;
+#X connect 44 5 80 0;
+#X connect 45 0 63 0;
+#X connect 45 1 86 0;
+#X connect 53 0 59 0;
+#X connect 53 0 60 0;
+#X connect 53 0 61 0;
+#X connect 53 0 62 0;
+#X connect 59 0 55 0;
#X connect 60 0 56 0;
#X connect 61 0 57 0;
#X connect 62 0 58 0;
-#X connect 63 0 59 0;
-#X connect 64 0 52 0;
-#X connect 64 1 65 0;
-#X connect 64 2 49 0;
-#X connect 64 3 48 0;
-#X connect 64 4 54 0;
-#X connect 67 0 69 0;
-#X connect 67 1 71 0;
-#X connect 67 2 73 0;
-#X connect 67 3 72 0;
-#X connect 67 4 74 0;
-#X connect 67 5 75 0;
-#X connect 67 6 76 0;
-#X connect 67 7 77 0;
-#X connect 67 8 70 0;
-#X connect 69 0 68 0;
-#X connect 70 0 68 0;
-#X connect 71 0 68 0;
-#X connect 72 0 68 0;
-#X connect 73 0 68 0;
-#X connect 74 0 68 0;
-#X connect 75 0 68 0;
-#X connect 76 0 68 0;
-#X connect 77 0 68 0;
-#X connect 80 0 79 0;
-#X connect 81 0 82 0;
-#X connect 81 1 83 0;
-#X connect 81 2 84 0;
-#X connect 81 3 85 0;
-#X connect 81 4 80 0;
-#X connect 82 0 79 0;
-#X connect 83 0 79 0;
-#X connect 84 0 79 0;
-#X connect 85 0 79 0;
-#X connect 87 0 101 0;
-#X connect 87 1 47 0;
-#X connect 101 0 88 0;
-#X connect 101 1 89 0;
-#X connect 101 2 93 0;
-#X connect 101 3 95 0;
-#X connect 101 4 96 0;
-#X connect 101 5 98 0;
-#X connect 101 5 104 0;
-#X connect 101 6 92 0;
-#X connect 104 0 107 0;
-#X connect 104 1 108 0;
-#X connect 104 2 109 0;
-#X connect 104 3 110 0;
-#X connect 104 4 111 0;
-#X connect 107 0 105 0;
-#X connect 108 0 105 0;
-#X connect 109 0 105 0;
-#X connect 110 0 105 0;
-#X connect 111 0 105 0;
-#X restore 317 783 pd status;
-#X obj 385 759 spigot;
-#X obj 385 781 print raw;
-#X obj 418 733 tgl 15 0 empty empty print_raw 17 7 0 10 -4034 -1 -1
-0 1;
-#X obj 715 780 print packed;
-#X obj 715 754 spigot;
-#X obj 748 730 tgl 15 0 empty empty print_packed 17 7 0 10 -4034 -1
+#X connect 63 0 51 0;
+#X connect 63 1 64 0;
+#X connect 63 2 48 0;
+#X connect 63 3 47 0;
+#X connect 63 4 53 0;
+#X connect 66 0 68 0;
+#X connect 66 1 70 0;
+#X connect 66 2 72 0;
+#X connect 66 3 71 0;
+#X connect 66 4 73 0;
+#X connect 66 5 74 0;
+#X connect 66 6 75 0;
+#X connect 66 7 76 0;
+#X connect 66 8 69 0;
+#X connect 68 0 67 0;
+#X connect 69 0 67 0;
+#X connect 70 0 67 0;
+#X connect 71 0 67 0;
+#X connect 72 0 67 0;
+#X connect 73 0 67 0;
+#X connect 74 0 67 0;
+#X connect 75 0 67 0;
+#X connect 76 0 67 0;
+#X connect 79 0 78 0;
+#X connect 80 0 81 0;
+#X connect 80 1 82 0;
+#X connect 80 2 83 0;
+#X connect 80 3 84 0;
+#X connect 80 4 79 0;
+#X connect 81 0 78 0;
+#X connect 82 0 78 0;
+#X connect 83 0 78 0;
+#X connect 84 0 78 0;
+#X connect 86 0 100 0;
+#X connect 86 1 46 0;
+#X connect 100 0 87 0;
+#X connect 100 1 88 0;
+#X connect 100 2 92 0;
+#X connect 100 3 94 0;
+#X connect 100 4 95 0;
+#X connect 100 5 97 0;
+#X connect 100 5 103 0;
+#X connect 100 6 91 0;
+#X connect 103 0 106 0;
+#X connect 103 1 107 0;
+#X connect 103 2 108 0;
+#X connect 103 3 109 0;
+#X connect 103 4 110 0;
+#X connect 106 0 104 0;
+#X connect 107 0 104 0;
+#X connect 108 0 104 0;
+#X connect 109 0 104 0;
+#X connect 110 0 104 0;
+#X connect 111 0 35 0;
+#X connect 111 1 112 0;
+#X connect 111 2 101 0;
+#X restore 429 695 pd status;
+#X obj 387 487 spigot;
+#X obj 420 467 tgl 15 0 empty empty print_serial_in 17 7 0 10 -4034
+-1 -1 0 1;
+#X obj 178 227 spigot;
+#X obj 211 208 tgl 15 0 empty empty print_packets 17 7 0 10 -4034 -1
-1 0 1;
-#X obj 715 705 packxbee 2;
-#X obj 237 768 unpackxbee 2;
-#X msg 636 149 TX 0x0013A20040769444 0xFFFE 0 0 1 2 3 4;
-#X obj 412 2 import mrpeach;
-#X text 891 135 data packet: 64-bit_destination 16-bit_destination
-broadcast_radius options data;
-#X obj 898 97 hsl 128 15 0 127 0 0 empty empty empty -2 -8 0 10 -262144
--1 -1 1900 0;
-#X obj 895 116 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -8 0 10
--262144 -1 -1 19 256;
-#X obj 895 74 f;
-#X obj 938 74 + 1;
-#X obj 1337 160 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1
-0 1;
-#X obj 982 72 % 128;
-#X obj 237 723 comport 4 9600;
-#X msg 617 130 TX 0x0013A200406BFE6C 0x51D6 0 0 136 \$1;
-#X msg 1337 273 4;
-#X msg 1356 253 5;
-#X obj 1337 209 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1
-1 1;
-#X obj 1337 230 sel 0 1;
-#X msg 777 290 RAT 0x0013A200406BFE6C 0x51D6 2 D0 \$1;
-#X obj 1337 185 metro 200;
-#X msg 753 266 RAT 0x0013A200406BFE6C 0x51D6 0 SL;
-#X msg 733 246 RAT 0x0013A200406BFE6C 0x51D6 0 SH;
-#X obj 895 32 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
+#X obj 153 185 packxbee 2;
+#X obj 360 667 unpackxbee 2;
+#X obj 491 6 import mrpeach;
+#N canvas 769 113 381 211 META 0;
+#X text 22 55 LICENSE GPL v2 or later;
+#X text 22 153 AUTHOR Martin Peach;
+#X text 22 15 KEYWORDS control network wireless xbee;
+#X text 22 173 HELP_PATCH_AUTHORS Martin Peach;
+#X text 22 75 DESCRIPTION [packxbee] builds packets for xbees in API
+modes 1 or 2;
+#X text 22 130 OUTLET_0 list;
+#X text 22 35 NAME packxbee;
+#X text 22 110 INLET_0 API TX AT ATQ RAT verbosity;
+#X restore 534 26 pd META;
+#X msg 291 341 info;
+#X msg 271 321 open 4;
+#N canvas 325 174 758 479 IO_COMMANDS 0;
+#X obj 400 426 s topackxbee;
+#X msg 274 283 AT D7;
+#X msg 256 265 AT D6;
+#X msg 28 37 AT IR;
+#X text 66 36 get IO sample rate;
+#X msg 48 57 AT IC;
+#X text 86 56 get IO digital change detection;
+#X msg 68 77 AT P0;
+#X text 106 76 get PWM0 function;
+#X msg 88 97 AT P1;
+#X text 126 96 get PWM1 function;
+#X msg 108 117 AT P2;
+#X text 146 116 get PWM2 function;
+#X msg 128 137 AT P3;
+#X text 166 136 get PWM3 function;
+#X msg 148 157 AT D0;
+#X text 192 156 get AD0/DIO0 function;
+#X msg 166 175 AT D1;
+#X msg 184 193 AT D2;
+#X text 228 192 get AD2/DIO2 function;
+#X text 210 174 get AD1/DIO1 function;
+#X msg 202 211 AT D3;
+#X msg 220 229 AT D4;
+#X msg 238 247 AT D5;
+#X text 246 210 get AD3/DIO3 function;
+#X text 264 228 get DIO4 function;
+#X text 282 246 get DIO5 function;
+#X text 294 264 get DIO6 configuration;
+#X text 312 282 get DIO7 configuration;
+#X msg 292 301 AT D8;
+#X text 330 300 get DIO8 configuration;
+#X msg 311 320 AT LT;
+#X text 346 318 get Associate LED blink time 10ms;
+#X msg 329 338 AT PR;
+#X text 364 336 get pullup resistors;
+#X text 387 354 get supply voltage 1200/1024mV;
+#X msg 348 357 AT %V;
+#X msg 368 377 AT V+;
+#X text 407 374 get supply voltage threshold 1200/1024mV;
+#X msg 388 397 AT TP;
+#X text 427 394 get temperature C;
+#X msg 451 213 AT IS;
+#X msg 471 233 AT 1S;
+#X text 499 211 force sample;
+#X text 509 231 force xbee sample;
+#X obj 507 286 s topackxbee;
+#X connect 1 0 0 0;
+#X connect 2 0 0 0;
+#X connect 3 0 0 0;
+#X connect 5 0 0 0;
+#X connect 7 0 0 0;
+#X connect 9 0 0 0;
+#X connect 11 0 0 0;
+#X connect 13 0 0 0;
+#X connect 15 0 0 0;
+#X connect 17 0 0 0;
+#X connect 18 0 0 0;
+#X connect 21 0 0 0;
+#X connect 22 0 0 0;
+#X connect 23 0 0 0;
+#X connect 29 0 0 0;
+#X connect 31 0 0 0;
+#X connect 33 0 0 0;
+#X connect 36 0 0 0;
+#X connect 37 0 0 0;
+#X connect 39 0 0 0;
+#X connect 41 0 45 0;
+#X connect 42 0 45 0;
+#X restore 408 168 pd IO_COMMANDS;
+#N canvas 5 77 1158 513 NETWORK_COMMANDS 0;
+#X msg 80 53 AT DH 0x0013A200;
+#X text 193 52 set upper 32 bits of destination address;
+#X msg 103 76 AT DL 0x407694DB;
+#X msg 128 101 AT MY;
+#X text 80 9 get upper 32 bits of destination address;
+#X msg 37 10 AT DH;
+#X msg 60 33 AT DL;
+#X msg 148 121 AT MP;
+#X text 171 99 get our 16-bit address (Read Only);
+#X msg 171 144 AT NC;
+#X text 210 141 get number of remaining children (Read Only);
+#X msg 193 166 AT SH;
+#X text 232 163 get serial number high 32 bits (Read Only);
+#X text 253 184 get serial number low 32 bits (Read Only);
+#X msg 214 187 AT SL;
+#X msg 234 207 AT NI diddley;
+#X text 321 204 set node identifier string;
+#X msg 254 227 AT NI;
+#X text 299 225 get node identifier string;
+#X msg 274 247 AT NP;
+#X text 319 245 get maximum payload;
+#X msg 294 267 AT DD;
+#X text 336 264 get device type identifier;
+#X text 191 119 get endpoint parent's 16-bit address (Read Only);
+#X text 210 74 set lower 32 bits of destination address;
+#X text 97 31 get lower 32 bits of destination address;
+#X obj 497 487 s topackxbee;
+#X msg 448 11 AT CH;
+#X text 486 10 get operating channel;
+#X msg 468 31 AT ID;
+#X text 506 30 get 64-bit PAN ID;
+#X text 649 52 set 64-bit PAN ID;
+#X msg 510 73 AT ID 0x0;
+#X text 578 72 set coordinator chosen 64-bit PAN ID;
+#X msg 490 53 AT ID 0xFEEAFEEBFEECFEED;
+#X msg 532 95 AT OP;
+#X text 575 93 get operating 64-bit PAN ID;
+#X msg 552 115 AT NH;
+#X msg 572 135 AT NH 0xFF;
+#X text 648 153 set maximum unicast hops (float arg);
+#X text 645 133 set maximum unicast hops (symbol arg);
+#X text 595 113 get maximum unicast hops (no arg);
+#X msg 612 175 AT BH;
+#X text 655 173 get maximum broadcastcast hops (no arg);
+#X text 705 193 set maximum broadcast hops (symbol arg);
+#X msg 632 195 AT BH 0x1E;
+#X msg 652 215 AT BH 3;
+#X text 705 212 set maximum broadcast hops (float arg);
+#X msg 672 235 AT OI;
+#X text 715 233 get operating 16-bit PAN ID;
+#X msg 592 155 AT NH 2;
+#X msg 693 256 AT NT;
+#X text 736 254 get node discovery timeout;
+#X text 782 274 set node discovery timeout;
+#X msg 713 276 AT NT 0xFF;
+#X msg 733 296 AT NO;
+#X msg 753 316 AT NO 3;
+#X text 776 294 get node discovery options;
+#X text 804 314 set node discovery options;
+#X msg 774 337 AT SC;
+#X msg 793 356 AT SC 0xFFFF;
+#X text 817 335 get scan channel bitmask;
+#X text 874 355 set scan channels;
+#X msg 812 375 AT SD;
+#X msg 831 394 AT SD 3;
+#X text 855 373 get scan duration;
+#X text 882 393 set scan duration;
+#X obj 907 487 s topackxbee;
+#X text 66 230 get zigbee stack profile;
+#X text 94 250 set zigbee stack profile;
+#X msg 28 231 AT ZS;
+#X msg 47 250 AT ZS 0;
+#X msg 68 271 AT NJ;
+#X msg 88 291 AT NJ 0xFF;
+#X text 106 270 get node join time;
+#X text 161 290 set node join time;
+#X msg 108 311 AT JV;
+#X text 146 310 get channel verification;
+#X text 181 330 set channel verification;
+#X msg 128 331 AT JV 1;
+#X obj 267 487 s topackxbee;
+#X msg 429 402 AT AI;
+#X text 468 399 get association indication;
+#X msg 386 359 AT ND;
+#X text 425 356 node discover;
+#X text 436 319 resolve destination node;
+#X msg 346 319 AT DN IMCA_R1;
+#X connect 0 0 26 0;
+#X connect 2 0 26 0;
+#X connect 3 0 26 0;
+#X connect 5 0 26 0;
+#X connect 6 0 26 0;
+#X connect 7 0 26 0;
+#X connect 9 0 26 0;
+#X connect 11 0 26 0;
+#X connect 14 0 26 0;
+#X connect 15 0 26 0;
+#X connect 17 0 26 0;
+#X connect 19 0 26 0;
+#X connect 21 0 26 0;
+#X connect 27 0 67 0;
+#X connect 29 0 67 0;
+#X connect 32 0 67 0;
+#X connect 34 0 67 0;
+#X connect 35 0 67 0;
+#X connect 37 0 67 0;
+#X connect 38 0 67 0;
+#X connect 42 0 67 0;
+#X connect 45 0 67 0;
+#X connect 46 0 67 0;
+#X connect 48 0 67 0;
+#X connect 50 0 67 0;
+#X connect 51 0 67 0;
+#X connect 54 0 67 0;
+#X connect 55 0 67 0;
+#X connect 56 0 67 0;
+#X connect 59 0 67 0;
+#X connect 60 0 67 0;
+#X connect 63 0 67 0;
+#X connect 64 0 67 0;
+#X connect 70 0 80 0;
+#X connect 71 0 80 0;
+#X connect 72 0 80 0;
+#X connect 73 0 80 0;
+#X connect 76 0 80 0;
+#X connect 79 0 80 0;
+#X connect 81 0 26 0;
+#X connect 83 0 26 0;
+#X connect 86 0 26 0;
+#X restore 408 187 pd NETWORK_COMMANDS;
+#N canvas 5 77 450 300 RADIO_COMMANDS 0;
+#X text 129 52 get power level;
+#X msg 91 53 AT PL;
+#X msg 111 73 AT PM;
+#X text 149 72 get power mode;
+#X msg 131 93 AT DB;
+#X msg 151 113 AT PP;
+#X text 189 112 get peak power dBm;
+#X text 169 92 get received signal strength -dBm;
+#X obj 187 166 s topackxbee;
+#X connect 1 0 8 0;
+#X connect 2 0 8 0;
+#X connect 4 0 8 0;
+#X connect 5 0 8 0;
+#X restore 408 149 pd RADIO_COMMANDS;
+#N canvas 5 77 675 320 SERIAL_COMMANDS 0;
+#X obj 280 290 s topackxbee;
+#X text 83 37 get API mode;
+#X msg 45 38 AT AP;
+#X msg 125 118 AT AO;
+#X text 163 117 get API options;
+#X msg 155 148 AT BD;
+#X text 193 147 get interface data rate;
+#X msg 175 168 AT NB;
+#X text 213 167 get interface parity;
+#X msg 195 188 AT SB;
+#X text 233 187 get interface stop bits;
+#X msg 215 208 AT RO;
+#X text 253 207 get packetization timeout;
+#X text 114 57 set API mode;
+#X msg 65 58 AT AP 1;
+#X text 134 77 set API mode;
+#X msg 85 78 AT AP 2;
+#X msg 106 99 AT CC;
+#X text 145 96 get AT command sequence character;
+#X text 440 79 queue set interface data rate;
+#X msg 366 79 ATQ BD 7;
+#X text 460 99 queue set interface data rate;
+#X msg 386 99 ATQ BD 3;
+#X obj 490 220 s topackxbee;
+#X msg 246 239 AT VR;
+#X text 285 236 get firmware version;
+#X msg 266 259 AT HV;
+#X text 305 256 get hardware version;
+#X msg 419 132 AT AC;
+#X text 459 130 apply changes;
+#X connect 2 0 0 0;
+#X connect 3 0 0 0;
+#X connect 5 0 0 0;
+#X connect 7 0 0 0;
+#X connect 9 0 0 0;
+#X connect 11 0 0 0;
+#X connect 14 0 0 0;
+#X connect 16 0 0 0;
+#X connect 17 0 0 0;
+#X connect 20 0 23 0;
+#X connect 22 0 23 0;
+#X connect 24 0 0 0;
+#X connect 26 0 0 0;
+#X connect 28 0 23 0;
+#X restore 408 130 pd SERIAL_COMMANDS;
+#N canvas 5 77 886 301 REMOTE_OOMMANDS 0;
+#X obj 122 40 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
+1;
+#X msg 122 153 4;
+#X msg 167 153 5;
+#X obj 122 89 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
-#X obj 895 52 metro 200;
-#X text 856 220 remote AT command: 64-bit address \, 16-bit address
+#X obj 122 110 sel 0 1;
+#X msg 277 170 RAT 0x0013A200406BFE6C 0x51D6 2 D0 \$1;
+#X obj 122 65 metro 200;
+#X msg 253 146 RAT 0x0013A200406BFE6C 0x51D6 0 SL;
+#X msg 233 126 RAT 0x0013A200406BFE6C 0x51D6 0 SH;
+#X text 229 93 remote AT command: 64-bit address \, 16-bit address
\, options \, command \, parameters;
-#X text 1008 290 switch remote IO pin 0 high/low (options = 2 = apply
+#X text 507 167 switch remote IO pin 0 high/low (options = 2 = apply
changes immediately);
-#X msg 1089 459 AT DN IMCA_R1;
-#X connect 0 0 204 0;
-#X connect 2 0 204 0;
-#X connect 3 0 204 0;
-#X connect 6 0 204 0;
-#X connect 7 0 204 0;
-#X connect 8 0 204 0;
-#X connect 10 0 204 0;
-#X connect 12 0 204 0;
-#X connect 15 0 204 0;
-#X connect 16 0 204 0;
-#X connect 18 0 204 0;
-#X connect 21 0 204 0;
-#X connect 23 0 204 0;
-#X connect 26 0 204 0;
-#X connect 28 0 204 0;
-#X connect 31 0 204 0;
-#X connect 33 0 204 0;
-#X connect 35 0 204 0;
-#X connect 37 0 204 0;
-#X connect 38 0 204 0;
-#X connect 42 0 204 0;
-#X connect 45 0 204 0;
-#X connect 46 0 204 0;
-#X connect 48 0 204 0;
-#X connect 50 0 204 0;
-#X connect 51 0 204 0;
-#X connect 54 0 204 0;
-#X connect 55 0 204 0;
-#X connect 56 0 204 0;
-#X connect 59 0 204 0;
-#X connect 60 0 204 0;
-#X connect 63 0 204 0;
-#X connect 64 0 204 0;
-#X connect 69 0 75 0;
-#X connect 70 0 75 0;
-#X connect 71 0 75 0;
-#X connect 72 0 75 0;
-#X connect 76 0 204 0;
-#X connect 77 0 75 0;
-#X connect 80 0 75 0;
-#X connect 82 0 75 0;
-#X connect 83 0 75 0;
-#X connect 85 0 75 0;
-#X connect 86 0 75 0;
-#X connect 90 0 75 0;
-#X connect 91 0 75 0;
-#X connect 93 0 75 0;
-#X connect 95 0 75 0;
-#X connect 97 0 75 0;
-#X connect 99 0 75 0;
-#X connect 102 0 101 0;
-#X connect 103 0 101 0;
-#X connect 104 0 101 0;
-#X connect 106 0 101 0;
-#X connect 108 0 101 0;
-#X connect 110 0 101 0;
-#X connect 112 0 101 0;
-#X connect 114 0 101 0;
-#X connect 116 0 101 0;
-#X connect 118 0 101 0;
-#X connect 119 0 101 0;
-#X connect 122 0 101 0;
-#X connect 123 0 101 0;
-#X connect 124 0 101 0;
-#X connect 130 0 101 0;
-#X connect 132 0 101 0;
-#X connect 134 0 101 0;
-#X connect 137 0 101 0;
-#X connect 138 0 101 0;
-#X connect 140 0 101 0;
-#X connect 143 0 142 0;
-#X connect 145 0 142 0;
-#X connect 147 0 142 0;
-#X connect 149 0 142 0;
-#X connect 151 0 142 0;
-#X connect 154 0 142 0;
-#X connect 155 0 142 0;
-#X connect 158 0 215 0;
-#X connect 159 0 161 0;
-#X connect 160 0 161 0;
-#X connect 166 0 75 0;
-#X connect 168 0 75 0;
-#X connect 169 0 142 0;
-#X connect 171 0 142 0;
-#X connect 173 0 142 0;
-#X connect 175 0 142 0;
-#X connect 177 0 142 0;
-#X connect 179 0 142 0;
-#X connect 185 0 183 0;
-#X connect 186 0 215 0;
-#X connect 187 0 215 0;
-#X connect 189 0 183 0;
-#X connect 190 0 205 0;
-#X connect 191 0 190 0;
-#X connect 192 0 183 0;
-#X connect 193 0 192 0;
-#X connect 194 0 183 0;
-#X connect 195 0 205 0;
-#X connect 195 1 198 0;
-#X connect 198 0 199 0;
-#X connect 200 0 198 1;
-#X connect 202 0 201 0;
-#X connect 203 0 202 1;
-#X connect 204 0 202 0;
-#X connect 204 0 215 0;
-#X connect 205 0 196 0;
-#X connect 205 1 197 0;
-#X connect 206 0 183 0;
-#X connect 209 0 210 0;
-#X connect 210 0 216 0;
-#X connect 211 0 212 0;
-#X connect 211 0 209 0;
-#X connect 212 0 214 0;
-#X connect 213 0 222 0;
-#X connect 214 0 211 1;
-#X connect 215 0 195 0;
-#X connect 216 0 183 0;
-#X connect 217 0 221 0;
-#X connect 218 0 221 0;
-#X connect 219 0 220 0;
-#X connect 220 0 217 0;
-#X connect 220 1 218 0;
-#X connect 221 0 183 0;
-#X connect 222 0 219 0;
-#X connect 223 0 183 0;
-#X connect 224 0 183 0;
-#X connect 225 0 226 0;
-#X connect 226 0 211 0;
-#X connect 229 0 142 0;
+#X obj 344 254 s topackxbee;
+#X connect 0 0 6 0;
+#X connect 1 0 5 0;
+#X connect 2 0 5 0;
+#X connect 3 0 4 0;
+#X connect 4 0 1 0;
+#X connect 4 1 2 0;
+#X connect 5 0 11 0;
+#X connect 6 0 3 0;
+#X connect 7 0 11 0;
+#X connect 8 0 11 0;
+#X restore 408 110 pd REMOTE_OOMMANDS;
+#N canvas 5 77 450 233 DANGEROUS_COMMANDS 0;
+#X obj 185 172 s topackxbee;
+#X msg 72 42 AT AC;
+#X text 112 40 apply changes;
+#X msg 92 62 AT WR;
+#X text 132 60 write parameters to non-volatile memory;
+#X msg 112 82 AT RE;
+#X text 152 80 restore defaults;
+#X msg 132 102 AT FR;
+#X text 172 100 software reset;
+#X msg 152 122 AT NR;
+#X text 192 120 network reset;
+#X msg 172 142 AT CB 1;
+#X text 222 140 commisioning pushbutton;
+#X text 25 25 ***DANGEROUS***;
+#X connect 1 0 0 0;
+#X connect 3 0 0 0;
+#X connect 5 0 0 0;
+#X connect 7 0 0 0;
+#X connect 9 0 0 0;
+#X connect 11 0 0 0;
+#X restore 408 90 pd DANGEROUS_COMMANDS;
+#N canvas 5 77 744 406 TRANSMIT_COMMANDS 0;
+#X obj 282 332 s topackxbee;
+#X msg 206 239 TX 0x0013A200406ADE1E 0x79D6 0 0 64;
+#X msg 186 219 TX 0x0013A20040769444 0xFFFE 0 0 1 2 3 4;
+#X text 381 145 data packet: 64-bit_destination 16-bit_destination
+broadcast_radius options data;
+#X obj 388 87 hsl 128 15 0 127 0 0 empty empty empty -2 -8 0 10 -262144
+-1 -1 0 0;
+#X obj 385 106 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -8 0 10
+-262144 -1 -1 0 256;
+#X obj 385 64 f;
+#X obj 428 64 + 1;
+#X obj 472 62 % 128;
+#X obj 385 22 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
+1;
+#X msg 423 183 TX 0x0013A2004092FE00 0xFFFE 0 0 136 \$1;
+#X msg 167 200 TX 0x0013A200406BFE6C 0x9A17 0 0 \$1;
+#X obj 385 42 metro 2000;
+#X text 13 49 (prefix hexadecimal parameters with 0x to force Pd to
+see them as symbols);
+#X connect 1 0 0 0;
+#X connect 2 0 0 0;
+#X connect 4 0 5 0;
+#X connect 5 0 11 0;
+#X connect 6 0 7 0;
+#X connect 6 0 4 0;
+#X connect 7 0 8 0;
+#X connect 8 0 6 1;
+#X connect 9 0 12 0;
+#X connect 11 0 0 0;
+#X connect 12 0 6 0;
+#X restore 408 70 pd TRANSMIT_COMMANDS;
+#X msg 85 100 verbosity \$1;
+#X obj 83 79 hradio 15 1 0 3 empty empty verbosity 0 -8 0 10 -4034
+-1 -1 0;
+#X obj 58 244 print packet;
+#X obj 457 444 print serial_info;
+#X text 148 375 set the interface baud rate;
+#X text 302 300 (find the one with an xbee connected to it);
+#X text 6 300 list available serial ports to console;
+#X text 65 320 open a port by number or by name;
+#X text 128 340 get current serial status;
+#X obj 214 264 spigot;
+#X obj 247 245 tgl 15 0 empty empty transmit_packets 17 7 0 10 -4034
+-1 -1 0 1;
+#X obj 387 509 print serial_in;
+#X obj 249 135 packxbee-example;
+#X text -9 113 [packxbee] formats packets for use with xbees in API
+modes 1 or 2;
+#X text -9 150 [packxbee] outputs lists of bytes that are typically
+passed to a [comport] object.;
+#X obj 360 427 comport 98 9600;
+#X text -10 626 The output of [comport] can be connected to an [unpackxbee]
+object to (at least partially) unpack the received packets.;
+#X connect 6 0 24 0;
+#X connect 7 0 52 0;
+#X connect 8 0 24 0;
+#X connect 9 0 24 0;
+#X connect 13 0 52 0;
+#X connect 14 0 52 0;
+#X connect 15 0 25 0;
+#X connect 16 0 15 0;
+#X connect 17 0 25 0;
+#X connect 17 1 20 0;
+#X connect 20 0 48 0;
+#X connect 21 0 20 1;
+#X connect 22 0 39 0;
+#X connect 23 0 22 1;
+#X connect 24 0 22 0;
+#X connect 24 0 46 0;
+#X connect 25 0 18 0;
+#X connect 25 1 19 0;
+#X connect 28 0 52 0;
+#X connect 29 0 52 0;
+#X connect 37 0 24 0;
+#X connect 38 0 37 0;
+#X connect 46 0 52 0;
+#X connect 47 0 46 1;
+#X connect 52 0 17 0;
+#X connect 52 1 40 0;