question

GerardVangaever-4767 avatar image
0 Votes"
GerardVangaever-4767 asked rkiss edited

Problem with unmoddeled telemetry in iot Central appliction. Template isn't working as espected

We use the IOT bridge to provision to IOT Central. (IoTCIntegration)
With a template ERS Eye based on the ERS Eye template in the plug and play library we get unmoddeled telemetry in IOt Central application.
We use Iot bridge "IoTCIntegration"to provision the sesnor to IoT Central (see picture 4)

123858-telemetry-1.jpg123957-telemetry-2.jpg123968-telemetry-3.jpg123906-telemetry-4.jpg



How can help us?
Thanks
Gerard


azure-iot-central
telemetry-1.jpg (58.6 KiB)
telemetry-2.jpg (23.4 KiB)
telemetry-3.jpg (85.8 KiB)
telemetry-4.jpg (110.7 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @GerardVangaever-4767 Thanks for reporting this issue, we are investigating this.

0 Votes 0 ·
rkiss avatar image
0 Votes"
rkiss answered GerardVangaever-4767 commented

Hi Gerard,

You can use a new feature such as an Autogenerate a device template from your unmoddeled telemetry raw data to edit/modify the device template.

Thanks

Roman


· 6
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi Roman,

Thank you for your response.
I've tried that before but this doens't resolve the problem.
Still unmodelledData in telemetry.

I will delete everything and start all over and use again the Autogenerate method for the template.
Post you my results.

Thanks
Gerard

0 Votes 0 ·

Hi Roman,

Done it all over and still the same problem in telemetry.

What's going wrong ?

Thanks
Gerard

0 Votes 0 ·
rkiss avatar image rkiss GerardVangaever-4767 ·

Hi Gerard,

Could you post your device template?

Thanks
Roman

0 Votes 0 ·

Hi Roman,

Thank you for yoyr quick response. I appreciate that !

In attachments more info concerning the template.


125439-image.png


125541-image.png125542-image.png

Best Regards
Gerard

0 Votes 0 ·
image.png (119.9 KiB)
image.png (91.8 KiB)
image.png (103.6 KiB)
image.png (66.0 KiB)
rkiss avatar image rkiss GerardVangaever-4767 ·

Gerard,

could you show your device template in the json formatted text?

Thanks
Roman

0 Votes 0 ·

Hi Roman,

As requested, the template in json format.

{
"@id": "dtmi:selloxfirstconnect:a81758fffe051061;1",
"@type": "Interface",
"contents": [
{
"@id": "dtmi:selloxfirstconnect:a81758fffe051061:temperature;1",
"@type": [
"Telemetry",
"Temperature"
],
"displayName": {
"en": "temperature"
},
"name": "temperature",
"schema": "float",
"unit": "degreeCelsius"
},
{
"@id": "dtmi:selloxfirstconnect:a81758fffe051061:humidity;1",
"@type": [
"Telemetry",
"Humidity"
],
"displayName": {
"en": "humidity"
},
"name": "humidity",
"schema": "integer",
"unit": "percent"
},
{
"@id": "dtmi:selloxfirstconnect:a81758fffe051061:light;1",
"@type": [
"Telemetry",
"Illuminance"
],
"displayName": {
"en": "light"
},
"name": "light",
"schema": "integer",
"unit": "lux"
},
{
"@id": "dtmi:selloxfirstconnect:a81758fffe051061:motion;1",
"@type": "Telemetry",
"displayName": {
"en": "motion"
},
"name": "motion",
"schema": "double"
},
{
"@id": "dtmi:selloxfirstconnect:a81758fffe051061:vdd;1",
"@type": [
"Telemetry",
"Voltage"
],
"displayName": {
"en": "vdd"
},
"name": "vdd",
"schema": "integer",
"unit": "millivolt"
},
{
"@id": "dtmi:selloxfirstconnect:a81758fffe051061:occupancy;1",
"@type": "Telemetry",
"displayName": {
"en": "occupancy"
},
"name": "occupancy",
"schema": "double"
}
],
"displayName": {
"en": "A81758FFFE051061"
},
"@context": [
"dtmi:iotcentral:context;2",
"dtmi:dtdl:context;2"
]
}

126042-image.png
125978-image.png

Best Regards
Gerard


0 Votes 0 ·
image.png (60.8 KiB)
image.png (50.0 KiB)
rkiss avatar image
0 Votes"
rkiss answered rkiss commented

Hi Gerard,

I have created in my free IoT Central App a device test based on your device template:

126091-device-template.png

126029-device-test.png


For test purpose, the REST client has been used for sending a telemetry data to the IoT Central App:

125970-rest-client.png


As you can see in the following screen snippet, the received telemetry data are accepted by a device model:
125940-iotc1.png


Now, the REST client will sent some unmodeled data like is shown in the below picture:

125998-client2.png

As you can see the following screen snippet of the Iot central app, the raw data will show this difference to the device model:

126074-iotc2.png


Using the new feature, such as Add capabilities automatically, the following screen snippets shown an updating the device model:

126103-iotc3.png

126104-iotc4.png


After that, the telemetry data sent by the REST Client are matched with the device model, so there is no _unmodeled raw data:

126105-iotc5.png


In conclusion, based on my above test, you should have a capability to modify your device model in the root (default) component based on the received _unmodeled data. Note, that your changes in the device model must be saved and published.


Thanks
Roman




device-template.png (57.8 KiB)
device-test.png (28.7 KiB)
rest-client.png (69.2 KiB)
iotc1.png (52.0 KiB)
client2.png (64.9 KiB)
iotc2.png (57.7 KiB)
iotc3.png (61.7 KiB)
iotc4.png (71.7 KiB)
iotc5.png (60.5 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi Roman,

Thank you very much for your detailed explanation

I am using a different approach to send the data to IOT Central.

I set up an IOT Bridge and send the data to a Function app.
In that function I decode the hex data to json data and send it to IOT central.
See my approach in the screen shots below:

126060-image.png
126146-image.png

Is it possible what I do or do we need to use your approach?

Thanks again !

Best Regards
Gerard


0 Votes 0 ·
image.png (41.6 KiB)
image.png (121.5 KiB)
rkiss avatar image rkiss GerardVangaever-4767 ·

Hi Gerard,

Could you show your payload (some sample) for telemetry data sent to the IoT Central App?
Please, don't show your code, schema, etc. as a picture.

Thanks
Roman

0 Votes 0 ·
GerardVangaever-4767 avatar image
0 Votes"
GerardVangaever-4767 answered rkiss commented

Hi Roman,

Thanks for the comment. I only realised when I had already posted it.

The payload as send to IoT Central :

Monitoring telemetry.
Filtering on device: A81758FFFE051061
{
"event": {
"origin": "A81758FFFE051061",
"module": "",
"interface": "",
"component": "",
"payload": {
"motion": 1,
"occupancy": 0
}
}
}
{
"event": {
"origin": "A81758FFFE051061",
"module": "",
"interface": "",
"component": "",
"payload": {
"temperature": 23.3,
"humidity": 56,
"light": 210,
"motion": 0,
"vdd": 3610,
"occupancy": 0
}
}
}

Note: can add picture or files anymore.

Thanks
Gerard

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Gerard,

I do recommend to modify your bridge (azure function) based on the device ERS Eye template.

Thanks
Roman

0 Votes 0 ·
GerardVangaever-4767 avatar image
0 Votes"
GerardVangaever-4767 answered

Hello Roman,

Thank you for your sugestion to change the azure function, but still no good result.
If I follow the first instruction to connect a device to Azure IOT Central with the mobile phone as device, I also have unmodeleddata as telemetry. Is the problem then my subcription of application in Azure?

Best Regards
Gerard

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

GerardVangaever-4767 avatar image
0 Votes"
GerardVangaever-4767 answered rkiss edited

Hello Roman,

The problem was not the function or my subcription / application but the deviceId we send.
The deviceId / device was in uppercase and must be lowercase as descriped in the documentation.

Thank you for your assistance with this problem. I fully appreciate it!

Best Regards
Gerard

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi Gerard,

That's interesting. I couldn't replicate this issue in my test, see my below screen snippets:

Using the IoT Hub Tester for simulating two devices (such as device1 and ABC) with the same device template (from device catalogue - Elsys ERSeye Room Occupancy (UPDATED)). Note, that the tester provisioned both devices in my free the IoT Central App:

128322-tester1.png


IoT Central App:

128257-iotc2.png


128344-iotc3.png

128345-iotc1.png


Data export to the Service Bus queue:

128278-tester2.png

As you can see, the above IoT Central App is matching all received raw data with a device model template.

Thanks
Roman


0 Votes 0 ·
tester1.png (33.2 KiB)
iotc2.png (30.5 KiB)
iotc3.png (68.7 KiB)
iotc1.png (59.3 KiB)
tester2.png (31.8 KiB)