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.

Modificación del código keyfob demo

Other Parts Discussed in Thread: CC2540

Hi all
Right now I am learning, such as integrated CC2540 is programmed, I'm using as a guide the keyfob demo code right now I am trying to modify it to just connect with keyfob to the dongle, start the sending of data x coordinate of the accelerometer, but any changes I make will not work. If anyone can help me with this, thank you very much in advance, and excuse the English.
cordially
Edwin pinilla

  • Hi Edwin,

    Did you modify the demo any? Can you tell me the procedures you are following with BTool?

  • I have the keyfob demo code modified in the following variables:
      uint8 initial_advertising_enable = TRUE;
    / / Accelerometer Profile Parameters
    static uint8 accelEnabler = TRUE;


    Also in the KeyFobApp_Init function, I add the line:
    osal_start_timerEx (keyfobapp_TaskID, KFD_ACCEL_READ_EVT, ACCEL_READ_PERIOD);

    The procedure in BTool is:
    Devices are scanned
    establish communication
    Sent the command GATT_AllCharDescs
    Modify Client Characteristic Configuration in Accelerometer X-coordinate to 01:00
    Information Accelerometer X-coordinate start coming.

    The objective of the test is that just want to make the connection is established, launch information sent Accelerometer X-coordinate, is this possible?