/tc_logger_apps

A collection of applications for the XLC thermocouple datalogger series.

Primary LanguageCMIT LicenseMIT

Thermocouple Datalogger Integration Software

This Repository contains a collection of applications to facilitate the integration XLC series thermocouple dataloggers into user applications.

4 Channel thermocouple datalogger top view

Fig.1 - Top view Quad Channel Thermocouple Datalogger.

This repository, has so far been tested in Ubuntu 18.04.

Contents:

Three directories are of interest:

  1. simple_parser - Contains a c progam that reads data from a serial port, parses it and prints the result to standard output.
  2. libxlc - Thermocouple parsing code in (1) is packaged into a library to facilitate integration into other projects.
  3. parser - Demo application. Same function as simple_parser however is linked against libxlc.

Basic usage:

  1. Clone the repository and change into the directory.
    git clone https:\\www.github.com\lukevassallo\tc_logger_apps.git
    cd tc_logger_apps
  2. Run make at the command line to build everything.
    make all
  3. Configure the serial port with stty. Replace /dev/ttyS0 and 9600 with the appropriate port and baudrate. (see below for explanation)
    stty -F /dev/ttyS0 9600 cs8 -cstopb -parenb -ixon -echo"
  4. Start with application simple_parser. The binary will be located in the build directory. Replace /dev/ttyS0 the appropriate port.
    ./parser/build/parser /dev/ttyS0
  5. Optionally download the Thermocouple Configuration and Logging Software to effortlessly get acquainted with the device.
    # Linux debian
    source ./scripts/get_lnx_sw.sh
    
    # Windows
    source ./scripts/get_win_sw.sh

Configuring the serial port:

The following command configures the serial port /dev/ttyS0 with 9600 baud, 8 data bits, 1 stop bit, no parity, no hardware flow control, no local echo. stty -F /dev/ttyS0 9600 cs8 -cstopb -parenb -ixon -echo