Pairing¶
Pairing allows users to associate each of their devices to the assets they are actually tracking.
For example, a solution may use GPS trackers to monitor positions of a fleet of trucks. The GPS tracker is the device, and the asset is the truck. Pairing associates trackers to trucks, thereby giving business-specific context to each device without having to hard-code business-specific attributes against the device itself.
Enable pairing on the UI to allow users to use scan-based, search-based, and/or bulk pairing of assets and devices from the desktop and mobile views of an application.
Enabling Pairing¶
To enable pairing on a project, in Architect add the pairingEnabled
property to moltenConfigOptions
within metadata of the system. If the moltenConfigOptions
doesn't already exist, add the entire JSON in:
{
"moltenConfigOptions": {
"pairingEnabled": true
}
}
Then, add one or more of the pairing tags to enable pairing:
is:pairing
- to enable pairing of an asset to a device one at a timeis:bulkPairing
- to enable pairing of assets to devices in bulk
Apply one or both tags on the relationship attribute on which the pairing will occur. For example, to pair a truck to a tracker, apply tags on the truck blueprint’s tracker attribute.
Lastly, create a network for the assets & network for the devices (if not already created), and apply them to the blueprints. This tells the system which identifiers to look for when the user searches for assets and devices in the pairing popup.
- In Architect go to the Device Control > Networks
- Click the + Custom button in the upper right to create the device network
- In the Create Custom Network popup, enter:
- A name for the network: can be something like
asset-network-01
- The API Key: can use the same as the name)
- The identifiers: the field should match the unique identifier used on the asset (e.g.
assetId
)
- A name for the network: can be something like
- In the asset blueprint, add the following tag to the blueprint:
network:[asset network name]:[identifier]
(e.g.network:asset-network01:assetId
) - Repeat the steps for a device network and device blueprint, if not already created
Pairing Assets¶
Individual Pairing¶
Individual pairing is accomplished through using the is:pairing
tag on the relationship blueprint on which the pairing occurs.
Once added, a link icon should appear to the right of the screen title that when clicked shows the action to pair.
To pair an asset to a device:
- Select the Pair action
- In the popup, search for the asset in the Asset field (or whatever the asset blueprint is named) and select it from the list
- Users can also click the camera icon to scan for a barcode using their computer or mobile device's camera. When a barcoe is detected, it will automatically populate in the Asset field
- Search for the device in the Device field (or whatever the device blueprint is named) and select it from the list
- Users can also click the camera icon to scan for a barcode using their computer or mobile device's camera. When a barcode is detected, it will automatically populate in the Device field
- Click Pair and confirm the pairing was succcessful in the confirmation screen
When you pair, any relevant information, such as the position of the device, will be automatically forwarded to the asset.
Pre-selecting asset to pair
Selecting an asset on the table (by marking its checkbox) before clicking the Pair action will auto-populate the Asset ID in the pairing form. This avoids having users needing to manually type in the asset ID every time.
Bulk Pairing¶
Bulk pairing provides users with a CSV template to populate that when uploaded will pair assets to devices en masse. This is particularly helpful for initial system setup or deployments.
Before using bulk pairing, first ensure that the is:bulkPairing
tag is applied on the relationship blueprint on which the pairing occurs.
Once added, a link icon should appear to the right of the screen title that when clicked shows the action to pair.
To bulk pair:
- Select the Bulk Pair action from the menu
- In the Bulk Pair screen, click Bulk Pair CSV Template to download the CSV template
- Open the template file in a spreadsheet editor of your choice (Excel, Google Sheets, etc.)
- In the template there are two columns, one for the asset ID and the other for the device ID. Populate the desired pairings in the sheet. The asset and devices entered in the same row will be paired together
- Save the file
- Return to the Bulk Pair screen and under Upload File, click Browse
- Select the populated template file to upload
- Wait a few seconds for the pairings to occur
- Confirm the results in the subsequent screens
Unpairing Assets¶
Individual Unpairing¶
To unpair an individual asset:
- Click the link icon and select Unpair
- In the Unpair screen, search for the the asset ID to unpair
- Users can also select the checkmark next to the asset before selecting Unpair to auto-populate the asset ID in the unpairing form.
- Click Unpair and confirm the results in the subsequent screen
Bulk Unpairing¶
To unpair assets in bulk:
- Click the link icon and select Bulk Unpair
- In the Bulk Pair screen, click Bulk Unpair CSV Template to download the CSV template
- In the template there is column for the asset ID. Populate the desired asset IDs to unpair in the sheet
- Save the file
- Return to the Bulk Unpair screen and under Upload File, click Browse
- Select the populated template file to upload
- Wait a few seconds for the unpairings to occur
- Confirm the results in the subsequent screens