Skip to content

PaaD Model#3

Open
rido-min wants to merge 76 commits intomainfrom
paad2
Open

PaaD Model#3
rido-min wants to merge 76 commits intomainfrom
paad2

Conversation

@rido-min
Copy link

@rido-min rido-min commented May 25, 2021

Phone As a Device Model

First draft of the updated PaaD model, main differences with https://github.com/Azure/iot-plugandplay-models/blob/main/dtmi/azureiot/phoneasadevice-1.json :

  • Using different interfaces for each sensor
  • Using extends to configure each sensor telemetryInterval
  • New writable property in the root interface to configure the app theme (light/dark) based on an enum

/c @PProvost @ericmitt @wickste

rido-min and others added 30 commits April 21, 2021 15:53
* update actions to beta3

* use version when installing
* add Armadillo-IoT GW G3M1's device model

* add Armadillo-IoT GW G3M1's device model v2

* add device models of Armadillo-IoT GW G3L

Co-authored-by: Paymaun <[email protected]>
Co-authored-by: Ricardo Minguez (Rido) <[email protected]>
* add nnptech device

* add nnptech model (np6000K)

* delete nnp_device-1.json

* add np6000k-1, windowsdeviceinfo-1

* modified

* delete

* no message

* add np6000k model

* Add sam4s sk161 model

Co-authored-by: Ricardo Minguez (Rido) <[email protected]>
* Create il20-1.json

* Create m101p-1.json

Co-authored-by: Ricardo Minguez (Rido) <[email protected]>
* Add files via upload

* Delete STM32AzureRTOS directory

* Add files via upload

* no message

* Revert "no message"

This reverts commit a777f4c.

* Add Incon Trium-i model

* Delete dtmi/STM32AzureRTOS directory

* Add Incon Trium-i Product

* Delete Trium-i.json

* no message

* Delete Trium-i-1.json

* Delete WindowsDeviceInfo-1.json

* Add Incon Trium-i Product

* Delete WindowsDeviceInfo-1.json

* Delete Trium-i-1.json

* Add Incon Trium-i model

* Add INCON Trium-i product model

* Add Incon Trium-i model

* Delete Trium_i-1.json

* Add Incon Trium-i model

* Delete dtmi/Incon directory

* Add Incon Trium-i model

* Add Incon Trium-i model

* Delete dtmi/Incon directory

* Add Incon Trium-i models

* Delete dtmi/incon directory

* Add Incon Trium-i product models

* Add INCON Trium-i product models

* Delete triumi-1.json

* Add INCON Trium-i product models

* Delete triumi-i-1.json

* Delete trium-i-1.json

* Add IINCON Trium-i product model

* Add HancomMDS device models

Co-authored-by: HancomMDS <[email protected]>
Co-authored-by: Ricardo Minguez (Rido) <[email protected]>
* add smarphone model

* fix model

* fix models based on suggestions

Co-authored-by: Ricardo Minguez (Rido) <[email protected]>
* New Azure Sphere example thermometer model

* Agreed naming change

Co-authored-by: Ricardo Minguez (Rido) <[email protected]>
…2ir2 (Azure#210)

* Add model e1000_ibs01t, e1000_ibs03tp, x1000_ibs01t, x1000_ibs03tp,

* Add model e1000_tkr03fl-1, x1000_tkr03fl-1, e1000_tkr04a-1, x1000_tkr04a-1

* Add new model e1000_ibs01g, x1000_ibs01g, e1000_ibs02ir2 , x1000_ibs02ir2
* Add files via upload

* Delete STM32AzureRTOS directory

* Add files via upload

* no message

* Revert "no message"

This reverts commit a777f4c.

* Add Incon Trium-i model

* Delete dtmi/STM32AzureRTOS directory

* Add Incon Trium-i Product

* Delete Trium-i.json

* no message

* Delete Trium-i-1.json

* Delete WindowsDeviceInfo-1.json

* Add Incon Trium-i Product

* Delete WindowsDeviceInfo-1.json

* Delete Trium-i-1.json

* Add Incon Trium-i model

* Add INCON Trium-i product model

* Add Incon Trium-i model

* Delete Trium_i-1.json

* Add Incon Trium-i model

* Delete dtmi/Incon directory

* Add Incon Trium-i model

* Add Incon Trium-i model

* Delete dtmi/Incon directory

* Add Incon Trium-i models

* Delete dtmi/incon directory

* Add Incon Trium-i product models

* Add INCON Trium-i product models

* Delete triumi-1.json

* Add INCON Trium-i product models

* Delete triumi-i-1.json

* Delete trium-i-1.json

* Add IINCON Trium-i product model

* Add HancomMDS device models

* laonpeople 

IoT Device Certified

* Delete dtmi/laonpeople directory

* Add files via upload

* Delete dtmi/laonpeople directory

* Add files via upload

* Delete dtmi/laonpeople directory

* Add files via upload

Co-authored-by: HancomMDS <[email protected]>
Co-authored-by: Ricardo Minguez (Rido) <[email protected]>
* Create xt7315-1.json

* Create rt6015-1.json

* Create rt5015-1.json

Co-authored-by: Ricardo Minguez (Rido) <[email protected]>
* Create standard.json

* Create standard-1.json

* Delete standard.json

Co-authored-by: Ricardo Minguez (Rido) <[email protected]>
Co-authored-by: Ricardo Minguez (Rido) <[email protected]>
* Create archmi_9xxa-1.json

* Revert "Create archmi_9xxa-1.json"

This reverts commit c56c331.

* Create archmi_9xxa-1.json

* Update archmi_9xxa-1.json

Co-authored-by: Ricardo Minguez (Rido) <[email protected]>
* Create FES101E6-1.json

Add new product for forenex

* Delete FES101E6-1.json

delete

* Create fes101e6-1.json

Add new file

Co-authored-by: Ricardo Minguez (Rido) <[email protected]>
* Create m101p-1.json

* Update m101p-1.json

* Update m101p-1.json

* IL20_M101P

Add model IL20 & M101P

* Add FA3S

Add FA3S component

Co-authored-by: Ricardo Minguez (Rido) <[email protected]>
* Create altair-on-azure-sphere-1.json

* Updated file name to match id

* Update altair-1.json
* Create spc_7000.json

* Update spc_7000.json

* Create spc_7000-1.json

* Delete spc_7000.json

Co-authored-by: Ricardo Minguez (Rido) <[email protected]>
* Create ViTAM_9XXA.json

* Update ViTAM_9XXA.json

* Create vitam_9xxa-1.json

* Delete ViTAM_9XXA.json

* Update vitam_9xxa-1.json

Co-authored-by: Ricardo Minguez (Rido) <[email protected]>
* add nnptech device

* add nnptech model (np6000K)

* delete nnp_device-1.json

* add np6000k-1, windowsdeviceinfo-1

* modified

* delete

* no message

* add np6000k model

* Add sam4s sk161 model

* add smartipc-gh414 dtdl model

Co-authored-by: Ricardo Minguez (Rido) <[email protected]>
* Create m101p-1.json

* Update m101p-1.json

* Update m101p-1.json

* IL20_M101P

Add model IL20 & M101P

* Add FA3S

Add FA3S component

* Update Winmate Model of FA3S

Co-authored-by: Ricardo Minguez (Rido) <[email protected]>
* Adding B_L4S5I_IOT01A

* Cleanup

* removing square brackets

* Fixing schemas for vectorial types

Co-authored-by: Ricardo Minguez (Rido) <[email protected]>
* Add files via upload

* Delete STM32AzureRTOS directory

* Add files via upload

* no message

* Revert "no message"

This reverts commit a777f4c.

* Add Incon Trium-i model

* Delete dtmi/STM32AzureRTOS directory

* Add Incon Trium-i Product

* Delete Trium-i.json

* no message

* Delete Trium-i-1.json

* Delete WindowsDeviceInfo-1.json

* Add Incon Trium-i Product

* Delete WindowsDeviceInfo-1.json

* Delete Trium-i-1.json

* Add Incon Trium-i model

* Add INCON Trium-i product model

* Add Incon Trium-i model

* Delete Trium_i-1.json

* Add Incon Trium-i model

* Delete dtmi/Incon directory

* Add Incon Trium-i model

* Add Incon Trium-i model

* Delete dtmi/Incon directory

* Add Incon Trium-i models

* Delete dtmi/incon directory

* Add Incon Trium-i product models

* Add INCON Trium-i product models

* Delete triumi-1.json

* Add INCON Trium-i product models

* Delete triumi-i-1.json

* Delete trium-i-1.json

* Add IINCON Trium-i product model

* Add HancomMDS device models

* laonpeople 

IoT Device Certified

* Delete dtmi/laonpeople directory

* Add files via upload

* Delete dtmi/laonpeople directory

* Add files via upload

* Delete dtmi/laonpeople directory

* Add files via upload

* Add HANASIS device models

Co-authored-by: HancomMDS <[email protected]>
Co-authored-by: Ricardo Minguez (Rido) <[email protected]>
Co-authored-by: Ricardo Minguez (Rido) <[email protected]>
* Add cExpress-AR

* Add LEC-PX30 MXE-210

Co-authored-by: Ricardo Minguez (Rido) <[email protected]>
HimaxSPD and others added 26 commits May 13, 2021 13:04
* add himax dtmi

* modification json file

* Add files via upload

* Update Himax_AIoT_NB_G1.json

* Delete Himax_AIoT_NB_G1.json

* Add himax_aiot_nb_g1 model

* Add himax_aiot_nb-g2.json

* Update himax_aiot_nb-g2.json

* Update himax_aiot_nb-g2.json

* Update himax_aiot_nb-g2.json

* Rename himax_aiot_nb-g2.json to himax_aiot_nb_g2.json

* Update himax_aiot_nb_g2.json

* Update himax_aiot_nb_g2.json

* Update and rename dtmi/himax/himax_aiot_nb_g2.json to dtmi/weiplus-3.json

* Add himax_aiot_nb_g2.json

* Delete himax_aiot_nb_g2.json

* Add himax_aiot_nb_g2 model file

* Delete weiplus-3.json

* Update aiot_nb_g2-1.json

* Delete accelerometers-1.json

re-upload himax_accelerometers.json

* Delete aiot_nb_g2-1.json

re-upload himax_aiot_nb_g2.json

* Delete audio-1.json

re-upload himax_audio.json

* Delete gyro-1.json

re-upload himax_gyro.json

* Delete image-1.json

re-upload himax_image.json

* Delete magnetometer-1.json

re-upload himax_magnetometer.json

* Delete ota_upgrade-1.json

re-upload himax_ota_upgrade.json

* re-upload Himax-AIoT-NB-G2 model file

rename .json file name

* Update himax_accelerometers-1.json

update indent code.

* Update himax_aiot_nb_g2-1.json

update indent code.

* Delete himax_accelerometers-1.json

* Delete himax_aiot_nb_g2-1.json

* Delete himax_audio-1.json

* Delete himax_gyro-1.json

* Delete himax_image-1.json

* Delete himax_magnetometer-1.json

* Delete himax_ota_upgrade-1.json

* Add Himax-AIoT-NB-G2 Model File

update indent code.

Co-authored-by: Ricardo Minguez (Rido) <[email protected]>
* Adding B_L4S5I_IOT01A

* Cleanup

* removing square brackets

* Fixing schemas for vectorial types

* Adding template for STEVAL-STWINKT1B

* Adding model for b_u585i_iot02a

* Updates to IoT Node 2 model

Co-authored-by: Ricardo Minguez (Rido) <[email protected]>
* initial model submission

* mydevices - model updates to mdpanic and ble gateway

* Add new mydevicesinc models

* Add additional mydevicesinc models

Co-authored-by: Adrian Sanchez del Campo <[email protected]>
Co-authored-by: Adrian Sanchezdelc <[email protected]>
…erature-1.json, wise_humidity-1.json (Azure#263)

* add himax dtmi

* modification json file

* Add files via upload

* Update Himax_AIoT_NB_G1.json

* Delete Himax_AIoT_NB_G1.json

* Add himax_aiot_nb_g1 model

* Add himax_aiot_nb-g2.json

* Update himax_aiot_nb-g2.json

* Update himax_aiot_nb-g2.json

* Update himax_aiot_nb-g2.json

* Rename himax_aiot_nb-g2.json to himax_aiot_nb_g2.json

* Update himax_aiot_nb_g2.json

* Update himax_aiot_nb_g2.json

* Update and rename dtmi/himax/himax_aiot_nb_g2.json to dtmi/weiplus-3.json

* Add himax_aiot_nb_g2.json

* Delete himax_aiot_nb_g2.json

* Add himax_aiot_nb_g2 model file

* Delete weiplus-3.json

* Update aiot_nb_g2-1.json

* Delete accelerometers-1.json

re-upload himax_accelerometers.json

* Delete aiot_nb_g2-1.json

re-upload himax_aiot_nb_g2.json

* Delete audio-1.json

re-upload himax_audio.json

* Delete gyro-1.json

re-upload himax_gyro.json

* Delete image-1.json

re-upload himax_image.json

* Delete magnetometer-1.json

re-upload himax_magnetometer.json

* Delete ota_upgrade-1.json

re-upload himax_ota_upgrade.json

* re-upload Himax-AIoT-NB-G2 model file

rename .json file name

* Update himax_accelerometers-1.json

update indent code.

* Update himax_aiot_nb_g2-1.json

update indent code.

* Delete himax_accelerometers-1.json

* Delete himax_aiot_nb_g2-1.json

* Delete himax_audio-1.json

* Delete himax_gyro-1.json

* Delete himax_image-1.json

* Delete himax_magnetometer-1.json

* Delete himax_ota_upgrade-1.json

* Add Himax-AIoT-NB-G2 Model File

update indent code.

* Create WISE-4250AS-S231 models

2021/5/11 Create WISE-4250AS-S231 models

Co-authored-by: HimaxSPD <[email protected]>
Co-authored-by: HimaxSPD <[email protected]>
Co-authored-by: Ricardo Minguez (Rido) <[email protected]>
* Add cExpress-AR

* Add LEC-PX30 MXE-210

* Add nanaX-EL delete mxe-210

Co-authored-by: Ricardo Minguez (Rido) <[email protected]>
Co-authored-by: chiaoer <[email protected]>
Co-authored-by: Ricardo Minguez (Rido) <[email protected]>
* develco PnP first bundles

* updated wrong type low battery

* Update homesafetywindowsensor-2.json

* updated DTDL vibration sensor

Co-authored-by: Ricardo Minguez (Rido) <[email protected]>
Co-authored-by: chiaoer <[email protected]>
Co-authored-by: Ricardo Minguez (Rido) <[email protected]>
* DTDLs for gateway with every single sensor

* bug fixing on the dtdls values

* removed wrong property

* removed wrong properties

* remove duplicated before merging

* wrong propery type fixed

Co-authored-by: Gualandris Davide <[email protected]>
Co-authored-by: Ricardo Minguez (Rido) <[email protected]>
* add himax dtmi

* modification json file

* Add files via upload

* Update Himax_AIoT_NB_G1.json

* Delete Himax_AIoT_NB_G1.json

* Add himax_aiot_nb_g1 model

* Add himax_aiot_nb-g2.json

* Update himax_aiot_nb-g2.json

* Update himax_aiot_nb-g2.json

* Update himax_aiot_nb-g2.json

* Rename himax_aiot_nb-g2.json to himax_aiot_nb_g2.json

* Update himax_aiot_nb_g2.json

* Update himax_aiot_nb_g2.json

* Update and rename dtmi/himax/himax_aiot_nb_g2.json to dtmi/weiplus-3.json

* Add himax_aiot_nb_g2.json

* Delete himax_aiot_nb_g2.json

* Add himax_aiot_nb_g2 model file

* Delete weiplus-3.json

* Update aiot_nb_g2-1.json

* Delete accelerometers-1.json

re-upload himax_accelerometers.json

* Delete aiot_nb_g2-1.json

re-upload himax_aiot_nb_g2.json

* Delete audio-1.json

re-upload himax_audio.json

* Delete gyro-1.json

re-upload himax_gyro.json

* Delete image-1.json

re-upload himax_image.json

* Delete magnetometer-1.json

re-upload himax_magnetometer.json

* Delete ota_upgrade-1.json

re-upload himax_ota_upgrade.json

* re-upload Himax-AIoT-NB-G2 model file

rename .json file name

* Update himax_accelerometers-1.json

update indent code.

* Update himax_aiot_nb_g2-1.json

update indent code.

* Delete himax_accelerometers-1.json

* Delete himax_aiot_nb_g2-1.json

* Delete himax_audio-1.json

* Delete himax_gyro-1.json

* Delete himax_image-1.json

* Delete himax_magnetometer-1.json

* Delete himax_ota_upgrade-1.json

* Add Himax-AIoT-NB-G2 Model File

update indent code.

* Add himax_aiot_nb_g2 v2 model file

Co-authored-by: Ricardo Minguez (Rido) <[email protected]>
* add Armadillo-IoT GW G3M1's device model

* add Armadillo-IoT GW G3M1's device model v2

* add device models of Armadillo-IoT GW G3L

* add device model of Armadillo-IoT GW G3M1 weighing machine

* add device models of Armadillo-IoT GW A6 based devices

* remove unnecessary ','

Co-authored-by: Paymaun <[email protected]>
Co-authored-by: Ricardo Minguez (Rido) <[email protected]>
* Add cExpress-AR

* Add LEC-PX30 MXE-210

* Add nanaX-EL delete mxe-210

* Add IMX8MP

* Update I_pi_smarc_imx8mp_plus-1.json

* Update I_pi_smarc_imx8mp_plus-1.json

* Delete I_pi_smarc_imx8mp_plus-1.json

* Create i_pi_smarc_imx8mp_plus-1.json

Co-authored-by: Ricardo Minguez (Rido) <[email protected]>
* Create upx_tgl01.json

* Fix file name typo

Co-authored-by: chiaoer <[email protected]>
Co-authored-by: Ricardo Minguez (Rido) <[email protected]>
* DTDLs for gateway with every single sensor

* bug fixing on the dtdls values

* removed wrong property

* removed wrong properties

* remove duplicated before merging

* wrong propery type fixed

* 21 bundles added

* fixed wrong air quality sensor DTDL

Co-authored-by: Gualandris Davide <[email protected]>
Co-authored-by: Ricardo Minguez (Rido) <[email protected]>
* DTDLs for gateway with every single sensor

* bug fixing on the dtdls values

* removed wrong property

* removed wrong properties

* remove duplicated before merging

* wrong propery type fixed

* 21 bundles added

* fixed wrong air quality sensor DTDL

* [develco] added gatewat DTDL

* added new dtdl in order to certify gateway

Co-authored-by: Gualandris Davide <[email protected]>
Co-authored-by: Ricardo Minguez (Rido) <[email protected]>
* add Armadillo-IoT GW G3M1's device model

* add Armadillo-IoT GW G3M1's device model v2

* add device models of Armadillo-IoT GW G3L

* add device model of Armadillo-IoT GW G3M1 weighing machine

* add device models of Armadillo-IoT GW A6 based devices

* remove unnecessary ','

* add Armadillo-IoT GW A6 DoorsMonitor's model v2

Co-authored-by: Paymaun <[email protected]>
Co-authored-by: Ricardo Minguez (Rido) <[email protected]>
Co-authored-by: chiaoer <[email protected]>
Co-authored-by: Ricardo Minguez (Rido) <[email protected]>
Co-authored-by: chiaoer <[email protected]>
Co-authored-by: Ricardo Minguez (Rido) <[email protected]>
* initial model submission

* mydevices - model updates to mdpanic and ble gateway

* Add AgoraOpinion model

Co-authored-by: Adrian Sanchez del Campo <[email protected]>
Co-authored-by: Adrian Sanchezdelc <[email protected]>
* Added impinj fixedreader + R700 model files

* updated model paths according to recommendations

* updated DTMIs to start with proper DTMI namespace for R700

* added SetPresetIdPassthrough command

* Updated with modifications from Diasuke for certification

Co-authored-by: Ricardo Minguez (Rido) <[email protected]>
Co-authored-by: chiaoer <[email protected]>
Co-authored-by: Ricardo Minguez (Rido) <[email protected]>
…odel (Azure#290)

* Cognian Syncromesh Config Devcie Model

* New Line was missing EOF

Co-authored-by: Sujith Subramanya <[email protected]>
Co-authored-by: Ricardo Minguez (Rido) <[email protected]>
"@type": "Command",
"commandType": "synchronous",
"displayName": {
"en": "LightOn"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we remove the en form?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we remove the en form?

nothing wrong with it

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My point is that the model should be consistent. Use this form everywhere, or not. Also, having also one locale is confusing. Should we assume en is the default? What's the behavior if is only set in some fields?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agreed on consistency - just a thought: maybe we want to use this model to showcase how to localize a DTDL model correctly? Have strings for English, Spanish, German.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd suggest to showcase DTDL localization capabilities with a different sample. We need to deep dive what central supports before adding strings that are not editable/visible.

},
{
"@type": "Component",
"displayName": "Device information",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we keep the DisplayName everywhere?

"displayName": "Base Sensor",
"contents": [
{
"@type": "Property",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add semantic type

"extends": ["dtmi:azureiot:PaaD:Sensors:baseSensor;1"],
"contents": [
{
"@type": "Telemetry",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add semantic type

"displayName": "Movement",
"contents": [
{
"@type": "Telemetry",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add semantic type

"schema": "boolean"
},
{
"@type": "Command",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is this for? what does rebooting a sensor mean?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see that some hardware sensors require initialization (like here ), so thought it would be good to generalize that command for all sensors.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, so maybe 'restart' is better?

{
"@type": "Property",
"name": "Enabled",
"schema": "boolean"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add writable

"@id": "dtmi:azureiot:PaaD:Sensors:Magnet;1",
"@type": "Interface",
"extends": ["dtmi:azureiot:PaaD:Sensors:baseSensor;1"],
"displayName": "Movement",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.