Skip to content

Reads serial data from RS232 serial ports and (1) displays them in a GUI or in command line output; and (2) writes the data to a CSV file

License

GPL-3.0, LGPL-3.0 licenses found

Licenses found

GPL-3.0
COPYING
LGPL-3.0
COPYING_LESSER
Notifications You must be signed in to change notification settings

blokeley/pylibra

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pylibra documentation

Author: Tom Oakley
Copyright: Copyright (c) 2008 - 2013 Tom Oakley.

pylibra is an application to read data from a serial port, parse it into useful chunks, and write the data to a file.

User instructions

Support

If you notice any problems, please create a new ticket.

Windows

Installation

  1. pip install py2exe pyserial
  2. git clone https://github.com/blokeley/pylibra.git
  3. cd pylibra
  4. python setup.py py2exe

Use

  1. edit the libra.cfg file to set the correct serial settings and column headings for your data. the regular expression line ("regex") defines how pylibra searches serial data for the data you want. see http://docs.python.org/library/re.html for details on regular expression formats.
  2. for the graphical user interface, run pylibragui.exe
  3. for the command line interface, open a command prompt window (cmd.exe), then use cd to change directory to where pylibra is and run pylibra.exe
  4. select start to start polling the serial port for data. data are automatically saved in a file called data.csv in the current working directory.

linux, os x etc.

Installation

  1. install pyserial. for example, on ubuntu or debian open a terminal as root and type apt-get install pyserial
  2. run git clone https://github.com/blokeley/pylibra.git

Use

To run the command line interface, open a shell terminal, cd to the directory containing pylibra and type python pylibra.py

To run the graphical user interface, either double-click on pylibragui.py in a graphical file manager, or open a shell terminal, cd to the directory containing pylibra and type python pylibragui.py

Developer instructions

Tools

To develop pylibra you need a python interpreter and a couple of libraries. If you are using Windows, use the Windows installers for pyserial, py2exe and wxPython rather than setuptools/easy_install.

  • Python 2.6+ interpreter. Note that 3.0+ has not been tested and probably will not work.
  • pySerial serial port library. Install pyserial using the Windows executable rather than easy_install so that py2exe can find the serial package.
  • py2exe to create the Windows executable.
  • wxPython for the GUI.
  • A good text editor.

Recommended work flow

  1. Choose a ticket to address from https://github.com/blokeley/pylibra/issues
  2. Make a server-side clone on github
  3. Clone from your server-side repo using git clone https://github.com/USER/pylibra.git where USER is your user name
  4. If at all possible, write a unit test or tests to expose the problem.
  5. Create a feature branch on your local repo using git checkout -n BRANCHNAME
  6. Solve the problem.
  7. If you want to build a Windows executable, open a terminal and run python setup.py py2exe.
  8. Test as much as possible.
  9. Update the documentation if you make any changes noticeable to the user.
  10. Commit using git commit -m with a helpful commit message, preferably referencing the ticket with #xx where xx is the ticket number.
  11. Push your changes to your server-side repo using git push
  12. Create a pull request on github.

Installing docutils (on Windows)

  1. Download docutils.
  2. Make sure that C:\Python26\Scripts is on your PATH environment variable.

About

Reads serial data from RS232 serial ports and (1) displays them in a GUI or in command line output; and (2) writes the data to a CSV file

Resources

License

GPL-3.0, LGPL-3.0 licenses found

Licenses found

GPL-3.0
COPYING
LGPL-3.0
COPYING_LESSER

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages