UART write commands - Geowissenschaften/EXCISS GitHub Wiki

UART protocol and command lists


wlf

wlf = write LED frontlight

Parameter:

  • int value
  • range: 0-255 (0 = LED off)

Exampe:

  1. SCU -> MCU : wlf100
  2. MCU -> SCU :
RX_SCU = wlf100
[ LIGHTS ]
LED_front = 100

wlb

wlb = write LED backlight

Parameter:

  • int value
  • range: 0-255 (0 = LED off)

Exampe:

  1. SCU -> MCU : wlb0
  2. MCU -> SCU :
RX_SCU = wlb0
[ LIGHTS ]
LED_back = 0

wdn

wdn = write datetime now

Set the RTC Datetime directly without time offset.

Parameter:

  • string
  • YYYY_MM_DD_HH_MM_SS
  • no leading zero

Exampe:

  1. SCU -> MCU : wdn2018_8_10_05_15_10
  2. SCU <- MCU : 2018-8-10 05:15:10
RX_S0 = wdn2018_8_10_05_15_10
[ TIMEKEEPER ]
current_unix_timestamp = 1533878110
current_datetime = 2018-8-10T5:15:10

wdr

wdr = write datetime recovery

Set the RTC Datetime with time offset. The Datetime should be the exacted planed power up datetime. The MCU will add the seconds counted since powerup to the submitted datetime.

Parameter:

  • string
  • YYYY_MM_DD_HH_MM_SS
  • no leading zero

Exampe:

  1. SCU -> MCU : wdr2017_9_12_20_14_00
  2. SCU <- MCU : 2017-9-12 20:24:10

wvs

wvs = write vibration sequence

Parameter: 8 Hex value with leading zero and underline as delimiter. If the MSB is a zero, it represents a 1-128 effect ID. If the MSB is a 1, it represents a 1-128 * 10ms wait until next effect. If the hex is a 00, the effect sequence ends at this position.

  • 58_10_10_10_58_10_10_10

for more information and waveforms effect ID

Exampe:

  1. SCU -> MCU : wvs58_10_10_10_58_10_10_10
  2. SCU <- MCU :
RX_SCU = wvs58_10_10_10_58_10_10_10
[ VM ]
vm_status_register = 11100000
vm_reg_over_current_detect = 0
vm_reg_over_temp_detect = 0
vm_reg_device_id_detect = 170

[ VM ]
setup = ok

wit

wit = write ignition threshold

Value is defined in Volts.

optional command to override the default "config_hvu.h" > "HVU__IGNITION_DELTA" value.

RX_S0 = wit2
[ HVU ]
ignition_delta = 2