Skip to main content
Version: 1.8.5

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 FieldDescription
NameName of the connection.
DescriptionOptional description of the connection.

Creating a Connection With UI​

  1. In ThingPark Enterprise, click Connections -> + Add Connection -> ThingPark X IoT Flow. Add a ThingPark X IoT Flow connection in ThingPark Enterprise

  2. In ThingPark X IoT Flow, click CommonSense in the list of connectors. Select the CommonSense connector

  3. Fill in the form:

    • Name: a clear name for the connection, for example My CommonSense Connection.
    • Description: optional. Set your CommonSense connection
  4. Click Create. A notification confirms that the connection has been created, and the connection details open.

  5. In the connection details, check that the connection is OPENED (see Connection States).

Note

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 /connections to create a new Connection instance
  • PUT /connections to update a Connection instance
  • DELETE /connections to delete a Connection instance
Note

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.

FieldDescription
connectorIdMust be set to actility-http-iot.
configuration/destinationURLMust be set to https://cs-vm2m.net/com/http?idName=DevEUI_uplink+DevEUI.
brandMust be set to COMMONSENSE.
Important note

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​

  1. Connect to your CommonSense instance.

  2. Create a container: click the Add button. Add a container in CommonSense

  3. Choose a Label, the time zone of your country, and click Validate. Validate the container in CommonSense

  4. In the Products section, open Devices and select the product of your device. This example uses an Elsys ERS device. Select a product in CommonSense

  5. Choose the Category that contains Actility. Choose the Actility category in CommonSense

  6. 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. Device form in CommonSense, first part Device form in CommonSense, second part

Displaying Information to Know if It Worked​

  1. Make a device associated with the connection send an uplink. In the connection details, the Metrics section counts the uplinks sent to CommonSense.

  2. In CommonSense, open Devices -> Provisioning -> List and check that your device is listed. Provisioning list in CommonSense

  3. Open the Last Data section to see the messages received. Last data of a device in CommonSense

If your device has not sent any message yet, CommonSense shows this message instead: No data received yet in CommonSense

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.