edgexfoundry-holding / open-horizon-integration

EdgeX/Open Horizon Integration (Systems Management Sub-project) | Owner: Systems Management
Apache License 2.0
9 stars 14 forks source link

Create Document: 08 Document Modbus Device Addition #41

Open joewxboy opened 4 years ago

joewxboy commented 4 years ago

This document should:

  1. Show how to add a new Modbus device to the existing demo
  2. Show how to verify that it is working
  3. Ideally, it would be a temperature or pressure sensor of some sort
joewxboy commented 4 years ago

Per our recent subgroup meeting, split the Device Random service into a separate Open Horizon service definition file residing in the same pattern, and list the main EdgeX service as a dependency.

Once that is working, templatize the pattern for an external service so that others can be added or removed as needed.

dcmartin commented 4 years ago

Objective is to stand-up the example RNG-EXF container/service as an open-horizon service; the existing OH example for EdgexX, does not break out the RNG example; need to understand how to parameterize that container to run independently of the other services, i.e. not using the bind statements in the existing example: https://github.com/edgexfoundry-holding/open-horizon-integration/blob/220ea07c5639db0d89c8cd73a265920b3895722c/hub/configs/service.json#L115

  1. Split existing edgex OH service into two OH services; one w/ random alone and the second with the remaining containers (e.g. exfrandom and edgex)
  2. Modify OH edge pattern to include both exfrandom and edgex OH services
  3. Parameterize random service (and edgex pattern) with appropriate variables and values to utilize/access the OH edgex services API(s), etc..

Subsequent work would provide template or software library (or both) to enable OH services to utilize EXF services via API (n.b. authenticate, authorize, etc..)

Potential utilization of existing OH capabilities (n.b. metadata, API, ..) may obviate need to provide variable:values, but that is TBD.