background image

 

 
 

 

REV 1.1.1 (Last Modified May 25, 2023) 

14 | 29    

R E V 1 . 1 . 1

 

 

 
CAN Bus Messages 

CAN bus messages are sent between the master and the ESCs. These messages define the primary method of 
communication on the CAN bus network. A properly configured network will consist of a master that has an ID 
of 0x00 and ESCs that have unique IDs of 0x02~0xFF. An ESC ID 0x02 is used in the following messages because 
ESC ID 0x01 represents an unassigned ESC. The ESC ID of 0x01 is also used for broadcasting messages. When 
sending a message from the master, if there are additional bytes specified in the data frame, they are ignored 
by the ESC. 

 

 

Object 
address

 

Data length

 

(Send)

 

Data Transmission

 

(Send)

 

Data Transmission

 

(Receive)

 

Data length

 

(Receive)

 

Information Definition

 

(Send/Receive, Refresh Rate)

 

0

 

0

 

No data

 

ESC information

 

5

 

Receive ESC Programming Information

 

1

 

2

 

PWM (Throttle)

 

None

 

0

 

Send Throttle Control (0…2200μs)

 

50 Hz (20 ms) to 500 Hz (2 ms) 

 

2

 

0

 

No data

 

ESC’s Voltage

 

2

 

Receive ESC Input Voltage (V)

 

10 Hz (100 ms) to 500 Hz (2 ms)

 

3

 

0

 

No data

 

ESC’s Current

 

2

 

Receive ESC Input Current (A)

 

10 Hz (100 ms) to 500 Hz (2 ms)

 

4

 

0

 

No data

 

ESC’s RPM

 

2

 

Receive ESC eRPM (rpm)

 

10 Hz (100 ms) to 500 Hz (2 ms)

 

5

 

0

 

No data

 

ESC’s Temperature

 

1

 

Receive ESC MCU Temperature (°C)

 

10 Hz (100 ms) to 500 Hz (2 ms)

 

6

 

0

 

No data

 

ESC’s Input Throttle

 

2

 

Receive ESC Input Throttle (0…2200μs)

 

10 Hz (100 ms) to 500 Hz (2 ms)

 

7

 

0

 

No data

 

ESC’s Output Throttle

 

1

 

Receive ESC Output Throttle (%)

 

10 Hz (100 ms) to 500 Hz (2 ms)

 

8

 

0

 

No data

 

MCU ID

 

8

 

Receive MCU ID Information

 

9

 

8

 

MCU ID

 

Node address

 

1

 

Update Node Address

 

10

 

2

 

Start ESC

 

Enumeration

 

MCU ID

 

8

 

Start  ESC  Enumeration  (send  MCU  ID 
back when motor is rotated)

 

11

 

0

 

No data

 

ESC Voltage, Current,

 

RPM, Temperature, Warn

 

8

 

Receive  ESC’s  Voltage,  Current,  RPM, 
Temperature, and Warning (10-500 Hz)

 

32

 

0

 

No data

 

The Shutdown

 

Procedure is Invoked

 

1

 

Immediately turn off ESC controls (stop 
all  MOSFET  channels)  and  remain  idle 
until restart command is issued

 

33

 

0

 

No data

 

The Restart Procedure

 

is Invoked

 

1

 

Restart  the  ESC  controls  and  re-enable 
arming and throttle control

 

34

 

0

 

No data

 

Warnings and Errors

 

1

 

Receive ESCs Warning and Errors

 

Figure 10: CAN Bus Message Table

 

Note: Figures left empty are not applicable.

 

 

Содержание KDECAN Protocol KDE-UAS125UVC-HE

Страница 1: ...itself and reserve all rights not expressly granted to you The terms of this License will govern any software upgrades provided by KDE Direct that replace and or supplement the original KDECAN Protoco...

Страница 2: ...NT AND NON INFRINGEMENT OF THIRD PARTY RIGHTS KDE DIRECT DOES NOT WARRANT AGAINST INTERFERENCE WITH YOUR ENJOYMENT OF THE KDECAN PROTOCOL SOFTWARE THAT THE FUNCTIONS CONTAINED IN OR SERVICES PERFORMED...

Страница 3: ...ndemnify defend and hold KDE DIRECT and its authorized licensors harmless from and against any and all liabilities damages claims fines and expenses including reasonable attorneys fees and costs arisi...

Страница 4: ...he ESC responds accordingly This document defines the message structure and protocol necessary to communicate with UVC ESCs through CAN bus Contents KDE Direct LLC License Agreement 1 Overview 4 List...

Страница 5: ...bus connection 7 Figure 3 Example CAN bus network 8 Figure 4 KDE Direct Device Manager download link 9 Figure 5 ESC Unique ID Assignment 9 Figure 6 Updated ESC ID 10 Figure 7 ESC ID assignment exampl...

Страница 6: ...Frame Format Extended Frame Format CAN 2 0B 29 bit identifier or Standard Frame Format CAN 2 0A 11 bit identifier Endianness Big Endian KDE ESC series UVC ESC minimum firmware version required D46011...

Страница 7: ...ease refer to the picture shown below Figure 1 CAN bus port configuration Connect multiple ESCs together following the wire setup shown below To connect additional ESCs simply connect the two closest...

Страница 8: ...nternally developed can incorporate the KDECAN protocol Figure 3 Example CAN bus network Note 3 3V CAN transceivers are fully interoperable with 5V CAN transceivers ID Assignment By default each ESC h...

Страница 9: ...ssignment Figure 4 KDE Direct Device Manager download link The ESC ID can be set in the KDE Device Manager through the ESC ID CAN selection To set the ESC ID press the FIXED checkbox select the desire...

Страница 10: ...sages having nonunique IDs Direction Description CAN Message Frame and Data Master to ESC send Start ESC Enumeration Rotated motors return ESC MCU Frame ID 00 00 01 0A Data 27 10 ESC to Master receive...

Страница 11: ...A F U8 Unsigned char 0 0xFF U16 Unsigned short High byte byte 0 Low byte byte 1 0 0xFFFF U32 Unsigned int High byte byte 0 Low byte byte 3 0 0xFFFFFFFF U64 Unsigned long High byte byte 0 Low byte byte...

Страница 12: ...its for the source id sender 8 bits for the destination id receiver and 8 bits for the object address which tells the ESC how to respond to the message Figure 8 CAN Bus frame Extended Frame ID Data Pr...

Страница 13: ...ed on the received CAN bus message Example Direction Standard Frame ID Data Description Master to ESC Bin 0 00010 00000 Hex 0x040 Query FW and HW obj 0 ESC to Master Bin 1 00010 00000 Hex 0x440 0C 00...

Страница 14: ...o 500 Hz 2 ms 3 0 No data ESC s Current 2 Receive ESC Input Current A 10 Hz 100 ms to 500 Hz 2 ms 4 0 No data ESC s RPM 2 Receive ESC eRPM rpm 10 Hz 100 ms to 500 Hz 2 ms 5 0 No data ESC s Temperature...

Страница 15: ...SC 00 00 02 00 00 00 00 00 00 00 00 00 Master sends request ESC to Master 00 02 00 00 0C 00 01 00 46 ESC replies with firmware 0x 0C 00 and hardware 01 00 1 Set PWM U16 MASTER TO ESC Extended Frame ID...

Страница 16: ...00 00 00 00 00 00 00 00 Requests ESC voltage ESC to Master 00 02 00 02 06 2D 1581 1581 100 15 81 V 3 Get Current U16 MASTER TO ESC Extended Frame ID Priority Source Address Destination Address Object...

Страница 17: ...or poles Master to ESC 00 00 02 04 00 00 00 00 00 00 00 00 ESC to Master 00 02 00 04 01 DD 477 477 60 2 22 2 601 rpm 02 61 609 3 321 rpm 02 94 660 3 600 rpm 02 EF 751 4 096 rpm 02 FA 762 4 156 rpm 5 G...

Страница 18: ...SC TO MASTER Answer Extended Frame ID Data Priority Source Address Destination Address Object Address Byte0 Byte1 0x00 0x02 0x00 0x06 IT0 IT1 Example Message Transmission Frame ID Data Data Decimal Eq...

Страница 19: ...2 4C 76 76 02 61 97 97 02 64 100 100 8 Get All MCU IDs U64 MASTER TO ESC Extended Frame ID Priority Source Address Destination Address Object Address 0x00 0x00 0x01 0x08 ESC TO MASTER Answer Extended...

Страница 20: ...57 18 20 33 33 37 ESC to Master 00 02 00 09 02 The ESC responds with 2 its new node address 10 Start ESC Enumeration MASTER to ESC Priority Source Address Destination Address Object Address Byte0 Byte...

Страница 21: ...0 00 00 00 00 Broadcast Enum message for 10 000 msec ESC to Master 00 01 00 0b 05 E1 00 95 02 10 1F 00 05 E1 represents 1505 00 95 represents 149 02 10 represents 528 1F represents 31 00 15 05 V 1 49...

Страница 22: ...SC 00 00 02 21 00 00 00 00 00 00 00 00 ESC to Master 00 02 00 21 01 Restart the ESC controls and re enable arming and throttle control 34 Get Warning Signals and Errors MASTER to ESC Priority Source A...

Страница 23: ...ating bit will be set Stall Protection BIT 0 DEC 1 Over Temperature BIT 1 DEC 2 Overload Protection BIT 2 DEC 4 Over Voltage BIT 3 DEC 8 Low Voltage BIT 4 DEC 16 Voltage Cutoff if enabled BIT 5 DEC 32...

Страница 24: ...imal 17 Bit 3 Over Voltage Binary 0010 1000 Decimal 40 Binary 0001 1000 Decimal 24 Binary 0000 1000 Decimal 8 Binary 0000 1100 Decimal 12 Binary 0000 1010 Decimal 10 Binary 0000 1001 Decimal 9 Bit 2 O...

Страница 25: ...roller but can also be a CAN Bus analyzer or sniffer What is the MCU ID The microcontroller unit the UVC series ESCs use is a STM32 CPU Each MCU has a unique identifier referred to as the MCU ID How d...

Страница 26: ...with different data If they reply with the same data you will only see one message To avoid this set the ESCs to have different CAN IDs through the KDE Device Manager or through ESC Enumeration or cha...

Страница 27: ...s by default The ESC must be connected to a power supply or LiPo battery Make sure USB is disconnected Try power cycling disconnect and reconnect LiPo battery The ESC is correctly wired to the device...

Страница 28: ...ugh CAN bus arming and full throttle control will work through KDECAN If the throttle control lead white red black wire is connected it will be used as a backup Initial Setup First we recommend updati...

Страница 29: ...messages at 5ms 200Hz The motor will start beeping to indicate the number of cells for the LiPo battery voltage connected You can then send CAN messages to spin the motor Frame ID ESC ID2 throttle Dat...

Отзывы: