UNPKG

@hangtime/grip-connect

Version:

Griptonite Motherboard, Tindeq Progressor, PitchSix Force Board, WHC-06, Entralpi, Climbro, mySmartBoard: Bluetooth API Force-Sensing strength analysis for climbers

139 lines (114 loc) 3.52 kB
/** * Represents the available commands for various devices such as the Motherboard and Tindeq Progressor. */ export interface Commands { // Motherboard, Progressor /** * Starts a weight measurement on the device. * Used to begin collecting weight or force data. */ START_WEIGHT_MEAS?: string /** * Stops the current weight measurement on the device. * Used to end the data collection. */ STOP_WEIGHT_MEAS?: string /** * Puts the device to sleep or in a low-power mode. * The format can be a string or a number depending on the device. */ SLEEP?: number | string /** * Retrieves the serial number of the device. * This command fetches the unique identifier assigned by the manufacturer. */ GET_SERIAL?: string // Griptonite Motherboard /** * Retrieves textual information from the device. * May include readable data. */ GET_TEXT?: string /** * Starts or stops a debug data stream from the device. * Used for diagnostic purposes or to monitor real-time data. */ DEBUG_STREAM?: string /** * Retrieves calibration data from the device. * Used to ensure accurate measurements by applying calibration points. */ GET_CALIBRATION?: string // Force Board Portable /** * Sets the Force Board into Quick Start mode. * In this mode, data transmission starts when force exceeds the threshold * and stops when force drops below the threshold. */ START_QUICK_MEAS?: string // Tindeq Progressor /** * Tares the scale, zeroing the current weight measurement. * Used to reset the baseline for weight data. */ TARE_SCALE?: string /** * Starts measuring the peak rate of force development (RFD). * Captures how quickly force is applied over time. */ START_PEAK_RFD_MEAS?: string /** * Starts measuring a series of peak RFD measurements. * This captures multiple RFD data points over a period of time. */ START_PEAK_RFD_MEAS_SERIES?: string /** * Adds a calibration point to the device. * Used to improve the accuracy of future measurements. */ ADD_CALIBRATION_POINT?: string /** * Saves the current calibration settings to the device. * Ensures the device remembers the calibration for future sessions. */ SAVE_CALIBRATION?: string /** * Retrieves the firmware version of the device. * Useful for ensuring compatibility and tracking updates. */ GET_FIRMWARE_VERSION?: string /** * Retrieves error information from the device. * Provides details on any faults or issues that occurred during operation. */ GET_ERROR_INFORMATION?: string /** * Clears the error information on the device. * Used to reset error logs after troubleshooting or repair. */ CLR_ERROR_INFORMATION?: string /** * Retrieves the battery voltage level of the device. * Provides insight into the device's remaining battery power. */ GET_BATTERY_VOLTAGE?: string /** * Get the Progressor ID. */ GET_PROGRESSOR_ID?: string /** * Set calibration block. Payload at offsets +2,+6,+10. * The 12-byte block is interpreted as 3× float32 LE: slope, intercept, trim. */ SET_CALIBRATION?: string /** * Retrieves the advanced calibration table from the device. * Used to inspect the hidden piecewise interpolation table exported by v2 firmware. */ GET_CALIBRATION_TABLE?: string /** * Reboots the device immediately. * Intended for diagnostic flows. */ REBOOT?: string }