Download Documentation - Digi International
Transcript
API frames AT command Frame Type: 0x08 Used to query or set module parameters on the local module. This API command applies changes after executing the command. (Changes made to module parameters take effect once changes are applied.) The API example below illustrates an API frame when modifying the NI parameter value of the module. Frame fields Offset Example Description Start delimiter 0 0x7E MSB 1 0x00 LSB 2 0x05 Number of bytes between the length and the checksum API frame identifier 3 0x08 Frame ID 4 0x01 AT command MSB 5 0x4E(N) LSB 6 0x49(I) Command Name - Two ASCII characters that identify the AT command Parameter value - - If present, indicates the requested parameter value to set the given register. If no characters present, register is queried. 7 0x5E 0xFF minus the 8 bit sum of bytes from offset 3 to this byte. Length API framespecific data Checksum AT command-queue parameter value Frame Type: 0x09 This API type allows module parameters to be queried or set. In contrast to the “AT Command” API type, new parameter values are queued and not applied until either the “AT Command” (0x08) API type or the AC (Apply Changes) command is issued. Register queries (reading parameter values) are returned immediately. Example: Send a command to change the baud rate (BD) to 115200 baud, but don't apply changes yet. (Module will continue to operate at the previous baud rate until changes are applied.) Frame fields Offset Example Description Start delimiter 0 0x7E MSB 1 0x00 LSB 2 0x05 Number of bytes between the length and the checksum API frame identifier 3 0x09 Frame ID 4 0x01 Length API framespecific data XBee Wi-Fi RF Module S6B User Guide 82