From 04e20aea72d538d1a871b5befe50d9206cc24094 Mon Sep 17 00:00:00 2001 From: Randy Wu - C14166 Date: Fri, 29 Jul 2022 14:43:07 -0700 Subject: [PATCH 01/30] Create wfi32_iot_wm-1.json --- dtmi/com/microchip/wfi32_iot_wm-1.json | 222 +++++++++++++++++++++++++ 1 file changed, 222 insertions(+) create mode 100644 dtmi/com/microchip/wfi32_iot_wm-1.json diff --git a/dtmi/com/microchip/wfi32_iot_wm-1.json b/dtmi/com/microchip/wfi32_iot_wm-1.json new file mode 100644 index 000000000..290f3a609 --- /dev/null +++ b/dtmi/com/microchip/wfi32_iot_wm-1.json @@ -0,0 +1,222 @@ +{ + "@id": "dtmi:com:Microchip:WFI32_IoT_WM;1", + "@type": "Interface", + "contents": [ + { + "@type": [ + "Telemetry", + "Temperature" + ], + "description": { + "en": "Temperature in degrees Celsius from Microchip MCP9808 high-accuracy temperature sensor" + }, + "displayName": { + "en": "Temperature" + }, + "name": "temperature", + "schema": "integer", + "unit": "degreeCelsius" + }, + { + "@type": [ + "Telemetry", + "Illuminance" + ], + "description": { + "en": "Brightness in illuminance from Texas Instruments OPT3001 ambient light sensor" + }, + "displayName": { + "en": "Brightness from light sensor" + }, + "name": "light", + "schema": "integer", + "unit": "lux" + }, + { + "@type": "Telemetry", + "description": { + "en": "Event triggered when button is pressed" + }, + "displayName": { + "en": "SW1/SW2 button push event" + }, + "name": "button_event", + "schema": { + "@type": "Object", + "fields": [ + { + "name": "button_name", + "schema": "string" + }, + { + "name": "press_count", + "schema": "integer" + } + ] + } + }, + { + "@type": "Property", + "description": { + "en": "Returns current state of the Blue LED. If True, the Blue LED is on and the WiFi AP is connected." + }, + "displayName": { + "en": "Blue LED state" + }, + "name": "led_b", + "schema": "dtmi:com:Microchip:WFI32_IoT_WM:LedState;1", + "writable": false + }, + { + "@type": "Property", + "description": { + "en": "The current state of the Green LED. When it is on, WFI32 IoT is connected to Cloud." + }, + "displayName": { + "en": "Green LED state" + }, + "name": "led_g", + "schema": "dtmi:com:Microchip:WFI32_IoT_WM:LedState;1", + "writable": false + }, + { + "@type": "Property", + "description": { + "en": "The current state of the Red LED. When it is on or blinking, WFI32 IoT experienced error(s)." + }, + "displayName": { + "en": "Red LED state" + }, + "name": "led_r", + "schema": "dtmi:com:Microchip:WFI32_IoT_WM:LedState;1", + "writable": false + }, + { + "@type": "Property", + "description": { + "en": "Set the state of the Yellow LED. On, off, or blink." + }, + "displayName": { + "en": "Yellow LED state" + }, + "name": "led_y", + "schema": "dtmi:com:Microchip:WFI32_IoT_WM:LedState;1", + "writable": true + }, + { + "@type": [ + "Property", + "TimeSpan" + ], + "description": { + "en": "Sets interval to send telemetry in seconds" + }, + "displayName": { + "en": "Set Telemetry Interval" + }, + "name": "telemetryInterval", + "schema": "integer", + "unit": "second", + "writable": true + }, + { + "@type": "Command", + "description": { + "en": "Reboot WFI32 IoT 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": "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" + } + ] + } + } + } + ], + "description": { + "en": "Reports device temperature, light intensity, and the current state of the 2 buttons & 4 LEDs. Provides ability to turn on/off any of the 4 LEDs." + }, + "displayName": { + "en": "WFI32-IoT WM" + }, + "schemas": [ + { + "@id": "dtmi:com:Microchip:WFI32_IoT_WM:LedState;1", + "@type": "Enum", + "enumValues": [ + { + "comment": "LED is in the On state.", + "description": { + "en": "LED is turned on." + }, + "displayName": { + "en": "LED On" + }, + "enumValue": 1, + "name": "On" + }, + { + "comment": "LED is in the Off state.", + "description": { + "en": "LED is turned Off." + }, + "displayName": { + "en": "LED Off" + }, + "enumValue": 2, + "name": "Off" + }, + { + "comment": "LED is blinking.", + "description": { + "en": "LED is blinking." + }, + "displayName": { + "en": "LED Blinking" + }, + "enumValue": 3, + "name": "Blink" + } + ], + "valueSchema": "integer" + } + ], + "@context": [ + "dtmi:iotcentral:context;2", + "dtmi:dtdl:context;2" + ] + } \ No newline at end of file From e052bc7cc16b3295bbce08ed975faae75e21315f Mon Sep 17 00:00:00 2001 From: Randy Wu - C14166 Date: Sun, 31 Jul 2022 14:38:39 -0700 Subject: [PATCH 02/30] Update wfi32_iot_wm-1.json --- dtmi/com/microchip/wfi32_iot_wm-1.json | 414 +++++++++++++------------ 1 file changed, 211 insertions(+), 203 deletions(-) diff --git a/dtmi/com/microchip/wfi32_iot_wm-1.json b/dtmi/com/microchip/wfi32_iot_wm-1.json index 290f3a609..8cd23ac2f 100644 --- a/dtmi/com/microchip/wfi32_iot_wm-1.json +++ b/dtmi/com/microchip/wfi32_iot_wm-1.json @@ -1,222 +1,230 @@ -{ +[ + { "@id": "dtmi:com:Microchip:WFI32_IoT_WM;1", "@type": "Interface", "contents": [ - { - "@type": [ - "Telemetry", - "Temperature" - ], - "description": { - "en": "Temperature in degrees Celsius from Microchip MCP9808 high-accuracy temperature sensor" - }, - "displayName": { - "en": "Temperature" - }, - "name": "temperature", - "schema": "integer", - "unit": "degreeCelsius" - }, - { - "@type": [ - "Telemetry", - "Illuminance" - ], - "description": { - "en": "Brightness in illuminance from Texas Instruments OPT3001 ambient light sensor" - }, - "displayName": { - "en": "Brightness from light sensor" - }, - "name": "light", - "schema": "integer", - "unit": "lux" - }, - { - "@type": "Telemetry", - "description": { - "en": "Event triggered when button is pressed" - }, - "displayName": { - "en": "SW1/SW2 button push event" - }, - "name": "button_event", - "schema": { - "@type": "Object", - "fields": [ - { - "name": "button_name", - "schema": "string" - }, - { - "name": "press_count", - "schema": "integer" - } - ] + { + "@type": [ + "Telemetry", + "NumberValue", + "Temperature" + ], + "description": { + "en": "Temperature in degrees Celsius from Microchip MCP9808 high-accuracy temperature sensor" + }, + "displayName": { + "en": "Ambient Temperature" + }, + "name": "temperature", + "schema": "integer", + "unit": "degreeCelsius" + }, + { + "@type": [ + "Telemetry", + "NumberValue", + "Illuminance" + ], + "description": { + "en": "Brightness in illuminance from Texas Instruments OPT3001 ambient light sensor" + }, + "displayName": { + "en": "Brightness from Light Sensor" + }, + "name": "light", + "schema": "integer", + "unit": "lux" + }, + { + "@type": "Telemetry", + "description": { + "en": "Event triggered when button is pressed" + }, + "displayName": { + "en": "Button Push Event" + }, + "name": "button_event", + "schema": { + "@type": "Object", + "fields": [ + { + "name": "button_name", + "schema": "string" + }, + { + "name": "press_count", + "schema": "integer" } + ] + } + }, + { + "@type": "Property", + "description": { + "en": "Returns current state of the Blue LED. If True, the Blue LED is on and the WiFi AP is connected." }, - { - "@type": "Property", - "description": { - "en": "Returns current state of the Blue LED. If True, the Blue LED is on and the WiFi AP is connected." - }, - "displayName": { - "en": "Blue LED state" - }, - "name": "led_b", - "schema": "dtmi:com:Microchip:WFI32_IoT_WM:LedState;1", - "writable": false - }, - { - "@type": "Property", - "description": { - "en": "The current state of the Green LED. When it is on, WFI32 IoT is connected to Cloud." - }, - "displayName": { - "en": "Green LED state" - }, - "name": "led_g", - "schema": "dtmi:com:Microchip:WFI32_IoT_WM:LedState;1", - "writable": false - }, - { - "@type": "Property", - "description": { - "en": "The current state of the Red LED. When it is on or blinking, WFI32 IoT experienced error(s)." - }, - "displayName": { - "en": "Red LED state" - }, - "name": "led_r", - "schema": "dtmi:com:Microchip:WFI32_IoT_WM:LedState;1", - "writable": false - }, - { - "@type": "Property", - "description": { - "en": "Set the state of the Yellow LED. On, off, or blink." - }, - "displayName": { - "en": "Yellow LED state" - }, - "name": "led_y", - "schema": "dtmi:com:Microchip:WFI32_IoT_WM:LedState;1", - "writable": true - }, - { - "@type": [ - "Property", - "TimeSpan" - ], - "description": { - "en": "Sets interval to send telemetry in seconds" - }, - "displayName": { - "en": "Set Telemetry Interval" - }, - "name": "telemetryInterval", - "schema": "integer", - "unit": "second", - "writable": true - }, - { - "@type": "Command", - "description": { - "en": "Reboot WFI32 IoT 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": "Blue LED state" + }, + "name": "led_b", + "schema": "dtmi:com:Microchip:WFI32_IoT_WM:LedState;1", + "writable": false + }, + { + "@type": "Property", + "description": { + "en": "The current state of the Green LED. When it is on, WFI32 IoT is connected to Cloud." + }, + "displayName": { + "en": "Green LED state" + }, + "name": "led_g", + "schema": "dtmi:com:Microchip:WFI32_IoT_WM:LedState;1", + "writable": false + }, + { + "@type": "Property", + "description": { + "en": "The current state of the Red LED. When it is on or blinking, WFI32 IoT experienced error(s)." + }, + "displayName": { + "en": "Red LED state" + }, + "name": "led_r", + "schema": "dtmi:com:Microchip:WFI32_IoT_WM:LedState;1", + "writable": false + }, + { + "@type": "Property", + "description": { + "en": "Set the state of the Yellow LED. On, off, or blink." + }, + "displayName": { + "en": "Yellow LED state" + }, + "name": "led_y", + "schema": "dtmi:com:Microchip:WFI32_IoT_WM:LedState;1", + "writable": true + }, + { + "@type": [ + "Property", + "NumberValue", + "TimeSpan" + ], + "description": { + "en": "Sets interval to send telemetry in seconds" + }, + "displayName": { + "en": "Telemetry Interval" + }, + "name": "telemetryInterval", + "schema": "integer", + "unit": "second", + "writable": true + }, + { + "@type": "Command", + "description": { + "en": "Reboot WFI32 IoT 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": "delay", + "schema": "duration" + }, + "response": { + "@type": "CommandPayload", + "displayName": { + "en": "Response for command" + }, + "name": "response", + "schema": { + "@type": "Object", + "fields": [ + { "displayName": { - "en": "Reboot Delay" + "en": "Message from reboot handler." }, - "name": "delay", - "schema": "duration" - }, - "response": { - "@type": "CommandPayload", + "name": "status", + "schema": "string" + }, + { "displayName": { - "en": "Response for command" + "en": "Number of seconds to delay the reboot." }, - "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" - } - ] - } - } + "name": "delay", + "schema": "integer" + } + ] + } } + }, + { + "@id": "dtmi:com:Microchip:WFI32_IoT_WM:press_count;1", + "@type": [ + "Telemetry", + "NumberValue" + ], + "displayName": { + "en": "Button Press Count" + }, + "name": "press_count", + "schema": "double" + } ], "description": { - "en": "Reports device temperature, light intensity, and the current state of the 2 buttons & 4 LEDs. Provides ability to turn on/off any of the 4 LEDs." + "en": "Reports device temperature, light intensity, and the current state of the 2 buttons & 4 LEDs. Provides ability to turn on/off any of the 4 LEDs." }, "displayName": { - "en": "WFI32-IoT WM" + "en": "WFI32-IoT WM" }, "schemas": [ - { - "@id": "dtmi:com:Microchip:WFI32_IoT_WM:LedState;1", - "@type": "Enum", - "enumValues": [ - { - "comment": "LED is in the On state.", - "description": { - "en": "LED is turned on." - }, - "displayName": { - "en": "LED On" - }, - "enumValue": 1, - "name": "On" - }, - { - "comment": "LED is in the Off state.", - "description": { - "en": "LED is turned Off." - }, - "displayName": { - "en": "LED Off" - }, - "enumValue": 2, - "name": "Off" - }, - { - "comment": "LED is blinking.", - "description": { - "en": "LED is blinking." - }, - "displayName": { - "en": "LED Blinking" - }, - "enumValue": 3, - "name": "Blink" - } - ], - "valueSchema": "integer" - } + { + "@id": "dtmi:com:Microchip:WFI32_IoT_WM:LedState;1", + "@type": "Enum", + "enumValues": [ + { + "@id": "dtmi:com:Microchip:WFI32_IoT_WM:LedState:On;1", + "displayName": { + "en": "LED On" + }, + "enumValue": 1, + "name": "On" + }, + { + "@id": "dtmi:com:Microchip:WFI32_IoT_WM:LedState:Off;1", + "displayName": { + "en": "LED Off" + }, + "enumValue": 2, + "name": "Off" + }, + { + "@id": "dtmi:com:Microchip:WFI32_IoT_WM:LedState:Blink;1", + "displayName": { + "en": "LED Blinking" + }, + "enumValue": 3, + "name": "Blink" + } + ], + "valueSchema": "integer" + } ], "@context": [ - "dtmi:iotcentral:context;2", - "dtmi:dtdl:context;2" + "dtmi:iotcentral:context;2", + "dtmi:dtdl:context;2" ] - } \ No newline at end of file + } +] \ No newline at end of file From 42b8d1064591b805f9bcd94ecc21f0b2cab28952 Mon Sep 17 00:00:00 2001 From: Randy Wu - C14166 Date: Mon, 1 Aug 2022 08:52:38 -0700 Subject: [PATCH 03/30] Update wfi32_iot_wm-1.json Removed beginning and ending square braces --- dtmi/com/microchip/wfi32_iot_wm-1.json | 406 ++++++++++++------------- 1 file changed, 202 insertions(+), 204 deletions(-) diff --git a/dtmi/com/microchip/wfi32_iot_wm-1.json b/dtmi/com/microchip/wfi32_iot_wm-1.json index 8cd23ac2f..af6ce2d35 100644 --- a/dtmi/com/microchip/wfi32_iot_wm-1.json +++ b/dtmi/com/microchip/wfi32_iot_wm-1.json @@ -1,230 +1,228 @@ -[ - { - "@id": "dtmi:com:Microchip:WFI32_IoT_WM;1", - "@type": "Interface", - "contents": [ - { - "@type": [ - "Telemetry", - "NumberValue", - "Temperature" - ], - "description": { - "en": "Temperature in degrees Celsius from Microchip MCP9808 high-accuracy temperature sensor" - }, - "displayName": { - "en": "Ambient Temperature" - }, - "name": "temperature", - "schema": "integer", - "unit": "degreeCelsius" - }, - { - "@type": [ - "Telemetry", - "NumberValue", - "Illuminance" - ], +{ + "@id": "dtmi:com:Microchip:WFI32_IoT_WM;1", + "@type": "Interface", + "contents": [ + { + "@type": [ + "Telemetry", + "NumberValue", + "Temperature" + ], + "description": { + "en": "Temperature in degrees Celsius from Microchip MCP9808 high-accuracy temperature sensor" + }, + "displayName": { + "en": "Ambient Temperature" + }, + "name": "temperature", + "schema": "integer", + "unit": "degreeCelsius" + }, + { + "@type": [ + "Telemetry", + "NumberValue", + "Illuminance" + ], + "description": { + "en": "Brightness in illuminance from Texas Instruments OPT3001 ambient light sensor" + }, + "displayName": { + "en": "Brightness from Light Sensor" + }, + "name": "light", + "schema": "integer", + "unit": "lux" + }, + { + "@type": "Telemetry", + "description": { + "en": "Event triggered when button is pressed" + }, + "displayName": { + "en": "Button Push Event" + }, + "name": "button_event", + "schema": { + "@type": "Object", + "fields": [ + { + "name": "button_name", + "schema": "string" + }, + { + "name": "press_count", + "schema": "integer" + } + ] + } + }, + { + "@type": "Property", + "description": { + "en": "Returns current state of the Blue LED. If True, the Blue LED is on and the WiFi AP is connected." + }, + "displayName": { + "en": "Blue LED state" + }, + "name": "led_b", + "schema": "dtmi:com:Microchip:WFI32_IoT_WM:LedState;1", + "writable": false + }, + { + "@type": "Property", + "description": { + "en": "The current state of the Green LED. When it is on, WFI32 IoT is connected to Cloud." + }, + "displayName": { + "en": "Green LED state" + }, + "name": "led_g", + "schema": "dtmi:com:Microchip:WFI32_IoT_WM:LedState;1", + "writable": false + }, + { + "@type": "Property", + "description": { + "en": "The current state of the Red LED. When it is on or blinking, WFI32 IoT experienced error(s)." + }, + "displayName": { + "en": "Red LED state" + }, + "name": "led_r", + "schema": "dtmi:com:Microchip:WFI32_IoT_WM:LedState;1", + "writable": false + }, + { + "@type": "Property", + "description": { + "en": "Set the state of the Yellow LED. On, off, or blink." + }, + "displayName": { + "en": "Yellow LED state" + }, + "name": "led_y", + "schema": "dtmi:com:Microchip:WFI32_IoT_WM:LedState;1", + "writable": true + }, + { + "@type": [ + "Property", + "NumberValue", + "TimeSpan" + ], + "description": { + "en": "Sets interval to send telemetry in seconds" + }, + "displayName": { + "en": "Telemetry Interval" + }, + "name": "telemetryInterval", + "schema": "integer", + "unit": "second", + "writable": true + }, + { + "@type": "Command", + "description": { + "en": "Reboot WFI32 IoT with the specified delay. e.g. PT5S for 5 seconds." + }, + "displayName": { + "en": "Reboot" + }, + "name": "reboot", + "request": { + "@type": "CommandPayload", "description": { - "en": "Brightness in illuminance from Texas Instruments OPT3001 ambient light sensor" + "en": "Number of seconds to delay reboot. e.g. PT5S for 5 seconds." }, "displayName": { - "en": "Brightness from Light Sensor" + "en": "Reboot Delay" }, - "name": "light", - "schema": "integer", - "unit": "lux" + "name": "delay", + "schema": "duration" }, - { - "@type": "Telemetry", - "description": { - "en": "Event triggered when button is pressed" - }, + "response": { + "@type": "CommandPayload", "displayName": { - "en": "Button Push Event" + "en": "Response for command" }, - "name": "button_event", + "name": "response", "schema": { "@type": "Object", "fields": [ { - "name": "button_name", + "displayName": { + "en": "Message from reboot handler." + }, + "name": "status", "schema": "string" }, { - "name": "press_count", + "displayName": { + "en": "Number of seconds to delay the reboot." + }, + "name": "delay", "schema": "integer" } ] } + } + }, + { + "@id": "dtmi:com:Microchip:WFI32_IoT_WM:press_count;1", + "@type": [ + "Telemetry", + "NumberValue" + ], + "displayName": { + "en": "Button Press Count" }, - { - "@type": "Property", - "description": { - "en": "Returns current state of the Blue LED. If True, the Blue LED is on and the WiFi AP is connected." - }, - "displayName": { - "en": "Blue LED state" - }, - "name": "led_b", - "schema": "dtmi:com:Microchip:WFI32_IoT_WM:LedState;1", - "writable": false - }, - { - "@type": "Property", - "description": { - "en": "The current state of the Green LED. When it is on, WFI32 IoT is connected to Cloud." - }, - "displayName": { - "en": "Green LED state" - }, - "name": "led_g", - "schema": "dtmi:com:Microchip:WFI32_IoT_WM:LedState;1", - "writable": false - }, - { - "@type": "Property", - "description": { - "en": "The current state of the Red LED. When it is on or blinking, WFI32 IoT experienced error(s)." - }, - "displayName": { - "en": "Red LED state" - }, - "name": "led_r", - "schema": "dtmi:com:Microchip:WFI32_IoT_WM:LedState;1", - "writable": false - }, - { - "@type": "Property", - "description": { - "en": "Set the state of the Yellow LED. On, off, or blink." - }, - "displayName": { - "en": "Yellow LED state" - }, - "name": "led_y", - "schema": "dtmi:com:Microchip:WFI32_IoT_WM:LedState;1", - "writable": true - }, - { - "@type": [ - "Property", - "NumberValue", - "TimeSpan" - ], - "description": { - "en": "Sets interval to send telemetry in seconds" - }, - "displayName": { - "en": "Telemetry Interval" - }, - "name": "telemetryInterval", - "schema": "integer", - "unit": "second", - "writable": true - }, - { - "@type": "Command", - "description": { - "en": "Reboot WFI32 IoT 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." - }, + "name": "press_count", + "schema": "double" + } + ], + "description": { + "en": "Reports device temperature, light intensity, and the current state of the 2 buttons & 4 LEDs. Provides ability to turn on/off any of the 4 LEDs." + }, + "displayName": { + "en": "WFI32-IoT WM" + }, + "schemas": [ + { + "@id": "dtmi:com:Microchip:WFI32_IoT_WM:LedState;1", + "@type": "Enum", + "enumValues": [ + { + "@id": "dtmi:com:Microchip:WFI32_IoT_WM:LedState:On;1", "displayName": { - "en": "Reboot Delay" + "en": "LED On" }, - "name": "delay", - "schema": "duration" + "enumValue": 1, + "name": "On" }, - "response": { - "@type": "CommandPayload", + { + "@id": "dtmi:com:Microchip:WFI32_IoT_WM:LedState:Off;1", "displayName": { - "en": "Response for command" + "en": "LED Off" }, - "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" - } - ] - } - } - }, - { - "@id": "dtmi:com:Microchip:WFI32_IoT_WM:press_count;1", - "@type": [ - "Telemetry", - "NumberValue" - ], - "displayName": { - "en": "Button Press Count" + "enumValue": 2, + "name": "Off" }, - "name": "press_count", - "schema": "double" - } - ], - "description": { - "en": "Reports device temperature, light intensity, and the current state of the 2 buttons & 4 LEDs. Provides ability to turn on/off any of the 4 LEDs." - }, - "displayName": { - "en": "WFI32-IoT WM" - }, - "schemas": [ - { - "@id": "dtmi:com:Microchip:WFI32_IoT_WM:LedState;1", - "@type": "Enum", - "enumValues": [ - { - "@id": "dtmi:com:Microchip:WFI32_IoT_WM:LedState:On;1", - "displayName": { - "en": "LED On" - }, - "enumValue": 1, - "name": "On" - }, - { - "@id": "dtmi:com:Microchip:WFI32_IoT_WM:LedState:Off;1", - "displayName": { - "en": "LED Off" - }, - "enumValue": 2, - "name": "Off" + { + "@id": "dtmi:com:Microchip:WFI32_IoT_WM:LedState:Blink;1", + "displayName": { + "en": "LED Blinking" }, - { - "@id": "dtmi:com:Microchip:WFI32_IoT_WM:LedState:Blink;1", - "displayName": { - "en": "LED Blinking" - }, - "enumValue": 3, - "name": "Blink" - } - ], - "valueSchema": "integer" - } - ], - "@context": [ - "dtmi:iotcentral:context;2", - "dtmi:dtdl:context;2" - ] - } -] \ No newline at end of file + "enumValue": 3, + "name": "Blink" + } + ], + "valueSchema": "integer" + } + ], + "@context": [ + "dtmi:iotcentral:context;2", + "dtmi:dtdl:context;2" + ] +} \ No newline at end of file From 243ba59935efaa9c63ac514278e84c9f4c02b090 Mon Sep 17 00:00:00 2001 From: Randy Wu - C14166 Date: Tue, 2 Aug 2022 09:21:39 -0700 Subject: [PATCH 04/30] Update wfi32_iot_wm-1.json Removed all instances of "NumberValue" --- dtmi/com/microchip/wfi32_iot_wm-1.json | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/dtmi/com/microchip/wfi32_iot_wm-1.json b/dtmi/com/microchip/wfi32_iot_wm-1.json index af6ce2d35..7708cecc3 100644 --- a/dtmi/com/microchip/wfi32_iot_wm-1.json +++ b/dtmi/com/microchip/wfi32_iot_wm-1.json @@ -5,7 +5,6 @@ { "@type": [ "Telemetry", - "NumberValue", "Temperature" ], "description": { @@ -21,7 +20,6 @@ { "@type": [ "Telemetry", - "NumberValue", "Illuminance" ], "description": { @@ -108,7 +106,6 @@ { "@type": [ "Property", - "NumberValue", "TimeSpan" ], "description": { @@ -172,8 +169,7 @@ { "@id": "dtmi:com:Microchip:WFI32_IoT_WM:press_count;1", "@type": [ - "Telemetry", - "NumberValue" + "Telemetry" ], "displayName": { "en": "Button Press Count" From de8748ca79c7c1d1e95b33f2d1042d0c816e1d80 Mon Sep 17 00:00:00 2001 From: Randy Wu - C14166 Date: Fri, 19 Aug 2022 14:42:25 -0700 Subject: [PATCH 05/30] Update wfi32_iot_wm-1.json --- dtmi/com/microchip/wfi32_iot_wm-1.json | 68 ++++++++++++++++++++++---- 1 file changed, 58 insertions(+), 10 deletions(-) diff --git a/dtmi/com/microchip/wfi32_iot_wm-1.json b/dtmi/com/microchip/wfi32_iot_wm-1.json index 7708cecc3..20f0a9940 100644 --- a/dtmi/com/microchip/wfi32_iot_wm-1.json +++ b/dtmi/com/microchip/wfi32_iot_wm-1.json @@ -11,9 +11,9 @@ "en": "Temperature in degrees Celsius from Microchip MCP9808 high-accuracy temperature sensor" }, "displayName": { - "en": "Ambient Temperature" + "en": "Temperature (WFI32-IoT)" }, - "name": "temperature", + "name": "WFI32IoT_temperature", "schema": "integer", "unit": "degreeCelsius" }, @@ -26,12 +26,60 @@ "en": "Brightness in illuminance from Texas Instruments OPT3001 ambient light sensor" }, "displayName": { - "en": "Brightness from Light Sensor" + "en": "Brightness from Light Sensor (WFI32-IoT)" }, - "name": "light", + "name": "WFI32IoT_light", "schema": "integer", "unit": "lux" }, + { + "@type": [ + "Telemetry", + "Pressure" + ], + "displayName": { + "en": "Pressure (ULP Click)" + }, + "name": "ULP_pressure", + "schema": "double", + "unit": "pascal" + }, + { + "@type": [ + "Telemetry", + "Temperature" + ], + "displayName": { + "en": "Temperature (ULP Click)" + }, + "name": "ULP_temperature", + "schema": "integer", + "unit": "degreeCelsius" + }, + { + "@type": [ + "Telemetry", + "Pressure" + ], + "displayName": { + "en": "Pressure (VAV Click)" + }, + "name": "VAV_pressure", + "schema": "double", + "unit": "pascal" + }, + { + "@type": [ + "Telemetry", + "Temperature" + ], + "displayName": { + "en": "Temperature (VAV Click)" + }, + "name": "VAV_temperature", + "schema": "integer", + "unit": "degreeCelsius" + }, { "@type": "Telemetry", "description": { @@ -70,7 +118,7 @@ { "@type": "Property", "description": { - "en": "The current state of the Green LED. When it is on, WFI32 IoT is connected to Cloud." + "en": "The current state of the Green LED. When it is on, WFI32-IoT is connected to Cloud." }, "displayName": { "en": "Green LED state" @@ -82,7 +130,7 @@ { "@type": "Property", "description": { - "en": "The current state of the Red LED. When it is on or blinking, WFI32 IoT experienced error(s)." + "en": "The current state of the Red LED. When it is on or blinking, WFI32-IoT has experienced error condition(s)." }, "displayName": { "en": "Red LED state" @@ -179,7 +227,7 @@ } ], "description": { - "en": "Reports device temperature, light intensity, and the current state of the 2 buttons & 4 LEDs. Provides ability to turn on/off any of the 4 LEDs." + "en": "Reports device temperature, light intensity, and the current state of the 2 user buttons & 4 LEDs." }, "displayName": { "en": "WFI32-IoT WM" @@ -194,7 +242,7 @@ "displayName": { "en": "LED On" }, - "enumValue": 1, + "enumValue": 0, "name": "On" }, { @@ -202,7 +250,7 @@ "displayName": { "en": "LED Off" }, - "enumValue": 2, + "enumValue": 1, "name": "Off" }, { @@ -210,7 +258,7 @@ "displayName": { "en": "LED Blinking" }, - "enumValue": 3, + "enumValue": 2, "name": "Blink" } ], From 45ecbc4953daad3333d159f9c74dca4bcd20f9c5 Mon Sep 17 00:00:00 2001 From: Randy Wu - C14166 Date: Fri, 19 Aug 2022 15:12:03 -0700 Subject: [PATCH 06/30] Corrected enum values for LED Off/On --- dtmi/com/microchip/wfi32_iot_wm-1.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dtmi/com/microchip/wfi32_iot_wm-1.json b/dtmi/com/microchip/wfi32_iot_wm-1.json index 20f0a9940..167bc828d 100644 --- a/dtmi/com/microchip/wfi32_iot_wm-1.json +++ b/dtmi/com/microchip/wfi32_iot_wm-1.json @@ -238,20 +238,20 @@ "@type": "Enum", "enumValues": [ { - "@id": "dtmi:com:Microchip:WFI32_IoT_WM:LedState:On;1", + "@id": "dtmi:com:Microchip:WFI32_IoT_WM:LedState:Off;1", "displayName": { - "en": "LED On" + "en": "LED Off" }, "enumValue": 0, - "name": "On" + "name": "Off" }, { - "@id": "dtmi:com:Microchip:WFI32_IoT_WM:LedState:Off;1", + "@id": "dtmi:com:Microchip:WFI32_IoT_WM:LedState:On;1", "displayName": { - "en": "LED Off" + "en": "LED On" }, "enumValue": 1, - "name": "Off" + "name": "On" }, { "@id": "dtmi:com:Microchip:WFI32_IoT_WM:LedState:Blink;1", From 3bb57f814569f99316d733562845ad99fa8fa2b2 Mon Sep 17 00:00:00 2001 From: Randy Wu - C14166 Date: Fri, 19 Aug 2022 21:30:30 -0700 Subject: [PATCH 07/30] Create WFI32_IoT_WM;2 --- dtmi/com/microchip/wfi32_iot_wm-1.json | 80 ++------ dtmi/com/microchip/wfi32_iot_wm-2.json | 272 +++++++++++++++++++++++++ 2 files changed, 288 insertions(+), 64 deletions(-) create mode 100644 dtmi/com/microchip/wfi32_iot_wm-2.json diff --git a/dtmi/com/microchip/wfi32_iot_wm-1.json b/dtmi/com/microchip/wfi32_iot_wm-1.json index 167bc828d..7708cecc3 100644 --- a/dtmi/com/microchip/wfi32_iot_wm-1.json +++ b/dtmi/com/microchip/wfi32_iot_wm-1.json @@ -11,9 +11,9 @@ "en": "Temperature in degrees Celsius from Microchip MCP9808 high-accuracy temperature sensor" }, "displayName": { - "en": "Temperature (WFI32-IoT)" + "en": "Ambient Temperature" }, - "name": "WFI32IoT_temperature", + "name": "temperature", "schema": "integer", "unit": "degreeCelsius" }, @@ -26,60 +26,12 @@ "en": "Brightness in illuminance from Texas Instruments OPT3001 ambient light sensor" }, "displayName": { - "en": "Brightness from Light Sensor (WFI32-IoT)" + "en": "Brightness from Light Sensor" }, - "name": "WFI32IoT_light", + "name": "light", "schema": "integer", "unit": "lux" }, - { - "@type": [ - "Telemetry", - "Pressure" - ], - "displayName": { - "en": "Pressure (ULP Click)" - }, - "name": "ULP_pressure", - "schema": "double", - "unit": "pascal" - }, - { - "@type": [ - "Telemetry", - "Temperature" - ], - "displayName": { - "en": "Temperature (ULP Click)" - }, - "name": "ULP_temperature", - "schema": "integer", - "unit": "degreeCelsius" - }, - { - "@type": [ - "Telemetry", - "Pressure" - ], - "displayName": { - "en": "Pressure (VAV Click)" - }, - "name": "VAV_pressure", - "schema": "double", - "unit": "pascal" - }, - { - "@type": [ - "Telemetry", - "Temperature" - ], - "displayName": { - "en": "Temperature (VAV Click)" - }, - "name": "VAV_temperature", - "schema": "integer", - "unit": "degreeCelsius" - }, { "@type": "Telemetry", "description": { @@ -118,7 +70,7 @@ { "@type": "Property", "description": { - "en": "The current state of the Green LED. When it is on, WFI32-IoT is connected to Cloud." + "en": "The current state of the Green LED. When it is on, WFI32 IoT is connected to Cloud." }, "displayName": { "en": "Green LED state" @@ -130,7 +82,7 @@ { "@type": "Property", "description": { - "en": "The current state of the Red LED. When it is on or blinking, WFI32-IoT has experienced error condition(s)." + "en": "The current state of the Red LED. When it is on or blinking, WFI32 IoT experienced error(s)." }, "displayName": { "en": "Red LED state" @@ -227,7 +179,7 @@ } ], "description": { - "en": "Reports device temperature, light intensity, and the current state of the 2 user buttons & 4 LEDs." + "en": "Reports device temperature, light intensity, and the current state of the 2 buttons & 4 LEDs. Provides ability to turn on/off any of the 4 LEDs." }, "displayName": { "en": "WFI32-IoT WM" @@ -237,14 +189,6 @@ "@id": "dtmi:com:Microchip:WFI32_IoT_WM:LedState;1", "@type": "Enum", "enumValues": [ - { - "@id": "dtmi:com:Microchip:WFI32_IoT_WM:LedState:Off;1", - "displayName": { - "en": "LED Off" - }, - "enumValue": 0, - "name": "Off" - }, { "@id": "dtmi:com:Microchip:WFI32_IoT_WM:LedState:On;1", "displayName": { @@ -253,12 +197,20 @@ "enumValue": 1, "name": "On" }, + { + "@id": "dtmi:com:Microchip:WFI32_IoT_WM:LedState:Off;1", + "displayName": { + "en": "LED Off" + }, + "enumValue": 2, + "name": "Off" + }, { "@id": "dtmi:com:Microchip:WFI32_IoT_WM:LedState:Blink;1", "displayName": { "en": "LED Blinking" }, - "enumValue": 2, + "enumValue": 3, "name": "Blink" } ], diff --git a/dtmi/com/microchip/wfi32_iot_wm-2.json b/dtmi/com/microchip/wfi32_iot_wm-2.json new file mode 100644 index 000000000..d908381e3 --- /dev/null +++ b/dtmi/com/microchip/wfi32_iot_wm-2.json @@ -0,0 +1,272 @@ +{ + "@id": "dtmi:com:Microchip:WFI32_IoT_WM;2", + "@type": "Interface", + "contents": [ + { + "@type": [ + "Telemetry", + "Temperature" + ], + "description": { + "en": "Temperature in degrees Celsius from Microchip MCP9808 high-accuracy temperature sensor" + }, + "displayName": { + "en": "Temperature (WFI32-IoT)" + }, + "name": "WFI32IoT_temperature", + "schema": "integer", + "unit": "degreeCelsius" + }, + { + "@type": [ + "Telemetry", + "Illuminance" + ], + "description": { + "en": "Brightness in illuminance from Texas Instruments OPT3001 ambient light sensor" + }, + "displayName": { + "en": "Brightness from Light Sensor (WFI32-IoT)" + }, + "name": "WFI32IoT_light", + "schema": "integer", + "unit": "lux" + }, + { + "@type": [ + "Telemetry", + "Pressure" + ], + "displayName": { + "en": "Pressure (ULP Click)" + }, + "name": "ULP_pressure", + "schema": "double", + "unit": "pascal" + }, + { + "@type": [ + "Telemetry", + "Temperature" + ], + "displayName": { + "en": "Temperature (ULP Click)" + }, + "name": "ULP_temperature", + "schema": "integer", + "unit": "degreeCelsius" + }, + { + "@type": [ + "Telemetry", + "Pressure" + ], + "displayName": { + "en": "Pressure (VAV Click)" + }, + "name": "VAV_pressure", + "schema": "double", + "unit": "pascal" + }, + { + "@type": [ + "Telemetry", + "Temperature" + ], + "displayName": { + "en": "Temperature (VAV Click)" + }, + "name": "VAV_temperature", + "schema": "integer", + "unit": "degreeCelsius" + }, + { + "@type": "Telemetry", + "description": { + "en": "Event triggered when button is pressed" + }, + "displayName": { + "en": "Button Push Event" + }, + "name": "button_event", + "schema": { + "@type": "Object", + "fields": [ + { + "name": "button_name", + "schema": "string" + }, + { + "name": "press_count", + "schema": "integer" + } + ] + } + }, + { + "@type": "Property", + "description": { + "en": "Returns current state of the Blue LED. If True, the Blue LED is on and the WiFi AP is connected." + }, + "displayName": { + "en": "Blue LED state" + }, + "name": "led_b", + "schema": "dtmi:com:Microchip:WFI32_IoT_WM:LedState;1", + "writable": false + }, + { + "@type": "Property", + "description": { + "en": "The current state of the Green LED. When it is on, WFI32-IoT is connected to Cloud." + }, + "displayName": { + "en": "Green LED state" + }, + "name": "led_g", + "schema": "dtmi:com:Microchip:WFI32_IoT_WM:LedState;1", + "writable": false + }, + { + "@type": "Property", + "description": { + "en": "The current state of the Red LED. When it is on or blinking, WFI32-IoT has experienced error condition(s)." + }, + "displayName": { + "en": "Red LED state" + }, + "name": "led_r", + "schema": "dtmi:com:Microchip:WFI32_IoT_WM:LedState;1", + "writable": false + }, + { + "@type": "Property", + "description": { + "en": "Set the state of the Yellow LED (Off, On, or Blink)" + }, + "displayName": { + "en": "Yellow LED state" + }, + "name": "led_y", + "schema": "dtmi:com:Microchip:WFI32_IoT_WM:LedState;1", + "writable": true + }, + { + "@type": [ + "Property", + "TimeSpan" + ], + "description": { + "en": "Sets interval to send telemetry in seconds" + }, + "displayName": { + "en": "Telemetry Interval" + }, + "name": "telemetryInterval", + "schema": "integer", + "unit": "second", + "writable": true + }, + { + "@type": "Command", + "description": { + "en": "Reboot WFI32 IoT 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": "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" + } + ] + } + } + }, + { + "@id": "dtmi:com:Microchip:WFI32_IoT_WM:press_count;1", + "@type": [ + "Telemetry" + ], + "displayName": { + "en": "Button Press Count" + }, + "name": "press_count", + "schema": "double" + } + ], + "description": { + "en": "Reports device temperature, light intensity, and the current state of the 2 user buttons & 4 LEDs." + }, + "displayName": { + "en": "WFI32-IoT WM" + }, + "schemas": [ + { + "@id": "dtmi:com:Microchip:WFI32_IoT_WM:LedState;1", + "@type": "Enum", + "enumValues": [ + { + "@id": "dtmi:com:Microchip:WFI32_IoT_WM:LedState:Off;1", + "displayName": { + "en": "LED Off" + }, + "enumValue": 0, + "name": "Off" + }, + { + "@id": "dtmi:com:Microchip:WFI32_IoT_WM:LedState:On;1", + "displayName": { + "en": "LED On" + }, + "enumValue": 1, + "name": "On" + }, + { + "@id": "dtmi:com:Microchip:WFI32_IoT_WM:LedState:Blink;1", + "displayName": { + "en": "LED Blinking" + }, + "enumValue": 2, + "name": "Blink" + } + ], + "valueSchema": "integer" + } + ], + "@context": [ + "dtmi:iotcentral:context;2", + "dtmi:dtdl:context;2" + ] +} \ No newline at end of file From fd6579154098bcc5d15d8f8a69cd613d9060c3c2 Mon Sep 17 00:00:00 2001 From: Randy Wu - C14166 Date: Sat, 20 Aug 2022 14:13:00 -0700 Subject: [PATCH 08/30] Add send text message command --- dtmi/com/microchip/wfi32_iot_wm-2.json | 51 ++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/dtmi/com/microchip/wfi32_iot_wm-2.json b/dtmi/com/microchip/wfi32_iot_wm-2.json index d908381e3..7f40aa99f 100644 --- a/dtmi/com/microchip/wfi32_iot_wm-2.json +++ b/dtmi/com/microchip/wfi32_iot_wm-2.json @@ -214,6 +214,57 @@ } } }, + { + "@type": "Command", + "description": { + "en": "Send a text message to WFI32-IoT" + }, + "displayName": { + "en": "Send Message" + }, + "name": "sendMsg", + "request": { + "@type": "CommandPayload", + "description": { + "en": "Text message to send to WFI32-IoT" + }, + "displayName": { + "en": "Message" + }, + "name": "payload", + "schema": { + "@type": "Object", + "fields": [ + { + "displayName": { + "en": "String to send" + }, + "name": "sendMsgString", + "schema": "string" + } + ] + } + }, + "response": { + "@type": "CommandPayload", + "displayName": { + "en": "Response for command" + }, + "name": "response", + "schema": { + "@type": "Object", + "fields": [ + { + "displayName": { + "en": "Message from send message handler" + }, + "name": "status", + "schema": "string" + } + ] + } + } + }, { "@id": "dtmi:com:Microchip:WFI32_IoT_WM:press_count;1", "@type": [ From 95c449d72e96744df19c42ae9542b3bbaf5f8e10 Mon Sep 17 00:00:00 2001 From: Randy Wu - C14166 Date: Thu, 25 Aug 2022 15:40:07 -0700 Subject: [PATCH 09/30] Update wfi32_iot_wm-2.json --- dtmi/com/microchip/wfi32_iot_wm-2.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dtmi/com/microchip/wfi32_iot_wm-2.json b/dtmi/com/microchip/wfi32_iot_wm-2.json index 7f40aa99f..0ece8fe69 100644 --- a/dtmi/com/microchip/wfi32_iot_wm-2.json +++ b/dtmi/com/microchip/wfi32_iot_wm-2.json @@ -53,7 +53,7 @@ "en": "Temperature (ULP Click)" }, "name": "ULP_temperature", - "schema": "integer", + "schema": "double", "unit": "degreeCelsius" }, { @@ -77,7 +77,7 @@ "en": "Temperature (VAV Click)" }, "name": "VAV_temperature", - "schema": "integer", + "schema": "double", "unit": "degreeCelsius" }, { From 235d4cb408dfe4734ed56451110350d4552fed94 Mon Sep 17 00:00:00 2001 From: Randy Wu - C14166 Date: Thu, 25 Aug 2022 16:20:14 -0700 Subject: [PATCH 10/30] Revert back to original WFI32_IoT_WM;1 --- dtmi/com/microchip/wfi32_iot_wm-1.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dtmi/com/microchip/wfi32_iot_wm-1.json b/dtmi/com/microchip/wfi32_iot_wm-1.json index 529009c62..7708cecc3 100644 --- a/dtmi/com/microchip/wfi32_iot_wm-1.json +++ b/dtmi/com/microchip/wfi32_iot_wm-1.json @@ -94,7 +94,7 @@ { "@type": "Property", "description": { - "en": "Set the state of the Yellow LED (Off, On, or Blink)" + "en": "Set the state of the Yellow LED. On, off, or blink." }, "displayName": { "en": "Yellow LED state" From 48f424b3627fc78457bbac2fe1795207c088a6c0 Mon Sep 17 00:00:00 2001 From: Randy Wu - C14166 Date: Thu, 25 Aug 2022 17:06:06 -0700 Subject: [PATCH 11/30] Update wfi32_iot_wm-2.json --- dtmi/com/microchip/wfi32_iot_wm-2.json | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/dtmi/com/microchip/wfi32_iot_wm-2.json b/dtmi/com/microchip/wfi32_iot_wm-2.json index 0ece8fe69..2f4c088c9 100644 --- a/dtmi/com/microchip/wfi32_iot_wm-2.json +++ b/dtmi/com/microchip/wfi32_iot_wm-2.json @@ -8,7 +8,7 @@ "Temperature" ], "description": { - "en": "Temperature in degrees Celsius from Microchip MCP9808 high-accuracy temperature sensor" + "en": "Temperature in degrees Celsius from Microchip MCP9808 high-accuracy temperature sensor." }, "displayName": { "en": "Temperature (WFI32-IoT)" @@ -23,7 +23,7 @@ "Illuminance" ], "description": { - "en": "Brightness in illuminance from Texas Instruments OPT3001 ambient light sensor" + "en": "Brightness in illuminance from Texas Instruments OPT3001 ambient light sensor." }, "displayName": { "en": "Brightness from Light Sensor (WFI32-IoT)" @@ -142,7 +142,7 @@ { "@type": "Property", "description": { - "en": "Set the state of the Yellow LED (Off, On, or Blink)" + "en": "Set the state of the Yellow LED (Off, On, or Blink)." }, "displayName": { "en": "Yellow LED state" @@ -157,7 +157,7 @@ "TimeSpan" ], "description": { - "en": "Sets interval to send telemetry in seconds" + "en": "Sets interval to send telemetry in seconds." }, "displayName": { "en": "Telemetry Interval" @@ -170,7 +170,7 @@ { "@type": "Command", "description": { - "en": "Reboot WFI32 IoT with the specified delay. e.g. PT5S for 5 seconds." + "en": "Reboot WFI32 IoT with the specified delay (e.g. PT5S for 5 seconds)." }, "displayName": { "en": "Reboot" @@ -179,7 +179,7 @@ "request": { "@type": "CommandPayload", "description": { - "en": "Number of seconds to delay reboot. e.g. PT5S for 5 seconds." + "en": "Number of seconds to delay reboot (e.g. PT5S for 5 seconds)." }, "displayName": { "en": "Reboot Delay" @@ -198,14 +198,14 @@ "fields": [ { "displayName": { - "en": "Message from reboot handler." + "en": "Message from reboot handler" }, "name": "status", "schema": "string" }, { "displayName": { - "en": "Number of seconds to delay the reboot." + "en": "Number of seconds to delay the reboot" }, "name": "delay", "schema": "integer" @@ -217,7 +217,7 @@ { "@type": "Command", "description": { - "en": "Send a text message to WFI32-IoT" + "en": "Send a text message for the WFI32-IoT to receive and process." }, "displayName": { "en": "Send Message" From 59566d54834f37eef041adc162ed12f4159f7316 Mon Sep 17 00:00:00 2001 From: Randy Wu - C14166 Date: Mon, 26 Dec 2022 10:24:13 -0800 Subject: [PATCH 12/30] Add 2 device models (1) WFI32_Curiosity_WM;1 (2) WFI32_IoT_WM;3 --- dtmi/com/microchip/wfi32_curiosity_wm-1.json | 375 +++++++++++++++++ dtmi/com/microchip/wfi32_iot_wm-3.json | 414 +++++++++++++++++++ 2 files changed, 789 insertions(+) create mode 100644 dtmi/com/microchip/wfi32_curiosity_wm-1.json create mode 100644 dtmi/com/microchip/wfi32_iot_wm-3.json diff --git a/dtmi/com/microchip/wfi32_curiosity_wm-1.json b/dtmi/com/microchip/wfi32_curiosity_wm-1.json new file mode 100644 index 000000000..810642caa --- /dev/null +++ b/dtmi/com/microchip/wfi32_curiosity_wm-1.json @@ -0,0 +1,375 @@ +{ + "@id": "dtmi:com:Microchip:WFI32_Curiosity_WM;1", + "@type": "Interface", + "contents": [ + { + "@type": [ + "Telemetry", + "Temperature" + ], + "description": { + "en": "Temperature in degrees Celsius from Microchip TC1047A analog temperature sensor." + }, + "displayName": { + "en": "Temperature (WFI32-Curiosity)" + }, + "name": "WFI32Curiosity_temperature", + "schema": "double", + "unit": "degreeCelsius" + }, + { + "@type": [ + "Telemetry", + "Altitude" + ], + "displayName": { + "en": "Altitude (ALT2 Click)" + }, + "name": "ALT2_altitude", + "schema": "double" + }, + { + "@type": [ + "Telemetry", + "Pressure" + ], + "displayName": { + "en": "Pressure (ALT2 Click)" + }, + "name": "ALT2_pressure", + "schema": "double" + }, + { + "@type": [ + "Telemetry", + "Temperature" + ], + "displayName": { + "en": "Temperature (ALT2 Click)" + }, + "name": "ALT2_temperature", + "schema": "double", + "unit": "degreeCelsius" + }, + { + "@type": [ + "Telemetry", + "Humidity" + ], + "displayName": { + "en": "Humidity (PHT Click)" + }, + "name": "PHT_humidity", + "schema": "double" + }, + { + "@type": [ + "Telemetry", + "Pressure" + ], + "displayName": { + "en": "Pressure (PHT Click)" + }, + "name": "PHT_pressure", + "schema": "double" + }, + { + "@type": [ + "Telemetry", + "Temperature" + ], + "displayName": { + "en": "Temperature (PHT Click)" + }, + "name": "PHT_temperature", + "schema": "double", + "unit": "degreeCelsius" + }, + { + "@type": [ + "Telemetry", + "Humidity" + ], + "displayName": { + "en": "Humidity (TEMPHUM14 Click)" + }, + "name": "TEMPHUM14_humidity", + "schema": "double" + }, + { + "@type": [ + "Telemetry", + "Temperature" + ], + "displayName": { + "en": "Temperature (TEMPHUM14 Click)" + }, + "name": "TEMPHUM14_temperature", + "schema": "double", + "unit": "degreeCelsius" + }, + { + "@type": [ + "Telemetry", + "Pressure" + ], + "displayName": { + "en": "Pressure (ULP Click)" + }, + "name": "ULP_pressure", + "schema": "double", + "unit": "pascal" + }, + { + "@type": [ + "Telemetry", + "Temperature" + ], + "displayName": { + "en": "Temperature (ULP Click)" + }, + "name": "ULP_temperature", + "schema": "double", + "unit": "degreeCelsius" + }, + { + "@type": [ + "Telemetry", + "Pressure" + ], + "displayName": { + "en": "Pressure (VAV Click)" + }, + "name": "VAV_pressure", + "schema": "double", + "unit": "pascal" + }, + { + "@type": [ + "Telemetry", + "Temperature" + ], + "displayName": { + "en": "Temperature (VAV Click)" + }, + "name": "VAV_temperature", + "schema": "double", + "unit": "degreeCelsius" + }, + { + "@type": "Telemetry", + "description": { + "en": "Event triggered when button is pressed" + }, + "displayName": { + "en": "Button Push Event" + }, + "name": "button_event", + "schema": { + "@type": "Object", + "fields": [ + { + "name": "button_name", + "schema": "string" + }, + { + "name": "press_count", + "schema": "integer" + } + ] + } + }, + { + "@type": "Property", + "description": { + "en": "The current state of the Green User LED (D204). When it is on, WFI32-Curiosity is connected to the Cloud." + }, + "displayName": { + "en": "Green User LED (D204) State" + }, + "name": "led_g", + "schema": "dtmi:com:Microchip:WFI32_Curiosity_WM:LedState;1", + "writable": false + }, + { + "@type": "Property", + "description": { + "en": "The current state of the Red User LED (D202). When it is on or blinking, WFI32-Curiosity has experienced error condition(s)." + }, + "displayName": { + "en": "Red User LED (D202) State" + }, + "name": "led_r", + "schema": "dtmi:com:Microchip:WFI32_Curiosity_WM:LedState;1", + "writable": false + }, + { + "@type": [ + "Property", + "TimeSpan" + ], + "description": { + "en": "Sets interval to send telemetry in seconds." + }, + "displayName": { + "en": "Telemetry Interval" + }, + "name": "telemetryInterval", + "schema": "integer", + "unit": "second", + "writable": true + }, + { + "@type": "Command", + "description": { + "en": "Reboot WFI32-Curiosity 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": "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": "Send a text message for the WFI32-Curiosity to receive and process." + }, + "displayName": { + "en": "Send Message" + }, + "name": "sendMsg", + "request": { + "@type": "CommandPayload", + "description": { + "en": "Text message to send to WFI32-Curiosity" + }, + "displayName": { + "en": "Message" + }, + "name": "payload", + "schema": { + "@type": "Object", + "fields": [ + { + "displayName": { + "en": "String to send" + }, + "name": "sendMsgString", + "schema": "string" + } + ] + } + }, + "response": { + "@type": "CommandPayload", + "displayName": { + "en": "Response for command" + }, + "name": "response", + "schema": { + "@type": "Object", + "fields": [ + { + "displayName": { + "en": "Message from send message handler" + }, + "name": "status", + "schema": "string" + } + ] + } + } + }, + { + "@id": "dtmi:com:Microchip:WFI32_Curiosity_WM:press_count;1", + "@type": [ + "Telemetry" + ], + "displayName": { + "en": "Button Press Count" + }, + "name": "press_count", + "schema": "double" + } + ], + "description": { + "en": "Reports device temperature, light intensity, and the current state of the 2 user buttons & 4 LEDs." + }, + "displayName": { + "en": "WFI32-Curiosity WM" + }, + "schemas": [ + { + "@id": "dtmi:com:Microchip:WFI32_Curiosity_WM:LedState;1", + "@type": "Enum", + "enumValues": [ + { + "@id": "dtmi:com:Microchip:WFI32_Curiosity_WM:LedState:Off;1", + "displayName": { + "en": "LED Off" + }, + "enumValue": 0, + "name": "Off" + }, + { + "@id": "dtmi:com:Microchip:WFI32_Curiosity_WM:LedState:On;1", + "displayName": { + "en": "LED On" + }, + "enumValue": 1, + "name": "On" + }, + { + "@id": "dtmi:com:Microchip:WFI32_Curiosity_WM:LedState:Blink;1", + "displayName": { + "en": "LED Blinking" + }, + "enumValue": 2, + "name": "Blink" + } + ], + "valueSchema": "integer" + } + ], + "@context": [ + "dtmi:iotcentral:context;2", + "dtmi:dtdl:context;2" + ] +} \ No newline at end of file diff --git a/dtmi/com/microchip/wfi32_iot_wm-3.json b/dtmi/com/microchip/wfi32_iot_wm-3.json new file mode 100644 index 000000000..ad240c5b1 --- /dev/null +++ b/dtmi/com/microchip/wfi32_iot_wm-3.json @@ -0,0 +1,414 @@ +{ + "@id": "dtmi:com:Microchip:WFI32_IoT_WM;3", + "@type": "Interface", + "contents": [ + { + "@type": [ + "Telemetry", + "Temperature" + ], + "description": { + "en": "Temperature in degrees Celsius from Microchip MCP9808 high-accuracy temperature sensor." + }, + "displayName": { + "en": "Temperature (WFI32-IoT)" + }, + "name": "WFI32IoT_temperature", + "schema": "double", + "unit": "degreeCelsius" + }, + { + "@type": [ + "Telemetry", + "Illuminance" + ], + "description": { + "en": "Brightness in illuminance from Texas Instruments OPT3001 ambient light sensor." + }, + "displayName": { + "en": "Brightness from Light Sensor (WFI32-IoT)" + }, + "name": "WFI32IoT_light", + "schema": "integer", + "unit": "lux" + }, + { + "@type": [ + "Telemetry", + "Altitude" + ], + "displayName": { + "en": "Altitude (ALT2 Click)" + }, + "name": "ALT2_altitude", + "schema": "double" + }, + { + "@type": [ + "Telemetry", + "Pressure" + ], + "displayName": { + "en": "Pressure (ALT2 Click)" + }, + "name": "ALT2_pressure", + "schema": "double" + }, + { + "@type": [ + "Telemetry", + "Temperature" + ], + "displayName": { + "en": "Temperature (ALT2 Click)" + }, + "name": "ALT2_temperature", + "schema": "double", + "unit": "degreeCelsius" + }, + { + "@type": [ + "Telemetry", + "Humidity" + ], + "displayName": { + "en": "Humidity (PHT Click)" + }, + "name": "PHT_humidity", + "schema": "double" + }, + { + "@type": [ + "Telemetry", + "Pressure" + ], + "displayName": { + "en": "Pressure (PHT Click)" + }, + "name": "PHT_pressure", + "schema": "double" + }, + { + "@type": [ + "Telemetry", + "Temperature" + ], + "displayName": { + "en": "Temperature (PHT Click)" + }, + "name": "PHT_temperature", + "schema": "double", + "unit": "degreeCelsius" + }, + { + "@type": [ + "Telemetry", + "Humidity" + ], + "displayName": { + "en": "Humidity (TEMPHUM14 Click)" + }, + "name": "TEMPHUM14_humidity", + "schema": "double" + }, + { + "@type": [ + "Telemetry", + "Temperature" + ], + "displayName": { + "en": "Temperature (TEMPHUM14 Click)" + }, + "name": "TEMPHUM14_temperature", + "schema": "double", + "unit": "degreeCelsius" + }, + { + "@type": [ + "Telemetry", + "Pressure" + ], + "displayName": { + "en": "Pressure (ULP Click)" + }, + "name": "ULP_pressure", + "schema": "double", + "unit": "pascal" + }, + { + "@type": [ + "Telemetry", + "Temperature" + ], + "displayName": { + "en": "Temperature (ULP Click)" + }, + "name": "ULP_temperature", + "schema": "double", + "unit": "degreeCelsius" + }, + { + "@type": [ + "Telemetry", + "Pressure" + ], + "displayName": { + "en": "Pressure (VAV Click)" + }, + "name": "VAV_pressure", + "schema": "double", + "unit": "pascal" + }, + { + "@type": [ + "Telemetry", + "Temperature" + ], + "displayName": { + "en": "Temperature (VAV Click)" + }, + "name": "VAV_temperature", + "schema": "double", + "unit": "degreeCelsius" + }, + { + "@type": "Telemetry", + "description": { + "en": "Event triggered when button is pressed" + }, + "displayName": { + "en": "Button Push Event" + }, + "name": "button_event", + "schema": { + "@type": "Object", + "fields": [ + { + "name": "button_name", + "schema": "string" + }, + { + "name": "press_count", + "schema": "integer" + } + ] + } + }, + { + "@type": "Property", + "description": { + "en": "Returns current state of the Blue LED. If True, the Blue LED is on and the WiFi AP is connected." + }, + "displayName": { + "en": "Blue LED state" + }, + "name": "led_b", + "schema": "dtmi:com:Microchip:WFI32_IoT_WM:LedState;1", + "writable": false + }, + { + "@type": "Property", + "description": { + "en": "The current state of the Green LED. When it is on, WFI32-IoT is connected to Cloud." + }, + "displayName": { + "en": "Green LED state" + }, + "name": "led_g", + "schema": "dtmi:com:Microchip:WFI32_IoT_WM:LedState;1", + "writable": false + }, + { + "@type": "Property", + "description": { + "en": "The current state of the Red LED. When it is on or blinking, WFI32-IoT has experienced error condition(s)." + }, + "displayName": { + "en": "Red LED state" + }, + "name": "led_r", + "schema": "dtmi:com:Microchip:WFI32_IoT_WM:LedState;1", + "writable": false + }, + { + "@type": "Property", + "description": { + "en": "Set the state of the Yellow LED (Off, On, or Blink)." + }, + "displayName": { + "en": "Yellow LED state" + }, + "name": "led_y", + "schema": "dtmi:com:Microchip:WFI32_IoT_WM:LedState;1", + "writable": true + }, + { + "@type": [ + "Property", + "TimeSpan" + ], + "description": { + "en": "Sets interval to send telemetry in seconds." + }, + "displayName": { + "en": "Telemetry Interval" + }, + "name": "telemetryInterval", + "schema": "integer", + "unit": "second", + "writable": true + }, + { + "@type": "Command", + "description": { + "en": "Reboot WFI32 IoT 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": "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": "Send a text message for the WFI32-IoT to receive and process." + }, + "displayName": { + "en": "Send Message" + }, + "name": "sendMsg", + "request": { + "@type": "CommandPayload", + "description": { + "en": "Text message to send to WFI32-IoT" + }, + "displayName": { + "en": "Message" + }, + "name": "payload", + "schema": { + "@type": "Object", + "fields": [ + { + "displayName": { + "en": "String to send" + }, + "name": "sendMsgString", + "schema": "string" + } + ] + } + }, + "response": { + "@type": "CommandPayload", + "displayName": { + "en": "Response for command" + }, + "name": "response", + "schema": { + "@type": "Object", + "fields": [ + { + "displayName": { + "en": "Message from send message handler" + }, + "name": "status", + "schema": "string" + } + ] + } + } + }, + { + "@id": "dtmi:com:Microchip:WFI32_IoT_WM:press_count;1", + "@type": [ + "Telemetry" + ], + "displayName": { + "en": "Button Press Count" + }, + "name": "press_count", + "schema": "double" + } + ], + "description": { + "en": "Reports device temperature, light intensity, and the current state of the 2 user buttons & 4 LEDs." + }, + "displayName": { + "en": "WFI32-IoT WM" + }, + "schemas": [ + { + "@id": "dtmi:com:Microchip:WFI32_IoT_WM:LedState;1", + "@type": "Enum", + "enumValues": [ + { + "@id": "dtmi:com:Microchip:WFI32_IoT_WM:LedState:Off;1", + "displayName": { + "en": "LED Off" + }, + "enumValue": 0, + "name": "Off" + }, + { + "@id": "dtmi:com:Microchip:WFI32_IoT_WM:LedState:On;1", + "displayName": { + "en": "LED On" + }, + "enumValue": 1, + "name": "On" + }, + { + "@id": "dtmi:com:Microchip:WFI32_IoT_WM:LedState:Blink;1", + "displayName": { + "en": "LED Blinking" + }, + "enumValue": 2, + "name": "Blink" + } + ], + "valueSchema": "integer" + } + ], + "@context": [ + "dtmi:iotcentral:context;2", + "dtmi:dtdl:context;2" + ] +} \ No newline at end of file From 8aa1abd397c67206c132049cd1e9a85185d48c74 Mon Sep 17 00:00:00 2001 From: Randy Wu - C14166 Date: Tue, 27 Dec 2022 14:03:35 -0800 Subject: [PATCH 13/30] Update total press count --- dtmi/com/microchip/wfi32_curiosity_wm-1.json | 6 +++--- dtmi/com/microchip/wfi32_iot_wm-3.json | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dtmi/com/microchip/wfi32_curiosity_wm-1.json b/dtmi/com/microchip/wfi32_curiosity_wm-1.json index 810642caa..f7585e8ae 100644 --- a/dtmi/com/microchip/wfi32_curiosity_wm-1.json +++ b/dtmi/com/microchip/wfi32_curiosity_wm-1.json @@ -318,14 +318,14 @@ } }, { - "@id": "dtmi:com:Microchip:WFI32_Curiosity_WM:press_count;1", + "@id": "dtmi:com:Microchip:WFI32_Curiosity_WM:total_press_count;1", "@type": [ "Telemetry" ], "displayName": { - "en": "Button Press Count" + "en": "Button Press Count Total" }, - "name": "press_count", + "name": "total_press_count", "schema": "double" } ], diff --git a/dtmi/com/microchip/wfi32_iot_wm-3.json b/dtmi/com/microchip/wfi32_iot_wm-3.json index ad240c5b1..e538686d6 100644 --- a/dtmi/com/microchip/wfi32_iot_wm-3.json +++ b/dtmi/com/microchip/wfi32_iot_wm-3.json @@ -357,14 +357,14 @@ } }, { - "@id": "dtmi:com:Microchip:WFI32_IoT_WM:press_count;1", + "@id": "dtmi:com:Microchip:WFI32_IoT_WM:total_press_count;1", "@type": [ "Telemetry" ], "displayName": { - "en": "Button Press Count" + "en": "Button Press Count Total" }, - "name": "press_count", + "name": "total_press_count", "schema": "double" } ], From 5118cc59cb9ba6493d6c1f0759d6bd3b801102ae Mon Sep 17 00:00:00 2001 From: Randy Wu - C14166 Date: Tue, 27 Dec 2022 16:58:12 -0800 Subject: [PATCH 14/30] Update WFI32 models --- dtmi/com/microchip/wfi32_curiosity_wm-1.json | 17 +++++++++++------ dtmi/com/microchip/wfi32_iot_wm-3.json | 17 +++++++++++------ 2 files changed, 22 insertions(+), 12 deletions(-) diff --git a/dtmi/com/microchip/wfi32_curiosity_wm-1.json b/dtmi/com/microchip/wfi32_curiosity_wm-1.json index f7585e8ae..a9d21d177 100644 --- a/dtmi/com/microchip/wfi32_curiosity_wm-1.json +++ b/dtmi/com/microchip/wfi32_curiosity_wm-1.json @@ -26,7 +26,8 @@ "en": "Altitude (ALT2 Click)" }, "name": "ALT2_altitude", - "schema": "double" + "schema": "double", + "unit": "metre" }, { "@type": [ @@ -37,7 +38,8 @@ "en": "Pressure (ALT2 Click)" }, "name": "ALT2_pressure", - "schema": "double" + "schema": "double", + "unit": "pascal" }, { "@type": [ @@ -60,7 +62,8 @@ "en": "Humidity (PHT Click)" }, "name": "PHT_humidity", - "schema": "double" + "schema": "double", + "unit": "kilogramPerCubicMetre" }, { "@type": [ @@ -71,7 +74,8 @@ "en": "Pressure (PHT Click)" }, "name": "PHT_pressure", - "schema": "double" + "schema": "double", + "unit": "pascal" }, { "@type": [ @@ -94,7 +98,8 @@ "en": "Humidity (TEMPHUM14 Click)" }, "name": "TEMPHUM14_humidity", - "schema": "double" + "schema": "double", + "unit": "kilogramPerCubicMetre" }, { "@type": [ @@ -326,7 +331,7 @@ "en": "Button Press Count Total" }, "name": "total_press_count", - "schema": "double" + "schema": "integer" } ], "description": { diff --git a/dtmi/com/microchip/wfi32_iot_wm-3.json b/dtmi/com/microchip/wfi32_iot_wm-3.json index e538686d6..93f55b088 100644 --- a/dtmi/com/microchip/wfi32_iot_wm-3.json +++ b/dtmi/com/microchip/wfi32_iot_wm-3.json @@ -41,7 +41,8 @@ "en": "Altitude (ALT2 Click)" }, "name": "ALT2_altitude", - "schema": "double" + "schema": "double", + "unit": "metre" }, { "@type": [ @@ -52,7 +53,8 @@ "en": "Pressure (ALT2 Click)" }, "name": "ALT2_pressure", - "schema": "double" + "schema": "double", + "unit": "pascal" }, { "@type": [ @@ -75,7 +77,8 @@ "en": "Humidity (PHT Click)" }, "name": "PHT_humidity", - "schema": "double" + "schema": "double", + "unit": "kilogramPerCubicMetre" }, { "@type": [ @@ -86,7 +89,8 @@ "en": "Pressure (PHT Click)" }, "name": "PHT_pressure", - "schema": "double" + "schema": "double", + "unit": "pascal" }, { "@type": [ @@ -109,7 +113,8 @@ "en": "Humidity (TEMPHUM14 Click)" }, "name": "TEMPHUM14_humidity", - "schema": "double" + "schema": "double", + "unit": "kilogramPerCubicMetre" }, { "@type": [ @@ -365,7 +370,7 @@ "en": "Button Press Count Total" }, "name": "total_press_count", - "schema": "double" + "schema": "integer" } ], "description": { From b3b43b2b4475c1eee20d49102f628532476f1ea6 Mon Sep 17 00:00:00 2001 From: Randy Wu - C14166 Date: Sun, 8 Jan 2023 08:49:43 -0800 Subject: [PATCH 15/30] Create pic32cmls60_curiosity-1.json --- .../microchip/pic32cmls60_curiosity-1.json | 230 ++++++++++++++++++ 1 file changed, 230 insertions(+) create mode 100644 dtmi/com/microchip/pic32cmls60_curiosity-1.json diff --git a/dtmi/com/microchip/pic32cmls60_curiosity-1.json b/dtmi/com/microchip/pic32cmls60_curiosity-1.json new file mode 100644 index 000000000..33244321d --- /dev/null +++ b/dtmi/com/microchip/pic32cmls60_curiosity-1.json @@ -0,0 +1,230 @@ +{ + "@id": "dtmi:com:Microchip:PIC32CMLS60_CURIOSITY;1", + "@type": "Interface", + "contents": [ + { + "@type": "Telemetry", + "description": { + "en": "Raw value for the ADC input tied to the potentiometer" + }, + "displayName": { + "en": "Potentiometer" + }, + "name": "potentiometer", + "schema": "integer" + }, + { + "@type": "Telemetry", + "description": { + "en": "Event triggered when button is pressed" + }, + "displayName": { + "en": "Button Event" + }, + "name": "button_event", + "schema": { + "@type": "Object", + "fields": [ + { + "name": "button_name", + "schema": "string" + }, + { + "name": "press_count", + "schema": "integer" + } + ] + } + }, + { + "@type": "Property", + "description": { + "en": "The current state of LED0 (GREEN)" + }, + "displayName": { + "en": "LED0 (GREEN) State" + }, + "name": "LED0", + "schema": "dtmi:com:Microchip:PIC32CMLS60_CURIOSITY:LedState;1", + "writable": true + }, + { + "@type": "Property", + "description": { + "en": "The current state of LED1 (RED)" + }, + "displayName": { + "en": "LED1 (RED) State" + }, + "name": "LED1", + "schema": "dtmi:com:Microchip:PIC32CMLS60_CURIOSITY:LedState;1", + "writable": true + }, + { + "@type": [ + "Property", + "TimeSpan" + ], + "description": { + "en": "Sets interval to send telemetry in seconds" + }, + "displayName": { + "en": "Set Telemetry Interval" + }, + "name": "telemetryInterval", + "schema": "integer", + "unit": "second", + "writable": true + }, + { + "@type": "Command", + "description": { + "en": "Reboot with the specified delay (e.g. PT5S = 5 seconds)" + }, + "displayName": { + "en": "Reboot" + }, + "name": "reboot", + "request": { + "@type": "CommandPayload", + "description": { + "en": "Number of seconds to delay reboot (e.g. PT5S = 5 seconds)" + }, + "displayName": { + "en": "Reboot Delay" + }, + "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": "Send a text message for the PIC32CMLS60_CURIOSITY to receive and process." + }, + "displayName": { + "en": "Receive Message" + }, + "name": "recvMsg", + "request": { + "@type": "CommandPayload", + "description": { + "en": "Text message to send to PIC32CMLS60_CURIOSITY" + }, + "displayName": { + "en": "Message" + }, + "name": "payload", + "schema": { + "@type": "Object", + "fields": [ + { + "displayName": { + "en": "String to send" + }, + "name": "recvMsgString", + "schema": "string" + } + ] + } + }, + "response": { + "@type": "CommandPayload", + "displayName": { + "en": "Response for command" + }, + "name": "response", + "schema": { + "@type": "Object", + "fields": [ + { + "displayName": { + "en": "Message from receive message handler" + }, + "name": "status", + "schema": "string" + } + ] + } + } + } + ], + "description": { + "en": "Reports the raw value of 1 ADC input and the states of 3 buttons & 2 LEDs (plus ability to turn on/off any of the LEDs)" + }, + "displayName": { + "en": "PIC32CM LS60 Curiosity Pro" + }, + "schemas": [ + { + "@id": "dtmi:com:Microchip:PIC32CMLS60_CURIOSITY:LedState;1", + "@type": "Enum", + "enumValues": [ + { + "comment": "LED is in the OFF state", + "description": { + "en": "LED is turned OFF" + }, + "displayName": { + "en": "LED OFF" + }, + "enumValue": 0, + "name": "Off" + }, + { + "comment": "LED is in the ON state", + "description": { + "en": "LED is turned ON" + }, + "displayName": { + "en": "LED ON" + }, + "enumValue": 1, + "name": "On" + }, + { + "comment": "LED is Blinking", + "description": { + "en": "LED is Blinking" + }, + "displayName": { + "en": "LED Blinking" + }, + "enumValue": 2, + "name": "Blink" + } + ], + "valueSchema": "integer" + } + ], + "@context": [ + "dtmi:iotcentral:context;2", + "dtmi:dtdl:context;2" + ] + } \ No newline at end of file From 7e67a931002ab9c8f9de35b0191137c4a92b0ddc Mon Sep 17 00:00:00 2001 From: Randy Wu - C14166 Date: Thu, 12 Jan 2023 11:23:39 -0800 Subject: [PATCH 16/30] Create avr_iot_cellular-1.json --- dtmi/com/microchip/avr_iot_cellular-1.json | 308 +++++++++++++++++++++ 1 file changed, 308 insertions(+) create mode 100644 dtmi/com/microchip/avr_iot_cellular-1.json diff --git a/dtmi/com/microchip/avr_iot_cellular-1.json b/dtmi/com/microchip/avr_iot_cellular-1.json new file mode 100644 index 000000000..c53db35e1 --- /dev/null +++ b/dtmi/com/microchip/avr_iot_cellular-1.json @@ -0,0 +1,308 @@ +{ + "@id": "dtmi:com:Microchip:AVR_IoT_Cellular;1", + "@type": "Interface", + "contents": [ + { + "@type": [ + "Telemetry", + "Temperature" + ], + "description": { + "en": "Temperature in degrees Celsius from Microchip MCP9808 high-accuracy temperature sensor" + }, + "displayName": { + "en": "Ambient Temperature" + }, + "name": "temperature", + "schema": "double", + "unit": "degreeCelsius" + }, + { + "@type": [ + "Telemetry", + "Color" + ], + "description": { + "en": "Color counts from Vishay VEML3328 RGBCIR color sensor" + }, + "displayName": { + "en": "Color Counts" + }, + "name": "color_counts", + "schema": { + "@type": "Object", + "fields": [ + { + "name": "R", + "schema": "integer" + }, + { + "name": "G", + "schema": "integer" + }, + { + "name": "B", + "schema": "integer" + }, + { + "name": "C", + "schema": "integer" + }, + { + "name": "IR", + "schema": "integer" + } + ] + } + }, + { + "@type": "Telemetry", + "description": { + "en": "Event triggered when button is pressed" + }, + "displayName": { + "en": "Button Event" + }, + "name": "button_event", + "schema": { + "@type": "Object", + "fields": [ + { + "name": "button_name", + "schema": "string" + }, + { + "name": "press_count", + "schema": "integer" + } + ] + } + }, + { + "@type": "Property", + "description": { + "en": "The current state of LED0 (CELL)" + }, + "displayName": { + "en": "LED0 (CELL) State" + }, + "name": "LED0", + "schema": "dtmi:com:Microchip:Microchip:AVR_IoT_Cellular:LedState;1", + "writable": false + }, + { + "@type": "Property", + "description": { + "en": "The current state of LED1 (CONN)" + }, + "displayName": { + "en": "LED1 (CONN) State" + }, + "name": "LED1", + "schema": "dtmi:com:Microchip:Microchip:AVR_IoT_Cellular:LedState;1", + "writable": false + }, + { + "@type": "Property", + "description": { + "en": "The current state of LED2 (DATA)" + }, + "displayName": { + "en": "LED2 (DATA) State" + }, + "name": "LED2", + "schema": "dtmi:com:Microchip:Microchip:AVR_IoT_Cellular:LedState;1", + "writable": false + }, + { + "@type": "Property", + "description": { + "en": "The current state of LED3 (ERROR)" + }, + "displayName": { + "en": "LED3 (ERROR) State" + }, + "name": "LED3", + "schema": "dtmi:com:Microchip:Microchip:AVR_IoT_Cellular:LedState;1", + "writable": false + }, + { + "@type": "Property", + "description": { + "en": "The current state of LED4 (USER)" + }, + "displayName": { + "en": "LED4 (USER) State" + }, + "name": "LED4", + "schema": "dtmi:com:Microchip:Microchip:AVR_IoT_Cellular:LedState;1", + "writable": true + }, + { + "@type": [ + "Property", + "TimeSpan" + ], + "description": { + "en": "Sets interval to send telemetry in seconds" + }, + "displayName": { + "en": "Set Telemetry Interval" + }, + "name": "telemetryInterval", + "schema": "integer", + "unit": "second", + "writable": true + }, + { + "@type": "Command", + "description": { + "en": "Reboot with the specified delay (e.g. PT5S = 5 seconds)" + }, + "displayName": { + "en": "Reboot" + }, + "name": "reboot", + "request": { + "@type": "CommandPayload", + "description": { + "en": "Number of seconds to delay reboot (e.g. PT5S = 5 seconds)" + }, + "displayName": { + "en": "Reboot Delay" + }, + "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": "Send a text message for the Microchip:AVR_IoT_Cellular to receive and process." + }, + "displayName": { + "en": "Receive Message" + }, + "name": "recvMsg", + "request": { + "@type": "CommandPayload", + "description": { + "en": "Text message to send to AVR_IoT_Cellular" + }, + "displayName": { + "en": "Message" + }, + "name": "payload", + "schema": { + "@type": "Object", + "fields": [ + { + "displayName": { + "en": "String to send" + }, + "name": "recvMsgString", + "schema": "string" + } + ] + } + }, + "response": { + "@type": "CommandPayload", + "displayName": { + "en": "Response for command" + }, + "name": "response", + "schema": { + "@type": "Object", + "fields": [ + { + "displayName": { + "en": "Message from receive message handler" + }, + "name": "status", + "schema": "string" + } + ] + } + } + } + ], + "description": { + "en": "Reports color counts, temperature, and the states of 2 buttons & 5 LEDs" + }, + "displayName": { + "en": "AVR-IoT Cellular Mini" + }, + "schemas": [ + { + "@id": "dtmi:com:Microchip:Microchip:AVR_IoT_Cellular:LedState;1", + "@type": "Enum", + "enumValues": [ + { + "comment": "LED is in the OFF state", + "description": { + "en": "LED is turned OFF" + }, + "displayName": { + "en": "LED OFF" + }, + "enumValue": 0, + "name": "Off" + }, + { + "comment": "LED is in the ON state", + "description": { + "en": "LED is turned ON" + }, + "displayName": { + "en": "LED ON" + }, + "enumValue": 1, + "name": "On" + }, + { + "comment": "LED is Blinking", + "description": { + "en": "LED is Blinking" + }, + "displayName": { + "en": "LED Blinking" + }, + "enumValue": 2, + "name": "Blink" + } + ], + "valueSchema": "integer" + } + ], + "@context": [ + "dtmi:iotcentral:context;2", + "dtmi:dtdl:context;2" + ] + } \ No newline at end of file From 1207e0187f5238de6d0cfc776c4481e113ec7931 Mon Sep 17 00:00:00 2001 From: Randy Wu - C14166 Date: Sun, 15 Jan 2023 16:38:42 -0800 Subject: [PATCH 17/30] Create wbz451_curiosity-1.json --- dtmi/com/microchip/wbz451_curiosity-1.json | 293 +++++++++++++++++++++ 1 file changed, 293 insertions(+) create mode 100644 dtmi/com/microchip/wbz451_curiosity-1.json diff --git a/dtmi/com/microchip/wbz451_curiosity-1.json b/dtmi/com/microchip/wbz451_curiosity-1.json new file mode 100644 index 000000000..447745bf2 --- /dev/null +++ b/dtmi/com/microchip/wbz451_curiosity-1.json @@ -0,0 +1,293 @@ +{ + "@id": "dtmi:com:Microchip:WBZ451_Curiosity;1", + "@type": "Interface", + "contents": [ + { + "@type": [ + "Telemetry", + "NumberValue", + "Temperature" + ], + "description": { + "en": "Temperature in degrees Celsius from the on-board analog temperature sensor" + }, + "displayName": { + "en": "Temperature" + }, + "name": "temperature", + "schema": "integer", + "unit": "degreeCelsius" + }, + { + "@type": "Telemetry", + "description": { + "en": "Event triggered when button is pressed" + }, + "displayName": { + "en": "SW2 Button Press" + }, + "name": "button_event", + "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 BLUE PWM input to the RGB LED" + }, + "displayName": { + "en": "RGB LED (BLUE)" + }, + "name": "rgb_led_blue", + "schema": "dtmi:com:Microchip:Microchip:WBZ451_Curiosity:LedState;1", + "writable": true, + "initialValue": 2 + }, + { + "@type": [ + "Property", + "Initialized" + ], + "description": { + "en": "The GREEN PWM input to the RGB LED" + }, + "displayName": { + "en": "RGB LED (GREEN)" + }, + "name": "rgb_led_green", + "schema": "dtmi:com:Microchip:Microchip:WBZ451_Curiosity:LedState;1", + "writable": true, + "initialValue": 2 + }, + { + "@type": [ + "Property", + "Initialized" + ], + "description": { + "en": "The RED PWM input to the RGB LED" + }, + "displayName": { + "en": "RGB LED (RED)" + }, + "name": "rgb_led_red", + "schema": "dtmi:com:Microchip:Microchip:WBZ451_Curiosity:LedState;1", + "writable": true, + "initialValue": 2 + }, + { + "@type": [ + "Property", + "Initialized" + ], + "description": { + "en": "The current state of the User LED" + }, + "displayName": { + "en": "User LED" + }, + "name": "led_user", + "schema": "dtmi:com:Microchip:Microchip:WBZ451_Curiosity:LedState;1", + "writable": true, + "initialValue": 3 + }, + { + "@type": [ + "Property", + "NumberValue", + "TimeSpan" + ], + "description": { + "en": "Sets interval to send telemetry in seconds" + }, + "displayName": { + "en": "Telemetry Interval" + }, + "name": "telemetryInterval", + "schema": "integer", + "unit": "second", + "writable": true + }, + { + "@type": "Command", + "description": { + "en": "Reboot SAM IoT 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": "Send a text message to the device" + }, + "displayName": { + "en": "Send Message" + }, + "name": "sendMsg", + "request": { + "@type": "CommandPayload", + "description": { + "en": "Text message to send" + }, + "displayName": { + "en": "Message" + }, + "name": "payload", + "schema": { + "@type": "Object", + "fields": [ + { + "displayName": { + "en": "String to send" + }, + "name": "sendMsgString", + "schema": "string" + } + ] + } + }, + "response": { + "@type": "CommandPayload", + "displayName": { + "en": "Response for command" + }, + "name": "response", + "schema": { + "@type": "Object", + "fields": [ + { + "displayName": { + "en": "Message from send message handler." + }, + "name": "status", + "schema": "string" + } + ] + } + } + } + ], + "description": { + "en": "WBZ451 Curiosity Board" + }, + "displayName": { + "en": "WBZ451 Curiosity Board" + }, + "schemas": [ + { + "@id": "dtmi:com:Microchip:Microchip:WBZ451_Curiosity:LedState;1", + "@type": "Enum", + "enumValues": [ + { + "@id": "dtmi:com:Microchip:Microchip:WBZ451_Curiosity:LedState:On;1", + "displayName": { + "en": "On" + }, + "enumValue": 1, + "name": "On" + }, + { + "@id": "dtmi:com:Microchip:Microchip:WBZ451_Curiosity:LedState:Off;1", + "displayName": { + "en": "Off" + }, + "enumValue": 2, + "name": "Off" + }, + { + "@id": "dtmi:com:Microchip:Microchip:WBZ451_Curiosity: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 From 853fd039a770c58dbecc2efb452fbc8f77f71ad4 Mon Sep 17 00:00:00 2001 From: Randy Wu - C14166 Date: Sun, 15 Jan 2023 16:42:39 -0800 Subject: [PATCH 18/30] Delete avr_iot_cellular-1.json --- dtmi/com/microchip/avr_iot_cellular-1.json | 308 --------------------- 1 file changed, 308 deletions(-) delete mode 100644 dtmi/com/microchip/avr_iot_cellular-1.json diff --git a/dtmi/com/microchip/avr_iot_cellular-1.json b/dtmi/com/microchip/avr_iot_cellular-1.json deleted file mode 100644 index c53db35e1..000000000 --- a/dtmi/com/microchip/avr_iot_cellular-1.json +++ /dev/null @@ -1,308 +0,0 @@ -{ - "@id": "dtmi:com:Microchip:AVR_IoT_Cellular;1", - "@type": "Interface", - "contents": [ - { - "@type": [ - "Telemetry", - "Temperature" - ], - "description": { - "en": "Temperature in degrees Celsius from Microchip MCP9808 high-accuracy temperature sensor" - }, - "displayName": { - "en": "Ambient Temperature" - }, - "name": "temperature", - "schema": "double", - "unit": "degreeCelsius" - }, - { - "@type": [ - "Telemetry", - "Color" - ], - "description": { - "en": "Color counts from Vishay VEML3328 RGBCIR color sensor" - }, - "displayName": { - "en": "Color Counts" - }, - "name": "color_counts", - "schema": { - "@type": "Object", - "fields": [ - { - "name": "R", - "schema": "integer" - }, - { - "name": "G", - "schema": "integer" - }, - { - "name": "B", - "schema": "integer" - }, - { - "name": "C", - "schema": "integer" - }, - { - "name": "IR", - "schema": "integer" - } - ] - } - }, - { - "@type": "Telemetry", - "description": { - "en": "Event triggered when button is pressed" - }, - "displayName": { - "en": "Button Event" - }, - "name": "button_event", - "schema": { - "@type": "Object", - "fields": [ - { - "name": "button_name", - "schema": "string" - }, - { - "name": "press_count", - "schema": "integer" - } - ] - } - }, - { - "@type": "Property", - "description": { - "en": "The current state of LED0 (CELL)" - }, - "displayName": { - "en": "LED0 (CELL) State" - }, - "name": "LED0", - "schema": "dtmi:com:Microchip:Microchip:AVR_IoT_Cellular:LedState;1", - "writable": false - }, - { - "@type": "Property", - "description": { - "en": "The current state of LED1 (CONN)" - }, - "displayName": { - "en": "LED1 (CONN) State" - }, - "name": "LED1", - "schema": "dtmi:com:Microchip:Microchip:AVR_IoT_Cellular:LedState;1", - "writable": false - }, - { - "@type": "Property", - "description": { - "en": "The current state of LED2 (DATA)" - }, - "displayName": { - "en": "LED2 (DATA) State" - }, - "name": "LED2", - "schema": "dtmi:com:Microchip:Microchip:AVR_IoT_Cellular:LedState;1", - "writable": false - }, - { - "@type": "Property", - "description": { - "en": "The current state of LED3 (ERROR)" - }, - "displayName": { - "en": "LED3 (ERROR) State" - }, - "name": "LED3", - "schema": "dtmi:com:Microchip:Microchip:AVR_IoT_Cellular:LedState;1", - "writable": false - }, - { - "@type": "Property", - "description": { - "en": "The current state of LED4 (USER)" - }, - "displayName": { - "en": "LED4 (USER) State" - }, - "name": "LED4", - "schema": "dtmi:com:Microchip:Microchip:AVR_IoT_Cellular:LedState;1", - "writable": true - }, - { - "@type": [ - "Property", - "TimeSpan" - ], - "description": { - "en": "Sets interval to send telemetry in seconds" - }, - "displayName": { - "en": "Set Telemetry Interval" - }, - "name": "telemetryInterval", - "schema": "integer", - "unit": "second", - "writable": true - }, - { - "@type": "Command", - "description": { - "en": "Reboot with the specified delay (e.g. PT5S = 5 seconds)" - }, - "displayName": { - "en": "Reboot" - }, - "name": "reboot", - "request": { - "@type": "CommandPayload", - "description": { - "en": "Number of seconds to delay reboot (e.g. PT5S = 5 seconds)" - }, - "displayName": { - "en": "Reboot Delay" - }, - "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": "Send a text message for the Microchip:AVR_IoT_Cellular to receive and process." - }, - "displayName": { - "en": "Receive Message" - }, - "name": "recvMsg", - "request": { - "@type": "CommandPayload", - "description": { - "en": "Text message to send to AVR_IoT_Cellular" - }, - "displayName": { - "en": "Message" - }, - "name": "payload", - "schema": { - "@type": "Object", - "fields": [ - { - "displayName": { - "en": "String to send" - }, - "name": "recvMsgString", - "schema": "string" - } - ] - } - }, - "response": { - "@type": "CommandPayload", - "displayName": { - "en": "Response for command" - }, - "name": "response", - "schema": { - "@type": "Object", - "fields": [ - { - "displayName": { - "en": "Message from receive message handler" - }, - "name": "status", - "schema": "string" - } - ] - } - } - } - ], - "description": { - "en": "Reports color counts, temperature, and the states of 2 buttons & 5 LEDs" - }, - "displayName": { - "en": "AVR-IoT Cellular Mini" - }, - "schemas": [ - { - "@id": "dtmi:com:Microchip:Microchip:AVR_IoT_Cellular:LedState;1", - "@type": "Enum", - "enumValues": [ - { - "comment": "LED is in the OFF state", - "description": { - "en": "LED is turned OFF" - }, - "displayName": { - "en": "LED OFF" - }, - "enumValue": 0, - "name": "Off" - }, - { - "comment": "LED is in the ON state", - "description": { - "en": "LED is turned ON" - }, - "displayName": { - "en": "LED ON" - }, - "enumValue": 1, - "name": "On" - }, - { - "comment": "LED is Blinking", - "description": { - "en": "LED is Blinking" - }, - "displayName": { - "en": "LED Blinking" - }, - "enumValue": 2, - "name": "Blink" - } - ], - "valueSchema": "integer" - } - ], - "@context": [ - "dtmi:iotcentral:context;2", - "dtmi:dtdl:context;2" - ] - } \ No newline at end of file From 2d96937e19245d5f77b6c97537b7c743830031bb Mon Sep 17 00:00:00 2001 From: Randy Wu - C14166 Date: Sun, 15 Jan 2023 21:11:41 -0800 Subject: [PATCH 19/30] Update WBZ451 Curiosity --- .../{wbz451_curiosity-1.json => wbz451-curiosity-1.json} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename dtmi/com/microchip/{wbz451_curiosity-1.json => wbz451-curiosity-1.json} (98%) diff --git a/dtmi/com/microchip/wbz451_curiosity-1.json b/dtmi/com/microchip/wbz451-curiosity-1.json similarity index 98% rename from dtmi/com/microchip/wbz451_curiosity-1.json rename to dtmi/com/microchip/wbz451-curiosity-1.json index 447745bf2..74a27dd44 100644 --- a/dtmi/com/microchip/wbz451_curiosity-1.json +++ b/dtmi/com/microchip/wbz451-curiosity-1.json @@ -65,7 +65,7 @@ "en": "The BLUE PWM input to the RGB LED" }, "displayName": { - "en": "RGB LED (BLUE)" + "en": "RGB LED (BLUE PWM)" }, "name": "rgb_led_blue", "schema": "dtmi:com:Microchip:Microchip:WBZ451_Curiosity:LedState;1", @@ -81,7 +81,7 @@ "en": "The GREEN PWM input to the RGB LED" }, "displayName": { - "en": "RGB LED (GREEN)" + "en": "RGB LED (GREEN PWM)" }, "name": "rgb_led_green", "schema": "dtmi:com:Microchip:Microchip:WBZ451_Curiosity:LedState;1", @@ -97,7 +97,7 @@ "en": "The RED PWM input to the RGB LED" }, "displayName": { - "en": "RGB LED (RED)" + "en": "RGB LED (RED PWM)" }, "name": "rgb_led_red", "schema": "dtmi:com:Microchip:Microchip:WBZ451_Curiosity:LedState;1", From 7aefd32eb207e15b95d208c7c1ebcac72d43167d Mon Sep 17 00:00:00 2001 From: Randy Wu - C14166 Date: Tue, 17 Jan 2023 14:29:36 -0800 Subject: [PATCH 20/30] Update WBZ451_Curiosity;1 --- ...riosity-1.json => wbz451_curiosity-1.json} | 61 +++++++++++++------ 1 file changed, 42 insertions(+), 19 deletions(-) rename dtmi/com/microchip/{wbz451-curiosity-1.json => wbz451_curiosity-1.json} (80%) diff --git a/dtmi/com/microchip/wbz451-curiosity-1.json b/dtmi/com/microchip/wbz451_curiosity-1.json similarity index 80% rename from dtmi/com/microchip/wbz451-curiosity-1.json rename to dtmi/com/microchip/wbz451_curiosity-1.json index 74a27dd44..482fd00c4 100644 --- a/dtmi/com/microchip/wbz451-curiosity-1.json +++ b/dtmi/com/microchip/wbz451_curiosity-1.json @@ -9,13 +9,13 @@ "Temperature" ], "description": { - "en": "Temperature in degrees Celsius from the on-board analog temperature sensor" + "en": "Temperature value of the on-board analog sensor in degrees Celsius" }, "displayName": { "en": "Temperature" }, "name": "temperature", - "schema": "integer", + "schema": "double", "unit": "degreeCelsius" }, { @@ -62,15 +62,15 @@ "Initialized" ], "description": { - "en": "The BLUE PWM input to the RGB LED" + "en": "RBG LED: BLUE PWM Duty Cycle" }, "displayName": { - "en": "RGB LED (BLUE PWM)" + "en": "RGB LED (BLUE PWM Duty Cycle)" }, "name": "rgb_led_blue", - "schema": "dtmi:com:Microchip:Microchip:WBZ451_Curiosity:LedState;1", + "schema": "dtmi:com:Microchip:WBZ451_Curiosity:dutyCycle;1", "writable": true, - "initialValue": 2 + "initialValue": 0 }, { "@type": [ @@ -78,15 +78,15 @@ "Initialized" ], "description": { - "en": "The GREEN PWM input to the RGB LED" + "en": "RGB LED: GREEN PWM Duty Cycle" }, "displayName": { - "en": "RGB LED (GREEN PWM)" + "en": "RGB LED (GREEN PWM Duty Cycle)" }, "name": "rgb_led_green", - "schema": "dtmi:com:Microchip:Microchip:WBZ451_Curiosity:LedState;1", + "schema": "dtmi:com:Microchip:WBZ451_Curiosity:dutyCycle;1", "writable": true, - "initialValue": 2 + "initialValue": 0 }, { "@type": [ @@ -94,15 +94,15 @@ "Initialized" ], "description": { - "en": "The RED PWM input to the RGB LED" + "en": "RGB LED: RED PWM Duty Cycle" }, "displayName": { - "en": "RGB LED (RED PWM)" + "en": "RGB LED (RED PWM Duty Cycle)" }, "name": "rgb_led_red", - "schema": "dtmi:com:Microchip:Microchip:WBZ451_Curiosity:LedState;1", + "schema": "dtmi:com:Microchip:WBZ451_Curiosity:dutyCycle;1", "writable": true, - "initialValue": 2 + "initialValue": 0 }, { "@type": [ @@ -116,7 +116,7 @@ "en": "User LED" }, "name": "led_user", - "schema": "dtmi:com:Microchip:Microchip:WBZ451_Curiosity:LedState;1", + "schema": "dtmi:com:Microchip:WBZ451_Curiosity:LedState;1", "writable": true, "initialValue": 3 }, @@ -255,11 +255,11 @@ }, "schemas": [ { - "@id": "dtmi:com:Microchip:Microchip:WBZ451_Curiosity:LedState;1", + "@id": "dtmi:com:Microchip:WBZ451_Curiosity:LedState;1", "@type": "Enum", "enumValues": [ { - "@id": "dtmi:com:Microchip:Microchip:WBZ451_Curiosity:LedState:On;1", + "@id": "dtmi:com:Microchip:WBZ451_Curiosity:LedState:On;1", "displayName": { "en": "On" }, @@ -267,7 +267,7 @@ "name": "On" }, { - "@id": "dtmi:com:Microchip:Microchip:WBZ451_Curiosity:LedState:Off;1", + "@id": "dtmi:com:Microchip:WBZ451_Curiosity:LedState:Off;1", "displayName": { "en": "Off" }, @@ -275,7 +275,7 @@ "name": "Off" }, { - "@id": "dtmi:com:Microchip:Microchip:WBZ451_Curiosity:LedState:Blink;1", + "@id": "dtmi:com:Microchip:WBZ451_Curiosity:LedState:Blink;1", "displayName": { "en": "Blinking" }, @@ -284,6 +284,29 @@ } ], "valueSchema": "integer" + }, + { + "@id": "dtmi:com:Microchip:WBZ451_Curiosity:dutyCycle;1", + "@type": "Enum", + "enumValues": [ + { + "@id": "dtmi:com:Microchip:WBZ451_Curiosity:dutyCycle:zero;1", + "displayName": { + "en": " 0% Duty Cycle" + }, + "enumValue": 0, + "name": "duty_000" + }, + { + "@id": "dtmi:com:Microchip:WBZ451_Curiosity:dutyCycle:one_hundred;1", + "displayName": { + "en": "100% Duty Cycle" + }, + "enumValue": 100, + "name": "duty_100" + } + ], + "valueSchema": "integer" } ], "@context": [ From d82801e6da2ee4d2e590f65902ca6a6f3cbfb903 Mon Sep 17 00:00:00 2001 From: Randy Wu - C14166 Date: Mon, 24 Apr 2023 13:53:16 -0700 Subject: [PATCH 21/30] Create pic18F57q84_cnano-1.json --- dtmi/com/microchip/pic18F57q84_cnano-1.json | 245 ++++++++++++++++++++ 1 file changed, 245 insertions(+) create mode 100644 dtmi/com/microchip/pic18F57q84_cnano-1.json diff --git a/dtmi/com/microchip/pic18F57q84_cnano-1.json b/dtmi/com/microchip/pic18F57q84_cnano-1.json new file mode 100644 index 000000000..8f3071fd9 --- /dev/null +++ b/dtmi/com/microchip/pic18F57q84_cnano-1.json @@ -0,0 +1,245 @@ +{ + "@id": "dtmi:com:Microchip:PIC18F57Q84_CNANO;1", + "@type": "Interface", + "contents": [ + { + "@type": [ + "Telemetry", + "NumberValue", + "Temperature" + ], + "description": { + "en": "Temperature value of the on-board analog sensor in degrees Celsius" + }, + "displayName": { + "en": "Temperature" + }, + "name": "temperature", + "schema": "double", + "unit": "degreeCelsius" + }, + { + "@type": "Telemetry", + "description": { + "en": "Event triggered when the SW0 button is pressed" + }, + "displayName": { + "en": "SW0 Button Press" + }, + "name": "button_event", + "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 the User LED" + }, + "displayName": { + "en": "User LED" + }, + "name": "led_user", + "schema": "dtmi:com:Microchip:PIC18F57Q84_CNANO:LedState;1", + "writable": true, + "initialValue": 3 + }, + { + "@type": [ + "Property", + "NumberValue", + "TimeSpan" + ], + "description": { + "en": "Sets interval to send telemetry in seconds" + }, + "displayName": { + "en": "Telemetry Interval" + }, + "name": "telemetryInterval", + "schema": "integer", + "unit": "second", + "writable": true + }, + { + "@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": "echoMsg", + "request": { + "@type": "CommandPayload", + "description": { + "en": "Message to echo" + }, + "displayName": { + "en": "Message" + }, + "name": "payload", + "schema": { + "@type": "Object", + "fields": [ + { + "displayName": { + "en": "Message to echo" + }, + "name": "echoMsgString", + "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": "echoMsgString", + "schema": "string" + } + ] + } + } + } + ], + "description": { + "en": "PIC18F57Q84 Curiosity Nano Board" + }, + "displayName": { + "en": "PIC18F57Q84 Curiosity Nano Board" + }, + "schemas": [ + { + "@id": "dtmi:com:Microchip:PIC18F57Q84_CNANO:LedState;1", + "@type": "Enum", + "enumValues": [ + { + "@id": "dtmi:com:Microchip:PIC18F57Q84_CNANO:LedState:On;1", + "displayName": { + "en": "On" + }, + "enumValue": 1, + "name": "On" + }, + { + "@id": "dtmi:com:Microchip:PIC18F57Q84_CNANO:LedState:Off;1", + "displayName": { + "en": "Off" + }, + "enumValue": 2, + "name": "Off" + }, + { + "@id": "dtmi:com:Microchip:PIC18F57Q84_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 From 54443fb8a7d075bce2b67641f7b98e2a5fd950d0 Mon Sep 17 00:00:00 2001 From: Randy Wu - C14166 Date: Tue, 25 Apr 2023 05:16:24 -0700 Subject: [PATCH 22/30] Update pic18F57q84_cnano-1.json --- dtmi/com/microchip/pic18F57q84_cnano-1.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dtmi/com/microchip/pic18F57q84_cnano-1.json b/dtmi/com/microchip/pic18F57q84_cnano-1.json index 8f3071fd9..34b651423 100644 --- a/dtmi/com/microchip/pic18F57q84_cnano-1.json +++ b/dtmi/com/microchip/pic18F57q84_cnano-1.json @@ -9,7 +9,7 @@ "Temperature" ], "description": { - "en": "Temperature value of the on-board analog sensor in degrees Celsius" + "en": "Temperature value in degrees Celsius" }, "displayName": { "en": "Temperature" @@ -21,10 +21,10 @@ { "@type": "Telemetry", "description": { - "en": "Event triggered when the SW0 button is pressed" + "en": "Event triggered when a button is pressed" }, "displayName": { - "en": "SW0 Button Press" + "en": "Button Press" }, "name": "button_event", "schema": { From 23c313848fc56d77aa9655b618e684cdf1e764be Mon Sep 17 00:00:00 2001 From: Randy Wu - C14166 Date: Tue, 25 Apr 2023 12:37:32 -0700 Subject: [PATCH 23/30] Delete pic18F57q84_cnano-1.json --- dtmi/com/microchip/pic18F57q84_cnano-1.json | 245 -------------------- 1 file changed, 245 deletions(-) delete mode 100644 dtmi/com/microchip/pic18F57q84_cnano-1.json diff --git a/dtmi/com/microchip/pic18F57q84_cnano-1.json b/dtmi/com/microchip/pic18F57q84_cnano-1.json deleted file mode 100644 index 34b651423..000000000 --- a/dtmi/com/microchip/pic18F57q84_cnano-1.json +++ /dev/null @@ -1,245 +0,0 @@ -{ - "@id": "dtmi:com:Microchip:PIC18F57Q84_CNANO;1", - "@type": "Interface", - "contents": [ - { - "@type": [ - "Telemetry", - "NumberValue", - "Temperature" - ], - "description": { - "en": "Temperature value in degrees Celsius" - }, - "displayName": { - "en": "Temperature" - }, - "name": "temperature", - "schema": "double", - "unit": "degreeCelsius" - }, - { - "@type": "Telemetry", - "description": { - "en": "Event triggered when a button is pressed" - }, - "displayName": { - "en": "Button Press" - }, - "name": "button_event", - "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 the User LED" - }, - "displayName": { - "en": "User LED" - }, - "name": "led_user", - "schema": "dtmi:com:Microchip:PIC18F57Q84_CNANO:LedState;1", - "writable": true, - "initialValue": 3 - }, - { - "@type": [ - "Property", - "NumberValue", - "TimeSpan" - ], - "description": { - "en": "Sets interval to send telemetry in seconds" - }, - "displayName": { - "en": "Telemetry Interval" - }, - "name": "telemetryInterval", - "schema": "integer", - "unit": "second", - "writable": true - }, - { - "@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": "echoMsg", - "request": { - "@type": "CommandPayload", - "description": { - "en": "Message to echo" - }, - "displayName": { - "en": "Message" - }, - "name": "payload", - "schema": { - "@type": "Object", - "fields": [ - { - "displayName": { - "en": "Message to echo" - }, - "name": "echoMsgString", - "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": "echoMsgString", - "schema": "string" - } - ] - } - } - } - ], - "description": { - "en": "PIC18F57Q84 Curiosity Nano Board" - }, - "displayName": { - "en": "PIC18F57Q84 Curiosity Nano Board" - }, - "schemas": [ - { - "@id": "dtmi:com:Microchip:PIC18F57Q84_CNANO:LedState;1", - "@type": "Enum", - "enumValues": [ - { - "@id": "dtmi:com:Microchip:PIC18F57Q84_CNANO:LedState:On;1", - "displayName": { - "en": "On" - }, - "enumValue": 1, - "name": "On" - }, - { - "@id": "dtmi:com:Microchip:PIC18F57Q84_CNANO:LedState:Off;1", - "displayName": { - "en": "Off" - }, - "enumValue": 2, - "name": "Off" - }, - { - "@id": "dtmi:com:Microchip:PIC18F57Q84_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 From 594f6fc1a48d2e7d0073d93585db2e371e00a115 Mon Sep 17 00:00:00 2001 From: Randy Wu - C14166 Date: Tue, 25 Apr 2023 12:38:08 -0700 Subject: [PATCH 24/30] Create pic18f57q84_cnano-1.json --- dtmi/com/microchip/pic18f57q84_cnano-1.json | 245 ++++++++++++++++++++ 1 file changed, 245 insertions(+) create mode 100644 dtmi/com/microchip/pic18f57q84_cnano-1.json diff --git a/dtmi/com/microchip/pic18f57q84_cnano-1.json b/dtmi/com/microchip/pic18f57q84_cnano-1.json new file mode 100644 index 000000000..34b651423 --- /dev/null +++ b/dtmi/com/microchip/pic18f57q84_cnano-1.json @@ -0,0 +1,245 @@ +{ + "@id": "dtmi:com:Microchip:PIC18F57Q84_CNANO;1", + "@type": "Interface", + "contents": [ + { + "@type": [ + "Telemetry", + "NumberValue", + "Temperature" + ], + "description": { + "en": "Temperature value in degrees Celsius" + }, + "displayName": { + "en": "Temperature" + }, + "name": "temperature", + "schema": "double", + "unit": "degreeCelsius" + }, + { + "@type": "Telemetry", + "description": { + "en": "Event triggered when a button is pressed" + }, + "displayName": { + "en": "Button Press" + }, + "name": "button_event", + "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 the User LED" + }, + "displayName": { + "en": "User LED" + }, + "name": "led_user", + "schema": "dtmi:com:Microchip:PIC18F57Q84_CNANO:LedState;1", + "writable": true, + "initialValue": 3 + }, + { + "@type": [ + "Property", + "NumberValue", + "TimeSpan" + ], + "description": { + "en": "Sets interval to send telemetry in seconds" + }, + "displayName": { + "en": "Telemetry Interval" + }, + "name": "telemetryInterval", + "schema": "integer", + "unit": "second", + "writable": true + }, + { + "@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": "echoMsg", + "request": { + "@type": "CommandPayload", + "description": { + "en": "Message to echo" + }, + "displayName": { + "en": "Message" + }, + "name": "payload", + "schema": { + "@type": "Object", + "fields": [ + { + "displayName": { + "en": "Message to echo" + }, + "name": "echoMsgString", + "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": "echoMsgString", + "schema": "string" + } + ] + } + } + } + ], + "description": { + "en": "PIC18F57Q84 Curiosity Nano Board" + }, + "displayName": { + "en": "PIC18F57Q84 Curiosity Nano Board" + }, + "schemas": [ + { + "@id": "dtmi:com:Microchip:PIC18F57Q84_CNANO:LedState;1", + "@type": "Enum", + "enumValues": [ + { + "@id": "dtmi:com:Microchip:PIC18F57Q84_CNANO:LedState:On;1", + "displayName": { + "en": "On" + }, + "enumValue": 1, + "name": "On" + }, + { + "@id": "dtmi:com:Microchip:PIC18F57Q84_CNANO:LedState:Off;1", + "displayName": { + "en": "Off" + }, + "enumValue": 2, + "name": "Off" + }, + { + "@id": "dtmi:com:Microchip:PIC18F57Q84_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 From 78823c13067cf260f6ef25f8ab95e4e4199d3e75 Mon Sep 17 00:00:00 2001 From: Randy Wu - C14166 Date: Sat, 29 Apr 2023 18:33:59 -0700 Subject: [PATCH 25/30] Create wbz451_curiosity-2.json --- dtmi/com/microchip/wbz451_curiosity-2.json | 387 +++++++++++++++++++++ 1 file changed, 387 insertions(+) create mode 100644 dtmi/com/microchip/wbz451_curiosity-2.json diff --git a/dtmi/com/microchip/wbz451_curiosity-2.json b/dtmi/com/microchip/wbz451_curiosity-2.json new file mode 100644 index 000000000..3fb6f1999 --- /dev/null +++ b/dtmi/com/microchip/wbz451_curiosity-2.json @@ -0,0 +1,387 @@ +{ + "@id": "dtmi:com:Microchip:WBZ451_Curiosity;2", + "@type": "Interface", + "contents": [ + { + "@type": [ + "Telemetry", + "NumberValue", + "Temperature" + ], + "description": { + "en": "Temperature value of the on-board analog sensor in degrees Celsius" + }, + "displayName": { + "en": "Temperature" + }, + "name": "temperature", + "schema": "double", + "unit": "degreeCelsius" + }, + { + "@type": "Telemetry", + "description": { + "en": "Event triggered when button is pressed" + }, + "displayName": { + "en": "Button Press" + }, + "name": "button_event", + "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", + "description": { + "en": "Firmware version of the ATWINC15x0 Wi-Fi controller module in ... format" + }, + "displayName": { + "en": "ATWINC15x0 FW Version" + }, + "name": "firmwareVersion", + "schema": "string", + "writable": false + }, + { + "@type": [ + "Property", + "Initialized" + ], + "description": { + "en": "RBG LED: BLUE PWM Duty Cycle" + }, + "displayName": { + "en": "RGB LED (BLUE PWM Duty Cycle)" + }, + "name": "rgb_led_blue", + "schema": "dtmi:com:Microchip:WBZ451_Curiosity:dutyCycle;1", + "writable": true, + "initialValue": 0 + }, + { + "@type": [ + "Property", + "Initialized" + ], + "description": { + "en": "RGB LED: GREEN PWM Duty Cycle" + }, + "displayName": { + "en": "RGB LED (GREEN PWM Duty Cycle)" + }, + "name": "rgb_led_green", + "schema": "dtmi:com:Microchip:WBZ451_Curiosity:dutyCycle;1", + "writable": true, + "initialValue": 0 + }, + { + "@type": [ + "Property", + "Initialized" + ], + "description": { + "en": "RGB LED: RED PWM Duty Cycle" + }, + "displayName": { + "en": "RGB LED (RED PWM Duty Cycle)" + }, + "name": "rgb_led_red", + "schema": "dtmi:com:Microchip:WBZ451_Curiosity:dutyCycle;1", + "writable": true, + "initialValue": 0 + }, + { + "@type": [ + "Property", + "Initialized" + ], + "description": { + "en": "The current state of the User LED" + }, + "displayName": { + "en": "User LED" + }, + "name": "led_user", + "schema": "dtmi:com:Microchip:WBZ451_Curiosity:LedState;1", + "writable": true, + "initialValue": 3 + }, + { + "@type": [ + "Property", + "NumberValue", + "TimeSpan" + ], + "description": { + "en": "Sets interval to send telemetry in seconds" + }, + "displayName": { + "en": "Telemetry Interval" + }, + "name": "telemetryInterval", + "schema": "integer", + "unit": "second", + "writable": true + }, + { + "@type": "Property", + "description": { + "en": "Set Debug Level" + }, + "displayName": { + "en": "Debug Level" + }, + "name": "debugLevel", + "schema": { + "@type": "Enum", + "valueSchema": "integer", + "enumValues": [ + { + "name": "SEVERITY_NONE", + "enumValue": 0, + "displayName": { + "en": "SEVERITY_NONE" + } + }, + { + "name": "SEVERITY_ERROR", + "enumValue": 1, + "displayName": { + "en": "SEVERITY_ERROR" + } + }, + { + "name": "SEVERITY_WARN", + "enumValue": 2, + "displayName": { + "en": "SEVERITY_WARN" + } + }, + { + "name": "SEVERITY_DEBUG", + "enumValue": 3, + "displayName": { + "en": "SEVERITY_DEBUG" + } + }, + { + "name": "SEVERITY_INFO", + "enumValue": 4, + "displayName": { + "en": "SEVERITY_INFO" + } + }, + { + "name": "SEVERITY_TRACE", + "enumValue": 5, + "displayName": { + "en": "SEVERITY_TRACE" + } + } + ] + }, + "writable": true + }, + { + "@type": "Command", + "description": { + "en": "Reboot device 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 from the cloud" + }, + "displayName": { + "en": "Echo Message" + }, + "name": "echoMsg", + "request": { + "@type": "CommandPayload", + "description": { + "en": "Text message to echo" + }, + "displayName": { + "en": "Message" + }, + "name": "payload", + "schema": { + "@type": "Object", + "fields": [ + { + "displayName": { + "en": "String to echo" + }, + "name": "echoMsgString", + "schema": "string" + } + ] + } + }, + "response": { + "@type": "CommandPayload", + "displayName": { + "en": "Response for command" + }, + "name": "response", + "schema": { + "@type": "Object", + "fields": [ + { + "displayName": { + "en": "Message from echo message handler" + }, + "name": "echoMsgString", + "schema": "string" + } + ] + } + } + } + ], + "description": { + "en": "WBZ451 Curiosity Board" + }, + "displayName": { + "en": "WBZ451 Curiosity Board" + }, + "schemas": [ + { + "@id": "dtmi:com:Microchip:WBZ451_Curiosity:LedState;1", + "@type": "Enum", + "enumValues": [ + { + "@id": "dtmi:com:Microchip:WBZ451_Curiosity:LedState:On;1", + "displayName": { + "en": "On" + }, + "enumValue": 1, + "name": "On" + }, + { + "@id": "dtmi:com:Microchip:WBZ451_Curiosity:LedState:Off;1", + "displayName": { + "en": "Off" + }, + "enumValue": 2, + "name": "Off" + }, + { + "@id": "dtmi:com:Microchip:WBZ451_Curiosity:LedState:Blink;1", + "displayName": { + "en": "Blinking" + }, + "enumValue": 3, + "name": "Blink" + } + ], + "valueSchema": "integer" + }, + { + "@id": "dtmi:com:Microchip:WBZ451_Curiosity:dutyCycle;1", + "@type": "Enum", + "enumValues": [ + { + "@id": "dtmi:com:Microchip:WBZ451_Curiosity:dutyCycle:zero;1", + "displayName": { + "en": " 0% Duty Cycle" + }, + "enumValue": 0, + "name": "duty_000" + }, + { + "@id": "dtmi:com:Microchip:WBZ451_Curiosity:dutyCycle:one_hundred;1", + "displayName": { + "en": "100% Duty Cycle" + }, + "enumValue": 100, + "name": "duty_100" + } + ], + "valueSchema": "integer" + } + ], + "@context": [ + "dtmi:iotcentral:context;2", + "dtmi:dtdl:context;2" + ] +} \ No newline at end of file From e022fa171dbf96053b704408eae264de3b411338 Mon Sep 17 00:00:00 2001 From: Randy Wu - C14166 Date: Tue, 2 May 2023 13:03:16 -0700 Subject: [PATCH 26/30] Update wbz451_curiosity-2.json --- dtmi/com/microchip/wbz451_curiosity-2.json | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/dtmi/com/microchip/wbz451_curiosity-2.json b/dtmi/com/microchip/wbz451_curiosity-2.json index 3fb6f1999..f143dedbe 100644 --- a/dtmi/com/microchip/wbz451_curiosity-2.json +++ b/dtmi/com/microchip/wbz451_curiosity-2.json @@ -26,7 +26,7 @@ "displayName": { "en": "Button Press" }, - "name": "button_event", + "name": "buttonPress", "schema": { "@type": "Object", "fields": [ @@ -41,6 +41,17 @@ ] } }, + { + "@type": "Telemetry", + "description": { + "en": "Message string (ASCII) sent as a telemetry event" + }, + "displayName": { + "en": "Message Event" + }, + "name": "messageEvent", + "schema": "string" + }, { "@type": [ "Property", @@ -64,7 +75,7 @@ "displayName": { "en": "ATWINC15x0 FW Version" }, - "name": "firmwareVersion", + "name": "WINC_FW_version", "schema": "string", "writable": false }, From c36cf928736c29f43da0b2e9c4348a07709650e8 Mon Sep 17 00:00:00 2001 From: Randy Wu - C14166 Date: Tue, 1 Aug 2023 13:56:53 -0700 Subject: [PATCH 27/30] 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 From 442534958dad6d76e1f79ef49269833928bf2ed7 Mon Sep 17 00:00:00 2001 From: Randy Wu - C14166 Date: Fri, 5 Jan 2024 13:43:06 -0800 Subject: [PATCH 28/30] Create sam_iot_wx_v2-1.json --- dtmi/com/microchip/sam_iot_wx_v2-1.json | 581 ++++++++++++++++++++++++ 1 file changed, 581 insertions(+) create mode 100644 dtmi/com/microchip/sam_iot_wx_v2-1.json diff --git a/dtmi/com/microchip/sam_iot_wx_v2-1.json b/dtmi/com/microchip/sam_iot_wx_v2-1.json new file mode 100644 index 000000000..cba87ef73 --- /dev/null +++ b/dtmi/com/microchip/sam_iot_wx_v2-1.json @@ -0,0 +1,581 @@ +{ + "@id": "dtmi:com:Microchip:SAM_IoT_Wx_v2;1", + "@type": "Interface", + "contents": [ + { + "@type": [ + "Telemetry", + "Temperature" + ], + "description": { + "en": "Temperature in degrees Celsius from Microchip MCP9808 high-accuracy temperature sensor" + }, + "displayName": { + "en": "Temperature" + }, + "name": "temperature", + "schema": "integer", + "unit": "degreeCelsius" + }, + { + "@type": [ + "Telemetry", + "Illuminance" + ], + "description": { + "en": "Brightness in illuminance from Vishay TEMT6000X01 ambient light sensor" + }, + "displayName": { + "en": "Brightness from light sensor" + }, + "name": "light", + "schema": "integer", + "unit": "lux" + }, + { + "@type": "Telemetry", + "description": { + "en": "Event triggered when button is pressed" + }, + "displayName": { + "en": "SW0/SW1 button push event" + }, + "name": "button_event", + "schema": { + "@type": "Object", + "fields": [ + { + "name": "button_name", + "schema": "string" + }, + { + "name": "press_count", + "schema": "integer" + } + ] + } + }, + { + "@type": "Telemetry", + "description": { + "en": "Custom Telemetry in integer from Application MCU" + }, + "displayName": { + "en": "App MCU Telemetry 1 (int)" + }, + "name": "telemetry_Int_1", + "schema": "integer" + }, + { + "@type": "Telemetry", + "description": { + "en": "Custom Telemetry in integer from Application MCU" + }, + "displayName": { + "en": "App MCU Telemetry 2 (int)" + }, + "name": "telemetry_Int_2", + "schema": "integer" + }, + { + "@type": "Telemetry", + "description": { + "en": "Custom Telemetry in integer from Application MCU" + }, + "displayName": { + "en": "App MCU Telemetry 3 (int)" + }, + "name": "telemetry_Int_3", + "schema": "integer" + }, + { + "@type": "Telemetry", + "description": { + "en": "Custom Telemetry in integer from Application MCU" + }, + "displayName": { + "en": "App MCU Telemetry 4 (int)" + }, + "name": "telemetry_Int_4", + "schema": "integer" + }, + { + "@type": "Telemetry", + "description": { + "en": "Custom Telemetry in double from Application MCU" + }, + "displayName": { + "en": "App MCU Telemetry 1 (double)" + }, + "name": "telemetry_Dbl_1", + "schema": "double" + }, + { + "@type": "Telemetry", + "description": { + "en": "Custom Telemetry in double from Application MCU" + }, + "displayName": { + "en": "App MCU Telemetry 2 (double)" + }, + "name": "telemetry_Dbl_2", + "schema": "double" + }, + { + "@type": "Telemetry", + "description": { + "en": "Custom Telemetry in float from Application MCU" + }, + "displayName": { + "en": "App MCU Telemetry 1 (float)" + }, + "name": "telemetry_Flt_1", + "schema": "float" + }, + { + "@type": "Telemetry", + "description": { + "en": "Custom Telemetry in float from Application MCU" + }, + "displayName": { + "en": "App MCU Telemetry 2 (float)" + }, + "name": "telemetry_Flt_2", + "schema": "float" + }, + { + "@type": "Telemetry", + "description": { + "en": "Custom Telemetry in long from Application MCU" + }, + "displayName": { + "en": "App MCU Telemetry (long)" + }, + "name": "telemetry_Lng", + "schema": "long" + }, + { + "@type": "Telemetry", + "description": { + "en": "Custom Telemetry in boolean from Application MCU" + }, + "displayName": { + "en": "App MCU Telemetry (boolean)" + }, + "name": "telemetry_Bool", + "schema": "boolean" + }, + { + "@type": "Telemetry", + "description": { + "en": "Custom String Telemetry from Application MCU" + }, + "displayName": { + "en": "App MCU Telemetry 1 (String)" + }, + "name": "telemetry_Str_1", + "schema": "string" + }, + { + "@type": "Telemetry", + "description": { + "en": "Custom String Telemetry from Application MCU" + }, + "displayName": { + "en": "App MCU Telemetry 2 (String)" + }, + "name": "telemetry_Str_2", + "schema": "string" + }, + { + "@type": "Telemetry", + "description": { + "en": "Custom String Telemetry from Application MCU" + }, + "displayName": { + "en": "App MCU Telemetry 3 (String)" + }, + "name": "telemetry_Str_3", + "schema": "string" + }, + { + "@type": "Telemetry", + "description": { + "en": "Custom String Telemetry from Application MCU" + }, + "displayName": { + "en": "App MCU Telemetry 4 (String)" + }, + "name": "telemetry_Str_4", + "schema": "string" + }, + { + "@type": "Property", + "description": { + "en": "Bit Flag to disable telemetry from built-in sensors. Bit 0 = Light / Bit 1 = Temperature / Bit 2 = Button" + }, + "displayName": { + "en": "Disable Telemetry" + }, + "name": "disableTelemetry", + "schema": "integer", + "writable": true + }, + { + "@type": "Property", + "description": { + "en": "Set Debug Level" + }, + "displayName": { + "en": "Debug Level" + }, + "name": "debugLevel", + "schema": { + "@type": "Enum", + "valueSchema": "integer", + "enumValues": [ + { + "name": "SEVERITY_NONE", + "enumValue": 0, + "displayName": { + "en": "SEVERITY_NONE" + } + }, + { + "name": "SEVERITY_ERROR", + "enumValue": 1, + "displayName": { + "en": "SEVERITY_ERROR" + } + }, + { + "name": "SEVERITY_WARN", + "enumValue": 2, + "displayName": { + "en": "SEVERITY_WARN" + } + }, + { + "name": "SEVERITY_DEBUG", + "enumValue": 3, + "displayName": { + "en": "SEVERITY_DEBUG" + } + }, + { + "name": "SEVERITY_INFO", + "enumValue": 4, + "displayName": { + "en": "SEVERITY_INFO" + } + }, + { + "name": "SEVERITY_TRACE", + "enumValue": 5, + "displayName": { + "en": "SEVERITY_TRACE" + } + } + ] + }, + "writable": true + }, + { + "@type": "Property", + "description": { + "en": "IP Address of SAM-IoT" + }, + "displayName": { + "en": "IP Address" + }, + "name": "ipAddress", + "schema": "string", + "writable": false + }, + { + "@type": "Property", + "description": { + "en": "Firmware version of the SAM-IoT's ATWINC1510 Wi-Fi controller module in ... format" + }, + "displayName": { + "en": "ATWINC1510 Firmware Version" + }, + "name": "firmwareVersion", + "schema": "string", + "writable": false + }, + { + "@type": "Property", + "description": { + "en": "Application MCU Property in integer" + }, + "displayName": { + "en": "App MCU Property 1" + }, + "name": "property_1", + "schema": "integer", + "writable": false + }, + { + "@type": "Property", + "description": { + "en": "Application MCU Property in integer" + }, + "displayName": { + "en": "App MCU Property 2" + }, + "name": "property_2", + "schema": "integer", + "writable": false + }, + { + "@type": "Property", + "description": { + "en": "Application MCU Property in integer" + }, + "displayName": { + "en": "App MCU Property 3" + }, + "name": "property_3", + "schema": "integer", + "writable": true + }, + { + "@type": "Property", + "description": { + "en": "Application MCU Property in integer" + }, + "displayName": { + "en": "App MCU Property 4" + }, + "name": "property_4", + "schema": "integer", + "writable": true + }, + { + "@type": "Property", + "description": { + "en": "Returns current state of the Blue LED. If True, the Blue LED is on and the WiFi AP is connected." + }, + "displayName": { + "en": "Blue LED state" + }, + "name": "led_b", + "schema": "dtmi:com:Microchip:SAM_IoT_Wx_v2:LedState;1", + "writable": false + }, + { + "@type": "Property", + "description": { + "en": "The current state of the Green LED. When it is on, SAM IoT is connected to Cloud." + }, + "displayName": { + "en": "Green LED state" + }, + "name": "led_g", + "schema": "dtmi:com:Microchip:SAM_IoT_Wx_v2:LedState;1", + "writable": false + }, + { + "@type": "Property", + "description": { + "en": "The current state of the Red LED. When it is on or blinking, SAM IoT experienced error(s)." + }, + "displayName": { + "en": "Red LED state" + }, + "name": "led_r", + "schema": "dtmi:com:Microchip:SAM_IoT_Wx_v2:LedState;1", + "writable": false + }, + { + "@type": "Property", + "description": { + "en": "Set the state of the Yellow LED. On, Off, or Blink." + }, + "displayName": { + "en": "Yellow LED state" + }, + "name": "led_y", + "schema": "dtmi:com:Microchip:SAM_IoT_Wx_v2:LedState;1", + "writable": true + }, + { + "@type": [ + "Property", + "TimeSpan" + ], + "description": { + "en": "Sets interval to send telemetry in seconds" + }, + "displayName": { + "en": "Set Telemetry Interval" + }, + "name": "telemetryInterval", + "schema": "integer", + "unit": "second", + "writable": true + }, + { + "@type": "Command", + "description": { + "en": "Reboot SAM IoT 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 rebooting SAM-IoT" + }, + "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": "Send a text message to SAM-IoT" + }, + "displayName": { + "en": "Send Message" + }, + "name": "sendMsg", + "request": { + "@type": "CommandPayload", + "description": { + "en": "Text message to send to SAM-IoT" + }, + "displayName": { + "en": "Message" + }, + "name": "payload", + "schema": { + "@type": "Object", + "fields": [ + { + "displayName": { + "en": "String to send" + }, + "name": "sendMsgString", + "schema": "string" + } + ] + } + }, + "response": { + "@type": "CommandPayload", + "displayName": { + "en": "Response for command" + }, + "name": "response", + "schema": { + "@type": "Object", + "fields": [ + { + "displayName": { + "en": "Message from send message handler." + }, + "name": "status", + "schema": "string" + } + ] + } + } + } + ], + "description": { + "en": "Reports device temperature, light intensity, and the current state of the 2 buttons & 4 LEDs. Provides ability to turn on/off any of the 4 LEDs." + }, + "displayName": { + "en": "SAM-IoT WM" + }, + "schemas": [ + { + "@id": "dtmi:com:Microchip:SAM_IoT_Wx_v2:LedState;1", + "@type": "Enum", + "enumValues": [ + { + "comment": "LED is in the On state.", + "description": { + "en": "LED is turned on." + }, + "displayName": { + "en": "LED On" + }, + "enumValue": 1, + "name": "On" + }, + { + "comment": "LED is in the Off state.", + "description": { + "en": "LED is turned Off." + }, + "displayName": { + "en": "LED Off" + }, + "enumValue": 2, + "name": "Off" + }, + { + "comment": "LED is blinking.", + "description": { + "en": "LED is blinking." + }, + "displayName": { + "en": "LED Blinking" + }, + "enumValue": 3, + "name": "Blink" + } + ], + "valueSchema": "integer" + } + ], + "@context": [ + "dtmi:iotcentral:context;2", + "dtmi:dtdl:context;2" + ] +} \ No newline at end of file From 20ca9bac65cea1c4a1fcfbee6f907c78a28a42c9 Mon Sep 17 00:00:00 2001 From: Randy Wu - C14166 Date: Mon, 15 Jan 2024 07:40:51 -0800 Subject: [PATCH 29/30] Create sam_iot_wx_v2-2.json --- dtmi/com/microchip/sam_iot_wx_v2-2.json | 614 ++++++++++++++++++++++++ 1 file changed, 614 insertions(+) create mode 100644 dtmi/com/microchip/sam_iot_wx_v2-2.json diff --git a/dtmi/com/microchip/sam_iot_wx_v2-2.json b/dtmi/com/microchip/sam_iot_wx_v2-2.json new file mode 100644 index 000000000..fb7ae42de --- /dev/null +++ b/dtmi/com/microchip/sam_iot_wx_v2-2.json @@ -0,0 +1,614 @@ +{ + "@id": "dtmi:com:Microchip:SAM_IoT_Wx_v2;2", + "@type": "Interface", + "contents": [ + { + "@type": [ + "Telemetry", + "Temperature" + ], + "description": { + "en": "Temperature in degrees Celsius from Microchip MCP9808 high-accuracy temperature sensor" + }, + "displayName": { + "en": "Temperature" + }, + "name": "temperature", + "schema": "double", + "unit": "degreeCelsius" + }, + { + "@type": [ + "Telemetry", + "Illuminance" + ], + "description": { + "en": "Brightness in illuminance from Vishay TEMT6000X01 ambient light sensor" + }, + "displayName": { + "en": "Brightness from light sensor" + }, + "name": "light", + "schema": "integer", + "unit": "lux" + }, + { + "@type": "Telemetry", + "description": { + "en": "Event triggered when button is pressed" + }, + "displayName": { + "en": "SW0/SW1 button push event" + }, + "name": "button_event", + "schema": { + "@type": "Object", + "fields": [ + { + "name": "button_name", + "schema": "string" + }, + { + "name": "press_count", + "schema": "integer" + } + ] + } + }, + { + "@type": "Telemetry", + "description": { + "en": "Air Quality Index per UBA (AQI-UBA)" + }, + "displayName": { + "en": "AQI-UBA" + }, + "name": "aqi-uba", + "schema": "integer" + }, + { + "@type": "Telemetry", + "description": { + "en": "Total Volatile Organic Compounds (TVOC)" + }, + "displayName": { + "en": "TVOC" + }, + "name": "tvoc", + "schema": "integer" + }, + { + "@type": "Telemetry", + "description": { + "en": "Equivalent CO2 (eCO2) concentration per ppm" + }, + "displayName": { + "en": "eCO2" + }, + "name": "eco2", + "schema": "integer" + }, + { + "@type": "Telemetry", + "description": { + "en": "Custom Telemetry in integer from Application MCU" + }, + "displayName": { + "en": "App MCU Telemetry 1 (int)" + }, + "name": "telemetry_Int_1", + "schema": "integer" + }, + { + "@type": "Telemetry", + "description": { + "en": "Custom Telemetry in integer from Application MCU" + }, + "displayName": { + "en": "App MCU Telemetry 2 (int)" + }, + "name": "telemetry_Int_2", + "schema": "integer" + }, + { + "@type": "Telemetry", + "description": { + "en": "Custom Telemetry in integer from Application MCU" + }, + "displayName": { + "en": "App MCU Telemetry 3 (int)" + }, + "name": "telemetry_Int_3", + "schema": "integer" + }, + { + "@type": "Telemetry", + "description": { + "en": "Custom Telemetry in integer from Application MCU" + }, + "displayName": { + "en": "App MCU Telemetry 4 (int)" + }, + "name": "telemetry_Int_4", + "schema": "integer" + }, + { + "@type": "Telemetry", + "description": { + "en": "Custom Telemetry in double from Application MCU" + }, + "displayName": { + "en": "App MCU Telemetry 1 (double)" + }, + "name": "telemetry_Dbl_1", + "schema": "double" + }, + { + "@type": "Telemetry", + "description": { + "en": "Custom Telemetry in double from Application MCU" + }, + "displayName": { + "en": "App MCU Telemetry 2 (double)" + }, + "name": "telemetry_Dbl_2", + "schema": "double" + }, + { + "@type": "Telemetry", + "description": { + "en": "Custom Telemetry in float from Application MCU" + }, + "displayName": { + "en": "App MCU Telemetry 1 (float)" + }, + "name": "telemetry_Flt_1", + "schema": "float" + }, + { + "@type": "Telemetry", + "description": { + "en": "Custom Telemetry in float from Application MCU" + }, + "displayName": { + "en": "App MCU Telemetry 2 (float)" + }, + "name": "telemetry_Flt_2", + "schema": "float" + }, + { + "@type": "Telemetry", + "description": { + "en": "Custom Telemetry in long from Application MCU" + }, + "displayName": { + "en": "App MCU Telemetry (long)" + }, + "name": "telemetry_Lng", + "schema": "long" + }, + { + "@type": "Telemetry", + "description": { + "en": "Custom Telemetry in boolean from Application MCU" + }, + "displayName": { + "en": "App MCU Telemetry (boolean)" + }, + "name": "telemetry_Bool", + "schema": "boolean" + }, + { + "@type": "Telemetry", + "description": { + "en": "Custom String Telemetry from Application MCU" + }, + "displayName": { + "en": "App MCU Telemetry 1 (String)" + }, + "name": "telemetry_Str_1", + "schema": "string" + }, + { + "@type": "Telemetry", + "description": { + "en": "Custom String Telemetry from Application MCU" + }, + "displayName": { + "en": "App MCU Telemetry 2 (String)" + }, + "name": "telemetry_Str_2", + "schema": "string" + }, + { + "@type": "Telemetry", + "description": { + "en": "Custom String Telemetry from Application MCU" + }, + "displayName": { + "en": "App MCU Telemetry 3 (String)" + }, + "name": "telemetry_Str_3", + "schema": "string" + }, + { + "@type": "Telemetry", + "description": { + "en": "Custom String Telemetry from Application MCU" + }, + "displayName": { + "en": "App MCU Telemetry 4 (String)" + }, + "name": "telemetry_Str_4", + "schema": "string" + }, + { + "@type": "Property", + "description": { + "en": "Bit Flag to disable telemetry from built-in sensors. Bit 0 = Light / Bit 1 = Temperature / Bit 2 = Button" + }, + "displayName": { + "en": "Disable Telemetry" + }, + "name": "disableTelemetry", + "schema": "integer", + "writable": true + }, + { + "@type": "Property", + "description": { + "en": "Set Debug Level" + }, + "displayName": { + "en": "Debug Level" + }, + "name": "debugLevel", + "schema": { + "@type": "Enum", + "valueSchema": "integer", + "enumValues": [ + { + "name": "SEVERITY_NONE", + "enumValue": 0, + "displayName": { + "en": "SEVERITY_NONE" + } + }, + { + "name": "SEVERITY_ERROR", + "enumValue": 1, + "displayName": { + "en": "SEVERITY_ERROR" + } + }, + { + "name": "SEVERITY_WARN", + "enumValue": 2, + "displayName": { + "en": "SEVERITY_WARN" + } + }, + { + "name": "SEVERITY_DEBUG", + "enumValue": 3, + "displayName": { + "en": "SEVERITY_DEBUG" + } + }, + { + "name": "SEVERITY_INFO", + "enumValue": 4, + "displayName": { + "en": "SEVERITY_INFO" + } + }, + { + "name": "SEVERITY_TRACE", + "enumValue": 5, + "displayName": { + "en": "SEVERITY_TRACE" + } + } + ] + }, + "writable": true + }, + { + "@type": "Property", + "description": { + "en": "IP Address of SAM-IoT Wx v2" + }, + "displayName": { + "en": "IP Address" + }, + "name": "ipAddress", + "schema": "string", + "writable": false + }, + { + "@type": "Property", + "description": { + "en": "Firmware version of the ATWINC1510 Wi-Fi controller module in ... format" + }, + "displayName": { + "en": "ATWINC1510 Firmware Version" + }, + "name": "firmwareVersion", + "schema": "string", + "writable": false + }, + { + "@type": "Property", + "description": { + "en": "Application MCU Property in integer" + }, + "displayName": { + "en": "App MCU Property 1" + }, + "name": "property_1", + "schema": "integer", + "writable": false + }, + { + "@type": "Property", + "description": { + "en": "Application MCU Property in integer" + }, + "displayName": { + "en": "App MCU Property 2" + }, + "name": "property_2", + "schema": "integer", + "writable": false + }, + { + "@type": "Property", + "description": { + "en": "Application MCU Property in integer" + }, + "displayName": { + "en": "App MCU Property 3" + }, + "name": "property_3", + "schema": "integer", + "writable": true + }, + { + "@type": "Property", + "description": { + "en": "Application MCU Property in integer" + }, + "displayName": { + "en": "App MCU Property 4" + }, + "name": "property_4", + "schema": "integer", + "writable": true + }, + { + "@type": "Property", + "description": { + "en": "Returns current state of the Blue LED. If True, the Blue LED is on and the WiFi AP is connected." + }, + "displayName": { + "en": "Blue LED state" + }, + "name": "led_b", + "schema": "dtmi:com:Microchip:SAM_IoT_Wx_v2:LedState;1", + "writable": false + }, + { + "@type": "Property", + "description": { + "en": "The current state of the Green LED. When it is on, SAM-IoT Wx v2 is connected to Cloud." + }, + "displayName": { + "en": "Green LED state" + }, + "name": "led_g", + "schema": "dtmi:com:Microchip:SAM_IoT_Wx_v2:LedState;1", + "writable": false + }, + { + "@type": "Property", + "description": { + "en": "The current state of the Red LED. When it is on or blinking, SAM-IoT Wx v2 experienced error(s)." + }, + "displayName": { + "en": "Red LED state" + }, + "name": "led_r", + "schema": "dtmi:com:Microchip:SAM_IoT_Wx_v2:LedState;1", + "writable": false + }, + { + "@type": "Property", + "description": { + "en": "Set the state of the Yellow LED (On/Off/Blink)." + }, + "displayName": { + "en": "Yellow LED state" + }, + "name": "led_y", + "schema": "dtmi:com:Microchip:SAM_IoT_Wx_v2:LedState;1", + "writable": true + }, + { + "@type": [ + "Property", + "TimeSpan" + ], + "description": { + "en": "Sets interval to send telemetry in seconds" + }, + "displayName": { + "en": "Set Telemetry Interval" + }, + "name": "telemetryInterval", + "schema": "integer", + "unit": "second", + "writable": true + }, + { + "@type": "Command", + "description": { + "en": "Reboot SAM-IoT Wx v2with 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 rebooting SAM-IoT Wx v2" + }, + "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": "Send a text message to SAM-IoT Wx v2" + }, + "displayName": { + "en": "Send Message" + }, + "name": "sendMsg", + "request": { + "@type": "CommandPayload", + "description": { + "en": "Text message to send to SAM-IoT Wx v2" + }, + "displayName": { + "en": "Message" + }, + "name": "payload", + "schema": { + "@type": "Object", + "fields": [ + { + "displayName": { + "en": "String to send" + }, + "name": "sendMsgString", + "schema": "string" + } + ] + } + }, + "response": { + "@type": "CommandPayload", + "displayName": { + "en": "Response for command" + }, + "name": "response", + "schema": { + "@type": "Object", + "fields": [ + { + "displayName": { + "en": "Message from send message handler." + }, + "name": "status", + "schema": "string" + } + ] + } + } + } + ], + "description": { + "en": "Reports device temperature, light intensity, and the current state of the 2 buttons & 4 LEDs. Provides ability to turn on/off any of the 4 LEDs." + }, + "displayName": { + "en": "SAM-IoT Wx v2" + }, + "schemas": [ + { + "@id": "dtmi:com:Microchip:SAM_IoT_Wx_v2:LedState;1", + "@type": "Enum", + "enumValues": [ + { + "comment": "LED is in the On state.", + "description": { + "en": "LED is turned on." + }, + "displayName": { + "en": "LED On" + }, + "enumValue": 1, + "name": "On" + }, + { + "comment": "LED is in the Off state.", + "description": { + "en": "LED is turned Off." + }, + "displayName": { + "en": "LED Off" + }, + "enumValue": 2, + "name": "Off" + }, + { + "comment": "LED is blinking.", + "description": { + "en": "LED is blinking." + }, + "displayName": { + "en": "LED Blinking" + }, + "enumValue": 3, + "name": "Blink" + } + ], + "valueSchema": "integer" + } + ], + "@context": [ + "dtmi:iotcentral:context;2", + "dtmi:dtdl:context;2" + ] +} \ No newline at end of file From 33334f17666f79d7358d7e0ccba1b6978516bef2 Mon Sep 17 00:00:00 2001 From: Randy Wu - C14166 Date: Tue, 16 Jan 2024 15:54:50 -0800 Subject: [PATCH 30/30] Update sam_iot_wx_v2-2.json --- dtmi/com/microchip/sam_iot_wx_v2-2.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dtmi/com/microchip/sam_iot_wx_v2-2.json b/dtmi/com/microchip/sam_iot_wx_v2-2.json index fb7ae42de..ecbe794e7 100644 --- a/dtmi/com/microchip/sam_iot_wx_v2-2.json +++ b/dtmi/com/microchip/sam_iot_wx_v2-2.json @@ -63,7 +63,7 @@ "displayName": { "en": "AQI-UBA" }, - "name": "aqi-uba", + "name": "aqi_uba", "schema": "integer" }, {