Can anyone explain how to send data using the CAN protocol step-by-step?

Can anyone help explain the step-wise procedure for sending data using the CAN protocol? I'm working on Project Where we are Calculating the Distance using Ultrasonic sensor and wanted to send the data using CAN Protocol , I'm Using Controller Board STM32F407 DISCOVERY BOARD 1 , I'm Using the CAN Module for Communication, Module : CAN transceiver SN65HVD230 1) I wanted to send data using can Protocol , Can any one explain in detail and Step wise procedure for send the data over CAN ? 2) Suppose There are Multiple Sensor are Connected to CAN bus, Multiple Sensors Sending Data, Through The CAN , to The microcontroller how to read data of a Perticular Sensor, throughout the CAN ,and use that data in other task , explain step wise process?
Solution:
1) You can use the APIs provided by ST for this https://controllerstech.com/can-protocol-in-stm32/ (more detailed than I could explain - so this link) 2) The data from each node is distinguished by an identifier. It can be 11 or 29 bits based on the version of CAN you use....
ControllersTech
How to use CAN Protocol in STM32 » ControllersTech
This tutorial will cover the Basic Can protocol in STM32. Here we will see, how to communicate between two STM32 boards
Jump to solution
2 Replies
techielew
techielew7mo ago
Some background on CAN from TI: https://www.ti.com/lit/an/sloa101b/sloa101b.pdf?ts=1714920101019. See section 4.
Solution
Navadeep
Navadeep7mo ago
1) You can use the APIs provided by ST for this https://controllerstech.com/can-protocol-in-stm32/ (more detailed than I could explain - so this link) 2) The data from each node is distinguished by an identifier. It can be 11 or 29 bits based on the version of CAN you use.
ControllersTech
How to use CAN Protocol in STM32 » ControllersTech
This tutorial will cover the Basic Can protocol in STM32. Here we will see, how to communicate between two STM32 boards
Want results from more Discord servers?
Add your server