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

ble_app_uart on nrf6310

Hello, I am trying to use ble_app_uart example from pca10001 to nrf6310 board from development kit. My nexus 7 detects the BLE device as 'Nordic_UART' but disconnects immediately saying 'Device doesn't support UART. Disconnecting'. It would be a great help if someone can tell me how to modify the program to work with the DK. Sincerely, Hari

Parents
  • Thank you Very much Stefan, your help is very much appreciated! Your suggestion works fine! I have been trying to send an analog value from NRF6310 board to the android tablet. I have declared 'ch' as analog value to be used in the following code. I dont receive any values on the android device. Thank you very much! void UART0_IRQHandler(void) { static uint8_t data_array[BLE_NUS_MAX_DATA_LEN]; static uint8_t index = 0; uint32_t err_code;

    /**@snippet [Handling the data received over UART] */ data_array[index] = ch;//ch is analog 8bit ADC value // data_array[index] = simple_uart_get(); index++;

        err_code = ble_nus_send_string(&m_nus, data_array, index + 1 );//index + 1
        if (err_code != NRF_ERROR_INVALID_STATE)
        {
            APP_ERROR_CHECK(err_code);
        }
        
        index = 0;
    

    }

Reply
  • Thank you Very much Stefan, your help is very much appreciated! Your suggestion works fine! I have been trying to send an analog value from NRF6310 board to the android tablet. I have declared 'ch' as analog value to be used in the following code. I dont receive any values on the android device. Thank you very much! void UART0_IRQHandler(void) { static uint8_t data_array[BLE_NUS_MAX_DATA_LEN]; static uint8_t index = 0; uint32_t err_code;

    /**@snippet [Handling the data received over UART] */ data_array[index] = ch;//ch is analog 8bit ADC value // data_array[index] = simple_uart_get(); index++;

        err_code = ble_nus_send_string(&m_nus, data_array, index + 1 );//index + 1
        if (err_code != NRF_ERROR_INVALID_STATE)
        {
            APP_ERROR_CHECK(err_code);
        }
        
        index = 0;
    

    }

Children
Related