The next step when you develop an application is to test its behaviour. AirVantage provides several features to help you debug and validate your IoT solution.
We assume you already registered your system and you configured it to use your application. Now you want to troubleshoot the overall solution. The first step is to be sure your system is communicating well with AirVantage.
AirVantage provides several information regarding the state of the connection.
To be sure your system is communicating well, AirVantage proposes a screen to see all the messages received from a given system.
It’s available through Monitor > Systems. Select your system and go to its details page then click on the “Timeline” button. You should see the screen on the right.
Each bar represents a communication received by AirVantage for the selected system. If you click on one of the bars, the data sent in this communication is displayed under the graph.
So if you don’t see a communication bar where you expected one, check the communication configuration on the embedded side:
In each bar, the set of data sent to the server are listed. So you can check all data has been sent correctly. If a data is displayed with a path, that means your application model is not correct and you may check the path consistency between the embedded application and the application model.
Once the communication between AirVantage and the device is working fine, you want to validate the behaviour of your solution more comprehensively. You can interact with the device using “Apply settings” and “Send commands” operations (depending on the features supported by your embedded applications).
To send commands, you go to Monitor > Systems, select your system and go to its details page. Then you can click on the “More” button and select the “Custom command” action. It opens the following dialog. In this dialog, you can select one of the commands available on your system. When you click on “Create”, it initializes a “Custom command” operation.
You can check the progress of this operation by switching to the “Operations” tab. The operation will be executed by default at the next communication from the system.
To send a value, you need to have declared a setting in the application model associated to your system. Then you can edit it by following these steps:
The mechanism by which you can request values from a device using Airvantage works throught Dataset. A Dataset specifies a list of variables and settings that AirVantage has to retrieve from the device.