Skip to main content

Console Commands

Aqua-Scope devices provide a text console for diagnostics, setup and maintenance. Commands can be entered through several interfaces interchangeably — responses appear on the same channel.

Access Methods

InterfaceRequirementNote
USB-C / SerialAQM device via USB-C data cable, 115200 bps, 8N1Direct UART communication, full access including local-only commands
Bluetooth (BLE)All Aqua-Scope WiFi devicesEnabled by factory default (for initial commissioning). Once WiFi is configured, BLE must be re-enabled explicitly when needed
Local web serverWiFi device with web server enabledInput via /shell, output via /console (see Local Web Server)
Web terminalChrome/Edge (desktop, Android)Browser-based terminal at app.aqua-scope.com/uart.html — uses BLE or Web Serial

A few commands are available only on the local serial console and are flagged accordingly below.

Web Terminal: app.aqua-scope.com/uart.html

At app.aqua-scope.com/uart.html a browser-based terminal is available with no installation required. It communicates with the device via Bluetooth (BLE) or Web Serial (USB-C).

  • BLE — works with all Aqua-Scope WiFi devices. BLE is enabled by factory default; once WiFi is configured it must be re-enabled explicitly when needed.
  • USB-C / Web Serial — direct UART communication on AQM devices via a USB-C data cable (115200 bps, 8N1).
  • Browser — Chrome or Edge on desktop or Android. Safari and iOS support neither Web Bluetooth nor Web Serial.

WiFi setup over BLE

For simple initial commissioning the web terminal offers a BLE form that sends SSID, WiFi password and registration email straight to the device — no need to type the sid, wpa and mal commands manually into the console. This lets you complete the basic setup of a new device in a few seconds.

Firmware updates over USB-C

Over the UART connection the web terminal also provides firmware updates:

  • ESP32 OTA (otw) — the .bin file is transferred via XModem-CRC directly into the OTA flash partition.
  • MSP430 BSL (mspbsl) — a TI-TXT firmware file is transferred via XModem to the ESP32, which then programs the MSP430 via the BSL protocol (takes up to 5 minutes, do not disconnect).

General Commands

CommandArgumentsDescription
statusReturns the system status flag register as 16-bit hex
alarmReturns active alarms and blocked alarms as hex values
heapCurrently free heap memory in bytes
echoTest command, returns echo ok
consolelogDumps the buffered console log line by line
beep<code>Activates the buzzer with the given pattern
valve<value>Sets the valve state (device-dependent, e.g. 0/100 = closed/open)
mon<interval>Sets the monitoring interval in seconds
resetcReboots into portal mode

Configuration

CommandArgumentsDescription
configlistLists all configuration registers with their current value
configget<no>Returns the value of configuration register <no> (hex and decimal)
configset<no> <value>Sets configuration register <no> to <value>
configresetResets all configuration registers to factory defaults (local console only)
factory2010Performs a factory reset — 2010 is the safety confirmation (local console only)
hwversion<value>Permanently writes the hardware version into the file system
Factory Reset

factory 2010 and configreset permanently erase your settings. Use these commands only when re-commissioning the device.

WiFi and Cloud Setup

These short commands are mainly used in portal mode and over Bluetooth during device commissioning. Values are passed separated by a space (e.g. sid MyWiFi).

CommandArgumentMeaning
sid<ssid>WiFi SSID
wpa<password>WiFi password (WPA2)
mal<email>Registration email
wce<url>Server URL for JSON webhook
wto<token>Security token
mse<server>MQTT broker hostname
mpo<port>MQTT broker port
mus<user>MQTT user name
mpa<password>MQTT password
stoStores MQTT/web configuration and reconnects
getdataReturns the current WiFi and server configuration (over BLE)

In addition, the legacy short forms ws <ssid>, ww <wpa> and em <email> are accepted for backward compatibility.

Communication and Interfaces

CommandArgumentsDescription
commsShows MQTT and JSON configuration (local console only)
modbus1Switches the serial interface to Modbus RTU at 9600 bps and reboots
otwStarts a firmware update via XMODEM over UART

AQM (Ultrasonic Clamp)

These commands are available on AQM devices and control the internal MSP430 co-processor:

CommandArgumentsDescription
mspu<command>Sends a command directly to the MSP430 (pass-through)
mspi<command>Processes an MSP command internally
mspuidReads the unique device ID of the MSP430
msprPerforms a hardware reset of the MSP430
mspe<bsl-command>Puts the MSP430 into BSL update mode
mspotaStarts the OTA programming of the MSP430
mspbslStarts a BSL firmware update of the MSP430 over UART
sleepPuts the device into sleep mode

LoRaWAN

CommandArgumentsDescription
buffersDumps the contents of the LoRa transmit buffer
sensorsLists the internally captured sensor values

ULP / MC8 (Low-Power Devices)

These commands are available on devices with a ULP co-processor (e.g. AQS, AQX, MCL).

CommandArgumentsDescription
appmenu<option>Selects an application menu option
ulp_restartRestarts the ULP co-processor
ulpstatusReturns the ULP status as a hex value
ulpmode<mode>Sets the AQS algorithm mode
i2c_initInitialises the I²C bus
i2c_startReads the pressure sensor once
i2c_fixReactivates the I²C sensor after a hang
ubilink<port> <p2> <p3> <p4> <p5>Sends a UBI-TX frame with the given bytes

Examples

# Check status and alarms
status
alarm

# Read register 13, then set it to 60
configget 13
configset 13 60

# Start firmware update
otw

# Restore factory defaults (local console only, with confirmation value)
factory 2010

Notes

  • Commands are terminated with \n (LF) or \r\n (CRLF).
  • Numeric arguments can be entered in decimal or hexadecimal (0x…).
  • The console accepts at most 64 characters per input line.
  • Commands marked "local console only" are intentionally not executed via BLE or the web server.