# AirVantage over WiFi

**URL:** <https://forum.legato.io/t/airvantage-over-wifi/5910>\
**Category:** Uncategorized\
**Created:** [July 28, 2021, 2:24am UTC](https://forum.legato.io/t/airvantage-over-wifi/5910 "2021-07-28T02:24:54Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ClaudioBaldo](https://avatars.discourse-cdn.com/v4/letter/c/b9bd4f/32.png) [@ClaudioBaldo](https://forum.legato.io/u/ClaudioBaldo)\
**Post date:** [July 28, 2021, 2:24am UTC](https://forum.legato.io/t/airvantage-over-wifi/5910/1 "2021-07-28T02:24:54Z")

</div>

I am using a WP77xx and and Talon IoT WiFi exp board, I have got internet connectivity but it seems that the AirVantage is not working.  
As far as I can see the avcService works on to of the data (le\_data) and I see you can setup a technology to be used for this service. Actually it seems that the first one ranked is the WiFi, so I am checking:  
le\_data\_GetFirstUsedTechnology() == LE\_DATA\_WIFI  
And then to request the data connection le\_data\_Request()

However, the avcDaemon only resets the timer and never actually connects to AirVantage server.  
Jul 26 23:30:42 fx30s user.info Legato: INFO | avcDaemon[1322]/avcDaemon T=main | avcServer.c PollingTimerExpiryHandler() 2407 | A connection to server will be made in 15 minutes  
Jul 26 23:45:42 fx30s user.info Legato: INFO | avcDaemon[1322]/avcDaemon T=main | avcClient.c StopBearer() 746 | Stop bearer 0x22d  
Jul 26 23:45:42 fx30s user.info Legato: INFO | avcDaemon[1322]/avcDaemon T=main | avcClient.c StartBearer() 969 | Start Bearer  
Jul 26 23:45:42 fx30s user.info Legato: INFO | avcDaemon[1322]/avcDaemon T=main | avcClient.c avcClient\_Connect() 1175 | Starting retry timer of 60 min at index 1  
Jul 26 23:45:42 fx30s user.info Legato: INFO | avcDaemon[1322]/avcDaemon T=main | avcServer.c PollingTimerExpiryHandler() 2391 | Polling timer expired  
Jul 26 23:45:42 fx30s user.info Legato: INFO | avcDaemon[1322]/avcDaemon T=main | avcClient.c avcClient\_Connect() 1101 | Retry timer already running  
Jul 26 23:45:42 fx30s user.info Legato: INFO | avcDaemon[1322]/avcDaemon T=main | avcClient.c StopBearer() 746 | Stop bearer 0x22d  
Jul 26 23:45:42 fx30s user.info Legato: INFO | avcDaemon[1322]/avcDaemon T=main | avcClient.c StartBearer() 969 | Start Bearer  
Jul 26 23:45:42 fx30s user.info Legato: INFO | avcDaemon[1322]/avcDaemon T=main | avcClient.c avcClient\_Connect() 1175 | Starting retry timer of 15 min at index 0

Is anybody able to help on fixing this problem?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [July 28, 2021, 3:20am UTC](https://forum.legato.io/t/airvantage-over-wifi/5910/2 "2021-07-28T03:20:07Z")

</div>

For wp76 with legato 18.04.0.rc3 and modem SWI9X07Y\_02.16.02.00, when modem radio is set to OFF, the AVC session can be opened with wifi connection, and LE\_AVC\_SESSION\_STARTED returned

[LE-9825\_wifi\_connect\_radio\_off2.log](https://forum.legato.io/uploads/short-url/6vuGA5yHiJmYtaRpYagTOkm4eCo.log) (34.6 KB)

---

<div class="post-metadata">

**Author:** ![ClaudioBaldo](https://avatars.discourse-cdn.com/v4/letter/c/b9bd4f/32.png) [@ClaudioBaldo](https://forum.legato.io/u/ClaudioBaldo)\
**Post date:** [July 28, 2021, 4:10pm UTC](https://forum.legato.io/t/airvantage-over-wifi/5910/3 "2021-07-28T16:10:34Z")

</div>

@jyijyi I have tries with the radio OFF but still avc is not working, get the same log and the acvDaemon is not able to connect to the server.  
When using the modem, the avc will run without problems to connect and check for updates

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [July 28, 2021, 4:18pm UTC](https://forum.legato.io/t/airvantage-over-wifi/5910/4 "2021-07-28T16:18:04Z")

</div>

You might try the same app and legato version as mine

---

<div class="post-metadata">

**Author:** ![ClaudioBaldo](https://avatars.discourse-cdn.com/v4/letter/c/b9bd4f/32.png) [@ClaudioBaldo](https://forum.legato.io/u/ClaudioBaldo)\
**Post date:** [July 29, 2021, 1:36am UTC](https://forum.legato.io/t/airvantage-over-wifi/5910/5 "2021-07-29T01:36:16Z")

</div>

what is that app? avcUserApp? is this something you have built?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [July 29, 2021, 1:44am UTC](https://forum.legato.io/t/airvantage-over-wifi/5910/6 "2021-07-29T01:44:32Z")

</div>

> **[legato-af/apps/test/avcService at master · legatoproject/legato-af](https://github.com/legatoproject/legato-af/tree/master/apps/test/avcService)**
>
> master/apps/test/avcService

---

<div class="post-metadata">

**Author:** ![ClaudioBaldo](https://avatars.discourse-cdn.com/v4/letter/c/b9bd4f/32.png) [@ClaudioBaldo](https://forum.legato.io/u/ClaudioBaldo)\
**Post date:** [July 29, 2021, 3:12am UTC](https://forum.legato.io/t/airvantage-over-wifi/5910/7 "2021-07-29T03:12:36Z")

</div>

avcService is the same app I am suing with the newer release of the legato, I had some issue with compiling the R9 from source.  
So I guess you are suing the Talon IoT card (wifi) and have added the layers in the linux source?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [July 29, 2021, 3:14am UTC](https://forum.legato.io/t/airvantage-over-wifi/5910/8 "2021-07-29T03:14:45Z")

</div>

there is no need to compile the yocto source  
the default FW already support “wifi” command

---

<div class="post-metadata">

**Author:** ![ClaudioBaldo](https://avatars.discourse-cdn.com/v4/letter/c/b9bd4f/32.png) [@ClaudioBaldo](https://forum.legato.io/u/ClaudioBaldo)\
**Post date:** [July 29, 2021, 4:45am UTC](https://forum.legato.io/t/airvantage-over-wifi/5910/9 "2021-07-29T04:45:52Z")

</div>

Unfortunately this doesn’t help me as I can’t test this because I have a wp77xx.  
Device: FX30(WP7702)  
IMEI: 354723090144204  
IMEISV: 3  
FSN: VU007185430210  
Firmware Version: SWI9X06Y\_02.22.12.00 eaf79c jenkins 2019/04/24 18:48:27  
Bootloader Version: SWI9X06Y\_02.22.12.00 eaf79c jenkins 2019/04/24 18:48:27

In a device loaded with the stock firmware:  
FX30\_WP77xx\_full\_R11.0.0.007-sierra-SWI9X06Y\_02.22.12.00.cwe

I first have to run this script:  
init-Mirage-WiFi-BT-IoT.sh  
or the wifi client start command will fail.

Then I can`t run it with the radio off, whenever I set the cm radio off then the scan will fail, while the wifi client start still works.  
With cm radio on I can scan but then I cannot connect to the AP, while I had this working in R14 when I added the layer and re-build the linux source.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [July 29, 2021, 5:43am UTC](https://forum.legato.io/t/airvantage-over-wifi/5910/10 "2021-07-29T05:43:28Z")

</div>

You can downgrade to some old fw of wp77.

Also this is legato app, there is no need to compile yocto source

---

<div class="post-metadata">

**Author:** ![ClaudioBaldo](https://avatars.discourse-cdn.com/v4/letter/c/b9bd4f/32.png) [@ClaudioBaldo](https://forum.legato.io/u/ClaudioBaldo)\
**Post date:** [August 1, 2021, 1:36pm UTC](https://forum.legato.io/t/airvantage-over-wifi/5910/11 "2021-08-01T13:36:52Z")

</div>

I believe the problem is related with the data channel which is not created correctly (wifi), so I am using the dcsAPITests (which dcs as far as I understand if replacint the data from now on) and it seems I don`t have a channel available for WiFi but only for ecm0 and cellular:

Aug 1 21:32:20 fx30s user.info Legato: INFO | dcsClient[9008]/dcsClient T=DCS client test thread | dcsTest.c Dcs\_test\_api\_GetChannels() 435 | DCS-client: asking to query channel list  
Aug 1 21:32:20 fx30s user.info Legato: INFO | dcsClient[9008]/dcsClient T=DCS client test thread | dcsTest.c ClientChannelQueryHandler() 400 | DCS-client: result received for channel query 0, channel list size 36  
Aug 1 21:32:20 fx30s user.info Legato: INFO | dcsClient[9008]/dcsClient T=DCS client test thread | dcsTest.c ClientChannelQueryHandler() 413 | DCS-client: available channel #1 from technology 2 with name 1, state 0, ref 0x1d7  
Aug 1 21:32:20 fx30s user.info Legato: INFO | dcsClient[9008]/dcsClient T=DCS client test thread | dcsTest.c ClientChannelQueryHandler() 413 | DCS-client: available channel #2 from technology 3 with name ecm0, state 0, ref 0x3d7  
Aug 1 21:32:20 fx30s user.info Legato: INFO | dcsClient[9008]/dcsClient T=DCS client test thread | dcsTest.c ClientChannelQueryHandler() 413 | DCS-client: available channel #3 from technology 0 with name , state 0, ref (nil)  
Aug 1 21:32:20 fx30s user.info Legato: INFO | dcsClient[9008]/dcsClient T=DCS client test thread | dcsTest.c ClientChannelQueryHandler() 413 | DCS-client: available channel #4 from technology 0 with name , state 0, ref (nil)  
etc…

So, as the wifi is actually working on the device and I can connect to the internet, also this is enumerated to wlan0 in the net interfaces…  
Do I need to add manually the technology to the connection channels or this is some settings I need to change in the system? I am building the legato source at the moment…

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [August 1, 2021, 2:19pm UTC](https://forum.legato.io/t/airvantage-over-wifi/5910/12 "2021-08-01T14:19:51Z")

</div>

Why don’t you try the same app first?

---

<div class="post-metadata">

**Author:** ![ClaudioBaldo](https://avatars.discourse-cdn.com/v4/letter/c/b9bd4f/32.png) [@ClaudioBaldo](https://forum.legato.io/u/ClaudioBaldo)\
**Post date:** [August 2, 2021, 1:24am UTC](https://forum.legato.io/t/airvantage-over-wifi/5910/13 "2021-08-02T01:24:30Z")

</div>

as I said, the avcService is already running on the device and it is giving me the message:  
Jan 6 08:11:14 fx30s user.warn Legato: -WRN- | avcDaemon[3010]/avcDaemon T=main | avcClient.c ConnectionStateHandler() 474 | Disconnected from data connection service, current state 0

this is the avcDaemon which is an executable of the avcService app.

Now I am trying to troubleshoot why this is happening, where I don`t have this problem when the modem is connected, and it seems related with the data Connection Service which doesn’t have a connection available for WiFi.

I have also tested the wifiClientTest app which doesn’t do anything else then connecting to the AP and that is definetely solving the problem.

Or you are talking about some other app?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [August 2, 2021, 1:51am UTC](https://forum.legato.io/t/airvantage-over-wifi/5910/14 "2021-08-02T01:51:19Z")

</div>

I saw my log is using “avcUserApp”.  
Also are we using same legato version?

---

<div class="post-metadata">

**Author:** ![ClaudioBaldo](https://avatars.discourse-cdn.com/v4/letter/c/b9bd4f/32.png) [@ClaudioBaldo](https://forum.legato.io/u/ClaudioBaldo)\
**Post date:** [August 2, 2021, 2:10am UTC](https://forum.legato.io/t/airvantage-over-wifi/5910/15 "2021-08-02T02:10:47Z")

</div>

I don’t see the point of using the same legato version (older one), sorry.  
I am trying to understand why this is not working with this legato version, even knowing avc over wifi is working with a different legato version (older one) on a different target this is not fixing the problem I am having and I don`t see how I can gain any insight about how to solve the issue.

So the question with the dcs connectivity which I believe is relevant on solving this issue with connectivity to AirVantage, hopefully someone from the legato team will be able to help on clarifying what is the problem and if/how I can fix it.

Where did you find this avcUserApp? I can`t see it in the legato source…

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [August 2, 2021, 2:11am UTC](https://forum.legato.io/t/airvantage-over-wifi/5910/16 "2021-08-02T02:11:43Z")

</div>

didn’t i already post above?

> **[legato-af/apps/test/avcService at master · legatoproject/legato-af](https://github.com/legatoproject/legato-af/tree/master/apps/test/avcService)**
>
> master/apps/test/avcService

---

<div class="post-metadata">

**Author:** ![ClaudioBaldo](https://avatars.discourse-cdn.com/v4/letter/c/b9bd4f/32.png) [@ClaudioBaldo](https://forum.legato.io/u/ClaudioBaldo)\
**Post date:** [August 2, 2021, 2:37am UTC](https://forum.legato.io/t/airvantage-over-wifi/5910/17 "2021-08-02T02:37:26Z")

</div>

the avcUserApp is simulating the blocking/unblocking of avc service.  
This works all right, but I don`t know how to use this results:

Aug 2 10:26:30 fx30s user.info Legato: INFO | supervisor[3720]/supervisor T=main | proc.c proc\_Start() 1363 | Execing ‘avcUserApp’  
Aug 2 02:26:30 fx30s user.warn Legato: -WRN- | _UNKNOWN_[3720]/framework T=main | fdMonitor.c le\_fdMonitor\_Create() 449 | FD Monitor object name ‘avcUserApp.componentUserApp.le\_avc’ truncated to ‘avcUserApp.componentUserApp.le\_’.  
Aug 2 02:26:30 fx30s user.info Legato: INFO | avcUserApp[3720]/componentUserApp T=main | userAppMain.c \_componentUserApp\_COMPONENT\_INIT() 29 | Got ref = 0x4b  
Aug 2 02:31:30 fx30s user.info Legato: INFO | avcUserApp[3720]/componentUserApp T=main | userAppMain.c \_componentUserApp\_COMPONENT\_INIT() 37 | Finished unblock  
Aug 2 02:31:30 fx30s user.info Legato: INFO | avcUserApp[3720]/componentUserApp T=main | userAppMain.c \_componentUserApp\_COMPONENT\_INIT() 47 | Again got ref = 0x4b  
Aug 2 10:32:30 fx30s user.info Legato: INFO | avcDaemon[1328]/avcDaemon T=main | avcServer.c ClientCloseSessionHandler() 2182 | Client 0x7f5ef320 closed, remove allocated resources  
Aug 2 10:32:30 fx30s user.info Legato: INFO | supervisor[1259]/supervisor T=main | proc.c proc\_SigChildHandler() 2079 | Process ‘avcUserApp’ (PID: 3720) has exited with exit code 0.  
Aug 2 10:32:30 fx30s user.info Legato: INFO | supervisor[1259]/supervisor T=main | app.c app\_StopComplete() 4753 | app ‘avcUserApp’ has stopped.  
Aug 2 10:32:30 fx30s user.info Legato: INFO | supervisor[1259]/supervisor T=main | apps.c DeactivateAppContainer() 374 | Application ‘avcUserApp’ has stopped.

I keep getting the message from the avcDaemon:  
Aug 2 10:37:01 fx30s user.warn Legato: -WRN- | avcDaemon[1328]/avcDaemon T=main | avcClient.c ConnectionStateHandler() 474 | Disconnected from data connection service, current state 0

This is when I try to start avc manually with AT commands  
AT+WDSS=1,1

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [August 2, 2021, 2:57am UTC](https://forum.legato.io/t/airvantage-over-wifi/5910/18 "2021-08-02T02:57:26Z")

</div>

seems that is not the same result as my log where the AVC session can be opened with wifi connection, and LE\_AVC\_SESSION\_STARTED returned

---

<div class="post-metadata">

**Author:** ![ClaudioBaldo](https://avatars.discourse-cdn.com/v4/letter/c/b9bd4f/32.png) [@ClaudioBaldo](https://forum.legato.io/u/ClaudioBaldo)\
**Post date:** [August 2, 2021, 8:25am UTC](https://forum.legato.io/t/airvantage-over-wifi/5910/19 "2021-08-02T08:25:06Z")

</div>

I understand, it would be fantastic is someone from this amazing legato community would comment on this so we can get this wifi interface to work with the AirVantage.  
As I mentioned, the wifi connection is up an running and I am already exchanging data with our server, I am just missing the link to AirVantage which I will need to download new software remotely!!

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.legato.io/jyijyi/32/822_2.png) [@jyijyi](https://forum.legato.io/u/jyijyi)\
**Post date:** [August 2, 2021, 10:05am UTC](https://forum.legato.io/t/airvantage-over-wifi/5910/20 "2021-08-02T10:05:09Z")

</div>

did you add the config tree?

e.g.  
config set dataConnectionService:/wifi/SSID TEST-MOBILE  
config set dataConnectionService:/wifi/secProtocol 3  
config set dataConnectionService:/wifi/passphrase password

> **[GpioExpander and MuxControl apps issue usage](https://mangoh.discourse.group/t/gpioexpander-and-muxcontrol-apps-issue-usage/2597)**
>
> My setup is a WP7607, mangOH Green, TI WiFi WL1835MOD MirageRev3 IoT card in slot IOT0, Talon CAN IoT board in slot IOT1, and I’m using Legato R10.1. I have added “GpioExpander” (from https://github.com/mangOH/GpioExpander) and “MuxControl” (from...

[Next page](https://forum.legato.io/t/airvantage-over-wifi/5910.md?page=2)
