GithubHelp home page GithubHelp logo

wjffsx / device-modbus-go Goto Github PK

View Code? Open in Web Editor NEW

This project forked from edgexfoundry/device-modbus-go

0.0 1.0 0.0 44 KB

License: Apache License 2.0

Dockerfile 1.33% Makefile 1.85% Shell 1.04% Go 95.78%

device-modbus-go's Introduction

Device Modbus Go

Modbus device service go version

Requisite

  • core-data
  • core-metadata
  • core-command

Predefined configuration

Device list

Define devices info for device-sdk to auto upload device profile and create device instance. Please modify configuration.toml file which under ./cmd/res folder

Modbus TCP

[[DeviceList]]
  Name = "Damocles device"
  Profile = "CoolMasterNet Connected Device"
  Description = "Damocles2 is a product for monitoring and controlling digital inputs and outputs over a LAN."
  labels = [ "power-meter","Modbus TCP" ]
  [DeviceList.Addressable]
    name = "HVAC-Gateway address"
    Protocol = "TCP"
    Address = "127.0.0.1"
    Port = 1502
    Path = "1"

Modbus RTU

[[DeviceList]]
  Name = "Damocles device"
  Profile = "CoolMasterNet Connected Device"
  Description = "Damocles2 is a product for monitoring and controlling digital inputs and outputs over a LAN."
  labels = [ "power-meter","Modbus RTU" ]
  [DeviceList.Addressable]
    name = "HVAC-Gateway address"
    Protocol = "RTU"
    Address = "/tmp/slave,19200,8,1,0"
    Path = "1"

Installation and Execution

make prepare
make build
make run

build image

docker build -t edgexfoundry/docker-device-modbus-go:0.1.0 .

device-modbus-go's People

Contributors

anonymouse64 avatar cloudxxx8 avatar ernestojeda avatar jamesrgregg avatar jpwhitemn avatar jpwku avatar steveoss avatar weichou1229 avatar

Watchers

 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.