Skip to main content

DynaSense-Micro – Bluetooth Commands

Overview​

DynaSense-Micro can be controlled via Bluetooth Low Energy (BLE) using a UART service, compatible with apps like nRF Connect or Bluefruit Connect.

  • Device name: Default DYNASENSE-MICRO

Text Commands​

All commands are sent as text strings via the RX characteristic. Responses are received via the TX characteristic.

🕐 RTC Time Management​

rtc get​

Displays the current RTC time (UTC).

Example:

> rtc get
< RTC Time: 2026-02-23 14:30:45 (UTC)

rtc set YYYY mm dd HH MM SS​

Sets the RTC time (UTC).

Example:

> rtc set 2026 02 23 15 00 00
< OK: RTC time set to 2026-02-23 15:00:00 (UTC)

🔋 Measurement and ADC​

adc read​

Reads voltage on all ADC channels.

Example:

> adc read
< ADC Values: CH1=1.23V, CH2=2.34V, CH3=0.98V, ...

adc set_preamp (channel) (gain)​

Sets the preamplifier gain for the selected ADC channel.

Parameters:

  • channel = channel number (1 to 8)
  • gain = amplification, e.g. 1x, 2x, 4x, 8x, 16x, 32x, 64x, 128x

Example:

> adc set_preamp 1 64x
< OK: Preamp for channel 1 set to 64x
< Device must be rebooted for changes to take effect

adc get_preamp​

Displays the current preamp gain settings for all channels.

Example:

> adc get_preamp
< Preamp settings: CH1=64x, CH2=1x, CH3=1x, ...

Note: After changing the gain, you must reboot the device (reboot) for the changes to take effect.

measure start​

Starts measurement.

Example:

> measure start
< OK: Measurement started

measure stop​

Stops measurement.

Example:

> measure stop
< OK: Measurement stopped

measure status​

Shows measurement status (how long it has been running).

Example:

> measure status
< Measurement running: 1h 23m 45s

measure set_channels N​

Sets the number of channels (N = 1 to 8) to store.

Example:

> measure set_channels 4
< OK: Number of channels set to 4

measure until YYYY mm dd HH MM SS​

Starts measurement, which will automatically stop at the specified UTC time.

Example:

> measure until 2026 02 23 16 00 00
< OK: Measurement started, will stop at 2026-02-23 16:00:00 (UTC)

Using with Mobile Apps​

Statotest (Android/iOS)​

  1. Open the Statotest mobile app (available for Android and iOS)
  2. In the main menu, select Devices and choose DYNASENSE-MICRO
  3. Connect via Bluetooth (BLE)
  4. In the device section, you can send commands directly from the app
  5. Device responses will appear in real time in the app
  6. For advanced features (e.g., channel settings, timers), use the extended options in the device detail

nRF Connect (Android/iOS)​

  1. Install the nRF Connect app
  2. Find and connect to the device DYNASENSE-MICRO
  3. Locate the UART Service (UUID: ...)
  4. Enable Notify on the TX characteristic
  5. Use Write on the RX characteristic to send commands
  6. Responses will appear in TX characteristic notifications

Bluefruit Connect (iOS/Android)​

  1. Install the Bluefruit Connect app
  2. Connect to the device DYNASENSE-MICRO
  3. Select UART mode
  4. You can type commands directly into the text field
  5. Responses will appear in the conversation window

Tips & Tricks​

  • Automation: Create scripts for quickly running frequently used command sequences
  • Diagnostics: Regularly check measure status to monitor measurement state
  • Channel management: Use measure set_channels to optimize data storage

Troubleshooting​

Device does not respond to commands:

  • Check that notifications are enabled on the TX characteristic
  • Make sure you are writing to the correct (RX) characteristic
  • Commands must be text strings ending with a newline

Commands return ERROR:

  • Check the command syntax
  • Parameter values must be within valid range

BLE connection is unstable:

  • Device may be too far away (max ~10 meters)
  • Interference from other WiFi/BLE devices