aboutsummaryrefslogtreecommitdiff
path: root/xbee/packxbee-example.pd
blob: 0efed5944d8312c0f071bc32c9dca08569c5a01b (plain)
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
#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 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 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;
#X msg 49 309 devices;
#X obj 77 354 comport 4 9600;
#X msg 6 266 info;
#X msg 28 288 open 4;
#X obj 77 424 print data;
#X obj 77 396 unpackxbee 2;
#X obj 77 30 metro 500;
#X obj 77 58 random 32;
#X obj 77 88 + 32;
#X floatatom 146 470 5 0 0 0 - - -;
#X floatatom 167 490 5 0 0 0 - - -;
#X symbolatom 188 510 10 0 0 0 - - -;
#X floatatom 209 530 5 0 0 0 - - -;
#X floatatom 230 550 5 0 0 0 - - -;
#X obj 590 470 print other_status;
#X floatatom 251 571 5 0 0 0 - - -;
#X text 109 489 packet_#;
#X text 23 509 destination 16-bit address;
#X text 103 529 transmit_retries;
#X text 131 549 delivery_status;
#X obj 146 448 unpack 0 0 s 0 0 0;
#X text 146 570 discovery_status;
#X floatatom 128 8 10 0 0 0 - - -;
#X floatatom 294 597 5 0 0 0 - - -;
#X floatatom 317 618 5 0 0 0 - - -;
#X symbolatom 340 638 20 0 0 0 - - -;
#X floatatom 387 679 5 0 0 0 - - -;
#X text 259 617 packet_#;
#X symbolatom 363 658 10 0 0 0 - - -;
#X text 195 637 sender's 64-bit address;
#X text 217 657 sender's 16-bit address;
#X obj 294 448 unpack 0 0 s s 0;
#X text 288 678 receive options;
#X text 46 469 frame_type (139);
#X text 194 596 frame_type (144);
#X msg 18 171 AT AI;
#X obj 146 424 route ZigBee_Transmit_Status ZigBee_Receive_Packet;
#X obj 443 448 route AT_Command_Response;
#X floatatom 443 492 5 0 0 0 - - -;
#X floatatom 462 512 5 0 0 0 - - -;
#X text 406 511 packet_#;
#X obj 443 470 unpack 0 0 0 s 0 0 0;
#X floatatom 482 532 5 0 0 0 - - -;
#X symbolatom 501 550 5 0 0 0 - - -;
#X text 434 549 AT command;
#X floatatom 521 572 5 0 0 0 - - -;
#X floatatom 540 592 5 0 0 0 - - -;
#X text 484 591 packet_#;
#X floatatom 560 612 5 0 0 0 - - -;
#X text 494 611 data bytes;
#X text 416 531 data_bytes;
#X text 343 491 frame_type (136);
#X text 476 571 status;
#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 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 61 0;
#X connect 3 0 11 0;
#X connect 4 0 6 0;
#X connect 5 0 6 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 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;