Skip to main content
Use this page when building an application that controls C5TAKO™ over USB Serial or BLE Serial.

Quick start

  1. Connect with USB Serial or BLE Serial.
  2. Enable TX notifications when using BLE.
  3. Send /HELP to read commands supported by the installed firmware.
  4. Send /PING to check connectivity.
  5. Send /STATUS to read device state.
The protocol can change between firmware versions. Treat /HELP from the physical device as the source of truth before wiring commands into an app.

Connection

USB Serial

Configure Serial Monitor to send Newline or Both NL & CR. If the device does not respond, check the line-ending setting first.

BLE Serial

BLE uses the same command and response set as USB Serial. Workflow:
  1. Find C5TAKO Serial.
  2. Connect to the Service UUID.
  3. Enable notifications on TX.
  4. Write commands to RX.
  5. Handle responses that may span multiple BLE packets.

Response format

Example:
Read data as a stream: do not assume one read equals one response. Separate response-message parsing from JSON payload parsing, and handle BUSY, timeouts, and disconnections.

Basic commands

Scan and select a target

Scan APs and STAs

/SCAN AP scans for access points. Without a channel it scans multiple channels. /SCAN STA scans clients related to prior AP scan data.

Read scan results

These commands return the most recent results without starting another scan. Entry indexes start at 0.

Select entries

Example:

Start and stop a runtime

Commands that start work use this form:

Wi-Fi Monitor and PCAP

SAVE writes Monitor data to PCAP when storage is available. TARGET requires scanned and selected AP data.

Other Wi-Fi tools

Portal

Use Portal commands only in a lab and only with test data that is not another person’s personal information.

Bluetooth and other detectors

Stop a runtime

For an app emergency-stop control, send /STOP and /BTN RELEASE ALL if the connection is lost while a button is held.

Control the display

Example:
If the app loses connection during a HOLD command, send /BTN RELEASE ALL after reconnecting.

Request a screen image

Assemble chunks in order and check data size before displaying the image.

Status stream

INTERVAL accepts 100–60000 milliseconds. Send /STREAM OFF before disconnecting when continuous data is no longer needed.

File commands

Frequently used commands: The /FILE RECV stream format is:
Before using file commands, check /HELP and /FILE STORAGE on the physical device because capabilities and storage names can change by firmware version.
After every reconnection, check firmware version, /HELP output, and /STATUS before sending another command.