From 343d3f8da982ea91ff3d67182a4a80fa62ee3efe Mon Sep 17 00:00:00 2001 From: randywu763 <69044672+randywu763@users.noreply.github.com> Date: Thu, 10 Aug 2023 01:53:44 -0700 Subject: [PATCH] Create AVR128DB48_CNANO;1 (#541) * Create wfi32_iot_wm-1.json * Update wfi32_iot_wm-1.json * Update wfi32_iot_wm-1.json Removed beginning and ending square braces * Update wfi32_iot_wm-1.json Removed all instances of "NumberValue" * Update wfi32_iot_wm-1.json * Corrected enum values for LED Off/On * Create WFI32_IoT_WM;2 * Add send text message command * Update wfi32_iot_wm-2.json * Revert back to original WFI32_IoT_WM;1 * Update wfi32_iot_wm-2.json * Add 2 device models (1) WFI32_Curiosity_WM;1 (2) WFI32_IoT_WM;3 * Update total press count * Update WFI32 models * Create pic32cmls60_curiosity-1.json * Create avr_iot_cellular-1.json * Create wbz451_curiosity-1.json * Delete avr_iot_cellular-1.json * Update WBZ451 Curiosity * Update WBZ451_Curiosity;1 * Create pic18F57q84_cnano-1.json * Update pic18F57q84_cnano-1.json * Delete pic18F57q84_cnano-1.json * Create pic18f57q84_cnano-1.json * Create wbz451_curiosity-2.json * Update wbz451_curiosity-2.json * Create avr128db48_cnano-1.json --- dtmi/com/microchip/avr128db48_cnano-1.json | 241 +++++++++++++++++++++ 1 file changed, 241 insertions(+) create mode 100644 dtmi/com/microchip/avr128db48_cnano-1.json diff --git a/dtmi/com/microchip/avr128db48_cnano-1.json b/dtmi/com/microchip/avr128db48_cnano-1.json new file mode 100644 index 000000000..16d5d23b8 --- /dev/null +++ b/dtmi/com/microchip/avr128db48_cnano-1.json @@ -0,0 +1,241 @@ +{ + "@id": "dtmi:com:Microchip:AVR128DB48_CNANO;1", + "@type": "Interface", + "contents": [ + { + "@type": "Telemetry", + "description": { + "en": "Incrementing counter value" + }, + "displayName": { + "en": "Counter" + }, + "name": "counter", + "schema": "integer" + }, + { + "@type": "Telemetry", + "description": { + "en": "Event triggered when a button is pressed" + }, + "displayName": { + "en": "Button Press" + }, + "name": "buttonEvent", + "schema": { + "@type": "Object", + "fields": [ + { + "name": "button_name", + "schema": "string" + }, + { + "name": "press_count", + "schema": "integer" + } + ] + } + }, + { + "@type": [ + "Property", + "StringValue" + ], + "description": { + "en": "IP Address" + }, + "displayName": { + "en": "IP Address" + }, + "name": "ipAddress", + "schema": "string", + "writable": false + }, + { + "@type": [ + "Property", + "Initialized" + ], + "description": { + "en": "The current state of LED0" + }, + "displayName": { + "en": "LED0" + }, + "name": "LED0", + "schema": "dtmi:com:Microchip:AVR128DB48_CNANO:LedState;1", + "writable": true, + "initialValue": 3 + }, + { + "@type": [ + "Property", + "NumberValue", + "TimeSpan" + ], + "description": { + "en": "Sets interval to send telemetry in seconds" + }, + "displayName": { + "en": "Telemetry Reporting Rate" + }, + "name": "reportRate", + "schema": "integer", + "unit": "second", + "writable": true, + "initialValue": 1 + }, + { + "@type": "Command", + "description": { + "en": "Reboot with the specified delay (e.g. PT5S for 5 seconds)" + }, + "displayName": { + "en": "Reboot" + }, + "name": "reboot", + "request": { + "@type": "CommandPayload", + "description": { + "en": "Number of seconds to delay reboot (e.g. PT5S for 5 seconds)" + }, + "displayName": { + "en": "Reboot Delay" + }, + "name": "payload", + "schema": { + "@type": "Object", + "fields": [ + { + "displayName": { + "en": "Delay before reboot operation" + }, + "name": "delay", + "schema": "duration" + } + ] + } + }, + "response": { + "@type": "CommandPayload", + "displayName": { + "en": "Response for command" + }, + "name": "response", + "schema": { + "@type": "Object", + "fields": [ + { + "displayName": { + "en": "Message from reboot handler" + }, + "name": "status", + "schema": "string" + }, + { + "displayName": { + "en": "Number of seconds to delay the reboot" + }, + "name": "delay", + "schema": "integer" + } + ] + } + } + }, + { + "@type": "Command", + "description": { + "en": "Echo a text message sent from the cloud" + }, + "displayName": { + "en": "Echo Message" + }, + "name": "echo", + "request": { + "@type": "CommandPayload", + "description": { + "en": "Message to echo" + }, + "displayName": { + "en": "Message" + }, + "name": "payload", + "schema": { + "@type": "Object", + "fields": [ + { + "displayName": { + "en": "Message to echo" + }, + "name": "echoString", + "schema": "string" + } + ] + } + }, + "response": { + "@type": "CommandPayload", + "displayName": { + "en": "Response for command" + }, + "name": "response", + "schema": { + "@type": "Object", + "fields": [ + { + "displayName": { + "en": "Message from the echo message handler" + }, + "name": "echoString", + "schema": "string" + } + ] + } + } + } + ], + "description": { + "en": "AVR128DB48 Curiosity Nano Development Board" + }, + "displayName": { + "en": "AVR128DB48 Curiosity Nano Development Board" + }, + "schemas": [ + { + "@id": "dtmi:com:Microchip:AVR128DB48_CNANO:LedState;1", + "@type": "Enum", + "enumValues": [ + { + "@id": "dtmi:com:Microchip:AVR128DB48_CNANO:LedState:On;1", + "displayName": { + "en": "On" + }, + "enumValue": 1, + "name": "On" + }, + { + "@id": "dtmi:com:Microchip:AVR128DB48_CNANO:LedState:Off;1", + "displayName": { + "en": "Off" + }, + "enumValue": 2, + "name": "Off" + }, + { + "@id": "dtmi:com:Microchip:AVR128DB48_CNANO:LedState:Blink;1", + "displayName": { + "en": "Blinking" + }, + "enumValue": 3, + "name": "Blink" + } + ], + "valueSchema": "integer" + } + ], + "@context": [ + "dtmi:iotcentral:context;2", + "dtmi:dtdl:context;2" + ] +} \ No newline at end of file