From 7e532c52874ea7ff3111f1e98fbe523250bd6be6 Mon Sep 17 00:00:00 2001 From: Martin Peach Date: Wed, 20 Feb 2013 18:21:28 +0000 Subject: New unpackxbee help patch. svn path=/trunk/externals/mrpeach/; revision=17039 --- xbee/unpackxbee-help.pd | 247 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 247 insertions(+) create mode 100644 xbee/unpackxbee-help.pd (limited to 'xbee/unpackxbee-help.pd') diff --git a/xbee/unpackxbee-help.pd b/xbee/unpackxbee-help.pd new file mode 100644 index 0000000..96433c6 --- /dev/null +++ b/xbee/unpackxbee-help.pd @@ -0,0 +1,247 @@ +#N canvas 26 77 1250 833 10; +#X declare -lib mrpeach; +#X obj -15 50 cnv 15 600 240 empty empty empty 20 12 0 14 -262130 -66577 +0; +#X obj 159 215 cnv 15 300 25 empty empty unpackxbee: 1 12 0 14 -257985 +-159808 0; +#X msg 280 153 verbosity \$1; +#X obj 280 132 hradio 15 1 0 3 empty empty verbosity 0 -8 0 10 -4034 +-1 -1 0; +#X obj 330 220 unpackxbee 2; +#X obj 491 6 import mrpeach; +#N canvas 770 112 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 130 OUTLET_0 list; +#X text 22 35 NAME unpackxbee; +#X text 22 75 DESCRIPTION [unpackxbee] unpacks packets from xbees in +API modes 1 or 2; +#X text 22 110 INLET_0 list; +#X restore 534 26 pd META; +#X obj 330 180 comport 98 9600; +#X text -12 270 Martin Peach 2013_02_20; +#X text 27 55 [unpackxbee] is used to unpack API mode 1 or 2 packets +received from xbees. Usually the output of a [comport] object is connected +to the inlet.; +#X text 26 103 Packet status comes out the right \, data is emitted +from the left outlet.; +#X floatatom 174 468 5 0 0 0 - - -; +#X obj 244 349 print unpack5; +#X obj 63 296 route AT_Command_Response; +#X obj 63 332 list split 3; +#X obj 174 370 list trim; +#X symbolatom 191 484 7 0 0 0 - - -; +#X symbolatom 209 501 20 0 0 0 - - -; +#X obj 63 370 unpack 0 0 0; +#X floatatom 63 394 5 0 0 0 - - -; +#X floatatom 97 414 5 0 0 0 - - -; +#X floatatom 132 434 5 0 0 0 - - -; +#X text -11 394 packet type; +#X text 29 414 packet ID; +#X text 54 433 data length; +#X text 61 465 AT command status; +#X text 145 483 addr16; +#X text 165 499 addr64; +#X obj 408 313 route ZigBee_Transmit_Status; +#X floatatom 408 355 5 0 0 0 - - -; +#X floatatom 429 373 5 0 0 0 - - -; +#X text 334 355 packet type; +#X text 361 373 packet ID; +#X symbolatom 450 390 7 0 0 0 - - -; +#X text 407 389 addr16; +#X floatatom 513 442 5 0 0 0 - - -; +#X floatatom 492 425 5 0 0 0 - - -; +#X floatatom 471 408 5 0 0 0 - - -; +#X text 340 406 transmit retry count; +#X text 391 423 delivery status; +#X text 407 440 discovery status; +#X symbolatom 226 518 32 0 0 0 - - -; +#X symbolatom 244 536 7 0 0 0 - - -; +#X symbolatom 297 589 7 0 0 0 - - -; +#X symbolatom 315 607 7 0 0 0 - - -; +#X obj 174 446 unpack 0 s s s s 0 0 s s; +#X floatatom 262 554 5 0 0 0 - - -; +#X floatatom 279 571 5 0 0 0 - - -; +#X text 129 517 Node Identifier; +#X text 197 535 parent; +#X text 187 551 device type; +#X text 199 569 source event; +#X text 242 587 profile; +#X text 237 605 manufacturer; +#X obj 408 335 unpack 0 0 s 0 0 0; +#X obj 596 330 route ZigBee_Receive_Packet; +#X obj 1101 364 print someotherpacket; +#X symbolatom 665 427 7 0 0 0 - - -; +#X symbolatom 642 409 17 0 0 0 - - -; +#X text 619 426 addr16; +#X text 598 407 addr64; +#X floatatom 596 373 5 0 0 0 - - -; +#X text 522 373 packet type; +#X floatatom 689 445 5 0 0 0 - - -; +#X text 590 443 receive options; +#X obj 689 495 tgl 15 0 empty empty acknowledged 17 7 0 10 -4034 -1 +-1 0 1; +#X obj 729 515 tgl 15 0 empty empty broadcast 17 7 0 10 -4034 -1 -1 +0 1; +#X obj 769 535 tgl 15 0 empty empty encrypted 17 7 0 10 -4034 -1 -1 +0 1; +#X obj 809 555 tgl 15 0 empty empty from_end_device 17 7 0 10 -4034 +-1 -1 0 1; +#X obj 689 459 & 1; +#X obj 729 459 & 2; +#X obj 769 459 & 32; +#X obj 809 459 & 64; +#X obj 596 351 unpack 0 0 s s 0; +#X floatatom 619 390 5 0 0 0 - - -; +#X text 545 390 data length; +#X obj 491 464 select 0 2 21 33 34 35 36 37; +#X symbolatom 491 661 32 0 0 0 - - -; +#X msg 491 488 set success; +#X msg 656 646 set unknown; +#X msg 511 507 set CCA_failurs; +#X msg 552 547 set Network_ACK_Failure; +#X msg 532 527 set Invalid_Destination_Endpoint; +#X msg 573 567 set Not_Joined_To_Network; +#X msg 592 587 set Self-Addresed; +#X msg 614 606 set Address_Not_Found; +#X msg 635 626 set Route_Not_Found; +#X text 388 660 delivery status:; +#X symbolatom 512 797 32 0 0 0 - - -; +#X msg 593 782 set unknown; +#X obj 512 685 select 0 1 2 3; +#X msg 512 706 set No_Discovery_Overhead; +#X msg 532 725 set Address_Discovery; +#X msg 553 744 set Route_Discovery; +#X msg 573 763 set Address_And_Route_Discovery; +#X text 408 795 discovery status:; +#X obj 856 347 route Remote_Command_Response; +#X floatatom 856 400 5 0 0 0 - - -; +#X floatatom 875 422 5 0 0 0 - - -; +#X text 782 400 packet type; +#X text 807 422 packet ID; +#X floatatom 973 529 5 0 0 0 - - -; +#X symbolatom 895 462 20 0 0 0 - - -; +#X text 851 460 addr64; +#X symbolatom 914 443 7 0 0 0 - - -; +#X symbolatom 934 484 7 0 0 0 - - -; +#X text 888 483 command; +#X floatatom 953 506 5 0 0 0 - - -; +#X text 903 530 data length; +#X text 911 506 status; +#X obj 856 374 unpack 0 0 s s s 0 0; +#X obj 237 417 print AT_response; +#X text 868 442 addr16; +#X obj 1021 410 select 0 1 2 3 4; +#X symbolatom 1021 610 32 0 0 0 - - -; +#X text 978 609 delivery status:; +#X msg 1021 437 set OK; +#X msg 1039 457 set ERROR; +#X msg 1058 476 set Invalid_Command; +#X msg 1077 496 set Invalid_Parameter; +#X msg 1095 519 set Transmission_Failed; +#X obj 174 392 route ND SL; +#X obj 51 559 print SL; +#X obj 330 268 print unpackxbee_data; +#X obj 399 248 print unpackxbee_status; +#X connect 2 0 4 0; +#X connect 3 0 2 0; +#X connect 4 0 123 0; +#X connect 4 1 13 0; +#X connect 4 1 124 0; +#X connect 7 0 4 0; +#X connect 13 0 14 0; +#X connect 13 1 28 0; +#X connect 14 0 18 0; +#X connect 14 1 15 0; +#X connect 14 2 12 0; +#X connect 15 0 121 0; +#X connect 18 0 19 0; +#X connect 18 1 20 0; +#X connect 18 2 21 0; +#X connect 28 0 54 0; +#X connect 28 1 55 0; +#X connect 45 0 11 0; +#X connect 45 1 16 0; +#X connect 45 2 17 0; +#X connect 45 3 41 0; +#X connect 45 4 42 0; +#X connect 45 5 46 0; +#X connect 45 6 47 0; +#X connect 45 7 43 0; +#X connect 45 8 44 0; +#X connect 54 0 29 0; +#X connect 54 1 30 0; +#X connect 54 2 33 0; +#X connect 54 3 37 0; +#X connect 54 4 36 0; +#X connect 54 4 76 0; +#X connect 54 5 35 0; +#X connect 54 5 90 0; +#X connect 55 0 73 0; +#X connect 55 1 96 0; +#X connect 63 0 69 0; +#X connect 63 0 70 0; +#X connect 63 0 71 0; +#X connect 63 0 72 0; +#X connect 69 0 65 0; +#X connect 70 0 66 0; +#X connect 71 0 67 0; +#X connect 72 0 68 0; +#X connect 73 0 61 0; +#X connect 73 1 74 0; +#X connect 73 2 58 0; +#X connect 73 3 57 0; +#X connect 73 4 63 0; +#X connect 76 0 78 0; +#X connect 76 1 80 0; +#X connect 76 2 82 0; +#X connect 76 3 81 0; +#X connect 76 4 83 0; +#X connect 76 5 84 0; +#X connect 76 6 85 0; +#X connect 76 7 86 0; +#X connect 76 8 79 0; +#X connect 78 0 77 0; +#X connect 79 0 77 0; +#X connect 80 0 77 0; +#X connect 81 0 77 0; +#X connect 82 0 77 0; +#X connect 83 0 77 0; +#X connect 84 0 77 0; +#X connect 85 0 77 0; +#X connect 86 0 77 0; +#X connect 89 0 88 0; +#X connect 90 0 91 0; +#X connect 90 1 92 0; +#X connect 90 2 93 0; +#X connect 90 3 94 0; +#X connect 90 4 89 0; +#X connect 91 0 88 0; +#X connect 92 0 88 0; +#X connect 93 0 88 0; +#X connect 94 0 88 0; +#X connect 96 0 110 0; +#X connect 96 1 56 0; +#X connect 110 0 97 0; +#X connect 110 1 98 0; +#X connect 110 2 102 0; +#X connect 110 3 104 0; +#X connect 110 4 105 0; +#X connect 110 5 107 0; +#X connect 110 5 113 0; +#X connect 110 6 101 0; +#X connect 113 0 116 0; +#X connect 113 1 117 0; +#X connect 113 2 118 0; +#X connect 113 3 119 0; +#X connect 113 4 120 0; +#X connect 116 0 114 0; +#X connect 117 0 114 0; +#X connect 118 0 114 0; +#X connect 119 0 114 0; +#X connect 120 0 114 0; +#X connect 121 0 45 0; +#X connect 121 1 122 0; +#X connect 121 2 111 0; -- cgit v1.2.1