This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

WL1271-TIWI-BLE: WIFI autocalibration is failing. What steps to have a sucessful autocalibration?

Part Number: WL1271-TIWI-BLE

Team,

Can you please help with the below request:

- The WL1271-TIWI-BLE (LSR research) is mounted to a mini module PCB that provide SDIO interface for the host board.

- The host is running Linux 3.14.52 kernel driver.  With this kernel, WiFi driver works well but autocalibration steps, as described at the below link,  doesn't.:
http://processors.wiki.ti.com/index.php/WL12xx_NLCP_Calibration_Process
The failing command is
       calibrator plt autocalibrate <dev> <kernel mod> <ini> <nvs> <mac>
Now, we want to calibrate our module with default antenna using another board with an older kernel version where hopefully calibration steps works.

Q: Can you clarify which parameters are calibration dependant?
Are they dependant from chip design and used antenna or are system and environment setup modified?

Q: If they are dependant only from chip design and/or antenna, can we proceed to calibrate using another host board for mini module and obtain correct parameters for all boards that uses this mini module?

Q: If not, alternatevely, can we use calibration for R4_SP1 and earlier ?
It works, but we aren't sure that parameters are correct because we don't see any modification before and after doing this command
     calibrator plt calibrate

Thanks in advance,

Anthony

  • Hi,

    Your query has been assigned to a relevant expert. We will get back to you soon.

    Best regards,
    Vihang
  • Hi,

    1. Can you describe exactly the wl12xx drivers you are using? Are you using latest service pack?
    2. Can you post a console/kernellog showing the full calibration processor you are doing including the errors you are seing?

    BR,
    Eyal
  • Hi,

    Thanks for support.
    Before answering, I want to kindly ask you how are parameters that can modify calibration output?
    This is our more important topic at this moment.


    1. We are using default kernel drivers
    2. Here is the log

    root@arm:~/dev/ti-utils# s rmmod wl12xx
    root@arm:~/dev/ti-utils# ./calibrator plt autocalibrate wlan0 /lib/modules/$(uname -r)/kernel/drivers/net/wireless/ti/wl12xx/wl12xx.ko hw/ini_files/127x/TQS_S_2.6.ini /lib/firmware/ti-connectivity/wl127x-nvs.bin 00:00:00:00:00:00
    Fail to set PLT power mode on
    [ 123.455815] wlcore: loaded
    Calibration not complete. Removing half-baked nvs
    root@arm:~/dev/ti-utils#


    Thanks
  • Bedore trying calibration, are you able to bring the wlan0 interface up on the "normal" mode?
    In case you do, can you send the output of?:

    ifconfig wlan0 up
    ifconfig wlan0 down
    ifconfig wlan0 up

    I am not sure that the power control of wlan_enable is functional on your platform and want to confirm this.

    BR,
    Eyal
  • Below the requested output.

    Thanks

    root@arm:~# ifconfig wlan0
    ifconfig: wlan0: error fetching interface information: Device not found
    root@arm:~# modprobe wl12xx
    root@arm:~# [ 253.209846] wlcore: loaded

    root@arm:~# ifconfig wlan0 down
    root@arm:~# ifconfig wlan0
    wlan0 Link encap:Ethernet HWaddr DE:AD:BE:EF:00:00
    BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    root@arm:~# ifconfig wlan0 up
    [ 286.117198] wlcore: firmware booted (Rev 6.3.10.0.133)
    [ 286.139447] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
    root@arm:~# ifconfig wlan0
    wlan0 Link encap:Ethernet HWaddr DE:AD:BE:EF:00:00
    UP BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    root@arm:~# ifconfig wlan0 down
    [ 296.937201] wlcore: down
    root@arm:~# ifconfig wlan0
    wlan0 Link encap:Ethernet HWaddr DE:AD:BE:EF:00:00
    BROADCAST MULTICAST MTU:1500 Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000
    RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

    root@arm:~# rmmod wl12xx
    root@arm:~# ifconfig wlan0
    ifconfig: wlan0: error fetching interface information: Device not found
    root@arm:~#

  • Hi, Have you followed the sequence described in:

    I think you should use the wlcore_sdio module (or wl12xx_sdio) and not wl12xx

    root@arm:~/dev/ti-utils# s rmmod wl12xx

    root@arm:~/dev/ti-utils# ./calibrator plt autocalibrate wlan0 /lib/modules/$(uname -r)/kernel/drivers/net/wireless/ti/wl12xx/wl12xx.ko hw/ini_files/127x/TQS_S_2.6.ini /lib/firmware/ti-connectivity/wl127x-nvs.bin 00:00:00:00:00:00

    Fail to set PLT power mode on

    [ 123.455815] wlcore: loaded

    Calibration not complete. Removing half-baked nvs

    root@arm:~/dev/ti-utils#

    BR,

    Eyal