Giter Club home page Giter Club logo

hart_fsk's Introduction

hart_fsk

Introduction

This project allows to communicate with HART field devices over serial port - 100% python based. HART stands for Highway Addressable Remote Transducer and is a widely used protocol for communication with field devices in process automation. This project focuses on physical layer FSK and talks to a HART modem connected to a serial port (ttyUSB0, com1) using pyserial.
Encoding and decoding of data into HART frames supported for RX/TX. The layout of HART commands for a specific device is read from a ddl file using python module eddly.

License

This work is distributed under the MIT license. See LICENSE for details.

Features

  • connect to a device by sending cmd 0 and verifying received data against device description from ddl (optional: talk to device directly using long address)
  • object oriented design: a device class object holds all information for this device (assigned serial port, device description, connection status, device revisions, ...)
  • high-level functions (e.g. command(), read_primary_variable()) are easy to use and self-document the source code
  • low-level-function command_raw() can send/receive arbitrary bytearray data
  • received variables can be accessed as class elements: print(response.loop_current)
  • fast: RX function returns immediately after extected number of bytes arrived; no waiting for timeouts
  • error handling if return_code != 0, can be disabled for testing if rc != is expected

Caution

This project is proof-of-concept. Use it on your own risk!

Contribution

Welcome. Thanks to all contributors.

hart_fsk's People

Contributors

hydrogentimespi avatar

Watchers

 avatar

Forkers

exrom

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.