This repository has been archived by the owner on Mar 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 236
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
379 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,167 @@ | ||
{ | ||
"@context": "dtmi:dtdl:context;2", | ||
"@id": "dtmi:azure:iot:deviceUpdate;2", | ||
"@type": "Interface", | ||
"displayName": "Device Update Interface version 2", | ||
"description": "Device Update interface version 2 is used to send update action and metadata to devices and receive update status from devices.", | ||
"contents": [ | ||
{ | ||
"@type": "Property", | ||
"name": "agent", | ||
"schema": "dtmi:azure:iot:deviceUpdate:agentMetadata;2" | ||
}, | ||
{ | ||
"@type": "Property", | ||
"name": "service", | ||
"schema": "dtmi:azure:iot:deviceUpdate:serviceMetadata;2", | ||
"writable": true | ||
} | ||
], | ||
"schemas": [ | ||
{ | ||
"@id": "dtmi:azure:iot:deviceUpdate:agentMetadata;2", | ||
"@type": "Object", | ||
"fields": [ | ||
{ | ||
"name": "state", | ||
"schema": "integer" | ||
}, | ||
{ | ||
"name": "installedUpdateId", | ||
"schema": "string" | ||
}, | ||
{ | ||
"name": "workflow", | ||
"schema": "dtmi:azure:iot:deviceUpdate:workflowMetadata;2" | ||
}, | ||
{ | ||
"name": "lastInstallResult", | ||
"schema": "dtmi:azure:iot:deviceUpdate:installResultMetadata;2" | ||
}, | ||
{ | ||
"name": "compatPropertyNames", | ||
"schema": "string" | ||
}, | ||
{ | ||
"name": "deviceProperties", | ||
"schema": { | ||
"@type": "Map", | ||
"mapKey": { | ||
"name": "devicePropertyName", | ||
"schema": "string" | ||
}, | ||
"mapValue": { | ||
"name": "devicePropertyValue", | ||
"schema": "string" | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"@id": "dtmi:azure:iot:deviceUpdate:serviceMetadata;2", | ||
"@type": "Object", | ||
"fields": [ | ||
{ | ||
"name": "workflow", | ||
"schema": "dtmi:azure:iot:deviceUpdate:workflowMetadata;2" | ||
}, | ||
{ | ||
"name": "rootKeyPackageUrl", | ||
"schema": "string" | ||
}, | ||
{ | ||
"name": "updateManifest", | ||
"schema": "string" | ||
}, | ||
{ | ||
"name": "updateManifestSignature", | ||
"schema": "string" | ||
}, | ||
{ | ||
"name": "fileUrls", | ||
"schema": { | ||
"@type": "Map", | ||
"mapKey": { | ||
"name": "fileId", | ||
"schema": "string" | ||
}, | ||
"mapValue": { | ||
"name": "downloadUri", | ||
"schema": "string" | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"@id": "dtmi:azure:iot:deviceUpdate:workflowMetadata;2", | ||
"@type": "Object", | ||
"fields": [ | ||
{ | ||
"name": "action", | ||
"schema": "integer" | ||
}, | ||
{ | ||
"name": "id", | ||
"schema": "string" | ||
}, | ||
{ | ||
"name": "retryTimestamp", | ||
"schema": "dateTime" | ||
} | ||
] | ||
}, | ||
{ | ||
"@id": "dtmi:azure:iot:deviceUpdate:installResultMetadata;2", | ||
"@type": "Object", | ||
"fields": [ | ||
{ | ||
"name": "resultCode", | ||
"schema": "integer" | ||
}, | ||
{ | ||
"name": "extendedResultCodes", | ||
"schema": "string" | ||
}, | ||
{ | ||
"name": "resultDetails", | ||
"schema": "string" | ||
}, | ||
{ | ||
"name": "stepResults", | ||
"schema": { | ||
"@type": "Map", | ||
"mapKey": { | ||
"name": "stepIndex", | ||
"schema": "string", | ||
"comment": "The string format is step_{index}. For example, step_0, step_1, etc." | ||
}, | ||
"mapValue": { | ||
"name": "stepResult", | ||
"schema": "dtmi:azure:iot:deviceUpdate:stepResultMetadata;2" | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"@id": "dtmi:azure:iot:deviceUpdate:stepResultMetadata;2", | ||
"@type": "Object", | ||
"fields": [ | ||
{ | ||
"name": "resultCode", | ||
"schema": "integer" | ||
}, | ||
{ | ||
"name": "extendedResultCodes", | ||
"schema": "string" | ||
}, | ||
{ | ||
"name": "resultDetails", | ||
"schema": "string" | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"@context": "dtmi:dtdl:context;2", | ||
"@id": "dtmi:azure:iot:deviceUpdateContractModel;3", | ||
"@type": "Interface", | ||
"displayName": "Device Update Base Model version 3", | ||
"description": "Device Update Base Model version 3 supports device update interface version 2 and update manifest version 5.", | ||
"contents": [ | ||
{ | ||
"@type": "Component", | ||
"schema": "dtmi:azure:iot:deviceUpdate;2", | ||
"name": "deviceUpdate", | ||
"displayName": "Device Update Interface version 2" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"@context": "dtmi:dtdl:context;2", | ||
"@id": "dtmi:azure:iot:deviceUpdateModel;3", | ||
"@type": "Interface", | ||
"displayName": "Device Update Model version 3", | ||
"description": "Device Update Model version 3 supports device update contract model version 3, device information interface version 1 and diagnostic interface version 1.", | ||
"extends": "dtmi:azure:iot:deviceUpdateContractModel;3", | ||
"contents": [ | ||
{ | ||
"@type": "Component", | ||
"schema": "dtmi:azure:iot:diagnosticInformation;1", | ||
"name": "diagnosticInformation", | ||
"displayName": "Diagnostic Information Interface version 1" | ||
}, | ||
{ | ||
"@type": "Component", | ||
"schema": "dtmi:azure:DeviceManagement:DeviceInformation;1", | ||
"name": "deviceInformation", | ||
"displayName": "Device Information" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,175 @@ | ||
{ | ||
"@id": "dtmi:renesas:RZ:rza3ulevk;1", | ||
"@type": "Interface", | ||
"contents": [ | ||
{ | ||
"@id": "dtmi:renesas:RZ:rza3ulevk:getMaxMinReport;1", | ||
"@type": "Command", | ||
"commandType": "synchronous", | ||
"description": { | ||
"en": "This command returns the max, min and average temperature from the specified time to the current time." | ||
}, | ||
"displayName": { | ||
"en": "Get Max-Min report" | ||
}, | ||
"name": "getMaxMinReport", | ||
"request": { | ||
"@type": "CommandPayload", | ||
"description": { | ||
"en": "Period to return the max-min report." | ||
}, | ||
"displayName": { | ||
"en": "Since" | ||
}, | ||
"name": "since", | ||
"schema": "dateTime" | ||
}, | ||
"response": { | ||
"@type": "CommandPayload", | ||
"displayName": { | ||
"en": "Tj Report" | ||
}, | ||
"name": "TjReport", | ||
"schema": { | ||
"@type": "Object", | ||
"fields": [ | ||
{ | ||
"displayName": { | ||
"en": "Max Tj" | ||
}, | ||
"name": "maxTj", | ||
"schema": "double" | ||
}, | ||
{ | ||
"displayName": { | ||
"en": "Min Tj" | ||
}, | ||
"name": "minTj", | ||
"schema": "double" | ||
}, | ||
{ | ||
"displayName": { | ||
"en": "Average Tj" | ||
}, | ||
"name": "avgTj", | ||
"schema": "double" | ||
}, | ||
{ | ||
"displayName": { | ||
"en": "Start Time" | ||
}, | ||
"name": "startTime", | ||
"schema": "dateTime" | ||
}, | ||
{ | ||
"displayName": { | ||
"en": "End Time" | ||
}, | ||
"name": "endTime", | ||
"schema": "dateTime" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
{ | ||
"@id": "dtmi:renesas:RZ:rza3ulevk:Tj;1", | ||
"@type": [ | ||
"Telemetry", | ||
"NumberValue", | ||
"Temperature" | ||
], | ||
"description": { | ||
"en": "Temperature inside the LSI (Tj) measured by thermal sensor unit (TSU)." | ||
}, | ||
"displayName": { | ||
"en": "Tj" | ||
}, | ||
"name": "Tj", | ||
"schema": "integer", | ||
"unit": "degreeCelsius" | ||
}, | ||
{ | ||
"@id": "dtmi:renesas:RZ:rza3ulevk:maxTjSinceLastReboot;1", | ||
"@type": [ | ||
"Property", | ||
"NumberValue", | ||
"Temperature" | ||
], | ||
"description": { | ||
"en": "Returns the max temperature since last device reboot." | ||
}, | ||
"displayName": { | ||
"en": "Max Tj since lastReboot" | ||
}, | ||
"name": "maxTjSinceLastReboot", | ||
"schema": "integer", | ||
"unit": "degreeCelsius", | ||
"writable": false | ||
}, | ||
{ | ||
"@id": "dtmi:renesas:RZ:rza3ulevk:ledOn;1", | ||
"@type": "Command", | ||
"commandType": "synchronous", | ||
"displayName": { | ||
"en": "LED ON" | ||
}, | ||
"name": "ledOn" | ||
}, | ||
{ | ||
"@id": "dtmi:renesas:RZ:rza3ulevk:ledOff;1", | ||
"@type": "Command", | ||
"commandType": "synchronous", | ||
"displayName": { | ||
"en": "LED OFF" | ||
}, | ||
"name": "ledOff" | ||
}, | ||
{ | ||
"@id": "dtmi:renesas:RZ:rza3ulevk:manufacturerName;1", | ||
"@type": [ | ||
"Property", | ||
"StringValue" | ||
], | ||
"displayName": { | ||
"en": "Manufacturer Name" | ||
}, | ||
"name": "manufacturerName", | ||
"schema": "string", | ||
"writable": false | ||
}, | ||
{ | ||
"@id": "dtmi:renesas:RZ:rza3ulevk:processorName;1", | ||
"@type": [ | ||
"Property", | ||
"StringValue" | ||
], | ||
"displayName": { | ||
"en": "Processor Name" | ||
}, | ||
"name": "processorName", | ||
"schema": "string", | ||
"writable": false | ||
}, | ||
{ | ||
"@id": "dtmi:renesas:RZ:rza3ulevk:fspVersion;1", | ||
"@type": [ | ||
"Property", | ||
"StringValue" | ||
], | ||
"displayName": { | ||
"en": "FSP Version" | ||
}, | ||
"name": "fspVersion", | ||
"schema": "string", | ||
"writable": false | ||
} | ||
], | ||
"displayName": { | ||
"en": "rza3ulevk" | ||
}, | ||
"@context": [ | ||
"dtmi:iotcentral:context;2", | ||
"dtmi:dtdl:context;2" | ||
] | ||
} |