Git Product home page Git Product logo

modbusone's Introduction

Hi there ๐Ÿ‘‹

modbusone's People

Contributors

xiegeo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

modbusone's Issues

RS485 / Modbus communication using a Raspberry Pi 3B and a Seeed Shield

First of all, let me congratulate for this fabulous package!

I had to implement an RS-485 (Modbus) interface on an RPI 3B using a Seeed RS-485 Shield. I have done the whole process (together with other processes) with RXJAVA using Pi4J (which uses the Wiringpi library) and it works fine. But I have to port the whole system to C or GO because of performance (speed) reasons. And I definitely prefer doing it in GO and if possible, by using your package with some little modifications. The modifications are needed because the Seeed Shield uses a GPIO pin to set the data flow direction of the RS485 communication.

To use the Seeed Shield, the following has to be done:

  • Turn an output pin high (BCM 18) to set the communication direction of the shield to transmission,
  • Send a command to the Modbus device,
  • Turn the output pin (BCM 18) to low to set the shield to reception,
  • Read in the answer of the Modbus device.

I will gladly write (and publish) the modifications, however it would be much faster if you could send me some advice. I would appreciate if you could me pinpoint the points in the code where the transmission turns into reception and viceversa. Toggling a GPIO pin on the raspberry can be easily done with existing open source packages, so this part of the project is relatively easy.

Of course if my request is too much, just forget it, I will inspect the code myself.

Regards,

Add version tag to current master

Hi,

first and foremost thanks for the library, its amazing.

Could you add a version tag to the current master?
Else when using go get github.com/xiegeo/modbusone without explicitly specifying @master, an outdated dependency is pulled.

Thank you very much ๐Ÿ˜ƒ

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.