Have several mangoh Red with WP8548 (SWI9X15Y_07.12.09.00) and have to get the “install application” or “install bundle” to work from airvantage. Have followed the Getting started and installed redSensorToCloud. Have registered the module on airvantage and sending data with redSensorToCloud works. I then activate 15 min heartbeat with the configure communication button.
Have buildt helloWorld with av-pack and published on airvantage like this. But when I try to install the application from airvantage nothing is installed.
from airvantage:
action [LWM2M_SW_UPDATE]
The software is not installed on the device - Installing FULL package
Upgrade failure [Invalid Update State value: 0]
logs:
Automatically deffering download, while waiting for control app to register? Do I need to install avcControl?
@asyal my control app avcControl get marked as an “object 9 instance” (?) and uninstalled when I try to install application from airvantage! This then stops the download and install of the new app…
How do I avoid that the apps I add to my sdef get uninstalled?
Maybe you @dfrey can give me a hint as to what I’m doing wrong?
Can’t install or upgrade my application from airvantage because avcControl always get uninstalled in the progress.
@nilsarve: I had a lot of discussions with some folks regarding this issue. This seems to be a Legato problem.
Here is a link from the legato forum which helped me coming up with a solution:
At my company we are developing a solution using both FX30 and mangOH green. While in the forum I only asked questions regarding FX30, I was facing the same problems with mangOH board as well. We finally had to roll back to 16.10.1 and deploy on both hardware target and its working now.
@asyal: May be someone from the legato team could potentially fix this so that we can use the feature for versions beyond 16.10.1 on all hardware platforms.
Tried legato 16.10.1 now! Modified the avcControl from 17.11 to make it run and it does download the package without uninstalling any apps! Guess I just need to add som code to install the package when it’s complete.
Using 16.10.1 is a work around but I would be more comfortable using a newer legato version…
Hopefully someone can fix this issue!
Or can someone confirm that it works with legato 17.11?
So the problem is : Few apps are getting uninstalled while you tried to install a helloWorld application from the server.
If that is the case I would check the application model associated with your device on the server side. Specifically the version. The Lwm2m spec changed between these two versions of legato and what used to be a app in good state is different. Hence if you don’t indicate to the server correct lwm2m spec to use, the server would think the app is in a bad state and would initiate an Uninstall.
Interesting!
I used av-pack to create zip files and I only edited the application model when making a bundle. So to add avcControl to my system I need to add it to airvantage first, with the protocol part added to the application model?
Sorry, This is not the application model I was referring to. If you browse to your device on the server side (Monitor->Systems->YourDevice] you will see the Firmware application model tied you
device Application-Model|470x294.
If you click on the Firmware application model, it should take you to a page where you can see the application model.
Ok. That one. Here it is.
<?xml version="1.0" encoding="UTF-8"?><app:application xmlns:app=“http://www.sierrawireless.com/airvantage/application/1.0” type=“WP8548” name=“WP8548_SWI9X15Y_07.12.09.00” revision=“SWI9X15Y_07.12.09.00”>