# Can't UPDATE application by SOTA, Please help me

**URL:** <https://forum.legato.io/t/cant-update-application-by-sota-please-help-me/3470>\
**Category:** Uncategorized\
**Created:** [July 23, 2018, 8:13am UTC](https://forum.legato.io/t/cant-update-application-by-sota-please-help-me/3470 "2018-07-23T08:13:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![comcom](https://avatars.discourse-cdn.com/v4/letter/c/e47774/32.png) [@comcom](https://forum.legato.io/u/comcom)\
**Post date:** [July 23, 2018, 8:13am UTC](https://forum.legato.io/t/cant-update-application-by-sota-please-help-me/3470/1 "2018-07-23T08:13:24Z")

</div>

Hi all,

I’m working with FX30 Gateway , I released ZIP file (include **manifest.app** and **LOCATION\_TEST.wp750x.update** ) to Airvantage, then I follow with [AirPrime - WP Series - AirVantage Software Over-The-Air Guidelines - 2174152 - Rev1.0.pdf](https://forum.legato.io/uploads/short-url/dwmHz0HrL2uLsAsKGh9YXUZn3qD.pdf) (1017.6 KB)  
**in section 9.1** , so i got ![l1](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/1X/4c2937e01479df2d5f78fc7b463f5b096e09c6eb.PNG)

 ![L3](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/1X/6ea70eb55fe1577798be59d4e7dabb1a2dcc1055.PNG)  
I checked AVMS with command line “AT+WDSS=1,1” and it return “OK, +WDSI: 4, +WDSI: 6, WDSI: 23, 1”, .I know that FX30 successfully connected with AVMS , so Why dont my application display on widget and updated? Please heip me !!! I stuck with it a long time :((

---

<div class="post-metadata">

**Author:** ![fdu](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/fdu/32/811_2.png) [@fdu](https://forum.legato.io/u/fdu)\
**Post date:** [July 23, 2018, 8:29pm UTC](https://forum.legato.io/t/cant-update-application-by-sota-please-help-me/3470/2 "2018-07-23T20:29:01Z")

</div>

Hi,  
when you connect your device to the AirVantage server after creating your SOTA job, what is the color of the job bar ?  
Does it remain in grey ?  
If it remains in grey, please check if the SOTA job was created for the device that you connect to the server.  
It it becomes blue, it means that data on SOTA were send to the device.  
Can you indicate the result of the following commands on your device ?  
AT+WDSC?  
AT+WDSI?  
Thanks

---

<div class="post-metadata">

**Author:** ![comcom](https://avatars.discourse-cdn.com/v4/letter/c/e47774/32.png) [@comcom](https://forum.legato.io/u/comcom)\
**Post date:** [July 25, 2018, 3:44am UTC](https://forum.legato.io/t/cant-update-application-by-sota-please-help-me/3470/3 "2018-07-25T03:44:16Z")

</div>

Hi @fdu,

It becomes blue color, but It have stucked for 20 minutes.How long do it normal install completely? Do you think that my issue from definable XML file ?

 ![xanh](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/1X/9c7018a9de6f9d499f551d71c13489c91fae9c32.PNG)

---

<div class="post-metadata">

**Author:** ![fdu](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/fdu/32/811_2.png) [@fdu](https://forum.legato.io/u/fdu)\
**Post date:** [July 25, 2018, 6:35am UTC](https://forum.legato.io/t/cant-update-application-by-sota-please-help-me/3470/5 "2018-07-25T06:35:13Z")

</div>

Please indicate what are the responses to AT+WDSI? and AT+WDSC? command.  
I think that user agreement are activated, but you need to activate the +WDSI notifications.  
Example: AT+WDSI=4479  
Then if you didn’t canceled your job on server side, if you send this command and reboot your device, you should have a +WDSI: 2 notification meaning that a package download is pending. You need to accept it by sending AT+WDSR=3 command.  
The user agreement is activated by default.  
You can check it by sending AT+WDSC? command.  
If you have +WDSC: 1,1 response in this command response, this is the configuration “issue”.  
To deactivate it and automatically download the package, send AT+WDSC=1,0  
You also have a user agreement configuration for package install (+WDSC: 2,x (x=0 deactivated, x=1 activated)  
I think that your user agreement is activated but you didn’t activate +WDSI notification so you are not aware that you need to accept the package download.

---

<div class="post-metadata">

**Author:** ![comcom](https://avatars.discourse-cdn.com/v4/letter/c/e47774/32.png) [@comcom](https://forum.legato.io/u/comcom)\
**Post date:** [July 25, 2018, 8:45am UTC](https://forum.legato.io/t/cant-update-application-by-sota-please-help-me/3470/6 "2018-07-25T08:45:11Z")

</div>

Hi @fdu  
Thanks you for your support, What should I do now?

AT+WDSC?  
+WDSC: 0,0  
+WDSC: 1,1  
+WDSC: 2,1  
+WDSC: 3,0  
+WDSC: 4,0

AT+WDSI?

+WDSI: 8191

 ![PNG](https://us1.discourse-cdn.com/flex019/uploads/legato1/original/1X/44959b98ae2f0f45edcfa099022c68f18d74830a.jpg)

---

<div class="post-metadata">

**Author:** ![fdu](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/fdu/32/811_2.png) [@fdu](https://forum.legato.io/u/fdu)\
**Post date:** [July 25, 2018, 9:08am UTC](https://forum.legato.io/t/cant-update-application-by-sota-please-help-me/3470/7 "2018-07-25T09:08:28Z")

</div>

Good.  
Now if you reboot your device, you should have some notification at startup:

```auto
+WDSI: 9,<size>
+WDSI: 2

```

`<size>`is the package size that the device can download for the SOTA job

If you don’t have such notifications, there is an issue in Legato.  
If you have these notifications, you should accept the download by sending `AT+WDSR=3` command.

If you don’t want to send such commands and make the download/install automatic, you need to send

```auto
AT+WDSC=1,0
AT+WDSC=2,0

```

Note that the configuration which is sets by `+WDSC` command is persistent to reset.

If you still have issue, I suggest you to abort your SOTA job on server side and create a new one.  
Before connection, sets the download/install configuration as you required and connect the device.

Sum-up for SOTA job treatment

1. Suggest to activate `+WDSI`notifications (`AT+WDSI=8191`)

2. To configure an automatic package download: `AT+WDSC=1,0`  
When the device connects to the server and when server sends information about SOTA to the device, the automatically download is launched by the device

3. To configure an manual package download: `AT+WDSC=1,1`  
When the device connects to the server and when server sends information about SOTA to the device, the download is not automatically launched by the device and `+WDSI: 2`notification is returned by the device. The user needs to accept it by sending `AT+WDSR=3`.

4. To configure an automatic package install at the end of package download: `AT+WDSC=2,0`  
When the package is fully downloaded, the server sends the install request to the device, then the package is automatically installed by the device

5. To configure a manual package install at the end of package download: `AT+WDSC=2,1`  
When the package is fully downloaded, the server sends the install request to the device, then the package is not automatically installed by the device and the `+WDSI: 3` notification is returned by the device. The user needs to accept it by sending `AT+WDSR=4`.
