# Diagnosing IoT Wifi Card

**URL:** <https://mangoh.discourse.group/t/diagnosing-iot-wifi-card/684>\
**Category:** IoT Cards\
**Created:** [August 16, 2017, 11:39pm UTC](https://mangoh.discourse.group/t/diagnosing-iot-wifi-card/684 "2017-08-16T23:39:49Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ollie](https://avatars.discourse-cdn.com/v4/letter/o/a87d85/32.png) [@ollie](https://mangoh.discourse.group/u/ollie)\
**Post date:** [August 16, 2017, 11:39pm UTC](https://mangoh.discourse.group/t/diagnosing-iot-wifi-card/684/1 "2017-08-16T23:39:49Z")

</div>

Hello,

Hoping someone will have a suggestion for me in regards to the WL18xx on Legato/Yocto.

This is my current version info

Legato Version: 17.06.0\_f83005aa5145d934e8e282fffc8f7f25\_modified  
Firmware Version: SWI9X15Y\_07.11.22.00 r33729 CARMD-EV-FRMWR1 2017/01/11 18:04:06  
Bootloader Version: SWI9X15Y\_07.11.22.00 r33729 CARMD-EV-FRMWR1 2017/01/11 18:04:06  
Linux Version: 3.14.29ltsi-a00e464379\_3f15cd39ad #2 PREEMPT Mon Feb 20 11:11:17 PST 2017

Following the mangoh docs, I should have high enough versions to support the wl18xx module.

dmesg tells me:

> [0.395299] wl18xx board initialization done

however, if I try wifi client scan I get:

> root@fx30:~# wifi client start  
> successfully called start.  
> root@fx30:~# wifi client scan  
> starting scan  
> DEBUG: le\_wifiClient\_GetFirstAccessPoint ERROR

logread gives me:

> [@](#):
>
> Jan 6 01:20:13 fx30 user.debug Legato: DBUG | wifiService[580]/daemon T=main | le\_wifiClient.c le\_wifiClient\_Start() 560 | Client starts  
> Jan 6 01:20:13 fx30 user.debug Legato: DBUG | wifiService[580]/framework T=main | le\_wifiClient\_server.c Handle\_le\_wifiClient\_Start() 512 | Sending response to client session 0x27d6c : 4 bytes sent  
> Jan 6 01:20:14 fx30 user.debug Legato: DBUG | wifiService[580]/daemon T=main | le\_wifiClient.c CloseSessionEventHandler() 414 | sessionRef 0x27d6c GetFirstSessionRef (nil)  
> Jan 6 01:20:14 fx30 user.debug Legato: DBUG | wifiService[580]/framework T=main | le\_wifiClient\_server.c CleanupClientData() 126 | Client 0x27d6c is closed !!!  
> Jan 6 01:20:14 fx30 user.debug Legato: DBUG | wifiService[580]/framework T=main | le\_wifiAp\_server.c CleanupClientData() 126 | Client 0x27cdc is closed !!!  
> Jan 6 01:21:47 fx30 user.debug Legato: DBUG | wifiService[580]/framework T=main | LE\_FILENAME ExtractFileDescriptor() 34 | Received fd (11).  
> Jan 6 01:21:47 fx30 user.debug Legato: DBUG | wifiService[580]/framework T=main | LE\_FILENAME ExtractFileDescriptor() 34 | Received fd (15).  
> Jan 6 01:21:48 fx30 user.debug Legato: DBUG | wifiService[580]/framework T=main | LE\_FILENAME le\_mem\_ForceAlloc() 841 | Memory pool ‘.le\_wifiClient\_ServerData’ overflowed. Expanded to 1 blocks.  
> Jan 6 01:21:48 fx30 user.debug Legato: DBUG | wifiService[580]/daemon T=main | le\_wifiClient.c le\_wifiClient\_AddNewEventHandler() 508 | Add new event handler  
> Jan 6 01:21:48 fx30 user.debug Legato: DBUG | wifiService[580]/framework T=main | le\_wifiClient\_server.c Handle\_le\_wifiClient\_AddNewEventHandler() 401 | Sending response to client session 0x27cdc : 4 bytes sent  
> Jan 6 01:21:48 fx30 user.debug Legato: DBUG | wifiService[580]/daemon T=main | le\_wifiClient.c IsScanRunning() 430 | IsScanRunning .0  
> Jan 6 01:21:48 fx30 user.debug Legato: DBUG | wifiService[580]/daemon T=main | le\_wifiClient.c le\_wifiClient\_Scan() 639 | Scan started  
> Jan 6 01:21:48 fx30 user.debug Legato: DBUG | wifiService[580]/framework T=main | le\_wifiClient\_server.c Handle\_le\_wifiClient\_Scan() 598 | Sending response to client session 0x27cdc : 4 bytes sent  
> Jan 6 01:21:48 fx30 user.debug Legato: DBUG | wifiService[580]/framework T=WiFi Client Scan Thread | LE\_FILENAME PThreadStartRoutine() 362 | Set nice level to 0.  
> Jan 6 01:21:48 fx30 user.info Legato: INFO | wifiService[580]/daemon T=WiFi Client Scan Thread | pa\_wifi\_client\_ti.c pa\_wifiClient\_Scan() 419 | Scanning  
> Jan 6 01:21:48 fx30 user.debug Legato: DBUG | wifiService[580]/daemon T=WiFi Client Scan Thread | le\_wifiClient.c MarkAllAccessPointsOld() 317 | Mark all AP as old  
> Jan 6 01:21:48 fx30 user.debug Legato: DBUG | wifiService[580]/daemon T=WiFi Client Scan Thread | le\_wifiClient.c MarkAllAccessPointsOld() 346 | Marked: 0  
> Jan 6 01:21:48 fx30 user.info Legato: INFO | wifiService[580]/daemon T=WiFi Client Scan Thread | pa\_wifi\_client\_ti.c pa\_wifiClient\_GetScanResult() 484 | Scan results  
> Jan 6 01:21:48 fx30 user.info Legato: INFO | wifiService[580]/daemon T=WiFi Client Scan Thread | pa\_wifi\_client\_ti.c pa\_wifiClient\_GetScanResult() 504 | PARSING:WIFICLIENT\_START\_SCAN : len:22  
> Jan 6 01:21:48 fx30 user.err Legato: =ERR= | wifiService[580] | command failed: No such device (-19)  
> Jan 6 01:21:48 fx30 user.debug Legato: DBUG | wifiService[580]/daemon T=WiFi Client Scan Thread | le\_wifiClient.c ScanThreadDestructor() 395 | Scan thread exited.  
> Jan 6 01:21:48 fx30 user.debug Legato: DBUG | wifiService[580]/daemon T=WiFi Client Scan Thread | le\_wifiClient.c PaEventHandler() 118 | Event: 2  
> Jan 6 01:21:48 fx30 user.debug Legato: DBUG | wifiService[580]/daemon T=main | le\_wifiClient.c FirstLayerWifiClientEventHandler() 452 | Event: 2  
> Jan 6 01:21:48 fx30 user.debug Legato: DBUG | wifiService[580]/framework T=main | le\_wifiClient\_server.c AsyncResponse\_le\_wifiClient\_AddNewEventHandler() 326 | Sending message to client session 0x27cdc : 8 bytes sent  
> Jan 6 01:21:48 fx30 user.debug Legato: DBUG | wifiService[580]/daemon T=main | le\_wifiClient.c IsScanRunning() 430 | IsScanRunning .0  
> Jan 6 01:21:48 fx30 user.debug Legato: DBUG | wifiService[580]/daemon T=main | le\_wifiClient.c le\_wifiClient\_GetFirstAccessPoint() 681 | Get first AP  
> Jan 6 01:21:48 fx30 user.debug Legato: DBUG | wifiService[580]/daemon T=main | le\_wifiClient.c le\_wifiClient\_GetFirstAccessPoint() 700 | AP not found  
> Jan 6 01:21:48 fx30 user.debug Legato: DBUG | wifiService[580]/framework T=main | le\_wifiClient\_server.c Handle\_le\_wifiClient\_GetFirstAccessPoint() 641 | Sending response to client session 0x27cdc : 4 bytes sent  
> Jan 6 01:21:48 fx30 user.err Legato: =ERR= | wifi[5022]/wifi T=main | wifi\_client.c WifiReadScanResults() 123 | le\_wifiClient\_GetFirstAccessPoint ERROR  
> Jan 6 01:21:48 fx30 user.debug Legato: DBUG | wifiService[580]/daemon T=main | le\_wifiClient.c le\_wifiClient\_RemoveNewEventHandler() 538 | Remove event handler  
> Jan 6 01:21:48 fx30 user.debug Legato: DBUG | wifiService[580]/framework T=main | le\_wifiClient\_server.c Handle\_le\_wifiClient\_RemoveNewEventHandler() 466 | Sending response to client session 0x27cdc : 0 bytes sent  
> Jan 6 01:21:48 fx30 user.debug Legato: DBUG | wifiService[580]/daemon T=main | le\_wifiClient.c CloseSessionEventHandler() 414 | sessionRef 0x27cdc GetFirstSessionRef 0x27cdc  
> Jan 6 01:21:48 fx30 user.debug Legato: DBUG | wifiService[580]/framework T=main | le\_wifiClient\_server.c CleanupClientData() 126 | Client 0x27cdc is closed !!!  
> Jan 6 01:21:48 fx30 user.debug Legato: DBUG | wifiService[580]/framework T=main | le\_wifiAp\_server.c CleanupClientData() 126 | Client 0x27d6c is closed !!!

similar logread output if I try to use the legato wifi client api.

Anywhere I can look?

---

<div class="post-metadata">

**Author:** ![asyal](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/asyal/32/78_2.png) [@asyal](https://mangoh.discourse.group/u/asyal)\
**Post date:** [August 16, 2017, 11:40pm UTC](https://mangoh.discourse.group/t/diagnosing-iot-wifi-card/684/2 "2017-08-16T23:40:22Z")

</div>

There is a mismatch on the legato version and firmware. Can you move to release 14 firmware?

---

<div class="post-metadata">

**Author:** ![ollie](https://avatars.discourse-cdn.com/v4/letter/o/a87d85/32.png) [@ollie](https://mangoh.discourse.group/u/ollie)\
**Post date:** [August 16, 2017, 11:58pm UTC](https://mangoh.discourse.group/t/diagnosing-iot-wifi-card/684/3 "2017-08-16T23:58:56Z")

</div>

Thanks for the reply!

Using the spk from [https://source.sierrawireless.com/resources/legato/wpx5xxfirmwarerelease14/](https://source.sierrawireless.com/resources/legato/wpx5xxfirmwarerelease14/)

Attempting to update (Tried 2 different downloads, didnt look like they had a hash publicly avililbe to reference against)

> fwupdate download WPx5xx\_Release14\_GENERIC\_SPK.spk 192.168.2.2  
> [root@192.168.2.2](mailto:root@192.168.2.2)’s password:  
> Connecting to service …  
> Connecting to service …  
> Download started …  
> Error in download

I’ve tried rolling back my legato version to 16.10, didn’t work with that either.

---

<div class="post-metadata">

**Author:** ![asyal](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/asyal/32/78_2.png) [@asyal](https://mangoh.discourse.group/u/asyal)\
**Post date:** [August 17, 2017, 12:26am UTC](https://mangoh.discourse.group/t/diagnosing-iot-wifi-card/684/4 "2017-08-17T00:26:34Z")

</div>

> [@ollie](#):
>
> Attempting to update (Tried 2 different downloads, didnt look like they had a hash publicly avililbe to reference against)

what hardware are you using?

---

<div class="post-metadata">

**Author:** ![ollie](https://avatars.discourse-cdn.com/v4/letter/o/a87d85/32.png) [@ollie](https://mangoh.discourse.group/u/ollie)\
**Post date:** [August 17, 2017, 12:30am UTC](https://mangoh.discourse.group/t/diagnosing-iot-wifi-card/684/5 "2017-08-17T00:30:07Z")

</div>

Sierra Wireless fx30

---

<div class="post-metadata">

**Author:** ![asyal](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/asyal/32/78_2.png) [@asyal](https://mangoh.discourse.group/u/asyal)\
**Post date:** [August 17, 2017, 12:30am UTC](https://mangoh.discourse.group/t/diagnosing-iot-wifi-card/684/6 "2017-08-17T00:30:59Z")

</div>

you need to get the proper firmware for FX30 then. I am not sure whether you can simply drop in the standard sierra WP firmware or not.

---

<div class="post-metadata">

**Author:** ![ollie](https://avatars.discourse-cdn.com/v4/letter/o/a87d85/32.png) [@ollie](https://mangoh.discourse.group/u/ollie)\
**Post date:** [August 17, 2017, 2:09am UTC](https://mangoh.discourse.group/t/diagnosing-iot-wifi-card/684/7 "2017-08-17T02:09:45Z")

</div>

Thanks for all your help.

Looks like the last released firmware per [https://source.sierrawireless.com/resources/airlink/software\_downloads/fx30-firmware/fx30-firmware/](https://source.sierrawireless.com/resources/airlink/software_downloads/fx30-firmware/fx30-firmware/) is

> Firmware Version: SWI9X15Y\_07.11.22.00 r33729 CARMD-EV-FRMWR1 2017/01/11 18:04:06  
> Bootloader Version: SWI9X15Y\_07.11.22.00 r33729 CARMD-EV-FRMWR1 2017/01/11 18:04:06  
> Linux Version: 3.14.29ltsi-a00e464379\_3f15cd39ad #2 PREEMPT Mon Feb 20 11:11:17 PST 2017  
> FX30 Version: R13.1.2.004

Which is odd considering that per the FX30 datasheet it uses a WP8548-G radio module

Guess its not cross compatible.

---

<div class="post-metadata">

**Author:** ![aelkhabli](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@aelkhabli](https://mangoh.discourse.group/u/aelkhabli)\
**Post date:** [August 22, 2017, 11:40am UTC](https://mangoh.discourse.group/t/diagnosing-iot-wifi-card/684/8 "2017-08-22T11:40:29Z")

</div>

Hello ,

I also use the FX30, when I update the framework I receive an error to download  
Any ideas as to what’s going on? Thanks you

Best regards,
