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.

Wl18xx WiFi AP mode & BT coex issue

Other Parts Discussed in Thread: WL1837, WL1831, AM3352

hi,

about the issue as below link. any updated??

  • hi 

    If  possible to modify Bluetooth and Wi-Fi AP mode Priority Setting by wifi driver or BT fw??

    Austin

  • Austin,

    That thread is 2yrs old, are you having issues with the latest FW?  Can you summarize the issues that you are seeing?

    There aren't any user controls available for the coex mechanism itself, but the adjustments that affect the performance would include scan parameters such as interval and window size.  Lets understand your issue, and I'll get the right people involved to help make recommendations.

    Regards,

    Travis

  • Hi Travis:

    the use case is WiFi is AP mode + BT peripheral role.

    wifi driver is R8.7_SP3 and fw is 8.9.0.0.79.

    BT fw we tested are

    • older version TI_P2.142 with modification.
    • origin sp4.5 TI_P2.146
    • origin sp4.5 TI_P2.146 with some modification

    When wifi disable. the BT connection  is good with smartphone. almost 100% success.

    When wifi AP mode enable. the BT connection is bad. the success rate drop to 60%~80%. if possible improve the BT connection when wifi AP mode enable???

    the bts file we tested as attached file.

    bt_fw.zip

    Austin

  • Which WL18xx part are you using? WiFi and BT/BLE share the antenna, so with AP mode Wifi may be taking the lion share of the RF time. How many stations are connected to the AP? If, you are using WL1837 part, you may consider moving the AP to 5GHz.

    Thanks

  • hi,

    We are using wl1831. AP mode usually connected with one client.

    Any parameter in wifi driver we can modify to improve BT connection success rate??

    Austin

  • hi,

    Updated more information about this issue.
    The issue is wifi AP mode enable. BT has disconnection randomly when WL8 BT transfer data to smartphone.
    if wifi AP mode disable. the BT data transfer is fine.

    wifi driver : R8.7_SP3
    wifi fw: 8.9.0.0.81
    BT fw: service pack 4.5 disable deep sleep mode. we tested original service pack4.5 has the same issue.

    We capture wifi and BT fw log.
    Testing scenario
    1. Device on
    2. WL8 BT and wifi ap mode(seting with 2.4Ghz channel) on.
    3. Smartphone connected to WL8 BT. AP mode without client connected.
    4.WL8 BT transfer data to smartphone. AP mode without client connected.

    Phenomenon:
    In BT FW log
    9:05 has BT disconnect and reconnect.
    9:09 has BT disconnect and reconnect.
    9:13 has BT disconnand and BT can't be discovery anymore. wifi AP mode also can't be scan anymore.

    All information(fw log)also in attached file.
    Please help to analyz and fix issue ASAP.

    0923.zip

    If you need more information. Please let me know. Thanks.

    Austin

  • Hi Austin,

    We won't be able to look into this issue until next week.  We will update the thread asap,

    Regards,

    Travis

  • hi Travis:

    Is any parameter in driver or ini file can prioritize wifi AP mode and BT connection and data transfer behavior??

    I see there is some setting in driver  ti\wl18xx\main.c

    Are those settings can make AP mode lower priority or avoid wifi fw hang and impact BT function.

    /* AP Parameters */
    [WL18XX_CONF_SG_AP_BEACON_MISS_TX] = 3,
    [WL18XX_CONF_SG_PARAM_50] = 0,
    [WL18XX_CONF_SG_AP_BEACON_WINDOW_INTERVAL] = 2,
    [WL18XX_CONF_SG_AP_CONNECTION_PROTECTION_TIME] = 30,
    [WL18XX_CONF_SG_PARAM_53] = 0,
    [WL18XX_CONF_SG_PARAM_54] = 0,

    Austin

    Austin

  • Hi Travis:

    Testing scenario

    1. Device on
    2. WL8 BT and wifi ap mode(seting with 2.4Ghz channel) on.
    3. Smartphone connected to WL8 BT. AP mode without client connected.
    4.WL8 BT transfer data to smartphone. AP mode without client connected.

    one more information.

    The BT would be normal after wifi disable or re-enable.

    attached file:

    wifi_bt_fw_log_0927.zip is tested with 8.9.0.0.84

    wifi_bt_fw_log_0928.zip is tested with 8.9.0.0.81

    if possible to quick review the fw log and share some comment to about this issue. 

    Because this issue already impact production line testing and product delivery. 

    If you need more time to study and fix issue. Please also share to me. Thanks.

    wifi_bt_fw_log_0927.zip

    wifi_bt_fw_log_0928.zip

    Austin

  • Hi Austin,

    Did, you try disabling page and inquiry scans, once in BT connected state? Like wise, you can re-enable them once it is disconnected..

    Thanks

  • Hi,

    Also , can you pls test with fwr-80 (attached) and check if you can reproduce the issue in AP mode

    Thanks

    Saurabh

    8875.wl18xx-fw-4.bin

  • Hi Saurabh:

    Thank you for supporting. we will verify ASAP.

    Austin

  • hi Hari:

    Did you mean use this command to disable BT page and inquiry scans after BT connected???

    Send_HCI_Write_Scan_Enable 0x00
    Wait_HCI_Command_Complete_Write_Scan_Enable_Event 5000, any, HCI_Write_Scan_Enable, 0x00

    hcitool format

    hcitool cmd 0x03 0x001a 0x00

    That is hard to convince customer to re-enable BT under data transfer situation.

    We will try disable page and inquiry scan later.

    Austin

  • Hi Saurabh:

    The issue didn't fixed with your FW 8875.wl18xx-fw-4.bin.

    there is fw log for you.wifi_bt_Log_0929-2.zip

    wifi_bt_Log_0929.zip

    Austin

  • Hi Saurabh:

    If possible to identify what kind of issue in wifi firmware based on those fw log.

    Or you need more time to study and different testing scenario to narrow down root cause.

    Customer need reliable and robust firmware for WiFi AP+ BT coextensive case to make sure product work normally.

    Otherwise. that is difficult to ship product to end customer based on current wifi fw quality.

    Please help to fix this issue ASAP. Thanks.

    Austin

  • Hi Autin ,

    To confirm , this issue is not seen on fwr 8.9.0.0.79 ?

    Thanks

    Saurabh

  • Hi Saurabh:

    fwr 8.9.0.0.79/80/81/84 all have this kind of issue.

    Is wifi fw with RF control has something wrong?

    because the final status is wifi/bt can't be discovery anymore. 

    Austin

  • Hi Saurabh:

    Any updated?

    Austin

  • Hi Saurabh:

    Should We need to do more testing case about this issue??

    Please share any comments.

    Thanks.

    Austin

  • hi Hari:

    Did you mean use this command and parameter to disable BT page and inquiry scans after BT connected???

    Send_HCI_Write_Scan_Enable 0x00
    Wait_HCI_Command_Complete_Write_Scan_Enable_Event 5000, any, HCI_Write_Scan_Enable, 0x00

    Austin

  • Yes. After the device is connected, you may disable the scans to conserve RF bandwidth.

    Thanks

  • Hi experts,

     After disabling the BT page/inquiry scan by BlueTopia stack "(by ignoring BT discovery command “16 0”)", we have tried on the TI platform AM3352 + WL8.

     The reproduce steps with SW versions is described below with PDF "SSO SPP Test Process.pdfSSO SPP Test Process.pdf" attached, and we will later attach the FW log.

     

     ===================================================================================================================

    The SW/FW information as below

    l   AM335 EVM with kernel 4.4

    l   Wifi driver R8.7_SP3

    l   WiFi FW: 8.9.0.0.79 and 8.9.0.0.85

    l   BT: service pack 4.5 without modification.

     

    Testing scenario:

    Enable AM335

    Enable wifi AP mode with 2.4Ghz. enable script from TI.

    Enable BT(Bluetopia stack) with SPP profile. Detail Bluetopia SOP as attached file(ignore BT discovery command “16 0”).

     

    Extra information.

    l   AP mode without connection.

    l   BT just use data to remote device after connected. (I tested with win10 OS).

     

    Result:

    Both WiFi FW: 8.9.0.0.79 and 85. BT disconnected and WiFi and BT can’t be discovery anymore.

     

    Bluetopia log

    SPPM>WriteData 1 ABCDEFGHIJ{00000001}ABCDEFGHIJ{00000002}ABCDEFGHIJ{00000003}ABCDEFGHIJ{00000004}ABCDEFGHIJ{0000034D}ABCDEFGHIJ{001}

     

    SPPM_WriteData Success: 115 bytes written.

    SPPM>

    Port Closed.

        Port Handle: 1

    SPPM>

    Remote Device Properties Changed.

    BD_ADDR:      10F00535EE44

    Device Flags:  0x80000085

    Connect State: FALSE

    Encrypt State: FALSE

    SPPM>WriteData 1 ABCDEFGHIJ{00000001}ABCDEFGHIJ{00000002}ABCDEFGHIJ{00000003}ABCDEFGHIJ{00000004}ABCDEFGHIJ{0000034E}ABCDEFGHIJ{001}

     

    SPPM_WriteData Failure: -86, Unknown Error.

    Function Error.

    SPPM>WriteData 1 ABCDEFGHIJ{00000001}ABCDEFGHIJ{00000002}ABCDEFGHIJ{00000003}ABCDEFGHIJ{00000004}ABCDEFGHIJ{0000034F}ABCDEFGHIJ{001}

     

  • Hi Saurabh and Hari:

    there is wifi/bt fw log(wifi fw 8.9.0.0.85) with disable inquiry and page scan 

    20201009.7z

    Austin