cancel
Showing results for 
Search instead for 
Did you mean: 

Command service on Motor control protocol(MCP) with examples

BT.3
Associate

Hi, I am using L476 controller with MCSDK 6.3.0  to control the BLDC motor, able to control the motor with Motor pilot application. However, i need to control the motor using serial communication IDEs like Realterm or Putty.

I referred the document "Motor Control Protocol Suite" but didnt succeed in understanding and implementing the same. Please share some examples of the commands.

I want to use command service only not the ASPEP. Looking forward for the support as soon as possible.

1 REPLY 1
STuser2
Senior III

It depends on level of features you need,

Very simple

The UART transmit 8 bits of information you can use any serial port software for transmitting data and define for example

Start of packet data

Bit0:  Value 1 - start

           Value 0 - stop

Byte1 : Torque Value 

Byte2: Speed Value 

End of packet data

Similarly receive data from the MCU and manually check the received bytes for information, like

Motor status:

Motor RPM

That again depends on the number of bytes etc, and you need to update the motor control software.

Very Advanced:

In this it will be a GUI similar to motor pilot and based on the button selection etc it will send commands to motor control unit and receive data. You can define your own protocol.