Xbee packet check

Besvar
Morten H. Nielsen
Indlæg: 6026
Tilmeldt: tors mar 20, 2008 11:02 pm
Geografisk sted: Danmark

Xbee packet check

Indlæg af Morten H. Nielsen » man nov 28, 2011 9:03 pm

Hej.

Her er et godt program, når man skal lege med Xbee pakker:

http://www.jsjf.demon.co.uk/xbee/xbee.html

Det er lidt tungt at få i gang, men det er besværet værd.

Her er et eksempel på output fra programmet:

C:\Tcl\bin>tclsh packet-check.tcl
API Packet analyzer version 1.5 for XBees (802.15.4, DigiMesh, ZNet, ZB)
Note: if it prompts for more bytes and you're done, hit return
Enter packet: 7E 00 10 17 01 00 13 A2 00 40 30 10 FB 60 BE 02 44 31 05 1D

Packet: 7E 00 10 17 01 00 13 A2 00 40 30 10 FB 60 BE 02 44 31 05 1D
7E // Correct packet header byte
00 10 // payload length (decimal 16)
17 // Packet type: remote AT command
// Valid for 802.15.4, DigiMesh, ZigBee, Znet2.5
01 // frame id: non-zero so response packet expected
00 13 A2 00 40 30 10 FB // 64-bit destination address
60 BE // 16-bit destination address [1]
02 // 02 = apply changes immediately
44 31 // AT command "D1"
05 // parameter value ("digital output high")
1D // checksum - correct

Notes:
[1] 16-bit destination address is not 0xfffe so ignore 64-bit address
Mvh
Morten

Besvar