Note: Beginning with version 0.4.0, this document supersedes the material covered in Project Software.
The HoloSeat firmware has a serial protocol, the Holoseat Serial Protocol (HSP), to enable the desktop configuration app to modify all key parameters and to determine the current configuration of the Holoseat at runtime. It is laid out to mirror the REST API presented to Holoseat clients by the desktop application.
| Field | Value |
| Baud Rate | 115200 |
| Data Bits | 8 |
| Parity | None |
| Stop Bit | 1 |
Commands are sent as JSON strings with a message ID (may be an empty string, but must be present), a URI, an HTTP verb, and possibly arguments. TODO (fill this in more)
The low level commands are intended to be used to establish a connection between the Holoseat controller and the REST API server. These commands will not be reproduced in the Holoseat REST API.
| Command Name | URI | Verb | Example Command | Example Result |
| Set Logging | /main/logging | PUT | {{"messageId":"ee764e45b0de469d9c949dc1c43beb1a","uri":"/main/version","verb":"GET"},"uri":"/main/logging","verb":"PUT", "args":{"enabled":1,"interval":1}} |
{{"messageId":"ee764e45b0de469d9c949dc1c43beb1a","uri":"/main/version","verb":"GET"},"result":"OK"} |
The following commands mirror the REST API to implement the features of the REST API.
| Command Name | URI | Verb | Example Command | Example Result |
| Get Device Name | /main/devicename | GET | {"messageId":"ee764e45b0de469d9c949dc1c43beb1a","uri":"/main/devicename","verb":"GET"} |
{messageId":"ee764e45b0de469d9c949dc1c43beb1a","deviceName":"Holoseat Alpha"} |
| Get Version | /main/version | GET | {"messageId":"ee764e45b0de469d9c949dc1c43beb1a","uri":"/main/version","verb":"GET"} |
{"messageId":"ee764e45b0de469d9c949dc1c43beb1a","hwVer":"v0.4","fwVer":"v0.4.0","hspVer":"v0.4.0"} |