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

How to connect the "proxy server" of example "light_switch" in nrf5_SDK_for_Mesh_v2.0.0 with mobile phone ?

I have downloaded "nrf5_SDK_for_Mesh_v2.0.0" yestoday, and try to setup the "light_switch" demo with 3 pic nRF52 DK.

According to the document description, “proxy_server” can provide GATT services after the configuration is completed.

After I start the demo and complete the configuration, I can find the Bluetooth broadcast signal, but when I use the phone to connect to the device, the program will assert.

I want to know how to use mesh's "proxy node" feature in light_switch example.

Parents
  • Hi,

    For now a workaround is in <mesh sdk folder>/mesh/gatt/src/mesh_gatt.c, function mesh_gatt_on_ble_evt(), case BLE_GATTS_EVT_SYS_ATTR_MISSING, to remove the call to sd_ble_gatts_service_changed() and the checks for the error_code (lines 693 to 702), so that the case now reads:

            case BLE_GATTS_EVT_SYS_ATTR_MISSING:
            {
                NRF_MESH_ERROR_CHECK(sd_ble_gatts_sys_attr_set(p_ble_evt->evt.gatts_evt.conn_handle, NULL, 0, 0));
                break;
            }

    Regards,
    Terje

Reply
  • Hi,

    For now a workaround is in <mesh sdk folder>/mesh/gatt/src/mesh_gatt.c, function mesh_gatt_on_ble_evt(), case BLE_GATTS_EVT_SYS_ATTR_MISSING, to remove the call to sd_ble_gatts_service_changed() and the checks for the error_code (lines 693 to 702), so that the case now reads:

            case BLE_GATTS_EVT_SYS_ATTR_MISSING:
            {
                NRF_MESH_ERROR_CHECK(sd_ble_gatts_sys_attr_set(p_ble_evt->evt.gatts_evt.conn_handle, NULL, 0, 0));
                break;
            }

    Regards,
    Terje

Children
No Data
Related