cancel
Showing results for 
Search instead for 
Did you mean: 

Link device location and Thing location in IOT AE

Former Member

Hi,

I have IoT devices that sends out its location(GPS co-ordinates) to SAP IoT.

The 'Things' linked to these devices have fields for latitude and longitude but only accepts static values(numbers). How can the device location which is part of sensor data(measured values) be linked to a Thing location?

Is there away to assign a variable to the location fields in Thing definition?

Thanks,

vkdas

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member232287
Active Participant
0 Kudos

Hi,

You are right, the Thing location is designed for Things with static locations. If you have geo positions as Time Series Data you should also model them as Time Series Data. So just extend your Thing Model by a Property Set Type with longitude and latitude and store the position there.

Regards

Jan

Former Member
0 Kudos

Hi Jan,

I have latitude and longitude in the Thing Model as a custom Property Set Type, data from the device is visible in this field.

The app generated by IoT AE uses the sap.ui.iot.controls.IoTMap element. In case of dynamic things(no static location defined), I see 2 location related issues in this Iot app generated by WebIDE.

  1. I have a list of things on the left pane, but the map on the landing page is blank with no markers.
  2. Clicking on a thing from the left pane gives this error: "The clicked item has no associated latitude and longitude that are required for display in map"

I updated the generated app code to use the custom location property sets, but the internal location features of the IoTMap element all seem to be using the static location of the Thing. Hence the 2 issue i mentioned above.

Thanks,

vkdas

former_member232287
Active Participant

Hi,

Yes, the map uses the static locations.

I think you have two options. The first option is to use another map control. We also had an app, where we draw the route of a Thing using Time Series Data.

The second option is to update the location on a regular basis. You could run a background job on SAP Cloud Platform, which gets the location from the Time Series Data and updates the static one.

Regards

Jan

FRLEN
Participant
0 Kudos

Hi Vkdas,

Are you using HCI/SCPI as a middleware?

Nitin

Former Member
0 Kudos

No, Here is the flow of data .

Physical GPS device(sensor) > SAP IoT service > SAP IoT AE(application enablement)

FRLEN
Participant
0 Kudos

The Easiest way to this using HCI/SCPI, you can easely add variable to the fields you need.

Former Member
0 Kudos

IoT AE is supposed to be a service that can use all the device data residing in IoT 4.0. Needing another integrator like SCPI to transfer data between IoT 4.0 and IoTAE would defeat the purpose of IoT AE, wouldnt it?