AirVantage over WiFi

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?

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 (34.6 KB)

@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

You might try the same app and legato version as mine

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

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?

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

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.

You can downgrade to some old fw of wp77.

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

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…

Why don’t you try the same app first?

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?

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

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…

didn’t i already post above?

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

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

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!!

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