Timeout for each packet of 100ms. Reset with packet drop after timeout.
- 0x55
- Packet-ID (1B)
- Type (1B)
- Length (1B)
- Payload (nB)
- CRC-16 (2B)
- High-Bit 0: Command
- High-Bit 1: Status
Zero is reset
Zero is success, everything else is failure
- Calibrate against accelerometer and compass
- Use NFC to home
- Polar coordinates: absolute compass direction (16 bit unsigned full-scale) plus distance from home
- Source of the ping
- WIFI/Camera
- Server
- Controller
- Value to return
There must be a way to trigger the scheduled DMD/Shield/Cannon/Motor updates quickly and on all robots at the same time
- Delay in ms after which to trigger (can be zero)
- Bitfield of what updates to perform after delay
- Motor
- DMD
- Shield
- Cannon
Requests the transmission of a message
- What to request
- System
- Power
- WiFi status
- Sensors
- Sound status
Resets the scheduled data for the particular peripheral. Also treats transparency as black for the next respective update.
- Bitfield of what to reset
- Motor
- DMD
- Shield
- Cannon
- Version info
- Contents of the personality EEPROM
- Network name prefixed by string length (if already set)
- RSSI (signal strength or zero if disconnected)
- Connect/disconnect
- Network name
- Password
- New contents of the personality EEPROM
- Bitfield
- State of the WiFi power failure flag
- Whether USB is connected
- Whether the battery is operational
- Battery voltage
- System voltage (5V)
- Accelerometer data
- Gyroscope data
- Magnetometer data
- Line sensor data
- Number of palette entries (usable entries start at one, zero is transparent)
- Palette entries in RGB565
- Frame duration in ms (negative = no loop, positive = loop)
- Number of frames
- Origin x of the area to update
- Origin y of the area to update
- Width of the area to update
- Height of the area to update
- Palettized frame data with one byte per pixel
- Number of palette entries (usable entries start at one, zero is transparent)
- Palette entries
- Hue
- Saturation
- Palette entries
- Frame duration in ms
- Number of frames
- Start position of the first LED to update
- Number of LEDs to update
- Palettized frame data with two bytes per LED
- Palette index
- Brightness value
The same as the shield message.
- Message type (play effect/music, pause effect/music, stop effect/music, volume)
- Background music number/volume
- Status bitfield
- Card and module ready
- Currently playing
- Currently playing background music (or none)
- Currently playing sound effect (or none)
- Volume
- Depending on RFID configuration returns a number of sectors starting at zero
- Only cards with a SAK of 08 (MIFARE 1K) are supported