All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Demo Applications

Setup Demo

  • Ensure SIM is registered to network. See CM SIM.
  • Ensure APN name has been set. See CM Data.

Install Demo

There are two sample applications included with Legato code to demo various services.

If you're using an AR7 module in your device, substitute ar7 for wp7.

Note
All sample applications are built along with Legato, you can find them in build/<target>/bin/samples.

AirVantage demo

Warning
You must setup an AirVantage connection to your Legato device before installing the AirVantage demo: Connect to AirVantage.

To install and use this app:

$ cd apps/sample/airvantageDemo
$ make wp7
$ instapp airvantageDemo.wp7 <ip address>

where <ip address> is the address of your target device.

Modem demo

To install and use this app:

$ cd apps/sample/modemDemo
$ make wp7
$ instapp modemDemo <ip address>

where <ip address> is the address of your target device.

Demo Commands

The modemDemo app accepts several commands (through sending the target a SMS message) and will reply with the results:

  • Status - return some status information of the target like radio is on/off and signal strength
  • Sim - returns sim state/info (iccid and imsi)
  • Online - turns on data connection
  • Netinfo - network information like gateway address
  • Offline - turns off data connection
  • TestDataConnection - test data connection

Customization

This sample app can be customized by editing the modemDemo.adef and related C source files.

For instance, in modemDemo.adef, adding a send execution on start-up will make the system notify you when the app is running. In order to do that, uncomment the run line and replace +18005550199 by your own cell number.

processes:
run: ( modemDemo )
run: ( send "+18005550199" "Welcome to modemDemo app")

In modemDemo/demo.c, it is also possible to extend the list of processed commands.

What's Next?

Pushing Data
Connect to AirVantage


Copyright (C) Sierra Wireless, Inc. 2014. All rights reserved. Use of this work is subject to license.