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.

CC2640: Slave is not responding during the first 6 connection events, connection fails.

Part Number: CC2640
Other Parts Discussed in Thread: BLE-STACK, , CC2540

Hello. 

I have a CC2640 module flashed with HostTestCC2650EM_app BLE-STACK V2.2.1.

I sent over UART next commands to initialize the device as peripheral:

1. GAP DEVICE INITIALIZATION

2. GAP CONFIGURE DEVICE ADDRESS

3. GAP UPDATE ADVERTISING DATA

4. GAP MAKE DISCOVERABLE

Next step, I tried to connect it with a CC2540 dongle (as central).

In BTool I can see that CC2640 module is discovered. When I try to connect I receive GAP_EstablishedLink event, but then the connection is terminated immediately (I receive in BTool GAP_TerminateLink event with reason "Failed To Establish").

With TI Packet Sniffer, I can see that slave is not responding to any connection event (see attachment below).

What can be done for the connection to be stable? Is any other command to be sent to CC2640 to respond on this events? 

  • I'm suspecting that the peripheral might have not received the connection indication or is simply ignoring it. What peripheral example are you trying to connect to? Is your peripheral still advertising? Do you have more logs in your sniffer capture?
  • What peripheral example are you trying to connect to?

    For peripheral (CC2640) I have flashed simple_peripheral hex file from BLE-STACK V2.2.1. It has the same behavior as the one described previously (with host_test app and commands on UART).

    Is your peripheral still advertising?

    Peripheral starts advertising again at about 10 seconds after connection failing.

    Thank you.

  • I also receive "GAP Link Established" event on the board that I use to communicate on UART. This is the last activity on UART RX.