# USB driver failing to find or power USBs

**URL:** <https://mangoh.discourse.group/t/usb-driver-failing-to-find-or-power-usbs/1033>\
**Category:** mangOH Red\
**Created:** [December 27, 2017, 9:51pm UTC](https://mangoh.discourse.group/t/usb-driver-failing-to-find-or-power-usbs/1033 "2017-12-27T21:51:59Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![rauger1](https://avatars.discourse-cdn.com/v4/letter/r/ac91a4/32.png) [@rauger1](https://mangoh.discourse.group/u/rauger1)\
**Post date:** [January 2, 2018, 5:31pm UTC](https://mangoh.discourse.group/t/usb-driver-failing-to-find-or-power-usbs/1033/5 "2018-01-02T17:31:12Z")

</div>

@asyal and @dfrey,

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

---

_[View the full topic](https://mangoh.discourse.group/t/usb-driver-failing-to-find-or-power-usbs/1033)._
