pyOLCB
An unofficial Python implementation of the OpenLCB protocol.
Introduction
The pyOLCB package is designed to be an easy-to-use python implementation of OpenLCB (LCC) protocols, designed to interface with both CAN and TCP/IP implementations.
To install the latest version please run pip install pyOLCB
Example Program
1from pyolcb import Node, Address, Event, Interface
2import can
3
4address = Address('05.01.01.01.8C.00')
5interface = Interface(can.Bus(interface='socketcan', channel='vcan0', bitrate=125000))
6
7node = Node(address, interface)
8
9node.produce(Event(125))
Contact
Source code is available on Github
Please submit an issue if you encounter a bug and please email any questions or requests to pyOLCB@uncommonmodels.com