{ "$schema": "http://json-schema.org/schema#", "$schemaVersion": "0.0.1", "modelTags": "INCODE", "$id": "https://smart-data-models.github.io/dataModel.Device/Modbus/schema.json", "title": "Smart Data models - ModBus data model", "description": "This entity contains a harmonised description of a modbus payload adapted from the modbus application protocol v1.1.b3", "type": "object", "derivedFrom": "https://modbus.org/docs/Modbus_Application_Protocol_V1_1b3.pdf", "allOf": [ { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons" }, { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons" }, { "properties": { "type": { "type": "string", "description": "Property. NGSI Entity identifier. It has to be Modbus", "enum": [ "Modbus" ] }, "unitId": { "type": "string", "description": "Property. Identifier of the device" }, "transactionId": { "type": "string", "description": "Property. Identifier of the transaction" }, "protocolId": { "type": "string", "description": "Property. Identifier of the protool. In example 0 means modbus" }, "primaryTable": { "type": "string", "description": "Property. Register type of the data in the protocol", "enum": [ "coil", "inputRegister", "holdingRegister", "discreteInput" ] }, "memoryAddress": { "type": "string", "description": "Property. Address in the device sending data" }, "value": { "type": "string", "description": "Property. Value of the data interchanged" } } } ], "required": [ "id", "type" ] }