Skip to main content
Version: 2.3.0

Serialized information

This feature provides read/notification information that can be obtained from the cube as a single serialized data block. Use this feature when serialized information is required for some reason. It is not necessary when all other read/notification information can be obtained in your environment.

note

This feature is disabled by default. It becomes available only after it is enabled in Configuration - Serialized information notification settings.

Serialized information can be obtained using the following characteristic. This characteristic is the same as Configuration.

PropertyValue
Characteristic UUID10B201FF-5B3B-4571-9508-CF3EFCD7BBAE
PropertiesWrite, Read, Notify
DescriptorConfiguration

Write operations

There are no write operations used for serialized information.

Read operations / Notifications

This characteristic notifies the BLE central with information. The notified information can also be obtained with a read operation.

note

This characteristic is shared with Configuration. Because that information is also obtained, also check Configuration - Read operations and Configuration - Notifications when using this feature.

Obtaining serialized information

The following data can be obtained.

Data locationTypeContentExample
0UInt8Information type0xf0 Obtaining serialized information
119ByteSerialized informationOmitted

Information type

0xf0 represents "Obtaining serialized information".

Because the characteristic is shared with Configuration, the information described below can also be obtained. Check the value of this information type to determine which information was obtained.

Serialized information

The following data can be obtained by bit position and bit size.

Bit positionBit sizeContent
04 bitsReserved
41 bitFunction button state
52 bitstoio ID detection state
71 bitCube angle for Position ID or Standard ID (lower bit)
88 bitsCube angle for Position ID or Standard ID (upper bits)
168 bitsX coordinate value of the cube center for Position ID (lower bits)
246 bitsX coordinate value of the cube center for Position ID (upper bits)
302 bitsY coordinate value of the cube center for Position ID (lower bits)
328 bitsY coordinate value of the cube center for Position ID (middle bits)
404 bitsY coordinate value of the cube center for Position ID (upper bits)
444 bitsStandard ID value (lower bits)
488 bitsStandard ID value (lower-middle bits)
568 bitsStandard ID value (upper-middle bits)
648 bitsStandard ID value (upper bits)
728 bitsMotor ID 1 (left) speed
808 bitsMotor ID 2 (right) speed
885 bitsResponse for motor control with target or motor control with multi-target
933 bitsPosture detection in motion detection information
967 bitsRemaining battery level
1031 bitHorizontal detection in motion detection information
1045 bitsShake detection in motion detection information
1091 bitCollision detection in motion detection information
1101 bitDouble-tap detection in motion detection information
1111 bitReserved
1128 bitsAbsolute value of Roll (X axis) in posture angle information (Euler angles)
1208 bitsAbsolute value of Pitch (Y axis) in posture angle information (Euler angles)
1288 bitsAbsolute value of Yaw (Z axis) in posture angle information (Euler angles)
1361 bitSign of Roll (X axis) in posture angle information (Euler angles)
1371 bitSign of Pitch (Y axis) in posture angle information (Euler angles)
1381 bitSign of Yaw (Z axis) in posture angle information (Euler angles)
1392 bitsReserved
1413 bitsMagnet state of the magnetic sensor
1448 bitsMagnetic force strength of the magnetic sensor
Function button state

Represents the state of the function button that can be obtained with Button.

ValueFunction button state
0b0Not pressed
0b1Pressed
toio ID detection state

Represents the current toio ID detection state that can be obtained with Identification sensor.

Valuetoio ID detection state
0b01Reading Standard ID
0b10Reading Position ID
0b11Not reading
Cube angle for Position ID or Standard ID

Represents the cube angle for Position ID or the cube angle for Standard ID that can be obtained with Identification sensor. The angle obtained most recently is reflected.

X coordinate value of the cube center for Position ID

Represents the X coordinate value of the cube center for Position ID that can be obtained with Identification sensor. The maximum value is 0x3fff; values greater than this are truncated.

Y coordinate value of the cube center for Position ID

Represents the Y coordinate value of the cube center for Position ID that can be obtained with Identification sensor. The maximum value is 0x3fff; values greater than this are truncated.

Standard ID value

Represents the Standard ID value that can be obtained with Identification sensor. The maximum value is 0xfffffff; values greater than this are truncated.

Motor ID 1 (left) speed

Represents the Motor ID 1 (left) speed that can be obtained with Motor. If Configuration - Motor speed information acquisition settings is disabled, this value is always 0x00.

Motor ID 2 (right) speed

Represents the Motor ID 2 (right) speed that can be obtained with Motor. If Configuration - Motor speed information acquisition settings is disabled, this value is always 0x00.

Response for motor control with target or motor control with multi-target

Represents the response content for motor control with target or the response content for motor control with multi-target that can be obtained with Motor. The response result for the last executed motor control with target or motor control with multi-target is reflected; while control is being executed, the state is 0x1f.

ValueResponse for motor control with target or motor control with multi-target
0x1fMotor control with target or motor control with multi-target is executing
Other than 0x1fSame as the response for motor control with target or motor control with multi-target
Posture detection in motion detection information

Represents posture detection that can be obtained with Motion detection.

Remaining battery level

Represents the remaining battery level that can be obtained with Battery.

Horizontal detection in motion detection information

Represents horizontal detection that can be obtained with Motion detection.

Shake detection in motion detection information

Represents shake detection that can be obtained with Motion detection.

Collision detection in motion detection information

Represents collision detection that can be obtained with Motion detection.

Double-tap detection in motion detection information

Represents double-tap detection that can be obtained with Motion detection.

Absolute value of Roll (X axis) in posture angle information (Euler angles)

Represents the absolute value of Roll (X axis) in posture angle information (Euler angles) that can be obtained with Posture Angle detection. For sign information, see Sign of Roll (X axis) in posture angle information (Euler angles).

Absolute value of Pitch (Y axis) in posture angle information (Euler angles)

Represents the absolute value of Pitch (Y axis) in posture angle information (Euler angles) that can be obtained with Posture Angle detection. For sign information, see Sign of Pitch (Y axis) in posture angle information (Euler angles).

Absolute value of Yaw (Z axis) in posture angle information (Euler angles)

Represents the absolute value of Yaw (Z axis) in posture angle information (Euler angles) that can be obtained with Posture Angle detection. For sign information, see Sign of Yaw (Z axis) in posture angle information (Euler angles).

Sign of Roll (X axis) in posture angle information (Euler angles)

Represents the sign of Roll (X axis) in posture angle information (Euler angles) that can be obtained with Posture Angle detection. For absolute value information, see Absolute value of Roll (X axis) in posture angle information (Euler angles).

Sign of Pitch (Y axis) in posture angle information (Euler angles)

Represents the sign of Pitch (Y axis) in posture angle information (Euler angles) that can be obtained with Posture Angle detection. For absolute value information, see Absolute value of Pitch (Y axis) in posture angle information (Euler angles).

Sign of Yaw (Z axis) in posture angle information (Euler angles)

Represents the sign of Yaw (Z axis) in posture angle information (Euler angles) that can be obtained with Posture Angle detection. For absolute value information, see Absolute value of Yaw (Z axis) in posture angle information (Euler angles).

Magnet state of the magnetic sensor

Represents the magnet state that can be obtained with Magnetic sensor.

Magnetic force strength of the magnetic sensor

Represents the magnetic force strength that can be obtained with Magnetic sensor. The magnetic force direction cannot be obtained in serialized information.