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 / SerialSerial connection at 115200 bps, 8N1Full access including local-only commands
Bluetooth (BLE)App in setup mode or BLE activeSetup and general commands
Local web serverWiFi device with web server enabledInput via /shell, output via /console (see Local Web Server)

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

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.