TrackingHardware
Software
Mega PlanEtc. |
Main /
SocketProgrammingCommunicationsThis page describes the external Socket communications packet format for communications between clients and the Flockbot. The Packet Formats page describes the protocol for the internal Serial communications framing for the Flockbot. Socket PacketsAll communications over sockets will utilize the TCP/IP socket protocol, over port 2005. The nature of TCP means that neither SYN bytes nor checksums are needed. The table below will specify the exact data needed to be sent over a socket to the robot, as well as the exact data which will be received from the Flockbot. Note that all of these formats are done in 1-byte blocks. The sending and receiving use uint8_t standard types. For the client side, the author of the code will need to ensure they are able to properly extract and interpret the fields of the incoming packets, and that they are able to form the packets using the appropriate types and sizes. For example, a packet labeled:
Means that you will have to create a byte array in which the first element contains the value 0x3. Note this is not the character '3', but the hexadecimal value 0x3. When alphabetic characters appear, these are the ASCII characters. So 'R' would be encoded as the hexadecimal value 0x52. The valid formats are as follows: Claw Functions
BELOW THIS MARK, UNMODIFIED FILE. ONLY REFERENCE ABOVE THIS MARK Camera Functions
Movement Functions
|