aboutsummaryrefslogtreecommitdiff
path: root/xbee
diff options
context:
space:
mode:
authorMartin Peach <mrpeach@users.sourceforge.net>2013-03-13 15:33:26 +0000
committerMartin Peach <mrpeach@users.sourceforge.net>2013-03-13 15:33:26 +0000
commit6006be2a7bdc7734505d4632d76181b8184246c8 (patch)
treebde74fa2cf44e20edbd394bc7f4137afab942b0d /xbee
parent04c540114e8bca1ba04c2ca5f284a4cd8872fc5e (diff)
Corrected [unpackxbee] with new outlet for sample frames
svn path=/trunk/externals/mrpeach/; revision=17062
Diffstat (limited to 'xbee')
-rw-r--r--xbee/packxbee-help.pd200
1 files changed, 149 insertions, 51 deletions
diff --git a/xbee/packxbee-help.pd b/xbee/packxbee-help.pd
index 54eabbc..63f4f97 100644
--- a/xbee/packxbee-help.pd
+++ b/xbee/packxbee-help.pd
@@ -1,4 +1,4 @@
-#N canvas 552 104 622 751 10;
+#N canvas 589 103 622 746 10;
#X declare -lib mrpeach;
#X obj 400 56 cnv 15 150 200 empty empty empty 20 12 0 14 -232576 -66577
0;
@@ -26,7 +26,7 @@
-1 -1 0;
#X obj 360 446 t f f;
#X obj 360 695 print data;
-#N canvas 21 647 1232 329 status 0;
+#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;
@@ -249,20 +249,22 @@
#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;
+#N canvas 770 112 381 267 META 0;
#X text 22 55 LICENSE GPL v2 or later;
-#X text 22 153 AUTHOR Martin Peach;
+#X text 22 193 AUTHOR Martin Peach;
#X text 22 15 KEYWORDS control network wireless xbee;
-#X text 22 173 HELP_PATCH_AUTHORS Martin Peach;
+#X text 22 213 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 text 22 130 OUTLET_0 list data;
+#X text 22 151 OUTLET_1 list samples;
+#X text 21 172 OUTLET_2 list status;
#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;
+#N canvas 503 288 758 479 IO_COMMANDS 0;
#X obj 400 426 s topackxbee;
#X msg 274 283 AT D7;
#X msg 256 265 AT D6;
@@ -524,34 +526,6 @@ modes 1 or 2;
#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 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 507 167 switch remote IO pin 0 high/low (options = 2 = apply
-changes immediately);
-#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;
@@ -574,7 +548,7 @@ changes immediately);
#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;
+#N canvas 532 127 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;
@@ -628,29 +602,153 @@ 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 197 123 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 110 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 connect 6 0 24 0;
-#X connect 7 0 52 0;
+#X connect 7 0 51 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 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 48 0;
+#X connect 20 0 47 0;
#X connect 21 0 20 1;
-#X connect 22 0 39 0;
+#X connect 22 0 38 0;
#X connect 23 0 22 1;
#X connect 24 0 22 0;
-#X connect 24 0 46 0;
+#X connect 24 0 45 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;
+#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;