Skip to content

Open Edge Device Kit – 配置更新

本部分描述由 Open Edge Device Kit 发布的配置消息。它们提供配置更新,这些更新使用 Device Configuration Service 在 MindSphere 中完成。Open Edge Device Kit 使用 Deployment Workflow Service 获得这些更新。设备上运行的模块必须订阅本章中列出的主题。

信息

如果与 MindSphere 的连接中断,Open Edge Device Kit 将在连接重新建立后接收并发布配置更新。

设备配置更新

主题 cloud/monitoring/update/configuration
描述 指定 Open Edge Device Kit 下载的新设备配置。
服务质量 1
保留 TRUE

示例主体:

{
  "jobid": "000-111-222",
  "device" : {
        ...
  }
}

应用新配置之后,Open Edge Device Kit 期望通过 boxmanager/monitoring/opresult/configupdate 来发布一条状态消息,提供 ID 和状态。

应用配置更新

主题 cloud/monitoring/update/configuration/{app_id}
描述 包含指定的 Edge 应用的新配置。此消息在 MindSphere 后端配置更改并发布到设备之后,由 Open Edge Device Kit 发布。每个 Edge 应用都必须订阅此通道,并附加其关联标识符。
服务质量 1
保留 TRUE

示例主体:

{
  "job": { The Configuration Job },
  "fileContent" : "..."
}

应用新配置之后,Open Edge Device Kit 期望通过 boxmanager/monitoring/opresult/configupdate 来发布一条状态消息,提供 ID 和状态。

数据源配置更新

主题 cloud/monitoring/update/configuration/{protocol}
描述 包含一个新数据源配置。读取数据的模块必须使用它们应支持的协议来订阅主题。
服务质量 2
保留 FALSE

示例主体:

{
  "name": "GAIA",
  "description": "",
  "protocol": "MODBUS",
  "dataSourceId" "32D434ADS3"
  "readCycleInSeconds": "1",
  "protocolData": {
    "ipAddress": "192.168.0.211"
  },
  "dataPoints": [
    {
      "dataPointId": "1526635470331",
      "name": "byte_variable",
      "description": "",
      "unit": "PERCENT",
      "dataType": "INT",
      "dataPointData": {
        "address": "DB1.DBB150",
        "onDataChanged": false}
    },
    {
      "dataPointId": "1526635496767",
      "name": "float_variable",
      "description": "",
      "unit": "PERCENT",
      "dataType": "DOUBLE",
      "dataPointData": {
        "address": "DB1.DBREAL1800",
        "onDataChanged": false}
    },
    {
      "dataPointId": "1526635524797",
      "name": "int_variable",
      "description": "",
      "unit": "PERCENT",
      "dataType": "INT",
      "dataPointData": {
        "address": "DB1.DBW2830",
        "onDataChanged": false}
    }
  ]
}

还有问题?

向社区提问


除非另行声明,该网站内容遵循MindSphere开发许可协议.


Last update: July 11, 2019