Cisco_EI_Custom Data Logic

published

Custom Data Logic Scripts for Customer and Partners Reference

For Cisco Edge Intelligence Master Reference ,kindly use this link below

https://developer.cisco.com/codeexchange/github/repo/nmanicka/edgeintelligence/

Cisco Edge Intelligence (EI) allows to extract, tranform, govern and deliver data from sensor devices to cloud/datacenter applications.

Cisco Edge Intelligence on DevNet - https://developer.cisco.com/edge-intelligence/

Architecture of the various IOT gateways connecting via "Edge Intelligence" Software to the Northbound Microsoft IOT Azure Cloud.

New Note

Using standard MQTT destination configuration in Cisco (Edge Intelligence) EI application, data can be forwarded to many data destinations like Azure IOT Hub, IBMS Watson, 3rd Party MQTT brokers, et al etc.

EI_2

EI_6

For a detailed list of Steps on how to use VS Code IDE or other tools to develop your own Custom Data Logic script, kindly refer the link below.
https://marketplace.visualstudio.com/items?itemName=Cisco.iot-edge-intelligence

For a detailed list of steps on how to use Cisco EI dashboard on IOTOD (IOT Operations dashboard) to un-map the Data rule which was previously mapped to EI agent and then create a Custom data logic script which can be then mapped to EI agent, kindly refer link below for the self paced walkthrough of all the steps.

https://developer.cisco.com/docs/iotod/#!deploy-data-logic-in-cisco-ei

To Kickstart this project you need access to the following resources below.

  1. Sensors/PLCs/Simulators - of type: MQTT, OPCUA, Modbus TCP/Serial, EIP/CIP, Serial etc
  2. Cisco Edge Intelligence (EI)
    - latest Cisco EI/ Edge Software - SW packages can be downloaded from Cisco.com
    - Cloud Portal account - A valid account in Cisco EI cloud portal access in Cisco IOTOD (Operations Dashboard)
  3. Knowledge of Cisco EI - docs @ https://developer.cisco.com/edge-intelligence/
  4. Data Destination access /support for accounts in Azure IOT Hub, 3rd Party MQTT Broker, IBM Watson, Software AG Cumulocity.
  5. Java script and Python modules: ssl, Mosquitto MQTT SDK, HivemQ SDK, paho-mqtt, json etc

The following is a list of Data rules and Config parameters available in the Data rules which are supported in Cisco EI agent software
IOT - AIML
Connection Type

Here is some sample illustration for receiving data (polling from source) from the different southbound connectors like OPCUA, Modbus, EI/CIP, Serial etc into the EMLcomponent (edge management link) of Edge Intelligence and then triggring the publish of data via MQTT PubSub mechanism to Azure IOT hub (MQTT Broker)on the northbound side.
Arch

OUTPUT:

Sample Output of the JSON data received on the Northbound Azure IOT Hub side by using this Customized Data Logic script (.js) on the Edge side.

{
"body": {
"LT301B": {
"ts": 1658850577965,
"v": 55.234161376953125
},
"LZT101": {
"ts": 1658850577965,
"v": 61.486026763916016
},
"PZT2401": {
"ts": 1658850577965,
"v": 6.029730796813965
},
"TT303B": {
"ts": 1658850577975,
"v": -65.90711975097656
},
"TT501C": {
"ts": 1658850577974,
"v": -50.60000610351563
}
},
"enqueuedTime": "Tue Jul 26 2022 11:49:40 GMT-0400 (Eastern Daylight Time)",
"properties": {
"deviceInfo": "{"Region":"Europe","Country":"Germany","CustomerId":"XXXXX-XXXXX-XXXXXX-XXXXXX-XXXXXXX","StationId":"aaaaaaaa-6000-6000-6000-000000000003","StationName":"Liquind 6"}"
}
}

Disclaimer:
Cisco provides Code Exchange for convenience and informational purposes only, with no support of any kind. This page contains information and links from third-party websites that are governed by their own separate terms. Reference to a project or contributor on this page does not imply any affiliation with or endorsement by Cisco.