I went with your suggestion and purchased the IoT WiFi Card. Unfortunately, the board is failing to start and the LED is not powering on:
The issue is that the wifi board is simply not being found/powered. This is happening on all of our Reds. It DOES work on the Green. But it is very important that it works on the red. What could be the issue?
root@swi-mdm9x15:~# wifi client start
successfully called start. //Not actually starting
root@swi-mdm9x15:~# app status
[running] atClient
[running] atServer
[running] audioService
[running] avcService
[running] cellNetService
[running] dataConnectionService
[running] fwupdateService
[running] gpioService
[running] modemService
[running] positioningService
[running] powerMgr
[running] secStore
[stopped] smsInboxService
[stopped] spiService
[stopped] tools
[stopped] voiceCallService
[stopped] wifi . //Not running
[stopped] wifiApTest
[stopped] wifiClientTest
[running] wifiService
[stopped] wifiWebAp
According the wifi driver tutorial here: http://mangoh.io/wifi-expansion-card states “The Wi-Fi LED on the Wi-Fi expansion card turns ON” - This is not the case. There is no indication that the command worked, as the app is off and the light is not on.
Passing this, I perform the next step “wifi client scan” and get the following result:
starting scan.
DEBUG: le_wifiClient_GetFirstAccessPoint ERROR
Here are the logs for both commands repeated one after the other:
wifi client start:
Jan 2 16:49:10 swi-mdm9x15 user.debug Legato: DBUG | wifiService[522]/framework T=main | LE_FILENAME ExtractFileDescriptor() 33 | Received fd (10).
Jan 2 16:49:10 swi-mdm9x15 user.debug Legato: DBUG | wifiService[522]/framework T=main | LE_FILENAME ExtractFileDescriptor() 33 | Received fd (11).
Jan 2 16:49:10 swi-mdm9x15 user.debug Legato: DBUG | wifiService[522]/daemon T=main | le_wifiClient.c le_wifiClient_Start() 560 | Client starts
Jan 2 16:49:10 swi-mdm9x15 user.debug Legato: DBUG | wifiService[522]/framework T=main | le_wifiClient_server.c Handle_le_wifiClient_Start() 557 | Sending response to client session 0x27d3c : 4 bytes sent
Jan 2 16:49:11 swi-mdm9x15 user.debug Legato: DBUG | wifiService[522]/daemon T=main | le_wifiClient.c CloseSessionEventHandler() 414 | sessionRef 0x27d3c GetFirstSessionRef (nil)
Jan 2 16:49:11 swi-mdm9x15 user.debug Legato: DBUG | wifiService[522]/framework T=main | le_wifiClient_server.c CleanupClientData() 195 | Client 0x27d3c is closed !!!
Jan 2 16:49:11 swi-mdm9x15 user.debug Legato: DBUG | wifiService[522]/framework T=main | le_wifiAp_server.c CleanupClientData() 195 | Client 0x27cac is closed !!!
wifi client scan:
Jan 2 16:50:00 swi-mdm9x15 user.debug Legato: DBUG | wifiService[522]/framework T=main | LE_FILENAME ExtractFileDescriptor() 33 | Received fd (10).
Jan 2 16:50:00 swi-mdm9x15 user.debug Legato: DBUG | wifiService[522]/framework T=main | LE_FILENAME ExtractFileDescriptor() 33 | Received fd (11).
Jan 2 16:50:00 swi-mdm9x15 user.debug Legato: DBUG | wifiService[522]/daemon T=main | le_wifiClient.c le_wifiClient_AddNewEventHandler() 508 | Add new event handler
Jan 2 16:50:00 swi-mdm9x15 user.debug Legato: DBUG | wifiService[522]/framework T=main | le_wifiClient_server.c Handle_le_wifiClient_AddNewEventHandler() 461 | Sending response to client session 0x27cac : 4 bytes sent
Jan 2 16:50:00 swi-mdm9x15 user.debug Legato: DBUG | wifiService[522]/daemon T=main | le_wifiClient.c IsScanRunning() 430 | IsScanRunning .0
Jan 2 16:50:00 swi-mdm9x15 user.debug Legato: DBUG | wifiService[522]/daemon T=main | le_wifiClient.c le_wifiClient_Scan() 639 | Scan started
Jan 2 16:50:00 swi-mdm9x15 user.debug Legato: DBUG | wifiService[522]/framework T=main | le_wifiClient_server.c Handle_le_wifiClient_Scan() 641 | Sending response to client session 0x27cac : 4 bytes sent
Jan 2 16:50:00 swi-mdm9x15 user.debug Legato: DBUG | wifiService[522]/framework T=WiFi Client Scan Thread | LE_FILENAME PThreadStartRoutine() 362 | Set nice level to 0.
Jan 2 16:50:00 swi-mdm9x15 user.info Legato: INFO | wifiService[522]/daemon T=WiFi Client Scan Thread | pa_wifi_client_ti.c pa_wifiClient_Scan() 419 | Scanning
Jan 2 16:50:00 swi-mdm9x15 user.debug Legato: DBUG | wifiService[522]/daemon T=WiFi Client Scan Thread | le_wifiClient.c MarkAllAccessPointsOld() 317 | Mark all AP as old
Jan 2 16:50:00 swi-mdm9x15 user.debug Legato: DBUG | wifiService[522]/daemon T=WiFi Client Scan Thread | le_wifiClient.c MarkAllAccessPointsOld() 346 | Marked: 0
Jan 2 16:50:00 swi-mdm9x15 user.info Legato: INFO | wifiService[522]/daemon T=WiFi Client Scan Thread | pa_wifi_client_ti.c pa_wifiClient_GetScanResult() 484 | Scan results
Jan 2 16:50:00 swi-mdm9x15 user.info Legato: INFO | wifiService[522]/daemon T=WiFi Client Scan Thread | pa_wifi_client_ti.c pa_wifiClient_GetScanResult() 504 | PARSING:WIFICLIENT_START_SCAN : len:22
Jan 2 16:50:00 swi-mdm9x15 user.err Legato: =ERR= | wifiService[522] | command failed: No such device (-19)
Jan 2 16:50:00 swi-mdm9x15 user.debug Legato: DBUG | wifiService[522]/daemon T=WiFi Client Scan Thread | le_wifiClient.c ScanThreadDestructor() 395 | Scan thread exited.
Jan 2 16:50:00 swi-mdm9x15 user.debug Legato: DBUG | wifiService[522]/daemon T=WiFi Client Scan Thread | le_wifiClient.c PaEventHandler() 118 | Event: 2
Jan 2 16:50:00 swi-mdm9x15 user.debug Legato: DBUG | wifiService[522]/daemon T=main | le_wifiClient.c FirstLayerWifiClientEventHandler() 452 | Event: 2
Jan 2 16:50:00 swi-mdm9x15 user.debug Legato: DBUG | wifiService[522]/framework T=main | le_wifiClient_server.c AsyncResponse_le_wifiClient_AddNewEventHandler() 398 | Sending message to client session 0x27cac : 8 bytes sent
Jan 2 16:50:00 swi-mdm9x15 user.debug Legato: DBUG | wifiService[522]/daemon T=main | le_wifiClient.c IsScanRunning() 430 | IsScanRunning .0
Jan 2 16:50:00 swi-mdm9x15 user.debug Legato: DBUG | wifiService[522]/daemon T=main | le_wifiClient.c le_wifiClient_GetFirstAccessPoint() 681 | Get first AP
Jan 2 16:50:00 swi-mdm9x15 user.debug Legato: DBUG | wifiService[522]/daemon T=main | le_wifiClient.c le_wifiClient_GetFirstAccessPoint() 700 | AP not found
Jan 2 16:50:00 swi-mdm9x15 user.debug Legato: DBUG | wifiService[522]/framework T=main | le_wifiClient_server.c Handle_le_wifiClient_GetFirstAccessPoint() 683 | Sending response to client session 0x27cac : 4 bytes sent
Jan 2 16:50:00 swi-mdm9x15 user.err Legato: =ERR= | wifi[7459]/wifi T=main | wifi_client.c WifiReadScanResults() 123 | le_wifiClient_GetFirstAccessPoint ERROR
Jan 2 16:50:00 swi-mdm9x15 user.debug Legato: DBUG | wifiService[522]/daemon T=main | le_wifiClient.c le_wifiClient_RemoveNewEventHandler() 538 | Remove event handler
Jan 2 16:50:00 swi-mdm9x15 user.debug Legato: DBUG | wifiService[522]/framework T=main | le_wifiClient_server.c Handle_le_wifiClient_RemoveNewEventHandler() 515 | Sending response to client session 0x27cac : 0 bytes sent
Jan 2 16:50:01 swi-mdm9x15 user.debug Legato: DBUG | wifiService[522]/daemon T=main | le_wifiClient.c CloseSessionEventHandler() 414 | sessionRef 0x27cac GetFirstSessionRef 0x27cac
Jan 2 16:50:01 swi-mdm9x15 user.debug Legato: DBUG | wifiService[522]/framework T=main | le_wifiClient_server.c CleanupClientData() 195 | Client 0x27cac is closed !!!
Jan 2 16:50:01 swi-mdm9x15 user.debug Legato: DBUG | wifiService[522]/framework T=main | le_wifiAp_server.c CleanupClientData() 195 | Client 0x27d3c is closed !!!
Do you have any idea why the IoT expansion card is not starting properly on the MangohRed?
Just for clarification, the Versions are up to date according to the tutorial(although it is a mangoh Green tutorial):
root@swi-mdm9x15:~# fwupdate query
Connecting to service …
Firmware Version: SWI9X15Y_07.12.09.00 r34123 CARMD-EV-FRMWR1 2017/04/26 23:34:19
Bootloader Version: SWI9X15Y_07.12.09.00 r34123 CARMD-EV-FRMWR1 2017/04/26 23:34:19
Linux Version: 3.14.29ltsi-961ca71325_ab5094eade #2 PREEMPT Thu Apr 27 02:17:10 PDT 2017
root@swi-mdm9x15:~# legato version
16.10.3_7776bb75a488e0db67b0d24975b46dd0
I believe it comes down to the wifi board not being recognized on the Red. Any suggestions? Thanks!