Giter VIP home page Giter VIP logo

linux-mstpcallbacktest's Introduction

Linux MSTP Callback Test

This application is an example of how to test the MSTP callback functions on Linux. This application can be be ported to other hardware to test to ensure that it will support the requirements of BACnet MSTP.

This application is designed to work in tandem with Linux High Speed Serial Monitor

Testing instructions

  1. Connect a USB RS485 converter to a Linux computer.
  2. Connect the USB RS384 [D+], [D-], [GND] to the unit under test [D+], [D-], [GND].
  3. Run Linux High Speed Serial Monitor on a Linux computer.
  4. Run the MSTP Callback Test on the unit under test.

Example output of MSTP Callback Test

./test
FYI: MSTP Callback Test. Version: 0.0.0.1
FYI: Test 1: Internal high speed timer
FYI: Testing high speed timer. timerMS=10
     Success. timerMS: 10, millisecondTimer: 10.041
FYI: Testing high speed timer. timerMS=20
     Success. timerMS: 20, millisecondTimer: 20.172
FYI: Testing high speed timer. timerMS=40
     Success. timerMS: 40, millisecondTimer: 40.14
FYI: Testing high speed timer. timerMS=80
     Success. timerMS: 80, millisecondTimer: 80.048
FYI: Testing high speed timer. timerMS=101
     Success. timerMS: 101, millisecondTimer: 101.327
FYI: Internal high speed timer success

FYI: Connecting to serial port. SerialPort=/dev/ttyS4
FYI: Connectec to serial port

FYI: Test 2: Sending inital test byte. buffer='0' 0x30
FYI: Check the serial port for the results to this test.

FYI: Test 3: Sleep timer
FYI: Check the serial port for the results to this test.

FYI: Test 4: Action required ! - Send a byte to the serial port...
FYI: Byte recived. buffer='f' 0x66
FYI: Sending recived byte. buffer='f' 0x66
FYI: Success. All tests compleat.

Example output from Linux High Speed Serial Monitor

FYI: High speed serail monitor. Version: 0.0.0.1
FYI: Connecting to serial port. SerialPort=/dev/ttyS5, BaudRate=38400
FYI: Connected to serial port

|  Time (ms) |     CHAR |      HEX |
* ---------- * -------- * -------- *
|   3071.264 |        0 |       00 |
|      0.628 |        a |       0a |
|     10.392 |        b |       0b |
|     10.531 |        c |       0c |
|     10.931 |        d |       0d |
|     21.001 |        e |       0e |
|     31.027 |        f |       0f |
|     40.892 |        g |       0g |
|     50.499 |        h |       0h |

Building

A included makefile can be built with GCC

make all

This project also auto built using Gitlab CI on every commit.

Binary

A compiled version of the serial monitor is included in this repo. mstpCallbackTest

Change log

2019 May 23

  • 0.0.2 Added CI build number. Updated make file to include "all", and "Clean" steps. Added Gitlab CI auto builds.
  • 0.0.1 Initial version

linux-mstpcallbacktest's People

Contributors

funvill avatar ssmethurst avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

nybv-hhws

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.