/      日本語

CUE Viewer

Operation instructions for the CUE Viewer screen

Windows   macOS   Linux   RasPi

Example of Dice Face Detection

Example of Dice Face Detection

Overview

Interprets and displays messages received from TWELITE CUE.

Operation of TWELITE CUE

The factory default setting of TWELITE CUE is configured to CUE mode.

In CUE mode, it operates intermittently to enable coin cell battery operation, waking from sleep due to several factors and transmitting various data.

Wake-up Factors

TWELITE CUE requires one of the following factors to wake from sleep:

  • Wake-up by timer (periodic wake-up)
  • Wake-up by acceleration detection
  • Wake-up by magnetic sensor (when a magnet is detected nearby)

Types of Data Transmitted

TWELITE CUE sends the following data in packets:

  • Detection events (see below)
  • Module power voltage
  • Magnetic sensor detection value
  • Acceleration data

Packet Attributes

The attributes of received packets provide basic information.

AttributeDescription
#????The count of received packets so far.
TypePacket type as the value of E_PKT in the mwm5 library.
Packets from TWELITE CUE are usually PKT_PAL=02.
IDLogical ID of the sender, usually a value from 0..100.
ADSerial number of the sender.
LQApproximate reception strength (Link Quality Indicator).
SQSequence number of the packet.

Events

In CUE mode, acceleration events are always output. Regardless of the wake-up factor, a fixed number of acceleration samples are measured after waking. Events are determined based on the acceleration measurement results.

EventNumberDescription
Dice1(0x00) .. 6(0x06)Determined based on periodic wake-up and magnetic sensor wake-up.
If a large acceleration is detected after waking,
an undetermined event (0xFF) may be detected.
Move16(0x10)Occurs when the acceleration sensor detects acceleration above a threshold,
resulting in a move or shake event.
Move occurs when the measured acceleration change is relatively small,
(acceleration change detected but no continuous acceleration change).
Shake0x08Occurs when the acceleration sensor detects acceleration above a threshold,
resulting in a move or shake event.
Shake occurs when the measured acceleration change is relatively large,
(continuous acceleration changes detected).

Voltage

Power supply voltage of the module [mV].

Magnet

Displays the detected magnetic pole or no detection.

Acceleration

Displays acceleration measured after waking.

  • Samples: Displays the number of acceleration samples, fixed at 10 samples.
  • Rate ID: Sample rate of acceleration, fixed at 04 (100Hz).
  • X, Y, Z: Acceleration on three axes. Calculated as the average of 8 samples. Unit is milli-G (1000mG = 1G = 9.8m/s²).

Example Screens

Example of Move Event Detection

Example of Move Event Detection

Example of Shake Event Detection

Example of Shake Event Detection