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.

CC2640R2F: Service and characteristics discovery event in simple_peripheral

Part Number: CC2640R2F


Hello,

I am using multirole as central on cc2640r2f and on another cc2640r2f i am using simple_peripheral project. but when i perform the write request after getting the handles for the characteristics  

I am performing service and char discovery from the central. Then after getting the handel values i try to write value on char with:

status = GATT_WriteNoRsp (connHandleMap[index].connHandle, &req);

i am getting status as successful but i don,t see  (i have attached debugger) any value coming to simple_peripehral.

So I want to know that if can see the service/char requests are really coming to slave device. How i can see in the application? Which events are generated when a service / char discovery request comes from the master device.

I will be waiting for your kind reply.

  • Hello,

    Assuming you are writing to the Simple GATT profile, these writes will be processed in the SBP application in the function: SimplePeripheral_processCharValueChangeEvt

    This is where I would set your breakpoint. It is also important to remember that only certain chars on SBP are writable, be sure you are writing to one of those.

    On the multi_role side, if you are receiving SUCCESS, this means the packet is was queued up by the stack and will be sent over the air. Further verification could be done with a BLE sniffer to ensure the write went OTA