Board Status Commands - ku-fpg/haskino GitHub Wiki
Board Status Commands
Request Version
| Cmd |
|---|
| 0x20 |
Fields
None
Request Processor Type
| Cmd |
|---|
| 0x21 |
Fields
None
Request Microseconds
| Cmd |
|---|
| 0x22 |
Fields
None
Request Milliseconds
| Cmd |
|---|
| 0x23 |
Fields
None
Board Status Responses
Response Version
| Cmd | Major | Minor |
|---|---|---|
| 0x28 | 0xXX | 0xXX |
Fields
Major - Major version of the firmware
Minor - Minor version of the firmware
Response Processor Type
| Cmd | Type |
|---|---|
| 0x29 | 0xXX |
Fields
Type - Type of Microprocessor on board -
0x00 - ATMEGA8, 0x01 - ATMEGA168, 0x02 - ATMEGA328P, 0x03 - ATMEGA1280,
0x04 - ATMEGA256, 0x05 - ATMEGA32U4, 0x06 - ATMEGA644P, 0x07 - ATMEGA644,
0x08 - ATMEGA645,0x09 - SAM3X8E, 0x0A - X86
Response Microseconds
| Cmd | Micros Byte 0 LSB | Micros Byte 1 | Micros Byte 2 | Micros Byte 3 MSB |
|---|---|---|---|---|
| 0x2A | 0xXX | 0xXX | 0xXX | 0xXX |
Fields
Micros - Number of Microseconds since board was booted (32 bits)
Response Milliseconds
| Cmd | Millis Byte 0 LSB | Millis Byte 1 | Millis Byte 2 | Millis Byte 3 MSB |
|---|---|---|---|---|
| 0x2B | 0xXX | 0xXX | 0xXX | 0xXX |
Fields
Millis - Number of Milliseconds since board was booted (32 bits)
Response String
| Cmd | String Byte 0 | ... | String Byte n |
|---|---|---|---|
| 0x2C | 0xXX | 0xXX | 0xXX |
Fields
String - String send to host (used for debugging during firmware development)