Overview

The Cloud of Things Sensor App is a free smartphone application available for iOS and Android smartphones. It is the successor of the previous Cloud Sensor App.

The app is designed to collect measurements from your smartphone, nearby Bluetooth device sensors, and vehicle On-board Debug (OBD) sensors, and send them to the Cloud of Things platform. It has a straightforward registration workflow to get you up and running quickly and provides an easy way to get data into Cloud of Things.

If you are using the Cloud of Things free trial available via Software AG Cloud, the app ideally helps you to quickly get familiar with the platform as it provides an easy way to connect devices and sensors. Capturing data from Bluetooth devices with Cloud of Things moreover saves a lot of implementation effort.

Besides sending data to the platform, the Cloud of Things Sensor App can also send commands to the smartphone directly from the phone dashboard. Commands currently available in the dashboard include alert messages and vibration.

Supported smartphone sensors include:

Info
The app only works with sensors supported by your smartphone’s hardware which provide official APIs. Depending on platform support, additional sensors may be added in future releases.

The latest list of supported Bluetooth devices is provided in the app. A button to take you to this page can be found when scanning for new devices. Currently the app supports the following devices:

More devices will be supported in the future and made available in the app.

Info
The Barista.io demo demonstrates the use of connected weight and pressure sensors to brew the perfect coffee. The demo sends measurements from up to 4 connected Bluetooth devices to Cloud of Things in real time.

Reading vehicle sensors comes with the use of an additional OBD dongle, which exposes the vehicles sensors to the phone via WiFi or Bluetooth (Note: iOS is WiFi only). There are two supported diagnostic connectors, both based on the ELM327 microcontroller:

Installing the Sensor App

To get started with the Cloud of Things Sensor App, download it from the Apple App Store, or Google Play Store as appropriate.

The app is compatible with Android devices running Android 5.0 or higher, and iOS devices running iOS 13.0 or higher.

Using these links from your smartphone takes you to the app’s install page:

Alternatively, you can open the Apple App Store or Google Play Store from your smartphone, search for Cloud of Things Sensor App and install the app.

You need a Cloud of Things account to send measurements to the platform. If you don’t have one yet, you can create a free trial account at Software AG Cloud. Click the Login button at the top right of the page and follow the instructions to create a new account. There are no limitations within a Cloud of Things free trial.

Info
This mobile app does not collect any personal data. The app collects only mobile phone sensor data and anonymous app usage data. If you do not agree with DT IoT collecting this data, do not connect the app with Cloud of Things and delete it from your device.

Registering the Sensor App in the platform

There are two ways of connecting your smartphone to Cloud of Things, depending on the platform’s version. For Cloud of Things versions starting with release 10.6.6, you can connect your smartphone via QR code. For earlier versions of Cloud of Things, follow the steps in Manual registration.

Registration using QR code

  1. On a desktop or laptop computer, open a web browser and log in to your Cloud of Things tenant. From the Cockpit application, click Connect Smartphone in the right drawer or in the Welcome widget.

    Cockpit application

  2. Follow the instructions in the wizard to step 3, ensuring that the app is installed on the smartphone.

    QR code

  3. From your smartphone, launch the app and tap Register in the top right corner of the screen. 

  4. Grant access to your camera if the app asks you for permission.

  5. Scan the QR code shown on your PC’s web browser. If you can’t scan the QR code, tap Manual registration on your smartphone and fill in the details at the right side of the wizard screen.

  6. Back on your smartphone, tap Done. Sensor measurements are sent to the server. They can be viewed in the device’s dashboard.

When using the Connect Smartphone wizard for device registration, your smartphone is automatically registered by Cloud of Things and assigned to the “Phones” group. Tap Done on your smartphone to return to the main screen.

Info
QR codes not supported by the Cloud of Things Sensor App are highlighted using a red region of interest in the Camera view. QR codes from older versions of Cloud of Things will be scanned, but it is not possible to connect automatically. Instead, you are forwarded to the Manual registration dialog with your tenant and instance pre-filled. From there you should continue with step 4 in Manual registration.

Manual registration

  1. On a desktop or laptop computer, open a web browser and log in to your Cloud of Things tenant. In the Device management application, select Devices > Registration from the navigator.

    Manual registration

  2. From your smartphone, launch the app and tap Register at the top right of the screen. When the camera opens, tap Register manually.

  3. Back in your web browser, click Register device at the top-right of the page and select General. Choose a meaningful and unique device ID for your smartphone and a group to assign your device to. Click Next and then Complete. The server will notice the pending registration and wait for your smartphone to show up.

  4. On your smartphone, fill in your tenant, for example, “companytenant01”, select your instance, for example, “ram.m2m.telekom.com”, and enter your selected device ID. If your instance is not available in the list, you can enter it manually if you click Add other instance. Click Register for your device to contact the server and ask to be accepted.

    Manual registration

  5. Back on your web browser, your device’s card now shows the options to accept or reject the connection. Accept the connection. Your device will be registered with the server and assigned to the selected group.

  6. Back on your smartphone, tap Done. Sensor measurements are sent to the server. They can be viewed in the device’s dashboard.

For further information about registering a device on the platform manually, refer to Device management > Connecting devices.

If you want to deregister from Cloud of Things, tap Deregister in the top right corner of the screen and approve the confirmation dialog. After that you can connect to the same or any other Cloud of Things instance or tenant.

Info
Deregistering a device automatically removes the device from Cloud of Things.

Sending sensor data to the platform

Measurements from your smartphone, OBD devices and connected Bluetooth sensors are sent to Cloud of Things automatically as soon as the device is connected or started and as long as the app is in foreground. All measurements of the smartphone sensors are displayed automatically in the device dashboard in Cloud of Things.

Device dashboard

Various widgets may be used to display the data points. If your smartphone has a gyroscope sensor, a 3D rotation widget depicts the current sensor data for your smartphone’s orientation.

The app sends sensor data to Cloud of Things at regular intervals. By default, the interval is 2 seconds. This interval can be configured from the app itself for the accelerometer, location, and other sensors.

Tap the 3 vertical dots on a sensor’s card, then Edit or drag the page up from the bottom to reveal additional settings.

Every time a measurement is sent to Cloud of Things the pulse indicator in front of the device name will animate.

Using device details, it is also possible to disable sending measurements for the device. The sensor measurements is still displayed, but not sent to Cloud of Things. When disabled, the pulse indicator is shown as “striked through”.

Viewing sensor data

You can find an overview of all sensor data on the main page of the app. Your smartphone’s internal sensors, such as its gyroscope, barometer, location and magnetic field, are shown in cards at the top of the page. Swipe left and right to inspect them.

Some sensors are only available if the permission is granted (for example microphone) and the sensor is enabled (for example location). Tap Allow in the first sensor card to grant these permissions or enable the sensors.

Sensor data

Some supported Bluetooth devices provide more than one sensor. In these cases, the card for this device also reacts to left and right swipes, changing the sensor that is displayed.

Info
Your smartphone allows you to view sensor data without being connected to Cloud of Things. Ensure that your smartphone is connected to Cloud of Things when you wish to have sensor data sent to the server.

Tap a card to show some sensor details, including when the last measurement was last updated.

Most sensors provide new measurements within a second. Others, such as location, might provide updates only on a significant change. Use the update time to find out if measurements are received.

Connecting new Bluetooth devices to the Sensor App

The Cloud of Things Sensor App connects to a range of Bluetooth sensor devices. Additional devices will be added in the future.

To connect a device, click the plus button at the bottom right of the screen. If Bluetooth is enabled and all required permissions are granted, your smartphone starts scanning for any new supported Bluetooth devices in the area that are not already paired. If Bluetooth is not enabled, select Enable Bluetooth on the scanning screen and follow the instructions.

New devices will be added to the list as the smartphone discovers them.

Bluetooth connection

Info
If there are no supported devices in range, there is an option to see a list of all currently supported device types.

Ensure that the device you wish to connect to is switched on and in pairing mode. For most devices, this automatically happens when they are switched on and not paired with any other device. Refer to the manufacturer’s instructions if you are unsure.

Bring the device close to your smartphone, 30cm or less is ideal.

When the Bluetooth device appears in the list, tap Pair Device to start pairing. The Bluetooth device will then be connected to your smartphone and start sending data to Cloud of Things if you are currently connected.

Info
Cloud of Things Sensor App supports Bluetooth simulation if you want to connect Bluetooth sensor devices without a physical device.

To enable or disable the simulation in Cloud of Things Sensor App, follow the instructions at the beginning of the section to scan for connected Bluetooth devices. During the scan use the Enable simulation button to enable the simulation mode. Once enabled, Cloud of Things Sensor App will present devices supporting the simulation mode. Continue from here as with real physical devices.

There are two ways to disable the simulation:

Connecting new OBD devices to the Sensor App

Connections to OBD devices work in a slightly different way than normal Bluetooth sensors. They must be connected to the phone directly before the device can be added to the Sensor App.

In case of WiFi based OBD devices, the procedure is as follows:

For Bluetooth-based OBD devices, the device must be paired with the phone before the Sensor App will recognize it:

Configuring, disabling or removing devices

If you want to make changes to the settings of the smartphone or a connected Bluetooth device, simply tap the 3 dots at the top right of the card for this device. Various options will be displayed at bottom of the screen. For Bluetooth devices, the options Disconnect, Disable and Edit are available. The smartphone itself only has the Disable and Edit options.

Device configuration

Tapping Disconnect removes a Bluetooth device from your smartphone entirely.

Tapping Disable still allows the smartphone to monitor measurements from this device, but stops sending sensor measurements to Cloud of Things.

Tapping Edit, or swiping upwards, reveals further settings that allow you to adjust various properties about this sensor, such as its name and update intervals.

Info
Smaller update intervals provide better response times and more complete measurement data, but also lead to higher power usage.

Adjusting sensor properties

When editing sensor properties, it is possible to change the following settings:

The update interval determines how often the sensor is queried by the phone, as well as how often data is sent to Cloud of Things. Altering the value here will also affect the speed at which charts are redrawn in the application. The minimum value for the update interval is 0.1 seconds. Note that at shorter update intervals, both the sensor device and the phone itself will consume more power.

Minimum and maximum thresholds affect the handling of the incoming data. By default, both the minimum and maximum values are infinite - that is, any recorded value from the sensor will be sent directly to Cloud of Things. You can drag the slider to adjust these values, or type new values directly into the text boxes at each end of the slider. To change the slider between adjusting minimum and maximum values on iOS, tap in the text box on the respective side. Although there is a recommended range for sensor measurements, it is possible to type values outside of this range if desired.

To return to unlimited values, simply drag the slider all the way to the end of the range again.

With non-infinite minimum or maximum threshold values configured, measurements sent to Cloud of Things will be capped to the minimum and maximum threshold values. No measurement values outside the threshold will be sent to Cloud of Things.

Simulated peaks can be useful for sending data values outside of the expected range on demand. These can be used for testing rules, alarms and other such functionality in a controlled and repeatable manner. The application allows you to specify the peak value to be used, as well as the number of times the sensor will be simulated at that value.

Sensor properties

Simulating peaks and sending alarms and events

Sensor buttons

In order to simulate peak values, tap the 3rd button on the card for that sensor. The application will ask if you wish to start simulating peak values. Select Simulate to begin. If the phone is connected to Cloud of Things, then it will send these values to the platform instead of the measurements coming from the selected sensor.

Sending alarms and events requires the phone to be connected to Cloud of Things. If the device is not connected, the icons are greyed out. Tap the bell icon to send an alarm.

Alarm dialog

This will open a dialog in which you can select the alarm text, its type, and its severity. Tap Create to generate the alarm and send it to the Cloud of Things platform.

To generate an event, tap the 2nd button on the card for that sensor.

Event dialog

This will open a dialog where the user can set the event text and type. Tap Create to generate the event and send it to Cloud of Things platform.

Controlling devices

The Cloud of Things Sensor App can receive real-time control commands from Cloud of Things.

You can create a dashboard for your smartphone device as described in Cockpit > Working with dashboards.

For details on how to add new widgets to the dashboard, see Cockpit > Widgets collection.

The “Message sending” widget can be used to send simple text notifications to a smartphone. Simply enter the required text into the widget and click Send. The message will appear as a pop-up alert on the device.

The “Vibration” widget can be used to activate and deactivate the vibration motor on the device. When the vibration switch is activated, the smartphone continuously vibrates until it is switched off again.

Device widget

Info
The smartphone must remain connected to Cloud of Things to receive these commands. On the device’s own dashboard, online devices are shown with a green map-marker. You can also determine if the device is connected in the Device management application. On the All Devices page two green arrows indicate that a device is online. Moreover, the individual device info pages contain a “Device status” widget.