# Remotely updating mangos without AirVantage

**URL:** https://mangoh.discourse.group/t/remotely-updating-mangos-without-airvantage/1279
**Category:** Uncategorized
**Created:** [March 26, 2018, 10:08pm UTC](https://mangoh.discourse.group/t/remotely-updating-mangos-without-airvantage/1279 "2018-03-26T22:08:58Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![dingo](https://avatars.discourse-cdn.com/v4/letter/d/c2a13f/32.png) [@dingo](https://mangoh.discourse.group/u/dingo)
#### Post date: [March 26, 2018, 10:08pm UTC](https://mangoh.discourse.group/t/remotely-updating-mangos-without-airvantage/1279/1 "2018-03-26T22:08:58Z")

</div>

So I guess its time to toss this out there, has anyone imagined a proceedure to remotely update firmwares, weather it be updates, cwe or full image spk files without going through AirVantage as we cannot use it in our scenerio?.. thoughts, ideas and inputs welcome…

---

<div class="post-metadata">

### Author: ![niladridm](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/niladridm/32/91_2.png) [@niladridm](https://mangoh.discourse.group/u/niladridm)
#### Post date: [March 27, 2018, 5:52am UTC](https://mangoh.discourse.group/t/remotely-updating-mangos-without-airvantage/1279/2 "2018-03-27T05:52:00Z")

</div>

Hi,  
below link may be helpful for you.

> [@Legato application update from ftp](https://mangoh.discourse.group/t/legato-application-update-from-ftp/546/2):
>
> Hi Nila, You should be able to get your FTP working using the lib curl. The sample use of libcurl for HTTP Get request is already available in the HTTPGET sample. Following the HTTP Get sample you should be able to build the FTP client code using curl. Below is FTPGET c example code using curl which should provide you the quick reference to get started: [https://curl.haxx.se/libcurl/c/ftpget.html](https://curl.haxx.se/libcurl/c/ftpget.html) Below is a command line example if you wish to give a quick try over the command line: [http:/…](http://linux.byexamples.com/archives/320/using-curl-to-access-ftp-server/)

---

<div class="post-metadata">

### Author: ![dingo](https://avatars.discourse-cdn.com/v4/letter/d/c2a13f/32.png) [@dingo](https://mangoh.discourse.group/u/dingo)
#### Post date: [March 28, 2018, 1:32pm UTC](https://mangoh.discourse.group/t/remotely-updating-mangos-without-airvantage/1279/3 "2018-03-28T13:32:56Z")

</div>

ok read that thread, but what exactly is thie process to use the update tool in the target to install the application. ?? i can get the spk on the device easily via scp but… flashing it from inside the device… kinda not really understanding it

Once your application is downloaded in the target over FTP, you can use the update tool in the target to install the application.

---

<div class="post-metadata">

### Author: ![kalaivani](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/kalaivani/32/2183_2.png) [@kalaivani](https://mangoh.discourse.group/u/kalaivani)
#### Post date: [January 12, 2021, 4:53pm UTC](https://mangoh.discourse.group/t/remotely-updating-mangos-without-airvantage/1279/4 "2021-01-12T16:53:15Z")

</div>

hi can i ve the sample code to update the firmware from ftp location and install in the device

I read the file from the ftp location . i would like to know how to install the .update file to the device through program

---

<div class="post-metadata">

### Author: ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)
#### Post date: [January 12, 2021, 9:06pm UTC](https://mangoh.discourse.group/t/remotely-updating-mangos-without-airvantage/1279/5 "2021-01-12T21:06:52Z")

</div>

You can see the code here on the “update” command

> <https://github.com/legatoproject/legato-af/blob/master/framework/tools/target/linux/update/update.c>

---

<div class="post-metadata">

### Author: ![kalaivani](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/kalaivani/32/2183_2.png) [@kalaivani](https://mangoh.discourse.group/u/kalaivani)
#### Post date: [January 13, 2021, 11:54am UTC](https://mangoh.discourse.group/t/remotely-updating-mangos-without-airvantage/1279/6 "2021-01-13T11:54:26Z")

</div>

how to give binding for the update api in .adef file

---

<div class="post-metadata">

### Author: ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)
#### Post date: [January 13, 2021, 1:20pm UTC](https://mangoh.discourse.group/t/remotely-updating-mangos-without-airvantage/1279/7 "2021-01-13T13:20:42Z")

</div>

You can see \apps\platformServices\airVantageConnector\avcService.adef

```
avcDaemon.avcDaemon.le_update -> <root>.le_update
```

---

<div class="post-metadata">

### Author: ![kalaivani](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/kalaivani/32/2183_2.png) [@kalaivani](https://mangoh.discourse.group/u/kalaivani)
#### Post date: [January 18, 2021, 11:55am UTC](https://mangoh.discourse.group/t/remotely-updating-mangos-without-airvantage/1279/8 "2021-01-18T11:55:48Z")

</div>

am getting the following error

Binary app ‘OTA’ interface binding ‘le\_update’ missing.

---

<div class="post-metadata">

### Author: ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)
#### Post date: [January 18, 2021, 12:05pm UTC](https://mangoh.discourse.group/t/remotely-updating-mangos-without-airvantage/1279/9 "2021-01-18T12:05:45Z")

</div>

Why don’t you directly use modify the avcService application?  
It is already working fine.

root@swi-mdm9x28-wp:~# app status  
[running] atAirVantage  
[running] atQmiLinker  
[running] atService  
[running] audioService  
[running] avcService

---

<div class="post-metadata">

### Author: ![kalaivani](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/kalaivani/32/2183_2.png) [@kalaivani](https://mangoh.discourse.group/u/kalaivani)
#### Post date: [January 18, 2021, 12:07pm UTC](https://mangoh.discourse.group/t/remotely-updating-mangos-without-airvantage/1279/10 "2021-01-18T12:07:26Z")

</div>

i want to download the .update file from the local ftp location

---

<div class="post-metadata">

### Author: ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)
#### Post date: [January 18, 2021, 1:15pm UTC](https://mangoh.discourse.group/t/remotely-updating-mangos-without-airvantage/1279/11 "2021-01-18T13:15:32Z")

</div>

I just have a try to add that line in modemDemo app, I don’t see problem:

```
bindings:
{
	send.sendComponent.send -> modemDemo.demoComponent.send

    modemDemo.demoComponent.le_mdc -> modemService.le_mdc
    modemDemo.demoComponent.le_mrc -> modemService.le_mrc
    modemDemo.demoComponent.le_sim -> modemService.le_sim
    modemDemo.demoComponent.le_sms -> modemService.le_sms
    modemDemo.demoComponent.le_data -> dataConnectionService.le_data

	modemDemo.demoComponent.le_update -> <root>.le_update
}

```

And in the .cdef file, you need to add " le\_update.api":

```
requires:
{
    api:
    {
        modemServices/le_sms.api
        modemServices/le_mrc.api
        modemServices/le_mdc.api
        modemServices/le_sim.api
        le_data.api

        le_update.api
    }
}
```
