« Previous - Version 7/18 (diff) - Next » - Current version
J. Simmons, 06/27/2016 09:56 pm


Firmware Notes

The firmware for the Holoseat can be found in the SVN Repository. Its basic function is to detect pedal events from the sensor, use the timing of those events to determine the cadence (in RPM), and then send the walk command (generally by pressing the 'w' key) when the pedal speed is greater than the specified trigger speed.

Default Parameter Values

The default parameters for the firmware are stored in the holoseat_constants.h file so they will be available at start up without the need for a connection to the desktop control application. The desktop control application modifies the default values by updating the values of the corresponding constants in this file and then flashing updated firmware to the Holoseat. The following parameters have default values in the constants file.

  • Default Walk Character - what key is sent to move the character in the game
  • Default Holoseat Enabled - is the Holoseat enabled by default?
  • Default Trigger Cadence - how fast does the user need to pedal (in RPM) to trigger walking?
  • Default Logging Enabled - is serial logging enabled by default?
  • Default Logging Interval - how long between messages in serial logging in deci-seconds (0.1 of a second)

HoloSeat Serial Protocol

The HoloSeat firmware has a serial protocol, the Holoseat Serial Protocol (HSP), to enable the desktop control application to modify all key parameters and to determine the current configuration of the Holoseat.

Protocol Commands

The HSP supports two commands. Each command is made up of a single upper case character indicating the statement type. One command, the (S)et statement, also takes an input string.

  • S <config string> - (S)et command; used to send updated configuration to HoloSeat. The config string has the following format:
  • Q - (Q)uery command; used to request the HoloSeat send one standard state message (see Protocol Messages below)

Protocol Messages

The HSP has two messages. One is a single character message similar to the commands and one is the HSP standard state message which is sent after initialization, in reply to a (Q)uery command, and as the serial logging message.

  • R - (R)eady; sent by the HoloSeat to indicate it is ready for serial communication
  • <VER>,<WC>,<E>(<DE>)>,<C>/<TC>(<DTC>),<L>(<DL>)/<LI>(<DLI>) - standard state message, see below for key; example: 1.2.3,w,1(1),70/65(75),1(0)/10(10)
    • <VER> -
    • <WC> -
    • <E> -
    • <DE> -
    • <C> -
    • <TC> -
    • <DTC> -
    • <L> -
    • <DL> -
    • <LI> -
    • <DLI> -

Also available in: HTML TXT