Skip to content

An easy to use python implementation of OpenLCB (LCC) protocols, designed to interface with both CAN and TCP/IP implementations.

License

Notifications You must be signed in to change notification settings

UncommonModels/pyOLCB

Repository files navigation

pyOLCB

An easy to use python implementation of OpenLCB (LCC) protocols, designed to interface with CAN (and TCP/IP via gridconnect and the native OpenLCB specification in a future release).

This is very much a work in progress, please don't expect it to function fully for a while.

Documentation is available at https://www.uncommonmodels.com/pyOLCB

from pyolcb import Node, Address, Event, Interface
import can

address = Address('05.01.01.01.8C.00')
interface = Interface(can.Bus(interface='socketcan', channel='vcan0', bitrate=125000))

node = Node(address, interface)

node.produce(Event(125))

About

An easy to use python implementation of OpenLCB (LCC) protocols, designed to interface with both CAN and TCP/IP implementations.

Resources

License

Stars

Watchers

Forks

Packages

No packages published