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.

CC2652R: Disconnection impacts scanning and advertising

Part Number: CC2652R

I'm running 2 sets of legacy advertising, scanning, and a connection. If the connection is terminated, it impacts rest of the operations. I'm using the SDK version 2.40. In my case, the procedure to see the problem is as follows. You can easily reproduce the issue using HCI Tester and host_test. 

1. On Device A, enable 2 sets of legacy non-connectable advertising.
2. On Device A, disable duplicate filter for scanner and enable scanning.
3. With sniffer, check if Device A is advertising 2 sets of advertisement. At the same time, check if Device A receiving AdvRpt.
4. On Device B, enable 1 set of legacy connectable advertising.
5. Make a connection from A with B.
6. With sniffer, check if the connection is maintained. At the same time, do Step 3 again.
7. Turn off Device B so that supervision timeout followed by disconnection happens.
8. Do Step 3 again. You will see all stopped.
9. On Device A, enable scanning again. You will see AdvRpt again.
10. On Device A, enable one of the advertising sets again. You will see nothing happen.
11. On Device A, disable the same advertising set anyway. You will see nothing happen to advertising, but will see scanning stop.

The steps 9-11 can vary by timing and parameters. It's a little unpredictable. The bottom line is, disconnection while some other roles are active messes up the state.

In our project, we must use the three roles at the same time. Please let me know if there is any workaround and plans to fix the problems if any. Thanks.

- Cetri

  • Hey,
    Assigning an expert to provide feedback on the expectations.
  • Hi Cetri,

    What version of the SimpleLink CC13x2/CC26x2 SDK are you using?

    Did you get any error messages when this happens?

    (If you have an HCI tester script to reproduce, can you post it or pm me?)
  • Hi Marie,

    I already described that I am using SDK v.2.40 in the original post.
    Can you please just follow the procedure manually on HCI Tester? It is very easily reproducible. Unfortunately I didn't save my scripts and actually I did some manual executions of the commands.

    - Cetri
  • Hi Cetri,

    I just tried with the 3.10 SDK but I am not able to reproduce the issue. How often does it happen? Can you update the SDK and re-try?
  • Hi Marie,

    Sorry I accidentally pressed "This resolved my issue".

    This is 100% reproducible with SDK 2.40. However, when advertising stops varies by case. I don't know what determines the time.

    Please see attached(5344.E2E_800224.zip) that contains HCI scripts, logs, and a sniffer capture. Advertising stopped about 100 seconds after the termination. In the HCI Tester log, termination notification is delayed very long due to accumulated advertising reports. However, actual termination happened long before the timestamp.

    I waited a few more minutes with SDK 3.10, but didn't see the same problem. I'm not sure if the problem has been fixed in 3.10 or it just has more time before advertising stop.

    Anyway, do you have any workaround for 2.40 on this issue?

    - Cetri

  • Hi Cetri,

    I tried a couple of more times with 3.10 SDK and waiting at least two minutes, but I'm not able to reproduce.

    As a work-around you can reset the device when the connection times out.