Sonntag, 30. Januar 2011

Xbee Unicast erste Gehversuche

Heute haben wir erste Unicasts im API Modus getestet. Dabei werden alle Devices in den API Modus versetzt. Wir haben einen Coordinator folgendermaßen konfiguriert:
  • PAN ID 666
  • NI (Node Identifier) 
  • Als coordinator gesetzt
Den Router haben wir ebenfalls auf die
  • PAN ID 666
  • JV ENABLED
Endevice
  • PAN ID 666
  • SM auf cyclic sleep
Nun haben wir Pakete zusammengebaut, wie im Standard angegeben.


Example:
Send a transmission to a module with destination address 0x0013A200 40014011,
payload "TxData1B". If escaping is disabled, (AP=1), the frame should look like:
0x7E 0x00 0x16 0x10 0x01 0x00 0x13 0xA2 0x00 0x40 0x0A 0x01 0x27 0xFF
0xFE 0x00 0x00 0x54 0x78 0x44 0x61 0x74 0x61 0x30 0x41 0x13
Where 0x16 = length (22 bytes excluding checksum)
  • 0x10 = ZigBee Transmit Request API frame type
  • 0x01 = Frame ID (set to non-zero value)
  • 0x0013A200400A0127 = 64-bit Destination Address
  • 0xFFFE = 16-bit Destination Address
  • 0x00 = Broadcast radius
  • 0x00 = Options
  • 0x5478446174613041 = Data payload ("TxData0A")
  • 0x64 = Checksum
Checksumme berechnet sich aus FF -  [Alle hexwerte von 0x10 - 0x5478446174613041

Keine Kommentare:

Kommentar veröffentlichen