cancel
Showing results for 
Search instead for 
Did you mean: 

stm32 and canopen protocol

Hi, I have a canopen device on my desk and I'm not able to get data from it.

The problem maybe is that I'm a beginner with canopen and I'm making a mistake to build up the request package.

To obtain the setpoint value, registry 3000 (0x0BB8), id device 1, sdo request, I make the package like this:

hcan->pTxMsg->Data[0]= 0x06

hcan->pTxMsg->Data[1]= 0x01

hcan->pTxMsg->Data[2]= 0x0B

hcan->pTxMsg->Data[3]= 0x55

hcan->pTxMsg->Data[4]= 0xB8

The baudrate is ok because, using a monitoring device, I can read my request and the keepalice of the device.

0 REPLIES 0