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.

WL1831MOD: Bluetooth links get aborted very often.

Part Number: WL1831MOD

Hi all,

We are experiencing 'link abortion' on Bluetooth-RFCOMM links ( that are active for a longer time).

We see this behavior only when using WL18xxMOD based chipsets  ( when using other types/brands of Bluetooth devices , this link-aborting is not occuring).

Those links abortions have been experienced in TI-WL18xx , Service Pak 3.9 {wl18xx_bt_sp_v3.9} and 4.2 {wl18xx_bt_sp_v4.2}

When debugging into the Linux-BlueZ kernel the first 'trigger' when such an abortion occurs is seen at  "l2cap_disconn_cfm - hcon ee51ec00 reason 8" this error '8' is then translated to error 110 ( timeout) for the applications. { as said before, we do not see these 'link abortions' on other ( none Ti) based chip-sets }

Any hints on how to avoid these 'link' abortions ?

Best Regards,

Noel

PS: HCI-DUMP, TI-logger-tool and SERIAL-logged (between host and WL18xx module) .. logs have been included in attached-zip file.,

  • Noel,

    From the TIWL18xx_ABORT-25040218-2.lgr, it looks like the WLAN on the WL18xx is also being used simultaneously. Is this correct?

    If yes, do you see the same issue when the WLAN is off?

    Best regards,
    Vihang
  • Hello,

    No this is not correct, in fact the WLAN-enable pin is NOT ACTIVE. 

    This means the WL18xx  where I logged (all data on) has only Bluetooth enabled  (what also means , that no WLAN/Wifi software is active). !

    Best Regards

    Noel

  • Hello Noel,

    I have went over the logs - and specifically the LSTO - in order to see how come we have a disconnection.

    Usually i would expect the timeout counter to go down gradually until a timeout occurs and a disconnect.

    i don't see it in this case.

    I do have a couple of questions please.

    what is the exact scenario? Is it a multiple connection scenario? 

    Already have done several connect/disconnect?

    How long does it take before it disconnects?

    Thanks,

    Chen

  • Chen ,

    This reply via forum is throwing up errors when trying to reply.

    Any other way to report back !
  • Hi Chen,

    PART 1:
    We use one MASTER ( Bluecore4 - CSR-chipset based) this (master ) on RFCOMM can handle up to 7 simultaneous slaves (TX-WL18xx based , or CSR Bluecore2 and / or Bluecore 4 based).

    Means, One Master (Bluegiga WT41, CSR chipset based), Multiple Slaves (TI-WL1831 and/or other module type like, WT41/WT11/BT-2022 mix)
    All connections with the MASTER are open for ever ( kept open, worst case we send a BT-message every 20 seconds, if nothing to send) .
    So a client (Bluetooth slave), opens a connection to the master, and this connection is open , until it gets aborted., if a connection gets aborted ( whatever the reason is) we try to re-open that connection it ASAP !

    For example I've opened a CSR bluecore-4 chipset based client connection (Bluetooth slave) , and a CSR-bluecore-2 (Bluetooth slave) based together with a Ti-WL1831MOD rfcomm (Bluetooth slave), connection to the master (CSR bluecore-4 ) at the same time 6 days a go.. both CSR-based connections are still open ( after 6 days) .. the TI-WL1831mod Bluetooth based connection has been aborted ( with low level error 8 translated to 110 - timeout ( on socket) for the application ) multiple times ( more than 200 times , I should count them exactly)

  • PART2 :

    How long does it take before a disconnect ? Well this seem to be a little random, an average abortion happens lets say between 40 and 50 minutes. ( but can be 15 minutes or 4 hours as well)

    Best Regards
    Noel
  • PART3:

    The problem is that each 'abortion' in WL1831mod is giving me the impression to loose one message ( last one sent, looking from the WL1831MOD side , but I can't prove this , its a feeling)

    Best Regards
    Noel
  • Hi Noel,

    I went over the FW logs again - the only thing that looks suspicious is a COEX message.
    From what you are saying the WiFi isn't even turned on.

    Can you please capture another set of logs so i can go over these and hopefully i'll be able to see the core reason.

    In case this will not help - the next step would probably be me asking you to send your HW here so i can test it locally.

    Thanks,
    Chen
  • Hi Chen,

    I've been logging one ABORTION as requested.

    This is the same "Error-8" (on HCI / HCI-LL) and translated to 110-on socket level.

    Took me all-most 4 hours to catch this one !  ( but this varies, sometimes less than 20 minutes, often 4 hours or more) .. 

     

    { just for info, the CSR Bluecore-based chipsets connected to the SAME master as this WL1831MOD, are connected since 2 weeks and did not disconnect or loose a single message, WL1831-MOD connected slaves did abort probably 1000 times or more }

     

    NOTE I have the impression that,  this abortion 'occurs  more' if there is more 'indirect' ( not to this device) air traffic , bluetooth + wifi

    I've been logging all I can imagine.

    a) HCI-LL-serial bytes ( the bytes on the serial port ( both directions ) 

    b) HCI-DUMP (HCI-commands linux logger)

    c) TI-logger-tool log's

    d) an Eventlog showing a dump-kernel level that shows you what happens on HCI-level.

    Those files got quite BIG (even zipped) 

    Best Regards

    Noel

    PS:Sending hardware, is possible but I guess, you will not be able to configure those tests very easily.. maybe a better (more easy) way to provide support is,  providing remote access to A PC that has all the tools installed and that has direct connectivity to one of the Linux-powerd WL18xx devices.

    TI-09-05-2018.zip

  • Hi

    Bump, any updates / progress ?

    Thank you.

    Noel

  • Hi Noel,

    I went over the logs and can see the disconnection moment however in order to understand more i will need to test using your setup.

    Can you please send us a setup here so we can try to recreate the issue?

    And a quick question please.
    if the HCILL mechanism isn't working does it behave differently?

    BR,
    Chen Loewy
  • Hi Chen,

    It won't be an easy task to provide you a full-setup/config ( would require multiple units, and lots of software from our side) and on the other hand you can't send random data on those-Bluetooth-links. ( data needs to be in a specific format, in order to be accepted, wat means that you would require lots of background information to get the setup going)

    We use multiple MASTER-SLAVE bluetooth connections ( and the ones driven with an ti-18xx based chipset are causing abortion/disconnection issues)

    But in order to simulatie / log this "faulty" behavior I have to include ( different pieces of code in different layers of the linux-Bluez-Stack .. etc etc).

    Maybe we can provide remote "connection"  ( for example TEAMviewer) to a test-setup here, so you can check things yourself.

    But getting more info, will require more code , because at this time , I even provided low-level ( serial logs's ) between the TI-WL18xx and the host CPU ( IMX53 based arm cpu) , I don't think I'm able to provide more 'detailed' info then those raw-logs ( at least at this time.)

    Best Regards

    Noel

    Ps: i've included some pictures ( of one of our boards using a TI-WL18xx and one of our access point that uses WT41 based chipsets, access point can take up to 35 (=7*5) rfcommbased connections).

    Pict.zip

  • Hello Noel,

    Unfortunately we couldn't see anything that helped us solve this issue.
    I can see two ways to proceed.

    1. As it's RFCOMM - and we never had such issues with TI Bluetooth stack - one option is to change the stack to TI Bluetooth stack.
    2. If you can send us your Hardware with exact instruction we will try to recreate the issue here.

    BR,
    Chen Loewy