Git Product home page Git Product logo

modbus-tester's Introduction

modbus-tester

Modbus device tester

Scripts

Script contains instructions that will be transferred into serial port. Currently, scripts has only two type of instructions:

  • Hex string. Could have different byte separators, like: space, '-', '_' or not have at all. For example:
    • 00010203040506
    • 0A-04-00-10-00-03

To all transmitted data, will calculate modbus CRC and transmitted with provided body. So for provided example below in port will be transmitted: 0A-04-00-10-00-03-B0-B5

  • Delay command with time in ms as an additional argument. Example:
    • Delay 1000 -> will delay for 1s

Script example

0A-04-00-10-00-03
delay 10
0A-04-00-30-00-06

Script should have *.scr file extension.

Logs

As report of running example script on real device, will be created log file. Example of 'Log file'

2021-06-10 15:53:30.8882 INFO Open: D:\wrk\sharp\zerd.modbus\test-dir\04-generator-test.scr. Port: COM9 : 115200
2021-06-10 15:53:30.9677 INFO TX: 0A-04-00-10-00-03-B0-B5
2021-06-10 15:53:40.1890 INFO RX: 0A-04-06-00-00-00-02-00-0C-B2-66
2021-06-10 15:53:40.1890 INFO Delay 10 ms
2021-06-10 15:53:40.2010 INFO TX: 0A-04-00-30-00-06-71-7C
2021-06-10 15:53:45.4277 INFO RX: 0A-04-0C-7F-00-52-00-12-50-4E-33-52-35-34-20-E5-C4
2021-06-10 15:53:45.5451 INFO Close D:\wrk\sharp\zerd.modbus\test-dir\04-generator-test.scr

modbus-tester's People

Contributors

intx82 avatar

Watchers

 avatar  avatar

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.