CREATING A COMMONSENSE CONNECTION
Available since ThingPark X IoT Flow 1.7.1.
The CommonSense connector sends the uplinks of your devices to your CommonSense IoT platform instance, where the devices are managed and their data used by your applications.
The data follows this path: LoRaWAN® device → ThingPark Enterprise → ThingPark X IoT Flow connection → CommonSense.
Before you create the connection, you need a CommonSense account.
Collecting Expected Information
There is no information to collect on CommonSense: the form only asks for a name.
| UI Field | Description |
|---|---|
| Name | Name of the connection. |
| Description | Optional description of the connection. |
Creating a Connection With UI
-
In ThingPark Enterprise, click Connections -> + Add Connection -> ThingPark X IoT Flow.

-
In ThingPark X IoT Flow, click CommonSense in the list of connectors.

-
Fill in the form:
- Name: a clear name for the connection, for example
My CommonSense Connection. - Description: optional.

- Name: a clear name for the connection, for example
-
Click Create. A notification confirms that the connection has been created, and the connection details open.
-
In the connection details, check that the connection is OPENED (see Connection States).
Parameters marked with * are mandatory.
Creating a Connection With API
The creation of a connection establishes a unidirectional messaging transport link to the cloud provider.
To do this, you need to use the Connections group resource:
POST /connectionsto create a new Connection instancePUT /connectionsto update a Connection instanceDELETE /connectionsto delete a Connection instance
We follow the REST-full API pattern, when updating configuration properties for a connection resource. Thus, you must also provide the whole configuration again.
Example for creation of a new connection instance:
POST /connections
{
"name": "Actility To CommonSense",
"connectorId": "actility-http-iot",
"configuration": {
"destinationURL": "https://cs-vm2m.net/com/http?idName=DevEUI_uplink+DevEUI"
},
"brand": "COMMONSENSE"
}
The following table lists the properties applicable to a connection instance.
| Field | Description |
|---|---|
connectorId | Must be set to actility-http-iot. |
configuration/destinationURL | Must be set to https://cs-vm2m.net/com/http?idName=DevEUI_uplink+DevEUI. |
brand | Must be set to COMMONSENSE. |
All properties are not present in this example. You can check the rest of these properties in the common parameters section.
Associating Devices With the Connection
Each device must be associated with the connection in ThingPark Enterprise, and added in CommonSense with its DevEUI.
In ThingPark Enterprise, open Devices, select a device, and add the connection to the Connections of the device. You can also select the connection when you create a device, or for many devices at once with a CSV file in Devices -> Bulk Operations.
Adding Your Devices in CommonSense
-
Connect to your CommonSense instance.
-
Create a container: click the Add button.

-
Choose a Label, the time zone of your country, and click Validate.

-
In the Products section, open Devices and select the product of your device. This example uses an Elsys ERS device.

-
Choose the Category that contains Actility.

-
Fill in the form: Label is the name of your device, Container is the container created before, and HTTP_ID must be the DevEUI of your device. Then click Validate.

Displaying Information to Know if It Worked
-
Make a device associated with the connection send an uplink. In the connection details, the Metrics section counts the uplinks sent to CommonSense.
-
In CommonSense, open Devices -> Provisioning -> List and check that your device is listed.

-
Open the Last Data section to see the messages received.

If your device has not sent any message yet, CommonSense shows this message instead:
Limitations
Limitations depend on your CommonSense account plan.
Troubleshooting
- No data in CommonSense: check that the HTTP_ID of the device in CommonSense is its DevEUI, and that the device is associated with the connection in ThingPark Enterprise.