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.

BLEBridge stop working after remove Device Information Service

Hello,

Follow this example "http://processors.wiki.ti.com/index.php/SerialBLEbridge".

I want to remove some characteristics.

If i remove "Device Information Service" (  //DevInfo_AddService();   ), Characteristic3 will not receive any data but it can be listened.

And i have tried to modify Profile Attributes - Table, but characteristic 3 is not working.

/*********************************************************************

* Profile Attributes - Table
*/

static gattAttribute_t devInfoAttrTbl[3] =
{
// Device Information Service
{
{ ATT_BT_UUID_SIZE, primaryServiceUUID }, /* type */
GATT_PERMIT_READ, /* permissions */
0, /* handle */
(uint8 *)&devInfoService /* pValue */
},

// Firmware Revision String Declaration
{
{ ATT_BT_UUID_SIZE, characterUUID },
GATT_PERMIT_READ,
0,
&devInfoFirmwareRevProps
},

// Firmware Revision Value
{
{ ATT_BT_UUID_SIZE, devInfoFirmwareRevUUID },
GATT_PERMIT_READ,
0,
(uint8 *) devInfoFirmwareRev
}

};

How can i fix it?

Thanks.

  • Hello,

    Why are you modifying the Dev Info Service and trying to use the characteristics associated with that service?

    Best wishes
  • There are too many characteristic in Device info Service, and I just want to remain some of them which I need.
    Is the device information amendable?
    If yes, what should I do?
    So far I have edited one part as following.

    static gattAttribute_t devInfoAttrTbl[3] =
    {
    // Device Information Service
    {
    { ATT_BT_UUID_SIZE, primaryServiceUUID }, /* type */
    GATT_PERMIT_READ, /* permissions */
    0, /* handle */
    (uint8 *)&devInfoService /* pValue */
    },
    // Firmware Revision String Declaration
    {
    { ATT_BT_UUID_SIZE, characterUUID },
    GATT_PERMIT_READ,
    0,
    &devInfoFirmwareRevProps
    },
    // Firmware Revision Value
    {
    { ATT_BT_UUID_SIZE, devInfoFirmwareRevUUID },
    GATT_PERMIT_READ,
    0,
    (uint8 *) devInfoFirmwareRev
    }
    };

    Did I miss any important step?