Serial commands
Jump to navigation
Jump to search
Serial Commands
The bcMeter provides a USB serial debug interface for hardware diagnostics and manual control. Connect via USB-C at 115200 baud.
Available Commands
| Command | Description |
|---|---|
led <ch> <duty> |
Set LED brightness. Channel 0–2 (880/520/370nm), duty 0–255. |
pump <duty> |
Set pump PWM duty cycle (0–255). |
adc |
Test ADS1220 ADC detection and read current values. |
sps30 |
Quick read from particulate matter sensor. |
gps |
GPS position report (lat, lon, altitude, satellites, HDOP). |
modem <AT command> |
Send raw AT command to SIM7080G modem. |
modemscan |
Detect modem UART configuration. |
modemon / modemoff |
Power control for the modem. |
wifi |
Current WiFi status and IP address. |
scan |
Scan for nearby WiFi networks. |
connect <ssid> <password> |
Save WiFi credentials and connect. |
ap |
Switch to access point (hotspot) mode. |
storage |
Show storage usage summary (internal + SD card). |
export |
Export all logs to SD card. |
reset |
Reboot the device. |
help |
List all available commands. |
Usage Example
# Connect via screen (macOS/Linux) screen /dev/tty.usbmodem* 115200 # Or via minicom minicom -D /dev/ttyACM0 -b 115200 # Check sensor readings > adc ADS1220 detected at SPI Ch0 (Sen 880): 2.341V Ch1 (Ref 880): 2.518V # Manually control pump > pump 80 Pump duty set to 80/255 # Check GPS > gps Fix: valid Lat: 52.4631, Lon: 13.3069 Sats: 7, HDOP: 1.2 Alt: 48.3m, Speed: 0.0 km/h