This file is indexed.

/usr/lib/pd/extra/xbee/packxbee-help.pd is in pd-xbee 0.1~svn17645-2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
#N canvas 468 125 626 764 10;
#X declare -lib mrpeach;
#X obj 400 56 cnv 15 150 160 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 obj 360 446 t f f;
#X obj 360 695 print data;
#N canvas 23 645 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 120 list trim;
#X symbolatom 201 234 7 0 0 0 - - -;
#X symbolatom 219 251 20 0 0 0 - - -;
#X obj 73 120 unpack 0 0 0;
#X floatatom 73 144 5 0 0 0 - - -;
#X floatatom 107 164 5 0 0 0 - - -;
#X floatatom 142 184 5 0 0 0 - - -;
#X text -1 144 packet type;
#X text 39 164 packet ID;
#X text 64 183 data length;
#X text 71 215 AT command status;
#X text 155 233 addr16;
#X text 175 249 addr64;
#X obj 428 63 route ZigBee_Transmit_Status;
#X floatatom 428 105 5 0 0 0 - - -;
#X floatatom 449 123 5 0 0 0 - - -;
#X text 354 105 packet type;
#X text 381 123 packet ID;
#X symbolatom 470 140 7 0 0 0 - - -;
#X text 427 139 addr16;
#X floatatom 533 192 5 0 0 0 - - -;
#X floatatom 512 175 5 0 0 0 - - -;
#X floatatom 491 158 5 0 0 0 - - -;
#X text 360 156 transmit retry count;
#X text 411 173 delivery status;
#X text 427 190 discovery status;
#X symbolatom 236 268 32 0 0 0 - - -;
#X symbolatom 254 286 7 0 0 0 - - -;
#X symbolatom 307 339 7 0 0 0 - - -;
#X symbolatom 325 357 7 0 0 0 - - -;
#X obj 184 196 unpack 0 s s s s 0 0 s s;
#X floatatom 272 304 5 0 0 0 - - -;
#X floatatom 289 321 5 0 0 0 - - -;
#X text 139 267 Node Identifier;
#X text 207 285 parent;
#X text 197 301 device type;
#X text 209 319 source event;
#X text 252 337 profile;
#X text 247 355 manufacturer;
#X obj 428 85 unpack 0 0 s 0 0 0;
#X obj 616 80 route ZigBee_Receive_Packet;
#X obj 1181 114 print someotherpacket;
#X symbolatom 685 177 7 0 0 0 - - -;
#X symbolatom 662 159 17 0 0 0 - - -;
#X text 639 176 addr16;
#X text 618 157 addr64;
#X floatatom 616 123 5 0 0 0 - - -;
#X text 542 123 packet type;
#X floatatom 709 195 5 0 0 0 - - -;
#X text 610 193 receive options;
#X obj 709 245 tgl 15 0 empty empty acknowledged 17 7 0 10 -4034 -1
-1 0 1;
#X obj 749 265 tgl 15 0 empty empty broadcast 17 7 0 10 -4034 -1 -1
0 1;
#X obj 789 285 tgl 15 0 empty empty encrypted 17 7 0 10 -4034 -1 -1
0 1;
#X obj 829 305 tgl 15 0 empty empty from_end_device 17 7 0 10 -4034
-1 -1 0 1;
#X obj 709 209 & 1;
#X obj 749 209 & 2;
#X obj 789 209 & 32;
#X obj 829 209 & 64;
#X obj 616 101 unpack 0 0 s s 0;
#X floatatom 639 140 5 0 0 0 - - -;
#X text 565 140 data length;
#X obj 511 214 select 0 2 21 33 34 35 36 37;
#X symbolatom 511 411 32 0 0 0 - - -;
#X msg 511 238 set success;
#X msg 676 396 set unknown;
#X msg 531 257 set CCA_failurs;
#X msg 572 297 set Network_ACK_Failure;
#X msg 552 277 set Invalid_Destination_Endpoint;
#X msg 593 317 set Not_Joined_To_Network;
#X msg 612 337 set Self-Addresed;
#X msg 634 356 set Address_Not_Found;
#X msg 655 376 set Route_Not_Found;
#X text 408 410 delivery status:;
#X symbolatom 532 547 32 0 0 0 - - -;
#X msg 613 532 set unknown;
#X obj 532 435 select 0 1 2 3;
#X msg 532 456 set No_Discovery_Overhead;
#X msg 552 475 set Address_Discovery;
#X msg 573 494 set Route_Discovery;
#X msg 593 513 set Address_And_Route_Discovery;
#X text 428 545 discovery status:;
#X obj 936 97 route Remote_Command_Response;
#X floatatom 936 150 5 0 0 0 - - -;
#X floatatom 955 172 5 0 0 0 - - -;
#X text 862 150 packet type;
#X text 887 172 packet ID;
#X floatatom 1053 279 5 0 0 0 - - -;
#X symbolatom 975 212 20 0 0 0 - - -;
#X text 931 210 addr64;
#X symbolatom 994 193 7 0 0 0 - - -;
#X symbolatom 1014 234 7 0 0 0 - - -;
#X text 968 233 command;
#X floatatom 1033 256 5 0 0 0 - - -;
#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 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 - - -;
#X text 998 359 delivery status:;
#X msg 1101 187 set OK;
#X msg 1119 207 set ERROR;
#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 18 0;
#X connect 4 0 8 0;
#X connect 4 1 5 0;
#X connect 4 2 2 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 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 153 185 packxbee 2;
#X obj 360 667 unpackxbee 2;
#X obj 491 6 import mrpeach;
#N canvas 24 396 595 216 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 35 NAME packxbee;
#X text 22 130 OUTLET_0 list data;
#X text 22 110 INLET_0 API TX TX64 TX16 AT ATQ RAT verbosity;
#X text 22 75 DESCRIPTION [packxbee] builds packets for Series 1 or
2 XBees in API modes 1 or 2;
#X restore 534 26 pd META;
#X msg 291 341 info;
#X msg 271 321 open 4;
#N canvas 501 298 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 148 pd IO_COMMANDS;
#N canvas 3 90 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 167 pd NETWORK_COMMANDS;
#N canvas 3 90 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 129 pd RADIO_COMMANDS;
#N canvas 3 90 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 110 pd SERIAL_COMMANDS;
#N canvas 3 90 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 187 pd DANGEROUS_COMMANDS;
#N canvas 368 164 744 407 TRANSMIT_COMMANDS 0;
#X obj 172 292 s topackxbee;
#X msg 79 182 TX 0x0013A20040769444 0xFFFE 0 0 1 2 3 4;
#X obj 60 107 hsl 128 15 0 127 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 0 0;
#X obj 57 126 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -8 0 10
-262144 -1 -1 0 256;
#X obj 57 84 f;
#X obj 100 84 + 1;
#X obj 144 82 % 128;
#X obj 57 42 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 1
;
#X obj 57 62 metro 2000;
#X text 22 326 (prefix hexadecimal parameters with 0x to force Pd to
see them as symbols);
#X text 314 225 Series 1 data packet: 64-bit_destination options data
;
#X msg 121 224 TX64 0x0013A200406ADE1E 0 255;
#X msg 144 247 TX16 0x79D5 0 255;
#X text 257 248 Series 1 data packet: 16-bit_destination options data
;
#X text 281 151 Series 2 data packet: 64-bit_destination 16-bit_destination
broadcast_radius options data;
#X msg 57 160 TX 0x0013A200406BFE6C 0x9A17 0 0 \$1;
#X msg 100 203 TX 0x0013A200406ADE1E 0x79D6 0 0 64;
#X connect 1 0 0 0;
#X connect 2 0 3 0;
#X connect 3 0 15 0;
#X connect 4 0 5 0;
#X connect 4 0 2 0;
#X connect 5 0 6 0;
#X connect 6 0 4 1;
#X connect 7 0 8 0;
#X connect 8 0 4 0;
#X connect 11 0 0 0;
#X connect 12 0 0 0;
#X connect 15 0 0 0;
#X connect 16 0 0 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.;
#N canvas 195 133 741 379 REMOTE_COMMANDS 0;
#X obj 72 25 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 1
;
#X msg 72 138 4;
#X msg 117 138 5;
#X obj 72 74 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 1
;
#X obj 72 95 sel 0 1;
#X obj 72 50 metro 200;
#X msg 223 206 RAT 0x0013A200406BFE6C 0x51D6 0 SL;
#X text 169 123 remote AT command: 64-bit address \, 16-bit address
\, options \, command \, parameters;
#X obj 294 294 s topackxbee;
#X msg 171 154 RAT 0x0013A200406BFE6C 0x9A17 2 P1 \$1;
#X msg 246 230 RAT 0x0013A200406BFE6C 0x9A17 2 D0 4;
#X text 324 250 switch remote IO pin 0 low (options = 2 = apply changes
immediately);
#X text 203 169 set PWM1/DIO11 (pin 7) on remote xbee to digital out
high or low immediately;
#X msg 29 263 RAT 0x0013A200406BFE6C 0x9A17 0;
#X obj 29 285 list append;
#X obj 29 306 list trim;
#X obj 29 232 t b a;
#X msg 29 195 IS;
#X text 56 194 force sample;
#X obj 28 326 s topackxbee;
#X connect 0 0 5 0;
#X connect 1 0 9 0;
#X connect 2 0 9 0;
#X connect 3 0 4 0;
#X connect 4 0 1 0;
#X connect 4 1 2 0;
#X connect 5 0 3 0;
#X connect 6 0 8 0;
#X connect 9 0 8 0;
#X connect 10 0 8 0;
#X connect 13 0 14 0;
#X connect 14 0 15 0;
#X connect 15 0 19 0;
#X connect 16 0 13 0;
#X connect 16 1 14 1;
#X connect 17 0 16 0;
#X restore 408 90 pd REMOTE_COMMANDS;
#N canvas 235 602 596 319 sample_frame 0;
#X obj 62 53 inlet;
#X obj 62 106 route D0 D1 D2 D3 D4 D5 D10 D11 D12 A0 A1 A2 A3 A7;
#X obj 56 136 cnv 15 300 50 empty empty Digital_Inputs 20 12 0 14 -204786
-13381 0;
#X obj 56 187 cnv 15 400 90 empty empty Analog_Inputs 20 12 0 14 -232576
-45076 0;
#X obj 59 220 nbx 5 14 -1e+37 1e+37 0 0 empty empty A0 40 8 0 10 -204800
-13330 -159808 0 256;
#X obj 119 220 nbx 5 14 -1e+37 1e+37 0 0 empty empty A1 40 8 0 10 -204800
-13330 -159808 0 256;
#X obj 179 220 nbx 5 14 -1e+37 1e+37 0 0 empty empty A2 40 8 0 10 -204800
-13330 -159808 0 256;
#X obj 239 220 nbx 5 14 -1e+37 1e+37 0 0 empty empty A3 40 8 0 10 -204800
-13330 -159808 0 256;
#X obj 299 220 nbx 5 14 -1e+37 1e+37 0 0 empty empty V+ 40 8 0 10 -204800
-13330 -159808 0 256;
#X obj 62 162 nbx 2 14 -1e+37 1e+37 0 0 empty empty D0 8 20 0 10 -4034
-1 -258113 0 256;
#X obj 102 162 nbx 2 14 -1e+37 1e+37 0 0 empty empty D1 8 20 0 10 -4034
-1 -258113 0 256;
#X obj 132 162 nbx 2 14 -1e+37 1e+37 0 0 empty empty D2 8 20 0 10 -4034
-1 -258113 0 256;
#X obj 162 162 nbx 2 14 -1e+37 1e+37 0 0 empty empty D3 8 20 0 10 -4034
-1 -258113 0 256;
#X obj 192 162 nbx 2 14 -1e+37 1e+37 0 0 empty empty D4 8 20 0 10 -4034
-1 -258113 0 256;
#X obj 222 162 nbx 2 14 -1e+37 1e+37 0 0 empty empty D5 8 20 0 10 -4034
-1 -258113 0 256;
#X obj 252 162 nbx 2 14 -1e+37 1e+37 0 0 empty empty P0 8 20 0 10 -4034
-1 -258113 0 256;
#X obj 282 162 nbx 2 14 -1e+37 1e+37 0 0 empty empty P1 8 20 0 10 -4034
-1 -258113 0 256;
#X obj 312 162 nbx 2 14 -1e+37 1e+37 0 0 empty empty P2 8 20 0 10 -4034
-1 -258113 0 256;
#X obj 59 259 nbx 5 14 -1e+37 1e+37 0 0 empty empty A0_mV 40 8 0 10
-204800 -13330 -159808 0 256;
#X obj 59 239 * 1.17302;
#X obj 139 259 nbx 5 14 -1e+37 1e+37 0 0 empty empty A1_mV 40 8 0 10
-204800 -13330 -159808 0 256;
#X obj 139 239 * 1.17302;
#X obj 219 259 nbx 5 14 -1e+37 1e+37 0 0 empty empty A2_mV 40 8 0 10
-204800 -13330 -159808 0 256;
#X obj 219 239 * 1.17302;
#X obj 299 259 nbx 5 14 -1e+37 1e+37 0 0 empty empty A3_mV 40 8 0 10
-204800 -13330 -159808 0 256;
#X obj 299 239 * 1.17302;
#X obj 379 259 nbx 5 14 -1e+37 1e+37 0 0 empty empty V+_mV 40 8 0 10
-204800 -13330 -159808 0 256;
#X obj 379 239 * 1.17302;
#X obj 62 78 list trim;
#X obj 359 130 print more_sample_frame_stuff;
#X connect 0 0 28 0;
#X connect 1 0 9 0;
#X connect 1 1 10 0;
#X connect 1 2 11 0;
#X connect 1 3 12 0;
#X connect 1 4 13 0;
#X connect 1 5 14 0;
#X connect 1 6 15 0;
#X connect 1 7 16 0;
#X connect 1 8 17 0;
#X connect 1 9 4 0;
#X connect 1 9 19 0;
#X connect 1 10 5 0;
#X connect 1 10 21 0;
#X connect 1 11 6 0;
#X connect 1 11 23 0;
#X connect 1 12 7 0;
#X connect 1 12 25 0;
#X connect 1 13 8 0;
#X connect 1 13 27 0;
#X connect 1 14 29 0;
#X connect 19 0 18 0;
#X connect 21 0 20 0;
#X connect 23 0 22 0;
#X connect 25 0 24 0;
#X connect 27 0 26 0;
#X connect 28 0 1 0;
#X restore 394 714 pd sample_frame;
#X obj 401 222 cnv 15 150 60 empty empty empty 20 12 0 14 -261234 -66577
0;
#X text 404 221 remote xbee pin control:;
#X obj 426 251 xbeeio;
#X connect 6 0 24 0;
#X connect 7 0 51 0;
#X connect 8 0 24 0;
#X connect 9 0 24 0;
#X connect 13 0 51 0;
#X connect 14 0 51 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 47 0;
#X connect 21 0 20 1;
#X connect 22 0 38 0;
#X connect 23 0 22 1;
#X connect 24 0 22 0;
#X connect 24 0 45 0;
#X connect 25 0 18 0;
#X connect 25 1 54 0;
#X connect 25 2 19 0;
#X connect 28 0 51 0;
#X connect 29 0 51 0;
#X connect 36 0 24 0;
#X connect 37 0 36 0;
#X connect 45 0 51 0;
#X connect 46 0 45 1;
#X connect 51 0 17 0;
#X connect 51 1 39 0;