Description

The Record command is used to record a new session. When requesting a session record, all currently streaming data will be recorded. Closing a stream while recording will effectively stop the recording for this data. While recording, streaming downsample has no effect on recording and recording will use current streaming rate without downsample. When issuing this command, the user can optionally define a "Session Name" for the recording session, which will be part of the payload in the command packet. The "Session Name" length is represented by X and is without '\0'.

Protocol

This command uses the Command-Ack-Response protocol.

Command

Byte Name C Type Value
0 Control Byte ( Packet Type (7:5) / SubSystem (4:0) ) uint8_t 0x4B ( 0b010 / 0b01011 )
1 Payload Length uint8_t X + 1
2 CRC uint8_t Calculated
3 Command uint8_t 0x02

Payload

Byte Name C Type Value
4 State uint8_t 0x00 (Disable) or 0x01 (Enable)
5 Session Name (First byte) uint8_t Varies
... ... ... ...
(X + 5) Session Name (Last byte) uint8_t Varies

Response

Header

Byte Name C Type Value
0 Control Byte ( Packet Type (7:5) / SubSystem (4:0) ) uint8_t 0x0B ( 0b000 / 0b01011 )
1 Payload Length uint8_t 3
2 CRC uint8_t Calculated
3 Command uint8_t 0x02

Payload

Byte Name C Type Value
4 State uint8_t 0x00 (Idle) or 0x01 (Record)
5 - 6 Session Identifier uint16_t Varies