AVMS

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.

Hi,

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:

apn set <apn name>

-Enoch

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?

Jul 10 12:35:04 swi-mdm9x15 user.info Legato: INFO | dcsDaemon[2653]/dcsDaemon T=Data Thread | serverMain.c SetDnsConfiguration() 194 | Set DNS '80.251.201.177' '80.251.201.178' Jul 10 12:35:09 swi-mdm9x15 user.info Legato: INFO | AirVantage[2661]/AirVantage T=main | agent_platform_core_nm.c ConnectionStateHandler() 89 | Network interface 'rmnet0' is connected Jul 10 12:35:09 swi-mdm9x15 user.debug Legato: DBUG | AirVantage[2661]/AirVantage T=main | SCHED(=[C]) () -1 | SIGNAL netman-legato.connected Jul 10 12:35:09 swi-mdm9x15 user.debug Legato: DBUG | AirVantage[2661]/AirVantage T=main | SCHED(fd.lua) () 182 | SIGNAL table: 0x52bc8.read Jul 10 12:35:09 swi-mdm9x15 user.debug Legato: DBUG | AirVantage[2661]/AirVantage T=main | SCHED(platform.lua) () 51 | STEP thread: 0x90740 Jul 10 12:35:09 swi-mdm9x15 user.debug Legato: DBUG | AirVantage[2661]/AirVantage T=main | SCHED(netman.lua) () 32 | SIGNAL NETMAN.CONNECTED Jul 10 12:35:09 swi-mdm9x15 user.info Legato: INFO | AirVantage[2661]/AirVantage T=main | M3DA-SESSION(default.lua) () 74 | Opening default session #1 Jul 10 12:35:09 swi-mdm9x15 user.debug Legato: DBUG | AirVantage[2661]/AirVantage T=main | SCHED(fd.lua) () 96 | WAIT emitter = tcp{client}: 0xee688, events = { write, error, closed } ) Jul 10 12:35:10 swi-mdm9x15 user.debug Legato: DBUG | AirVantage[2661]/AirVantage T=main | SCHED(fd.lua) () 182 | SIGNAL tcp{client}: 0xee688.write Jul 10 12:35:10 swi-mdm9x15 user.debug Legato: DBUG | AirVantage[2661]/AirVantage T=main | SCHED(platform.lua) () 51 | STEP thread: 0x90740 Jul 10 12:35:10 swi-mdm9x15 user.debug Legato: DBUG | AirVantage[2661]/AirVantage T=main | SCHED(tcp.lua) () 38 | SCHEDULE thread: 0xd8468 Jul 10 12:35:10 swi-mdm9x15 user.debug Legato: DBUG | AirVantage[2661]/AirVantage T=main | M3DA-TRANSPORT(tcp.lua) () 39 | Opening socket Jul 10 12:35:10 swi-mdm9x15 user.debug Legato: DBUG | AirVantage[2661]/AirVantage T=main | BYSANT-M3DA(bysant.lua) () 229 | Streaming header Jul 10 12:35:10 swi-mdm9x15 user.debug Legato: DBUG | AirVantage[2661]/AirVantage T=main | BYSANT-M3DA(bysant.lua) () 237 | Streaming footer nil Jul 10 12:35:10 swi-mdm9x15 user.debug Legato: DBUG | AirVantage[2661]/AirVantage T=main | M3DA-SESSION(default.lua) () 82 | Waiting for server response... Jul 10 12:35:10 swi-mdm9x15 user.debug Legato: DBUG | AirVantage[2661]/AirVantage T=main | SCHED(init.lua) () 873 | Registered cell for 60s timeout event Jul 10 12:35:10 swi-mdm9x15 user.debug Legato: DBUG | AirVantage[2661]/AirVantage T=main | SCHED(default.lua) () 83 | WAIT emitter = table: 0x9ec30, events = { status, connection_closed, 60 } ) Jul 10 12:35:10 swi-mdm9x15 user.debug Legato: DBUG | AirVantage[2661]/AirVantage T=main | SCHED(platform.lua) () 51 | STEP thread: 0xd8468 Jul 10 12:35:10 swi-mdm9x15 user.debug Legato: DBUG | AirVantage[2661]/AirVantage T=main | SCHED(fd.lua) () 96 | WAIT emitter = tcp{client}: 0xee688, events = { read, error, closed } ) Jul 10 12:35:11 swi-mdm9x15 user.debug Legato: DBUG | AirVantage[2661]/AirVantage T=main | SCHED(fd.lua) () 182 | SIGNAL tcp{client}: 0xee688.read Jul 10 12:35:11 swi-mdm9x15 user.debug Legato: DBUG | AirVantage[2661]/AirVantage T=main | SCHED(platform.lua) () 51 | STEP thread: 0xd8468 Jul 10 12:35:11 swi-mdm9x15 user.debug Legato: DBUG | AirVantage[2661]/AirVantage T=main | SCHED(default.lua) () 42 | SIGNAL table: 0x9ec30.connection_closed Jul 10 12:35:11 swi-mdm9x15 user.debug Legato: DBUG | AirVantage[2661]/AirVantage T=main | M3DA-TRANSPORT(tcp.lua) () 66 | Closing socket: closed Jul 10 12:35:11 swi-mdm9x15 user.debug Legato: DBUG | AirVantage[2661]/AirVantage T=main | SCHED(fd.lua) () 77 | SIGNAL tcp{client}: 0xee688.closed Jul 10 12:35:11 swi-mdm9x15 user.debug Legato: DBUG | AirVantage[2661]/AirVantage T=main | SCHED(init.lua) () 566 | SIGNAL thread: 0xd8468.die Jul 10 12:35:11 swi-mdm9x15 user.debug Legato: DBUG | AirVantage[2661]/AirVantage T=main | SCHED(platform.lua) () 51 | STEP thread: 0x90740 Jul 10 12:35:11 swi-mdm9x15 user.err Legato: =ERR= | AirVantage[2661]/AirVantage T=main | M3DA-SESSION(default.lua) () 85 | Closed session #1 with error connection_closed Jul 10 12:35:11 swi-mdm9x15 user.err Legato: =ERR= | AirVantage[2661]/AirVantage T=main | SRVCON(srvcon.lua) () 115 | Error while sending data to server: connection_closed Jul 10 12:35:11 swi-mdm9x15 user.debug Legato: DBUG | AirVantage[2661]/AirVantage T=main | SCHED(init.lua) () 566 | SIGNAL thread: 0x90740.die Jul 10 12:35:11 swi-mdm9x15 user.debug Legato: DBUG | AirVantage[2661]/AirVantage T=main | SCHED(fd.lua) () 77 | SIGNAL tcp{client}: 0xee688.closed

Hi,

Thank you for the logs.
I would like to know what application model you used when you created the system on eu.airvanatage.net.

Regards,

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?

Hi,

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.

Regards,

Again I am trying to use Legato together with AVMS using my eu.airvantage.net account. The Legato_beta application model is still not available.

Sorry for taking so long. The Legato_Beta application model should now be available on EU airvantage.