This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Central and a custom peripheral device

Hi,

Can the central device (ble_app_hrs_c for example) scan for and connect to a custom peripheral device (not nRF based)?

Parents
  • @mtudan btw.I cannot compile ble_central\ble_app_hrs_c from nRF5 SDK v13.0.0 because code size exceeds limit in Keil for free/evaluation license but I took ble_central\ble_app_uart_c project and by adding following code to line #422 of main.c (right after case BLE_GAP_EVT_ADV_REPORT: { ) I can now observe load of adv. reports captured in the console.

        printf("on_ble_evt(BLE_GAP_EVT_ADV_REPORT):\r\n");
        if (p_gap_evt->params.adv_report.dlen > 0) {
            printf("[0x%02X", p_gap_evt->params.adv_report.data[0]);
        }
        for(uint32_t index = 1; index < p_gap_evt->params.adv_report.dlen; index++) {
            printf(":0x%02X", p_gap_evt->params.adv_report.data[index]);
        }
        if (p_gap_evt->params.adv_report.dlen > 0) {
            printf("]\r\n");
        }
    
Reply
  • @mtudan btw.I cannot compile ble_central\ble_app_hrs_c from nRF5 SDK v13.0.0 because code size exceeds limit in Keil for free/evaluation license but I took ble_central\ble_app_uart_c project and by adding following code to line #422 of main.c (right after case BLE_GAP_EVT_ADV_REPORT: { ) I can now observe load of adv. reports captured in the console.

        printf("on_ble_evt(BLE_GAP_EVT_ADV_REPORT):\r\n");
        if (p_gap_evt->params.adv_report.dlen > 0) {
            printf("[0x%02X", p_gap_evt->params.adv_report.data[0]);
        }
        for(uint32_t index = 1; index < p_gap_evt->params.adv_report.dlen; index++) {
            printf(":0x%02X", p_gap_evt->params.adv_report.data[index]);
        }
        if (p_gap_evt->params.adv_report.dlen > 0) {
            printf("]\r\n");
        }
    
Children
No Data
Related