This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

indication problem in ble central

Hii this is vinu .iam trying to develop health thermometer service for central but iam facing problem in indication for specific measurement characteristic.and iam using cypress module as a peripheral and in that peripheral it is not recieving any indication from my nRF52840 central device..plzz help me in this problem...

iam using heart rate service application example to implement my health thermometer service example in s140 soft device i changed uuid section and hrs name in that application example and i am notifying to my service like this...

static uint32_t cccd_configure(uint16_t conn_handle, uint16_t handle_cccd, bool enable)
{
		
tx_message_t * p_msg;
			
	  uint16_t       cccd_val = enable ? BLE_GATT_HVX_INDICATION : 0;
			
		
		p_msg              = &m_tx_buffer[m_tx_insert_index++];
    m_tx_insert_index &= TX_BUFFER_MASK;
	   
	
		p_msg->req.write_req.gattc_params.handle   = handle_cccd;
		p_msg->req.write_req.gattc_params.len      = WRITE_MESSAGE_LENGTH; //2
    p_msg->req.write_req.gattc_params.p_value  = p_msg->req.write_req.gattc_value;
	  p_msg->req.write_req.gattc_params.offset   = 0;
    p_msg->req.write_req.gattc_params.write_op = BLE_GATT_OP_WRITE_REQ;
		p_msg->req.write_req.gattc_value[0]        = LSB_16(cccd_val);
    p_msg->req.write_req.gattc_value[1]        = MSB_16(cccd_val);
		p_msg->conn_handle                         = conn_handle;
		p_msg->type                                = WRITE_REQ;


    tx_buffer_process();
	
return NRF_SUCCESS;
} 

and in tx_buffer_process(); iam writing data to stack by using

err_code = sd_ble_gattc_write(m_tx_buffer[m_tx_index].conn_handle,
                                          &m_tx_buffer[m_tx_index].req.write_req.gattc_params);

here it is showing successfully written but iam not getting any indication in my peripheral device ..so plzz help me in this problem...and thank you..!

Parents
  • actually i made nordic as a central and it is GATT client and my peripheral is GATT server which is sending temperature data by using health temperature service .and iam able to send indications successfully to the server

Reply
  • actually i made nordic as a central and it is GATT client and my peripheral is GATT server which is sending temperature data by using health temperature service .and iam able to send indications successfully to the server

Children
No Data