8000 GitHub - wjffsx/device-modbus-go
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

wjffsx/device-modbus-go

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 .

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 95.9%
  • Makefile 1.8%
  • Dockerfile 1.3%
  • Shell 1.0%
0