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.

Question about soft program for the CC2540 development

Other Parts Discussed in Thread: CC2540

Hello Everyone,

I am an electrical engineer of KOJ electronic CO. LTD. in China. Recently we developed a 2.4GHz Bluetooth control system by CC2540+RFX2401 chips. 

My program workmate has an question about the CC2540 development. Here it is: “When I try to send data package (only one byte) from Central Device (iPhone, Android and some cell phone) to Peripheral Device (CC2540DK) continually and rapidly(2-3 packages per second), the connection will disconnect automatically. I notice that I can use Without Response mode.

The key code in Peripheral is as follow:

static uint8 simpleProfileChar1Props = GATT_PROP_READ | GATT_PROP_WRITE_NO_RSP;

The key code in iOS is as follow:

[peripheral writeValue: data forCharacteristic: xxxChar1 type CBCharacteristicWriteWithoutResponse];

But it seems not work. Would you please tell me how to solve this difficult problem?”

Would you please do us a favor to give us some professional suggestions and advances to solute the questions in our system? I am looking forward to your answer. Thank you very much! Best wishes!

Sincerely yours,

Ken

  • Hi,

    There could be any number of reasons this happens, and I don't really have enough information. My best guess is that you do some processing when you receive the bytes that takes too long time. Please verify the app stability using our example applications and reference design/kit. Then try with our example apps on your hardware.

    BR,
    Aslak