Product Info
TWI FW 16-02
REV 0.2
TWI Cuepath Firmware Behavior
Thirdwayv Inc. Proprietary and Confidential
Page 3 of 5
1 Introduction
This document describes the CuePath device Firmware behavior.
2 CuePath Device (Smart Pack) Behavior
1. The device has a push button and 2 LEDs (RED and Green).
2. The device starts in the Deep Sleep State (Shelf Mode). The device could wakeup only by pressing the push
button.
3. The device has two modes of operations; the Production Test Mode and the Pharmacy Activation Mode.
2.1 Production Test Mode
1. The production test mode is used to verify the device hardware components. i.e., the push button, the two
LEDs, and the resistor matrix connections.
2. By default, the device works in the production test mode.
3. To verify the push button and LED hardware connections, the user short press the push button.
4. With the user’s button short press, the device blinks red and green LEDs simultaneously once. The user sees
an orange color from the LEDs, as both LEDs are ON simultaneously.
5. To initiate the resistor matrix verification procedure, the user has to short press the push button THREE
consecutive times.
6. The device counts the short presses when the time among consecutive presses is less than 3 seconds. In other
words, if the user takes more than 3 seconds to press the button twice, the device neglects the previous press
count and start over.
7. After THREE short presses, the device measures the resistor matrix values. It then compares their values with
the expected resistor range to detect whether the packs are opened, disconnected, or closed.
a. The test passes when all resistors are connected and closed. In this case, The device turns the GREEN
LED on for 5 seconds.
b. The test fails when one of the resistors or more are disconnected or opened. In this case, The device
turns the RED LED on for 5 seconds.
8. The device advertises the test result for 30 seconds. The test result includes the resistor matrix status, the
battery value, and the device’s unique id. The user could use the CueCare Test App to check the device test
result. For more information, please check [1] document for further details.
9. After the 30 seconds of advertising, the device returns to the deep sleep state (Shelf mode).
2.2 Pharmacy Activation Mode
1. The pharmacy activation mode is the customer mode. In this mode, the device continuously checks the resistor
matrix value and updates the CueCare App with its results.
2. To start the pharmacy activation mode, the user has to long-press the button for 3 seconds.
3. When the pharmacy activation mode starts, The device blinks the green LED FOUR times and then turns the
green LED on for 5 seconds.
4. The device measures the resistor matrix, and the battery voltage every 10 mins periodically. When one of the
below parameters change between the current and the previous measurements, the device stores the
measurement into its internal flash memory and starts advertising with the updated status: