I would like to connect to AVMS using the agent in legato. At the moment I have not managed to connect and it seems to be an APN releated problem. The log look like below. How do you set the APN in the agent?
13:02:01 -WRN- | modemDaemon[1035]/MdmSvc T=main | le_mdc.c ReadAPNConfiguration() 665 | No APN configuration set for internet profile
13:02:01 =ERR= | dcsDaemon[1052]/dcsDaemon T=Data Thread | serverMain.c StartDataSession() 286 | Failed to start session.
13:02:16 -WRN- | modemDaemon[1035]/MdmSvc T=main | le_mdc.c ReadAPNConfiguration() 665 | No APN configuration set for internet profile
13:02:16 =ERR= | dcsDaemon[1052]/dcsDaemon T=Data Thread | serverMain.c StartDataSession() 286 | Failed to start session.
13:02:31 -WRN- | dcsDaemon[1052]/framework T=main | mem.c le_mem_ForceAlloc() 612 | Memory pool ‘Data Command-reports’ overflowed. Expanded to 8 blocks.
13:02:31 =ERR= | AirVantage[1060]/AirVantage T=main | NETMAN(netman.lua) () 28 | NM request failed: Timeout expired, unable to request connection
13:02:31 =ERR= | AirVantage[1060]/AirVantage T=main | SRVCON(srvcon.lua) () 115 | Error while sending data to server: Timeout expired, unable to request connection
13:02:31 -WRN- | modemDaemon[1035]/MdmSvc T=main | le_mdc.c ReadAPNConfiguration() 665 | No APN configuration set for internet profile
13:02:31 =ERR= | dcsDaemon[1052]/dcsDaemon T=Data Thread | serverMain.c StartDataSession() 286 | Failed to start session.
You are right, it looks like you haven’t set the APN that will be used to start a data connection in the configDB yet. To do so, use the on target ‘apn’ tool to set this configuration:
Thanks, now I get a little bit further. But I still can’t connect to the server. I can see that the agent set up the data connection since the rmnet interface get an IP. I have changed the URL to tcp://eu.airvantage.net:44900 and verified in the debug log that it is used. I have added a system with correct IMEI in AVMS. But I get a connection error, see part of the log below. Does anyone have an idea what might be wrong?
At the moment I don’t have an application model. I did see in some documentation that you should select an app called legato_beta but I did not find it, is it necessary? Where can I find application model legato_beta?
Yes you need to use a model: it is used by airvantage server to describe what are the capabilities of your device: like what protocol does it use to communicate with the server etc.
The error you see in the device logs is the server rejecting the device because the device is trying to communicate with the server whereas the server doesn’t have the required information/configuration to allow this communication.
I’ll try to find out why you don’t have access to the model to use with Legato devices, we’ll get back to you about that.