aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xbee/packxbee-example.pd118
1 files changed, 66 insertions, 52 deletions
diff --git a/xbee/packxbee-example.pd b/xbee/packxbee-example.pd
index 78db32e..0efed59 100644
--- a/xbee/packxbee-example.pd
+++ b/xbee/packxbee-example.pd
@@ -1,10 +1,10 @@
-#N canvas 625 101 622 719 10;
-#X text 191 235 data packet: 64-bit_destination 16-bit_destination
-broadcast_radius options data;
+#N canvas 300 169 770 718 10;
+#X text 84 159 data packet: 64-bit_destination 16-bit_destination broadcast_radius
+options data;
#X obj 80 115 hsl 128 15 0 127 0 0 empty empty empty -2 -8 0 10 -262144
--1 -1 0 0;
+-1 -1 5800 0;
#X obj 77 134 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -8 0 10
--262144 -1 -1 0 256;
+-262144 -1 -1 58 256;
#X obj 77 10 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 1
;
#X obj 77 247 packxbee 2;
@@ -12,12 +12,8 @@ broadcast_radius options data;
#X obj 77 354 comport 4 9600;
#X msg 6 266 info;
#X msg 28 288 open 4;
-#X obj 101 308 print data;
#X obj 77 424 print data;
#X obj 77 396 unpackxbee 2;
-#X obj 156 383 print status;
-#X text 84 175 The destination xbee 64-bit address and the 16-bit address
-must be set first:;
#X obj 77 30 metro 500;
#X obj 77 58 random 32;
#X obj 77 88 + 32;
@@ -34,7 +30,6 @@ must be set first:;
#X text 131 549 delivery_status;
#X obj 146 448 unpack 0 0 s 0 0 0;
#X text 146 570 discovery_status;
-#X msg 77 210 TX 0x0013A200406BFE6C 0x9A17 0 0 \$1;
#X floatatom 128 8 10 0 0 0 - - -;
#X floatatom 294 597 5 0 0 0 - - -;
#X floatatom 317 618 5 0 0 0 - - -;
@@ -63,56 +58,75 @@ must be set first:;
#X text 484 591 packet_#;
#X floatatom 560 612 5 0 0 0 - - -;
#X text 494 611 data bytes;
-#X msg 38 191 AT DH;
#X text 416 531 data_bytes;
#X text 343 491 frame_type (136);
#X text 476 571 status;
-#X msg 207 332 verbosity \$1;
-#X obj 207 305 hradio 15 1 0 3 empty empty empty 0 -8 0 10 -4034 -204786
+#X msg 304 379 verbosity \$1;
+#X obj 304 352 hradio 15 1 0 3 empty empty empty 0 -8 0 10 -4034 -204786
-1 0;
#X text 188 53 This example transmits a single byte of "data" through
an xbee in API mode 2 connected to serial port 4 at 9600 baud.;
-#X text 439 679 Martin Peach 2013_02_20;
+#X msg 77 211 TX 0x0013A200406BFD76 0xFA99 0 0 \$1;
+#X msg 480 171 TX 0x0013A200406BFEDF 0x1100 0 0 \$1;
+#X text 700 172 yellow;
+#X text 297 210 green;
+#X text 700 148 blue;
+#X msg 516 230 verbosity \$1;
+#X obj 516 203 hradio 15 1 0 3 empty empty empty 0 -8 0 10 -4034 -204786
+-1 0;
+#X text 439 679 Martin Peach 2014_10_29;
+#X msg 480 147 TX 0x0013A200406BFE6C 0x9ED2 0 0 \$1;
+#X text 700 124 blue;
+#X msg 480 123 TX 0x0013A200406BFE6C 0xFFFE 0 0 \$1;
+#X text 83 184 The destination xbee 64-bit address and the 16-bit address
+must be set first (16-bit address can be 0xFFFE if unknown):;
+#X obj 157 375 print comport_status;
+#X msg 70 330 ports;
+#X text 108 329 <-list available serial ports via outlet 2;
+#X text 38 267 <-list current serial port state via outlet 2;
+#X text 98 309 <-list available serial ports in console window;
#X connect 1 0 2 0;
-#X connect 2 0 30 0;
-#X connect 3 0 14 0;
+#X connect 2 0 61 0;
+#X connect 3 0 11 0;
#X connect 4 0 6 0;
#X connect 5 0 6 0;
-#X connect 6 0 11 0;
-#X connect 6 1 12 0;
+#X connect 6 0 10 0;
+#X connect 6 1 73 0;
#X connect 7 0 6 0;
#X connect 8 0 6 0;
-#X connect 11 0 10 0;
-#X connect 11 1 45 0;
-#X connect 14 0 15 0;
-#X connect 15 0 16 0;
-#X connect 16 0 1 0;
-#X connect 28 0 17 0;
-#X connect 28 1 18 0;
-#X connect 28 2 19 0;
-#X connect 28 3 20 0;
-#X connect 28 4 21 0;
-#X connect 28 5 23 0;
-#X connect 30 0 4 0;
-#X connect 31 0 14 1;
-#X connect 40 0 32 0;
-#X connect 40 1 33 0;
-#X connect 40 2 34 0;
-#X connect 40 3 37 0;
-#X connect 40 4 35 0;
-#X connect 44 0 4 0;
-#X connect 45 0 28 0;
-#X connect 45 1 40 0;
-#X connect 45 2 46 0;
-#X connect 46 0 50 0;
-#X connect 46 1 22 0;
-#X connect 50 0 47 0;
-#X connect 50 1 48 0;
-#X connect 50 2 51 0;
-#X connect 50 3 52 0;
-#X connect 50 4 54 0;
-#X connect 50 5 55 0;
-#X connect 50 6 57 0;
-#X connect 59 0 4 0;
-#X connect 63 0 11 0;
-#X connect 64 0 63 0;
+#X connect 10 0 9 0;
+#X connect 10 2 41 0;
+#X connect 11 0 12 0;
+#X connect 12 0 13 0;
+#X connect 13 0 1 0;
+#X connect 25 0 14 0;
+#X connect 25 1 15 0;
+#X connect 25 2 16 0;
+#X connect 25 3 17 0;
+#X connect 25 4 18 0;
+#X connect 25 5 20 0;
+#X connect 27 0 11 1;
+#X connect 36 0 28 0;
+#X connect 36 1 29 0;
+#X connect 36 2 30 0;
+#X connect 36 3 33 0;
+#X connect 36 4 31 0;
+#X connect 40 0 4 0;
+#X connect 41 0 25 0;
+#X connect 41 1 36 0;
+#X connect 41 2 42 0;
+#X connect 42 0 46 0;
+#X connect 42 1 19 0;
+#X connect 46 0 43 0;
+#X connect 46 1 44 0;
+#X connect 46 2 47 0;
+#X connect 46 3 48 0;
+#X connect 46 4 50 0;
+#X connect 46 5 51 0;
+#X connect 46 6 53 0;
+#X connect 58 0 10 0;
+#X connect 59 0 58 0;
+#X connect 61 0 4 0;
+#X connect 66 0 4 0;
+#X connect 67 0 66 0;
+#X connect 74 0 6 0;