Sale ends todayGet 30% off any course (excluding packages)

Ends in --- --- ---

CAN Bus Communications Decoded: Program devices to transmit required data

Watch This Course

$199 USD

Or 8 weekly payments of only $24.88 Instant access. Easy checkout. No fees. Learn more
Course Access for Life
60 day money back guarantee

Program devices to transmit required data


00:00 - In steps 4 and 5 of the CAN network setup process, we're going to actually configure our devices connected to the bus to transmit and receive the required data.
00:09 Much like steps 2 and 3, these steps are often performed at the same time but we've broken them out here to focus on the specific details.
00:18 Step 4 will start with programming our devices to transmit the required data we've identified as being required in step 3.
00:25 The first part of this process is to configure the communication speed of the devices.
00:30 If all of your devices support it, I recommend sticking with 1 Mb per second where possible.
00:36 The second part of the process is going to be to set up our termination resistors.
00:41 If you have devices with programmable termination resistors at the end of the bus trunk, ensure that there are enabled.
00:49 Or that they're disabled if the devices are connected to a bus node.
00:53 When determining the data frames a device should send out and the PIDs that they should be sent on, we're often quite lucky in that many aftermarket automotive electrical manufacturers try to make our lives easier by providing pre defined transmission templates for their device's data.
01:10 As much as possible, I suggest sticking to pre defined transmission templates as they've usually been thoroughly debugged and can save a lot of time, especially if the receiving device has a matching pre defined template.
01:25 In the case that you need to program a device with a custom transmission template, there are 2 parts to this process.
01:31 The first is designing the CAN data frame which we discussed in detail in the first 2 sections of the practical discussion section of the course.
01:39 And the second is configuring the device in question to transmit this frame.
01:43 There's no standardised system between manufacturers for configuring data frames to be sent out over CAN and it varies greatly from device to device.