Changes

Jump to navigation Jump to search
1,034 bytes added ,  02:46, 22 June 2017
Line 13: Line 13:  
|Source Identifier (8 bit)
 
|Source Identifier (8 bit)
 
|Destination Identifier (8 bit)
 
|Destination Identifier (8 bit)
|Data (1-500 byte)
+
|Data (2-500 byte)
 
|State Flags
 
|State Flags
 
|Checksum
 
|Checksum
Line 56: Line 56:  
|Macaw (Gen 1 Radio)
 
|Macaw (Gen 1 Radio)
 
|00000010
 
|00000010
 +
|}
 +
 +
=== Data Frame ===
 +
The data frame carries the entirety of the request or response. This frame is variable in length, and can be as little as two bytes (at a minimum) or as much as 500 bytes (although this isn't a strict limit, but messages should seldom exceed 500 characters).
 +
 +
The data frame, in order to accommodate the large variety of possible data types that might arise in the HONEY architecture, is encoded strictly in ASCII characters as a char buffer. This allows boards to send messages as character strings -- STINGR is designed to understand and decode standardized messages, but this framework allows boards to send absolutely any data.
 +
 +
The data frame can be empty -- in this case, it consists of two bytes. These are the start and end bytes, which designate the start and end of the data payload. The start byte has a value of 256, and the end byte has a value of 255. The data frame spec can be seen here:
 +
 +
{| class="wikitable"
 +
|Start Flag (1 byte - 11111111)
 +
|Payload (0-498 bytes)
 +
|End Flag (1 byte - 11111110)
 
|}
 
|}
    
== Core Functions ==
 
== Core Functions ==

Navigation menu