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.

CC2541: CC2541 HM10 keyfobdemo connected and disconnected 2 times

Part Number: CC2541
Other Parts Discussed in Thread: CC2540

Hello

My compatible HM10 BLE (ZS040) runs CC2541 Keyfob demo example with quite good result: LED 1 turns on about 1 second when booting, press button 2 the board stars discovering  and blinking LED 2, press this button again, the discovering LED 2 turn off. This board uses Internal RC 32KHZ Clock and the code is disable POWER_SAVING .  

"bluetoothctl" from Raspberry pi can connect it and disconnect it immediately 2 times

"hcitool lecc   xx:xx:xx:xx:xx:xx"  can connect successfully with return "connection handle 71"  ; the LED 2 and discovering will turn off.

"hcitool info   xx:xx:xx:xx:xx:xx" return error and disconnect; the LED 2 is blinking and discovering turn on again.

Android BLE scanner  can connect and also disconnect immediately.

I test with connection interval 100 to 400 ms,  slave latency 0 to 1, connection time 10 second  but connection problem is still existing. The HMSoft HM10 connect normally by Android BLE scanner or Raspberry Pi  without any problems.

Attached picture is command line and info. 

Please help to how to fix this connection problem.

Thanks in advance.

  • Hello,

    An air (packet) sniffer trace would be useful for determining the disconnect reason. One option is to use the TI Packet Sniffer - see the article on the TI BLE Wiki.

    Best wishes
  • Hello,

    In waiting for the delivery of USB Dongle CC2540 for packet sniffer, I tested with SimpleBLEPheripheral and got similar connect problems as keyfobdemo. However, I connect successfully and stably BLE Bridge UART example.  I try to figure out the main different between initiating BLE connect of BLE Bridge UART and Keyfobdemo