Our website shows online advertisements to our visitors to cover the cost of hosting.

Please, consider supporting us by deactivating our Web in your Ad Blocker. !!!
    How to disable AdBlock

DISABLE YOUR ADBLOCKER ON OUR WEB TO ENJOY THE CONTENT
1.- Press the adblocker icon.
2.- Select "Do not act on pages of this domain" (or similar).
You can also press the "Activated on this site" or "Pause adblocker" button.
3.- Press the "Refresh" button of your browser to see the content you want to view.

Xbee packet check

Besvar
Morten H. Nielsen
Indlæg: 6155
Tilmeldt: 20 mar 2008, 23:02
Geografisk sted: Danmark

Xbee packet check

Indlæg af Morten H. Nielsen » 28 nov 2011, 21:03

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