Skip to content

Driver

CANOPEN_CLIENT Driver

A generic C++20 CANopen client over a classic CAN frame port: NMT master, SDO client, heartbeat, emergency, SYNC, PDOs and a CiA 402 drive state machine.

Quickstart API guide Source on GitHub

The driver is not tied to a product or to a CAN controller. You give it a small class that sends one 11-bit frame, waits for one and reads a microsecond clock; it does the rest: the SDO transfer rules, heartbeat ageing, the emergency queue, PDO configuration in the order the profile prescribes and the drive's state transitions.

CAN node CANopen client Any CANopen node
Bus
Classic CAN, 11-bit identifiers, any bit rate your controller runs
Services
NMT, SDO (expedited and segmented), heartbeat, node guarding, EMCY, SYNC, TPDO and RPDO
Profiles
CANopen application layer; CiA 402 drive state machine
Reference transceiver
TI SN65HVD230, 3.0 V to 3.6 V supply (see Hardware)

What you get

  • One object per bus, no I/O until EnsureInitialized(). See API guide.
  • Errors you can act on: Result<T> with an Error, and the node's own SDO abort code. See Contract.
  • Zero-overhead portability: a CRTP port checked by a concept; a send-only port gets a send-only API. See Porting.
  • Tested without hardware against an independent model of the bus and its nodes. See Testing and CI.

Datasheet

Document Revision Get it
Datasheet: SN65HVD23x 3.3-V CAN Bus Transceivers (Texas Instruments SN65HVD230, SN65HVD231, SN65HVD232 (SLOS346)) O, 2018-04 PDF ยท vendor page
Reference: CANopen (Wikipedia contributors Wikipedia article (oldid 1373604442)) last edited September 2026, 2026-09 vendor page
Reference: CANopen Explained - A Simple Intro (CSS Electronics canopen-tutorial-simple-intro) 2026 edition, 2026 vendor page
Source: CANopenNode 301/CO_SDOserver.h (CANopenNode project CO_SDOserver.h) master as downloaded, 2026-11 vendor page
Source: CANopenNode 301/CO_Emergency.h (CANopenNode project CO_Emergency.h) master as downloaded, 2026-11 vendor page
Source: CANopenNode 301/CO_HBconsumer.c (CANopenNode project CO_HBconsumer.c) master as downloaded, 2026-11 vendor page
Source: CANopenNode 301/CO_SYNC.h (CANopenNode project CO_SYNC.h) master as downloaded, 2026-11 vendor page
Source: CANopenNode storage/CO_storage.c (CANopenNode project CO_storage.c) master as downloaded, 2026-11 vendor page
Source: canopen/sdo/client.py (christiansandberg python-canopen sdo/client.py) master as downloaded, 2026-11 vendor page
Source: canopen/sdo/constants.py (christiansandberg python-canopen sdo/constants.py) master as downloaded, 2026-11 vendor page
Source: canopen/sdo/base.py (christiansandberg python-canopen sdo/base.py) master as downloaded, 2026-11 vendor page
Source: canopen/nmt.py (christiansandberg python-canopen nmt.py) master as downloaded, 2026-11 vendor page
Source: canopen/emcy.py (christiansandberg python-canopen emcy.py) master as downloaded, 2026-11 vendor page
Source: canopen/network.py (christiansandberg python-canopen network.py) master as downloaded, 2026-11 vendor page
Source: canopen/pdo/base.py (christiansandberg python-canopen pdo/base.py) master as downloaded, 2026-11 vendor page
Source: canopen/profiles/p402.py (christiansandberg python-canopen profiles/p402.py) master as downloaded, 2026-11 vendor page

Written against these revisions; the SHA-256 of each file is in docs/datasheets.yml. Where each part of the driver is in the datasheet: Datasheet map.