OpenLCB

OpenLCB

free

OpenLCB is the open-standards group behind NMRA's Layout Command Control (LCC), providing free protocol specifications, technical notes, and libraries for model railroad interoperability.

About

OpenLCB is the community-driven standards body responsible for developing and maintaining the NMRA's Layout Command Control (LCC) protocol suite. LCC is a modern, CAN-bus-based open standard that enables model railroad components — throttles, command stations, decoders, sensors, and more — to communicate seamlessly on a shared network bus. The group publishes a comprehensive set of adopted standards (S-documents) and technical notes (TN-documents) covering every layer of the protocol stack: physical CAN bus signaling, unique node identifiers, event-driven messaging, train search, train control, and function description information. All documents are freely downloadable and open for public comment before adoption by the NMRA Board of Directors. Key areas covered by OpenLCB specifications include bidirectional throttle-to-train communication (speed, functions, emergency stop), peer-to-peer train search by address or cab number, mixed networks of DCC command stations and wireless trains, and a standardized function-description interface so throttle UIs can auto-configure. The group also maintains LCC-compatible libraries and a unique ID registry to prevent node address collisions. OpenLCB is ideal for model railroad hobbyists, hardware designers, and embedded-systems developers who want to build interoperable LCC-compliant products. All specifications are open source and freely licensed.

Key Features

  • Comprehensive Protocol Suite: Covers every layer from CAN physical signaling to train search, train control, event identifiers, and function description information.
  • Bidirectional Train Control: The LCC Train Control protocol supports speed, functions, and emergency stop — with state feedback from train to throttle.
  • Peer-to-Peer Train Search: Allows throttles to find and identify any train on the network by address or cab number, regardless of whether it is DCC or wireless.
  • Mixed DCC & Wireless Networks: Supports seamless interoperation between traditional DCC command stations and directly-connected wireless trains on the same LCC bus.
  • Unique ID Registry: Provides a globally managed registry for LCC node unique IDs, preventing address collisions across all compliant hardware.

Use Cases

  • Designing a DCC command station that communicates with throttles and wireless trains over an LCC CAN bus.
  • Building a wireless throttle app that uses the LCC Train Search protocol to discover and control any train on the network.
  • Creating interoperable model railroad accessories (sensors, turnout controllers) that respond to LCC event messages.
  • Studying open protocol specifications to understand how model railroad layout control networks are structured.
  • Developing open-source firmware for LCC-compliant nodes using the published OpenLCB libraries.

Pros

  • Fully Open & Free: All standards documents, technical notes, and libraries are freely available and openly licensed, lowering the barrier for developers and hobbyists.
  • NMRA-Adopted Standards: Specifications are formally adopted by the NMRA Board of Directors, ensuring long-term stability and broad industry acceptance.
  • Interoperability by Design: The protocol suite is built to allow products from different manufacturers to work together seamlessly on the same layout bus.

Cons

  • Steep Learning Curve: The protocol stack is comprehensive and technical, requiring significant study of multiple standards documents before implementation.
  • Niche Audience: Primarily relevant to model railroad enthusiasts and embedded hardware developers — not a general-purpose technology.

Frequently Asked Questions

What is OpenLCB?

OpenLCB is the open-standards group that develops the technical protocols behind the NMRA's Layout Command Control (LCC) standard for model railroads.

Is OpenLCB free to use?

Yes. All OpenLCB/LCC specifications, technical notes, and libraries are freely available and openly licensed for anyone to implement.

What is LCC and how does it relate to DCC?

LCC (Layout Command Control) is a network protocol for communication between layout control devices. It can interoperate with DCC command stations, allowing mixed DCC and wireless train networks on the same bus.

Who should use OpenLCB standards?

Hardware designers, embedded-systems developers, and model railroad hobbyists who want to build or purchase interoperable, standards-compliant layout control products.

Where can I download the latest LCC standards?

The latest adopted LCC documents (2024-07-22 set) are available on the NMRA's LCC page and as a single ZIP download from the OpenLCB website.

Reviews

No reviews yet. Be the first to review this tool.

Alternatives

See all