Skip to Content
1

Link device location and Thing location in IOT AE

Jan 24 at 12:14 PM

72

avatar image
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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

N. van Nieuwenhoven Jan 24 at 01:20 PM
0

Hi Vkdas,

Are you using HCI/SCPI as a middleware?

Nitin

Show 3 Share
10 |10000 characters needed characters left characters exceeded
Former Member

No, Here is the flow of data .

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

0

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

0
Former Member

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?

0
Jan Reichert
Jan 25 at 09:19 AM
0

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

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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

0

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

0