I have a sensor with CANOpen interface which needs to send data to a ECU. Currently, there are no other sensors, non-CANOpen, CANOpen devices on the network.
Can i communicate with the CANOpen device without using any special library since it is the only device on the network?
How should i approach this problem?
I found out that i should use CANOpen library (CanFestival, CanOpenNode).
I configured the node id and other parameters using PEAK Can View software and got values from the sensor.
Also found in the following document: text
To use CANOpen devices in non-CANOpen network:
- the Non-CANopen network shall not use the identifier value 0 (CANopen NMT). − the Non-CANopen network shall not use the identifiers for SDO and NMT-EC services.
Currently, my approach is to use linux CAN Socket and try to send to send receive the data from the sensor wihtout using any external library.