I’ve been trying to upload my position to AirVantage with AirVantage Data API. When executing the authentication with the server always fails due to error from swiQmi and secStore(I’m not 100% sure, the log will also be attached with this post). I’ve been trying to locate the error but I don’t have enough understanding with these two apps.
The Legato framework version is 17.07.1.
The positioning part was proved to be fine. The procedure of using AV Data API is as follows:
Thank you for your reply. I have already registered my device on the server.
Previously I already managed to send data and command back and forth with sketches installed on the Arduino embedded on mangOH Green through the WP module. But that was using MQTT protocol rather than LWM2M. I will definitely check my registration is correct or not. But I doubt it because I can receive registration notification on AV when I issue AT command on my module to establish AV session.
Thank you CoRfr. I will try with 17.08.1. But when I make the framework for localhost there are some error message after the --Configuring done message:
CMake Warning (dev) at apps/test/fwupdate/fwupdateIntegrationTest/CMakeLists.txt:27 (add_dependencies):
Policy CMP0046 is not set: Error on non-existent dependency in
add_dependencies. Run “cmake --help-policy CMP0046” for policy details.
Use the cmake_policy command to set the policy and suppress this warning.
The dependency target “flashTest” of target “tests_c” does not exist.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at apps/test/framework/log/CMakeLists.txt:35 (add_dependencies):
Policy CMP0046 is not set: Error on non-existent dependency in
add_dependencies. Run “cmake --help-policy CMP0046” for policy details.
Use the cmake_policy command to set the policy and suppress this warning.
The dependency target “log” of target “logTest” does not exist.
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Warning (dev) at apps/test/framework/log/CMakeLists.txt:34 (add_dependencies):
Policy CMP0046 is not set: Error on non-existent dependency in
add_dependencies. Run “cmake --help-policy CMP0046” for policy details.
Use the cmake_policy command to set the policy and suppress this warning.
The dependency target “logDaemon” of target “logTest” does not exist.
This warning is for project developers. Use -Wno-dev to suppress it.
– Generating done
CMake Warning:
Manually-specified variables were not used by the project:
I succeeded making with make localhost. But I cannot build my program on Developer Studio. Symbol resolving errors show up even for those “LE_OK”-like symbols. I just copied the codes that I could succeed building with 17.07.
The module was not able to make Airvantage connection due to failure of LWM2M_DM_PSK_IDENTITY(LWM2M credentials is missing for your module ).
This credentials needs to be provided SierraWireless .And this Credential Need to be generated based on your module FSN
A sample Key will be look like
AT+WAMS=1,9,268,1,0
308201080282010100B225CCFB87A49A4DDFF4D8F86B06FBACA6707493F77E0F32A98DB223F357403083738F8B74F577A0394F7056962D323C13C39F6C1B2073F9B4CDA7ECF4AAB6CEF0709CEA7F2202320B2FF2DE35553F17D286DE95C8C6DC33A27072583A4139AE6B78DD4A1C6AC4DEADB7F8DCAECC203D202104045125BFF519E3980703B9002B54FBEC915DB36D177912E0F25055213F04E4AFB2755AFD3C2CB09FBC460C57C9E025D96CD3F63B312C3965A014442C6E38A937ED84CC9EF8D0D39715B2B3E2C2FAF2EBB89A15BA6993C11CEE9B81A56B17AE8E2D3642C67919BB05DD2B9240953CE5F241AD454B1AE5021055D84BB7AAB60BEA7DEA58FEF99E8DECAAA8714749020103
AT+WAMS=1,10,268,1,0
3082010802820101009F5CB2AD3764BBDBABC31CDD605815E4C095ECB4AA5B6C7E11419E6D57B0F3F95A897E2760CA515EECD745A115BA5F14AA97190AD6B9C116ABA0DEA6BE6A9F9C06FB8C8ED6F94AD4DFC21B1B873BB876B4D4839EBE290D65B4F4224EBD8939FAC2CECA1B37C667F04AA53C7DA32868B7AC7619238455C4E3BE5F9A48BC9DB85CB057941C102039447719499C32FF090CEC62A395D1412456651CF51BE88F02AD432A83538F8033FA4DBEA8013DC3B080CBF57A5A2D53A449062C7BD526667C364EAD5D48256A8E721C004801C3F5A0D548B045939EFD7D816AA6E8A858742D8A3BA292814D03FF87B140287E73A796126ED5E90FE548C103BA6E4780A6875233020103
AT+WAMS=1,11,30
636F6170733A2F2F62732E61697276616E746167652E6E65743A35363834
AT+WAMS=1,12,32
4238463131393842313346393343323841423545444637413137343338433530
AT+WAMS=1,13,16
30D3942EB0AD06FF87D2587D03A2ECE1
Once we got credentials ,we have to enter the credentials
microcom -E /dev/ttyAT
AT!UNLOCK=“A710”
Also
AT+WAMS=1,11,30 (Enter)
636F6170733A2F2F62732E61697276616E746167652E6E65743A35363834(CTRL-Z)
+WAMS: 0 - Success in storing
OK
AT+WAMS=1,11,30 (Enter)
636F6170733A2F2F62732E61697276616E746167652E6E65743A35363834(CTRL-Z)
+WAMS: 1 - Failure in Storing .
OK