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

Send Data packets of about 50 bytes from central to a peripheral device with or without establishing a connection

Hello 

I am using SDK15.3 and nrf52832 development board. 

In my setup,

1. I have a  few peripheral nodes whose only job is to transmit some arbitrary packets ( say P),

2. a node that acts as both central and peripheral( say T) which reads the advertisement packets from P and gets it RSSI values and then sends this RSSI array ( from mulitple P nodes) to a  gateway(say G), which is a central node.

My issues are

a)  Setting up this node T. Please suggest which example from SDK 15.0 and higher is suitable for this.

b) How to send data from 'T' to 'G'. The size of data is about 40 bytes. I realised the data sent in the advertisement as manuf_data is about 15 bytes ( correct me if I'm wrong about this). So how to send data after establishing a connection? Please suggest suitable examples.

Thank you in advance. 

Parents Reply
  • /**@brief   Function for handling app_uart events.
     *
     * @details This function receives a single character from the app_uart module and appends it to
     *          a string. The string is sent over BLE when the last character received is a
     *          'new line' '\n' (hex 0x0A) or if the string reaches the maximum data length.
     */
    void uart_event_handle(app_uart_evt_t * p_event)
    {
        //added
        NRF_LOG_INFO("in uart_evt_handle\r\n");
        //static uint8_t data_array[BLE_NUS_MAX_DATA_LEN];
        static uint8_t data_array[BLE_NUS_MAX_DATA_LEN] = "1,2,3\r\n";
        NRF_LOG_INFO("array = %x\r\n",data_array);
        static uint16_t index = 0;
        uint32_t ret_val;

Children
No Data
Related