Skip to main content
FW version: Stable

Setup Periodic Sampling

This document describes how to configure the ESCx driver for periodic status message transmission.

warning

Payload byte positions differ from transfer layer byte positions (CAN, UART, USB, Bluetooth...) Before implementation, carefully review message creation guides for:

Message - Configure Driver Sampling

info
  • Message is unicast with SID = 24
  • All messages use big-endian format
Payload byteBitDescription
00x08
10Motor 3
11Motor 4
12-3Reserved
14Driver State 2
15-7Reserved
20:1Reserved
22Driver State 1
23Range and Reference
24Supply 1
26Motor 1
27Motor 2
3-4[uint16]Transmission period [ms]
5-6[uint16]Initial delay [ms] before first transmission. Set to 0 to disable transmission.

Different sampling periods can be configured for each status message type by setting them individually.

Status Message Contents

Message TypeParameters
Driver State 1/driver/state, /driver/mode, /driver/temp, /driver/limit, /driver/error
Driver State 2/driver/cmd, /driver/totallimit
Range and ReferenceVoltage range, Current range, /driver/uref, /driver/iref
Supply 1/driver/supply/currentf, /driver/supply/voltage (relative units), Total charge [mAh]
Motor 1/driver/motor/currentf, /driver/motor/voltage (relative units), /driver/energy
Motor 2/driver/power, motor angle, /driver/motor/rpmf, /driver/motor/odo (relative units)
Motor 3/driver/currentq, /driver/currentd + current references
Motor 4Rthermistor, /driver/motor/mres, Actual motor torque, Maximum possible motor torque