CAN, CAN FD and LIN Engineering for Vehicle and Battery Systems

For EV, battery, off highway and industrial teams whose controllers must talk over in vehicle networks, EmbedCrest develops CAN, CAN FD and LIN firmware, UDS diagnostics, J1939 messaging and CAN bootloaders, so controllers integrate cleanly with vehicle, charger and battery systems and can be diagnosed and updated in service.

Technically reviewed by the EmbedCrest engineering teamUpdated

Who this is for

  • EV or Battery Engineering Lead
  • Engineering Manager or Embedded Lead
  • Tier 1 or Tier 2 automotive supplier engineering team
  • Off highway and industrial machine OEM

Outcomes we work towards

  • Controllers that integrate on the bus without surprises
  • Diagnostics service teams can actually use
  • In field firmware updates over CAN
  • Bus load and timing verified before vehicle testing

Network integration is where controller projects slip

A controller can work on the bench and still fail in the vehicle: mismatched message definitions, bus load that delays critical frames, poor error handling when a node drops off, missing diagnostic services or a bootloader that bricks units if power is lost. Moving from CAN 2.0 to CAN FD adds bit timing and transceiver decisions. These issues usually surface during integration with other suppliers' ECUs, where every fix costs schedule.

Scope

What We Design, Build and Hand Over

  • CAN, CAN FD and LIN driver development and bit timing configuration
  • DBC or LDF based message layers and signal packing code
  • UDS diagnostics over ISO TP, including DTCs and data identifiers
  • SAE J1939 messaging for heavy vehicle and off highway applications
  • CAN bootloader for in field updates with integrity checks
  • Network management, bus off recovery and error handling
  • Bus load analysis, logging and test automation with CAN tools
  • Integration with BMS, chargers, motor controllers and gateways
Comparison

CAN vs CAN FD vs LIN

CAN vs CAN FD vs LIN
FactorClassical CANCAN FDLIN
Payload per frameUp to 8 bytesUp to 64 bytesUp to 8 bytes
Typical bit rateUp to 1 Mbit/sHigher data phase rate, commonly 2 to 5 Mbit/sUp to 20 kbit/s
Access methodMulti master, priority arbitrationMulti master, priority arbitrationSingle commander, scheduled responders
Wiring and costTwisted pair, moderate costTwisted pair, CAN FD capable transceiversSingle wire, lowest cost
Typical usePowertrain, body, J1939 vehiclesBMS, ADAS, high data ECUs, fast flashingSeats, mirrors, switches, sensors
Use Cases

Where Teams Use This

Battery BMS integration over CAN

Battery Management System (Battery BMS) messaging to vehicle controllers, chargers and inverters, covering state of charge, limits, faults and contactor commands, with diagnostics and logging for validation.

J1939 telematics and machine controllers

Reading and publishing J1939 parameter groups on trucks and off highway machines, including address claim, transport protocol and fault codes, for telematics units and auxiliary controllers.

UDS diagnostics and CAN bootloader

Diagnostic services for reading data, faults and running routines, plus a bootloader that updates firmware over CAN with security access, integrity checks and recovery on interruption.

LIN sub network for body electronics

LIN commander and responder firmware for low cost actuators and sensors, with schedule tables, node configuration and diagnostics generated from the LIN description file supplied by the vehicle OEM.

Process

How the Work Runs

  1. Network definition review

    Review DBC, LDF, diagnostic specifications and timing needs, and agree which messages, services and protocols are in scope.

  2. Driver and stack build

    Configure controllers and bit timing, implement message layers, diagnostics and bootloader on the target microcontroller.

  3. Bench simulation

    Simulate the rest of the network with CAN tools, verify signals, timing, error handling and diagnostics against the specification.

  4. Integration testing

    Test with real partner ECUs, chargers or battery packs, measure bus load and log issues with traces for each supplier.

  5. Release

    Deliver versioned firmware, network configuration, test scripts and diagnostic documentation for production and service teams.

Deliverables

What You Receive

  • CAN, CAN FD or LIN driver and message layer source
  • Updated DBC or LDF files and signal documentation
  • UDS service and DTC documentation
  • CAN bootloader and flashing tool configuration
  • Bus load and timing analysis report
  • Automated test scripts and logs

Have a similar challenge?

Share a short brief; an engineer replies within one business day. How engagements work

Prefer a fixed scope start? Firmware Health and Security Audit

Discuss Your CAN Integration
FAQ

Questions About CAN, CAN FD and LIN

What is the difference between CAN and CAN FD?

CAN FD (Flexible Data rate) extends classical Controller Area Network (CAN) by allowing up to 64 bytes of data per frame instead of 8, and by switching to a faster bit rate during the data phase. That raises effective throughput for applications such as battery management, ADAS and firmware flashing. It needs CAN FD capable controllers and transceivers on every node that must understand the frames.

When should we use LIN instead of CAN?

Use Local Interconnect Network (LIN) for simple, low speed, cost sensitive nodes such as switches, seat motors, mirrors and small sensors, usually as a sub network under a CAN connected controller. LIN uses a single wire and a scheduled commander and responder model. Use CAN when nodes must exchange data with priority arbitration, higher speed or fault tolerance.

What is UDS and why do our ECUs need it?

Unified Diagnostic Services (UDS), defined in ISO 14229, is the standard set of diagnostic services used to read fault codes and data, run routines, control security access and reprogram ECUs. Implementing UDS lets service tools, end of line testers and update systems work with your controller in a consistent way, which most vehicle OEMs require.

How does a BMS communicate with a charger or vehicle controller?

A Battery Management System (Battery BMS) usually communicates over CAN or CAN FD using messages defined in a shared database file, reporting state of charge, voltage and current limits, temperatures and faults, and receiving commands such as contactor control. Charger communication may also follow charging standards that use other physical layers, so the exact interface is confirmed per project.

Do you support SAE J1939?

Yes. We implement J1939 messaging for heavy vehicle, agricultural and off highway applications, including parameter group handling, address claiming, the transport protocol for larger messages and diagnostic messages for fault reporting. We work from your J1939 parameter list and any manufacturer specific proprietary messages agreed in the scope.

Ready to Scope CAN, CAN FD and LIN?

Share your product or plant context. An engineer reviews it and replies with questions, a proposed approach and next steps.

Discuss Your CAN Integration
Discuss Your CAN Integration