# WP8548 - MangOH Green - Report Location Into AirVantage

**URL:** <https://mangoh.discourse.group/t/wp8548-mangoh-green-report-location-into-airvantage/501>\
**Category:** mangOH Green\
**Created:** [April 25, 2017, 8:39pm UTC](https://mangoh.discourse.group/t/wp8548-mangoh-green-report-location-into-airvantage/501 "2017-04-25T20:39:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bhammer](https://avatars.discourse-cdn.com/v4/letter/b/71e660/32.png) [@bhammer](https://mangoh.discourse.group/u/bhammer)\
**Post date:** [April 25, 2017, 8:39pm UTC](https://mangoh.discourse.group/t/wp8548-mangoh-green-report-location-into-airvantage/501/1 "2017-04-25T20:39:15Z")

</div>

Hello,

What is needed for the WP8548 module to report it’s location into AirVantage? I have used enabled GPSAUTOSTART and checked my satellite info and last location lock. I also have enabled communication with the server.

AT!GPSAUTOSTART=1,1,255,100,1  
OK  
AT!RESET  
OK  
at!gpssatinfo?  
Satellites in view: 14 (2017 04 25 1 16:18:52)

- SV: 3 ELEV: 45 AZI: 226 SNR: 40
- SV: 4 ELEV: 0 AZI: 0 SNR: 43
- SV: 8 ELEV: 7 AZI: 168 SNR: 36
- SV: 14 ELEV: 8 AZI: 120 SNR: 35
- SV: 16 ELEV: 72 AZI: 68 SNR: 39
- SV: 22 ELEV: 30 AZI: 195 SNR: 39
- SV: 23 ELEV: 58 AZI: 324 SNR: 37
- SV: 26 ELEV: 43 AZI: 45 SNR: 40
- SV: 27 ELEV: 22 AZI: 136 SNR: 40
- SV: 31 ELEV: 11 AZI: 66 SNR: 38
- SV: 46 ELEV: 50 AZI: 181 SNR: 36
- SV: 51 ELEV: 49 AZI: 198 SNR: 46
- SV: 74 ELEV: 42 AZI: 270 SNR: 23
- SV: 70 ELEV: 32 AZI: 165 SNR: 25

at+wdsi = 8191  
OK  
at+wdss=1,1  
OK

+WDSI: 4

+WDSI: 6

+WDSI: 23,1

Thanks,

Brandon

---

<div class="post-metadata">

**Author:** ![Ankita](https://avatars.discourse-cdn.com/v4/letter/a/91b2a8/32.png) [@Ankita](https://mangoh.discourse.group/u/Ankita)\
**Post date:** [May 3, 2017, 10:04am UTC](https://mangoh.discourse.group/t/wp8548-mangoh-green-report-location-into-airvantage/501/2 "2017-05-03T10:04:57Z")

</div>

Hello Brandon ,

You would need an application to be developed that needs to use the positioning services  
and establish the communication with Airvantage cloud for sending the location information.  
The required bindings needs to be specified in the .adef file of the application.  
You can choose to have two components or it can be done in single component.  
bindings snippet from sample implementation .

bindings:  
{  
assetDataTutorial.componentAssetData.le\_avdata -\> avcService.le\_avdata  
assetDataTutorial.componentAssetData.le\_avc -\> avcService.le\_avc  
}

note you need to have your components to be attached to service provider Api’s

You need to add asset field to the .cdef for the component .  
assets:  
{  
Room =  
{  
variables:  
{  
string Name  
float Temperature // Fields which you want to update to Airvantage(Read for Airvantage)

bool IsAC\_on  
}

settings:  
{  
int TargetTemperature  
}

commands:  
{  
TurnOffAC  
}  
}  
}

The above snippet is taken from sample implementation available  
You can check the sample App for data exchange with Air vantage here  
[https://github.com/nhonchu/LegatoAssetData](https://github.com/nhonchu/LegatoAssetData)

Moreover , for more details on Definition files and App installation  
[http://legato.io/legato-docs/latest/howToAirVantageExchangeData.html#howToAirVantageExchangeData\_implementLegatoApp\_sampleCode](http://legato.io/legato-docs/latest/howToAirVantageExchangeData.html#howToAirVantageExchangeData_implementLegatoApp_sampleCode)

you should assure before data exchange can start with Air Vantage, a LWM2M session must be established.

Regards  
Ankita

---

<div class="post-metadata">

**Author:** ![bhammer](https://avatars.discourse-cdn.com/v4/letter/b/71e660/32.png) [@bhammer](https://mangoh.discourse.group/u/bhammer)\
**Post date:** [May 5, 2017, 6:37pm UTC](https://mangoh.discourse.group/t/wp8548-mangoh-green-report-location-into-airvantage/501/3 "2017-05-05T18:37:25Z")

</div>

Thank you for the help!

[cid:image019.png@01D0E4DB.789D2640][http://www.getwirelessllc.com/](http://www.getwirelessllc.com/)

Brandon Hammer  
Technical Resources | GetWireless • Connecting the Internet of Things

![](https://us1.discourse-cdn.com/flex016/uploads/mangoh/original/1X/e89ef8670eb5b188c9223158de6ef8230d71f23c.png)

---

<div class="post-metadata">

**Author:** ![virpadte](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/virpadte/32/245_2.png) [@virpadte](https://mangoh.discourse.group/u/virpadte)\
**Post date:** [August 21, 2017, 10:25pm UTC](https://mangoh.discourse.group/t/wp8548-mangoh-green-report-location-into-airvantage/501/4 "2017-08-21T22:25:56Z")

</div>

Hi Ankita, I tried building the sample you pointed in the GitHub profile. I am I am able to run the application on mangOH. However, I am not able to see any data on my airvantage. Could you guide me to see if I am making any configuration errors?
