This is the index page of the OpenLCB™ Python prototypes directory.
Most of the Python modules in this package are meant to be run from the command line, or invoked programmatically.
To run one from the Mac OS X or Linux command line, first edit the defaults.py file with your connection information, then do e.g.:
To run the full set of tests from the Mac OS X or Linux command line, do :
./allTest.py -t -v && echo OK
followed by testing the start-up sequencing with :
./testStartup.py -t -v && echo OK
(Reset the node when prompted to force the start-up sequence to run)
When running from the command line, internal help is available via the -h option, as in:
Common options are:
-h Print help information
-v Verbose, show summary information (normal operation is to complete silently)
-V Very verbose, show each message
-a nnn Source alias to be included in transmitted messages
-d nnn Destination alias to be included in transmitted messages
-t Dynamically find the destination alias for the node-under-test (assumes only one node present)
There are text files containing typical output from running
./allTest.py -t -V
./testStartup.py -t -V
test scripts that you can consult to see what normal operation looks like. Note that they contain node IDs, aliases, and event IDs that are specific to the particular node being tested, so your mileage
The type of access (Ethernet or USB) and parameters such as IP address, default node IDs, etc are defined in the default.py file. When using the command line, edit that file for your specific needs. If you're using a serial connection, you need to have PySerial installed, which is described here.
The basic Ethernet connection is accessed via the "ethernetolcblink" module.
The basic USB-Serial connection is accessed via the "serialolcblink" module.
Other cross-connection utilities can found in the "canolcbutils" module.
This web site contains trademarks and copyrighted information. Please see the Licensing page.
This is SVN $Revision: 2771 $ of