AT&T Connection Kit, Part 4 of 4: Managing 2-way Communication

Managing Asset Data to Automate Condition Monitoring

This is Part-4 of a 4-part tutorial that illustrates how to configure the AT&T Connection Kit for Application Developers to communicate with the Axeda Platform. This tutorial assumes that you have received the AT&T Enabled kit from M2M.com using the Ericsson module set and have successfully completed the AT&T/Ericsson tutorial to assure that the reference device is correctly configured and installed on your PC. Additional parts of this tutorial include:

 

 

Axeda uses Expression Rules as a way to evaluate Axeda Platform events, data, and conditions, and run actions based on the results of the evaluation. In this step, you will learn how the Alarm was created in the Get Started sample application and see the relationship between assets, rules, and actions.  In this section, we will be working with the Axeda Platform itself.

Step-1: Launch the Platform (Please Register to enable the Platform Access link)

Note: You must be registered and logged in to the Axeda Developer Connection to access the platform.

Step-2: Accessing Expression Rules

  • Navigate to the Configuration tab

  • Select View > Expression Rules

  • Expand the rule named AlarmIfValueHigh by clicking on the arrow next to the name. Doing so allows you to inspect the properties of the rule.
  • We now have to apply the rule to the ATTDevModel we have been working with. In the Applies To section of the Expression Rule click on the "Edit Rule Applicability" button (circled in red below).

Note: These rules were created for you as part of the registration process.

  • Now add the ATTDevModel. First, click the search button (magnifying glass). Then select ATTDevModel and click "Add". Click "Save".

We have now configured our AlarmIfValueHigh Expression Rule. An Alarm will now be created whenever our value1 is greater than 100. Try it! Use the EricssonAgent application to send the value above 100.

Now, check the sample app to see both the new data and the alarm.

Step-3: Exploring Alarms

In the previous section, you used the EricssonAgent to send a value of 101 for DataItem Value1. When you did that, the resulting data item message caused the Axeda Platform to run the AlarmifValueHigh rule. The "If" condition of the rule evaluated to TRUE because the DataItem value was greater than 100 which caused the "Then" action to run, thereby creating the alarm with a severity of 1000.

Because Expression Rules can also be stacked, we can trigger another rule based on the results of the AlarmifValueHigh rule. Look at the second rule NotifyOnAlarm. You will see that it is not enabled. We're going to enable this alarm, trigger it, and then send a notification. To do this:

 

  • Click the Rule name NotifyOnAlarm to edit the rule

  • Select Enabled
  • In a similar manner, apply the rule to our ATTDevAsset
  • Locate the Then statement

The Then statement is a script that places an automated call. The second part includes the telephone number that you provided as part of the registration process. Make sure that there is a phone nearby and if not, change the number to one that is. No special format for the phone number is required.

  • Click Save to save the Expression Rule

Now return to the Simulator and resend a value of 101 for DataItem Value1. In a few moments your phone should ring! Wait a few seconds after answering to hear the generated message from the platform alert.

Again, Congratulations! You have just seen how data from your asset can trigger rules and how a rule can perform an action.

Learn more about this application and the power of the Platform...