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 Reply Children
  • Hi,

    Today, I try to do the same operation with "nrf5_SDK_for_Mesh_v2.0.1" as last time again. I found that assertion did not appear when using the "nRF Connect" (Andorid) to connect Proxy_server.

    When I try to send byte data to Proxy_Server using "Mesh Proxy Data In" of Mesh Proxy Service, the connection is immediately disconnected without assertion and debugging information(LOG).

    Can you tell me how to use GATT service to send data to Proxy_server, such as sending 0/1 (byte) control LED status.

  • Hi,

    At the moment, you will need a BLE device with the Proxy Client role. We do not provide that in the nRF5 SDK for Mesh, but we are working on libraries for iOS and Android with example apps.

    Currently we have a preview version (pre-alpha work in progress version) for iOS: https://github.com/NordicPlayground/IOS-nRF-Mesh-Library Unfortunately this is all we got at the moment.

    We will release an iOS app soon, based on the library, which lets you test the GATT service from a smartphone. With that, you can provision and configure from the phone, as well as on/off client. Similar library and application for Android will come further down the road.

    Please be warned that in the light switch examples of nRF5 SDK for Mesh v2.0.1, there are two projects named proxy_client and proxy_server. The naming is a bit misleading, as "proxy_client" is actually "light switch client with proxy server", and "proxy_server" is actually "light switch server with proxy server". I.e. both have the Proxy Server role, they are nodes that are part of the normal ADV bearer part of the network. Both of these offers the BLE GATT service to which a device with the Proxy Client role can connect.

    Regards,
    Terje

  • The BLE GATT services which "Proxy_client" offered have any features? Why does the device disconnect immediately when I write data in GATT services?

  • Hi,

    The GATT service on the proxy server functions according to the Bluetooth Mesh specification. (It is the same proxy server feature on both proxy projects in the ligth switch example, i.e. both for light switch client and for light switch server.)

    As previously noted we have an early version of an iOS library for the proxy client.

    We are looking into why in some situations the device asserts. Unfortunately I do not have a clear answer yet for why that happens.

    Regards,
    Terje

  • Hi Tesc, if a phone works as a central device it means that If I have already central devices deployed using a nRF52832. Can I use "Proxy server" to connect them a Bluetooth Mesh?

    I am sorry for the off topic

Related