Skip to content

IoT Device pairing with application

Overview of concepts and best practices for pairing IoT devices with application.

Every Device Type that has decoder gets default base for code which follows convention

[device_manufacturer_company]-[device-model-name-and-potential-version]-[firmware-version]

Example of default base code for Senzemo Senspuck SPU10B

sensedge-senspuck-spu10b-v001

Naming convention schemas recommendations

It’s highly recommended that you define strict and well-described naming conventions for your different device types which are in use inside your tenant!

Well-defined naming convention saves a lot of time when establishing IoT sensor ecosystem for your tenant and prevents debugging why there is no decoded data for specific device in application.

Few examples of good naming convention schemas for specific device:

[device_manufacturer_company]-[device-model-name-and-potential-version]-[sequence-number]
[device_manufacturer_company]-[device-model-name-and-potential-version]-[serial-number]

Automatic device recognition

If devices are named by conventions, automatic device recognition is possible.

It is recommended that sequence or device serial number is appended to the end of specific device name that automatic device recognition works.

Example for specific device name for device type Senzemo Senspuck SPU10B based on default code:

sensedge-senspuck-spu10b-v001-0000025

Instead of sequence number, you can use serial number or something different that is unique. Example:

sensedge-senspuck-spu10b-v001-[serial-number]
or
sensedge-senspuck-spu10b-v001-[custom-unique-word]

Decoding processing logic in the application recognizes device type sensedge-senspuck-spu10b-v001 without any doubts and therefore also payload decoding logic.


Applying additional pairing code base for Device Type

It is possible to assign one or more different pairing code bases for specific Device Type.

When assigning a new pairing code base for device type consider:


Updating major firmware version in production environment

When updating firmware (major version) of installed IoT devices (based on specific Device Type), it is MANUAL JOB to change Device Type on specific devices to different device type.

Correst order of steps when updating firmware for specific device type:

  1. If there are custom pairing code bases on old device type, delete them and create identical ones on new device type.
  2. Based on firmware updating status of specific devices, update device type manually in application for these specific devices.