Got error When Create Access Point with FX30 and IOT card

Hi all,

I’m using FX30 and IOT Card http://www.farnell.com/datasheets/2267053.pdf , I tried to create Access Point with instruction here ( WiFi access point section ) wifi - Legato Docs
I got a error " ifconfig: SIOCGIFFLAGS: No such device (-19)"
I rebooted my device but it’s not useful
State Led in IOT card are good

root@fx30:~# cm info
Device: FX30

Firmware: SWI9X15Y_07.11.22.00 r33729 CARMD-EV-FRMWR1 2017/01/11 18:04:06
Bootloader: SWI9X15Y_07.11.22.00 r33729 CARMD-EV-FRMWR1 2017/01/11 18:04:06
priIdPn: 99xxxx
priIdRev: 01xxx
skuId: 1xxxxx
root@fx30:~# legato version
16.10.1_f8947ec5fd286f5b9d2c25ebb9ad81a4
root@fx30:~#

If you used to met the error or have experience about it !Please help me!

Hi comcom,

Seems like same issue discussed below, can you check?
https://forum.legato.io/t/request-for-advice-on-board-bring-up-of-a-custom-board-with-wp8548-ti-wifi-chipset-board-bring-up/2280/2

Thx

Hi comcom,

Please see the FX30 Talon Wifi Application Note which is posted on the Source:
https://source.sierrawireless.com/resources/airlink/application_notes_and_code_samples/airlink_appnote_using_wifi_with_the_mirage_iot_card

BR,
Chris

Hi @lotam,

It is not same issue, thank you for your support

Hi @cchenry,

Thank you for your support, How to check exactly "module name " which I 'm using such as WP75xx or WP8548?
I aslo want to update firmware R14.04.02 for FX30 BY USB CABLE what should i do now? https://source.sierrawireless.com/resources/airlink/software_downloads/fx30-firmware/fx30-firmware/
Thanks

Hi comcom,
The FX30 3G uses the WP8548.
You have 3 options to update firmware via USB:

  1. For Windows, install and use the FDT2 tool (search the Source)
  2. For Linux, install and use swiflash (search the Source)
  3. Use the Legato tools (host or target) fwupdate (search legato.io)

BR,
Chris

Thanks @cchenry,
I updated firmware successfully and follow document which you refered to me a few day ago but I still can’t create Access Point,

root@fx30:~# 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-a00e464379_499694411b #2 PREEMPT Tue Jun 12 16:49:03 PDT 2018
FX30 Version: R14.0.4.002

This is Step by step what I did

root@fx30:~# wifi ap setsecurityproto 1
Security protocol set to 1.
root@fx30:~# wifi ap setpassphrase secret123
Passphrase set.
root@fx30:~# wifi ap setssid EXAMPLESSID
SSID set successfully.
root@fx30:~# wifi ap start
ERROR:le_wifiAp_Start returns -6.
root@fx30:~#

this is log

Aug 2 07:02:33 | wifiService[603]/framework T=main | le_wifiClient_server.c Handle_le_wifiClient_RemoveNewEventHandler() 515 | Sending response to client session 0x27cac : 0 bytes sent
Aug 2 07:02:33 | wifiService[603]/daemon T=main | le_wifiClient.c CloseSessionEventHandler() 414 | sessionRef 0x27cac GetFirstSessionRef 0x27cac
Aug 2 07:02:33 | wifiService[603]/framework T=main | le_wifiClient_server.c CleanupClientData() 195 | Client 0x27cac is closed !!!
Aug 2 07:02:33 | wifiService[603]/framework T=main | le_wifiAp_server.c CleanupClientData() 195 | Client 0x27d3c is closed !!!
Aug 2 07:23:42 | wifiService[603]/framework T=main | LE_FILENAME ExtractFileDescriptor() 33 | Received fd (10).
Aug 2 07:23:42 | wifiService[603]/framework T=main | LE_FILENAME ExtractFileDescriptor() 33 | Received fd (11).
Aug 2 07:23:43 | wifiService[603]/daemon T=main | le_wifiClient.c CloseSessionEventHandler() 414 | sessionRef 0x27d3c GetFirstSessionRef (nil)
Aug 2 07:23:43 | wifiService[603]/framework T=main | le_wifiClient_server.c CleanupClientData() 195 | Client 0x27d3c is closed !!!
Aug 2 07:23:43 | wifiService[603]/framework T=main | le_wifiAp_server.c CleanupClientData() 195 | Client 0x27cac is closed !!!
Aug 2 07:24:11 | wifiService[603]/framework T=main | LE_FILENAME ExtractFileDescriptor() 33 | Received fd (10).
Aug 2 07:24:11 | wifiService[603]/framework T=main | LE_FILENAME ExtractFileDescriptor() 33 | Received fd (11).
Aug 2 07:24:11 | wifiService[603]/daemon T=main | pa_wifi_ap_ti.c pa_wifiAp_SetSecurityProtocol() 787 | Security protocol : 1
Aug 2 07:24:11 | wifiService[603]/framework T=main | le_wifiAp_server.c Handle_le_wifiAp_SetSecurityProtocol() 688 | Sending response to client session 0x27d3c : 4 bytes sent
Aug 2 07:24:11 | wifiService[603]/daemon T=main | le_wifiClient.c CloseSessionEventHandler() 414 | sessionRef 0x27cac GetFirstSessionRef (nil)
Aug 2 07:24:11 | wifiService[603]/framework T=main | le_wifiClient_server.c CleanupClientData() 195 | Client 0x27cac is closed !!!
Aug 2 07:24:11 | wifiService[603]/framework T=main | le_wifiAp_server.c CleanupClientData() 195 | Client 0x27d3c is closed !!!
Aug 2 07:24:56 | wifiService[603]/framework T=main | LE_FILENAME ExtractFileDescriptor() 33 | Received fd (10).
Aug 2 07:24:56 | wifiService[603]/framework T=main | LE_FILENAME ExtractFileDescriptor() 33 | Received fd (11).
Aug 2 07:24:56 | wifiService[603]/daemon T=main | pa_wifi_ap_ti.c pa_wifiAp_SetPassPhrase() 824 | Set passphrase
Aug 2 07:24:56 | wifiService[603]/framework T=main | le_wifiAp_server.c Handle_le_wifiAp_SetPassPhrase() 731 | Sending response to client session 0x27cac : 4 bytes sent
Aug 2 07:24:57 | wifiService[603]/daemon T=main | le_wifiClient.c CloseSessionEventHandler() 414 | sessionRef 0x27d3c GetFirstSessionRef (nil)
Aug 2 07:24:57 | wifiService[603]/framework T=main | le_wifiClient_server.c CleanupClientData() 195 | Client 0x27d3c is closed !!!
Aug 2 07:24:57 | wifiService[603]/framework T=main | le_wifiAp_server.c CleanupClientData() 195 | Client 0x27cac is closed !!!
Aug 2 07:25:26 | wifiService[603]/framework T=main | LE_FILENAME ExtractFileDescriptor() 33 | Received fd (10).
Aug 2 07:25:26 | wifiService[603]/framework T=main | LE_FILENAME ExtractFileDescriptor() 33 | Received fd (11).
Aug 2 07:25:26 | wifiService[603]/daemon T=main | pa_wifi_ap_ti.c pa_wifiAp_SetSsid() 750 | SSID length 11 | SSID: “EXAMPLESSID”
Aug 2 07:25:26 | wifiService[603]/framework T=main | le_wifiAp_server.c Handle_le_wifiAp_SetSsid() 645 | Sending response to client session 0x27d3c : 4 bytes sent
Aug 2 07:25:26 | wifiService[603]/daemon T=main | le_wifiClient.c CloseSessionEventHandler() 414 | sessionRef 0x27cac GetFirstSessionRef (nil)
Aug 2 07:25:26 | wifiService[603]/framework T=main | le_wifiClient_server.c CleanupClientData() 195 | Client 0x27cac is closed !!!
Aug 2 07:25:26 | wifiService[603]/framework T=main | le_wifiAp_server.c CleanupClientData() 195 | Client 0x27d3c is closed !!!
Aug 2 07:25:37 | wifiService[603]/framework T=main | LE_FILENAME ExtractFileDescriptor() 33 | Received fd (10).
Aug 2 07:25:37 | wifiService[603]/framework T=main | LE_FILENAME ExtractFileDescriptor() 33 | Received fd (11).
Aug 2 07:25:37 | wifiService[603]/daemon T=main | pa_wifi_ap_ti.c pa_wifiAp_Start() 449 | AP starts
Aug 2 07:25:37 | wifiService[603]/daemon T=main | pa_wifi_ap_ti.c pa_wifiAp_Start() 463 | SSID = EXAMPLESSID
Aug 2 07:25:37 | wifiService[603]/framework T=WifiApPaThread | LE_FILENAME PThreadStartRoutine() 362 | Set nice level to 0.
Aug 2 07:25:37 | wifiService[603]/daemon T=WifiApPaThread | pa_wifi_ap_ti.c WifiApPaThreadMain() 230 | Started!
Aug 2 07:25:37 | wifiService[603] | | WIFI_START
Aug 2 07:25:37 | wifiService[603]/daemon T=WifiApPaThread | pa_wifi_ap_ti.c WifiApPaThreadMain() 247 | PARSING:WIFI_SET_EVENT : len:15
Aug 2 07:25:38 | wifiService[603] | | ifconfig: SIOCGIFFLAGS: No such device
Aug 2 07:25:38 | wifiService[603]/daemon T=main | pa_wifi_ap_ti.c pa_wifiAp_Start() 484 | WiFi Access Point Command Failed: (23296)wlan0 WIFI_START
Aug 2 07:25:38 | wifiService[603]/daemon T=main | pa_wifi_ap_ti.c pa_wifiAp_Start() 614 | WiFi Client Command Failed: As a result, configuration file (/tmp/hostapd.conf) is removed.
Aug 2 07:25:38 | wifiService[603]/framework T=main | le_wifiAp_server.c Handle_le_wifiAp_Start() 557 | Sending response to client session 0x27cac : 4 bytes sent
Aug 2 07:25:38 | wifiService[603]/daemon T=main | le_wifiClient.c CloseSessionEventHandler() 414 | sessionRef 0x27d3c GetFirstSessionRef (nil)
Aug 2 07:25:38 | wifiService[603]/framework T=main | le_wifiClient_server.c CleanupClientData() 195 | Client 0x27d3c is closed !!!
Aug 2 07:25:38 | wifiService[603]/framework T=main | le_wifiAp_server.c CleanupClientData() 195 | Client 0x27cac is closed !!!

I really don’t know what i have to do now?

Hi comcom,
Could you please try:

  • Check if the card works in client mode
  • Post the contents of your /etc/network/interfaces file
    BR,
    Chris

@cchenry,

I have the same issue, here is the contents of my /etc/network/interfaces file :

# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
auto lo
iface lo inet loopback

# Wireless interfaces
iface wlan0 inet dhcp
        wireless_mode managed
        wireless_essid any
        wpa-driver wext
        wpa-conf /etc/wpa_supplicant.conf

iface atml0 inet dhcp

# Wired or wireless interfaces
auto eth0
iface eth0 inet static
        hwaddress ether 00:14:3E:26:5C:A1
        address 192.168.13.31
        netmask 255.255.255.0
iface eth1 inet dhcp

# Bluetooth networking
iface bnep0 inet dhcp

about the client mode, does not work too :

root@fx30:~# wifi client start
successfully called start.
root@fx30:~# wifi client scan 
starting scan.
DEBUG: le_wifiClient_GetFirstAccessPoint ERRORroot@fx30:~# 

Regard

Hi Medhi,
Could you please try this:
rm /etc/network/interfaces
reboot

Then, re-post the contents of /etc/network/interfaces and try client mode. If that works, reboot again and then try AP mode. (the device cannot switch between client and AP mode without a reboot).

BR,
Chris

Hi @cchenry,

I deleted the file, but when I rebooted I did not find it ?!

Hi Medhi,
Could you please create a new interfaces file with the following contents:

# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
auto lo
iface lo inet loopback

# Wireless interfaces
iface wlan0 inet manual
    pre-up /etc/init.d/tiwifi start
    post-down /etc/init.d/tiwifi stop

iface atml0 inet dhcp

# Wired or wireless interfaces
auto eth0
iface eth0 inet static
        address 192.168.13.31
        netmask 255.255.255.0
iface eth1 inet dhcp

BR,
Chris

I have the same issue. To use the WiFi, do i need to have the IOT Card?

Got same error :
root@fx30:~# wifi client start
successfully called start.
root@fx30:~# wifi client scan
starting scan.
DEBUG: le_wifiClient_GetFirstAccessPoint ERRORroot@fx30:~#

logs:

Jan 6 01:01:11 | wifiService[577]/framework T=main | LE_FILENAME ExtractFileDescriptor() 33 | Received fd (10).
Jan 6 01:01:11 | wifiService[577]/framework T=main | LE_FILENAME ExtractFileDescriptor() 33 | Received fd (11).
Jan 6 01:01:11 | wifiService[577]/daemon T=main | le_wifiClient.c le_wifiClient_Start() 560 | Client starts
Jan 6 01:01:11 | wifiService[577]/framework T=main | le_wifiClient_server.c Handle_le_wifiClient_Start() 557 | Sending response to client session 0x27cac : 4 bytes sent
Jan 6 01:01:11 | wifiService[577]/daemon T=main | le_wifiClient.c CloseSessionEventHandler() 414 | sessionRef 0x27cac GetFirstSessionRef (nil)
Jan 6 01:01:11 | wifiService[577]/framework T=main | le_wifiClient_server.c CleanupClientData() 195 | Client 0x27cac is closed !!!
Jan 6 01:01:11 | wifiService[577]/framework T=main | le_wifiAp_server.c CleanupClientData() 195 | Client 0x27d3c is closed !!!
Jan 6 01:01:14 | wifiService[577]/framework T=main | LE_FILENAME ExtractFileDescriptor() 33 | Received fd (10).
Jan 6 01:01:14 | wifiService[577]/framework T=main | LE_FILENAME ExtractFileDescriptor() 33 | Received fd (11).
Jan 6 01:01:14 | wifiService[577]/daemon T=main | le_wifiClient.c le_wifiClient_AddNewEventHandler() 508 | Add new event handler
Jan 6 01:01:14 | wifiService[577]/framework T=main | le_wifiClient_server.c Handle_le_wifiClient_AddNewEventHandler() 461 | Sending response to client session 0x27d3c : 4 bytes sent
Jan 6 01:01:14 | wifiService[577]/daemon T=main | le_wifiClient.c IsScanRunning() 430 | IsScanRunning .0
Jan 6 01:01:14 | wifiService[577]/daemon T=main | le_wifiClient.c le_wifiClient_Scan() 639 | Scan started
Jan 6 01:01:14 | wifiService[577]/framework T=main | le_wifiClient_server.c Handle_le_wifiClient_Scan() 641 | Sending response to client session 0x27d3c : 4 bytes sent
Jan 6 01:01:14 | wifiService[577]/framework T=WiFi Client Scan Thread | LE_FILENAME PThreadStartRoutine() 362 | Set nice level to 0.
Jan 6 01:01:14 | wifiService[577]/daemon T=WiFi Client Scan Thread | pa_wifi_client_ti.c pa_wifiClient_Scan() 419 | Scanning
Jan 6 01:01:14 | wifiService[577]/daemon T=WiFi Client Scan Thread | le_wifiClient.c MarkAllAccessPointsOld() 317 | Mark all AP as old
Jan 6 01:01:14 | wifiService[577]/daemon T=WiFi Client Scan Thread | le_wifiClient.c MarkAllAccessPointsOld() 346 | Marked: 0
Jan 6 01:01:14 | wifiService[577]/daemon T=WiFi Client Scan Thread | pa_wifi_client_ti.c pa_wifiClient_GetScanResult() 484 | Scan results
Jan 6 01:01:15 | wifiService[577]/daemon T=WiFi Client Scan Thread | pa_wifi_client_ti.c pa_wifiClient_GetScanResult() 504 | PARSING:WIFICLIENT_START_SCAN : len:22
Jan 6 01:01:15 | =ERR= | wifiService[577] | command failed: No such device (-19)
Jan 6 01:01:15 | wifiService[577]/daemon T=WiFi Client Scan Thread | le_wifiClient.c ScanThreadDestructor() 395 | Scan thread exited.
Jan 6 01:01:15 | wifiService[577]/daemon T=WiFi Client Scan Thread | le_wifiClient.c PaEventHandler() 118 | Event: 2
Jan 6 01:01:15 | wifiService[577]/daemon T=main | le_wifiClient.c FirstLayerWifiClientEventHandler() 452 | Event: 2
Jan 6 01:01:15 | wifiService[577]/framework T=main | le_wifiClient_server.c AsyncResponse_le_wifiClient_AddNewEventHandler() 398 | Sending message to client session 0x27d3c : 8 bytes sent
Jan 6 01:01:15 | wifiService[577]/daemon T=main | le_wifiClient.c IsScanRunning() 430 | IsScanRunning .0
Jan 6 01:01:15 | wifiService[577]/daemon T=main | le_wifiClient.c le_wifiClient_GetFirstAccessPoint() 681 | Get first AP
Jan 6 01:01:15 | wifiService[577]/daemon T=main | le_wifiClient.c le_wifiClient_GetFirstAccessPoint() 700 | AP not found
Jan 6 01:01:15 | wifiService[577]/framework T=main | le_wifiClient_server.c Handle_le_wifiClient_GetFirstAccessPoint() 683 | Sending response to client session 0x27d3c : 4 bytes sent
Jan 6 01:01:15 | wifi[2132]/wifi T=main | wifi_client.c WifiReadScanResults() 123 | le_wifiClient_GetFirstAccessPoint ERROR
Jan 6 01:01:15 | wifiService[577]/daemon T=main | le_wifiClient.c le_wifiClient_RemoveNewEventHandler() 538 | Remove event handler
Jan 6 01:01:15 | wifiService[577]/framework T=main | le_wifiClient_server.c Handle_le_wifiClient_RemoveNewEventHandler() 515 | Sending response to client session 0x27d3c : 0 bytes sent
Jan 6 01:01:15 | wifiService[577]/daemon T=main | le_wifiClient.c CloseSessionEventHandler() 414 | sessionRef 0x27d3c GetFirstSessionRef 0x27d3c
Jan 6 01:01:15 | wifiService[577]/framework T=main | le_wifiClient_server.c CleanupClientData() 195 | Client 0x27d3c is closed !!!
Jan 6 01:01:15 | wifiService[577]/framework T=main | le_wifiAp_server.c CleanupClientData() 195 | Client 0x27cac is closed !!!

cm info:

root@fx30:~# cm info
Device: FX30
IMEI: 3xxxxxxx…
FSN: Lxxxxxxxxxxxxxxx
Firmware: SWI9X15Y_07.11.22.00 r33729 CARMD-EV-FRMWR1 2017/01/11 18:04:06
Bootloader: SWI9X15Y_07.11.22.00 r33729 CARMD-EV-FRMWR1 2017/01/11 18:04:06
priIdPn: 9xxxxxx
priIdRev: 0xxxx
skuId: 1xxxxxx
root@fx30:~# legato version
16.10.1_f8947ec5fd286f5b9d2c25ebb9ad81a4_modified
root@fx30:~#

@techr,

“I have the same issue. To use the WiFi, do i need to have the IOT Card?” ----> of sure, because the FX30 device doesn’t have a Wifi interface integrated, that’s why it needs to use the MIRAGE Iot wifi card : http://www.taloncom.com/images/Mirage%20mangOH%20WiFi%20BT%20Module%20User%20Manual.pdf

1 Like