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

nRF52840《主从一体工程中》如何配置不同的基础128bit的UUID

大家好:

  • 我这边现在遇到的问题是,无法在nRF52840主从一体的工程中创建两组自定义且不同的基础128bit的UUID,连续创建了两组不同的基础128bit的UUID,但是编译下载调试却发现只有第一次添加的哪组基础128bit的UUID生效了,第一次添加的另一组基础128bit的UUID不成功。

    我想要实现的功能是:

    1、设备1(主机角色),配置了一个自定义且独有的基础128bit的UUID。

    2、设备2(从机角色),配置了另外一个自定义且独有的基础128bit的UUID。

    3、设备3(主机角色),分别配置上同两组自定义且独有的基础128bit的UUID,以便能和设备1(主机角色),设备2(从机角色)进行蓝牙数据通信。

    我想要实现的就是主从一体的三方蓝牙交互通信,所以需要两组不同的基础128bit的UUID,请问可以提供下范例参考代码吗?

  • The problem I am facing now is that I can't create two sets of custom and different basic 128-bit UUIDs in the nRF52840 master-slave project, creating 33 consecutive sets of different basic 128-bit UUIDs, but compiling and downloading Debugging found that only the first set of 128-bit UUIDs added for the first time took effect, and the other set of the base 128-bit UUIDs added the second time was unsuccessful.

    The features I want to implement are:

    As shown in Figure 1, Device 1 (Host Role) has a basic 128-bit UUID unique to the custom Royal Sister.

    2. Device 2 (slave role) is configured with another custom and unique base 128-bit UUID.

    3. Device 3 (host role) is configured with the same two sets of customized and unique 128-bit UUIDs to enable Bluetooth data communication with device 1 (host role) and device 2 (slave role).


    What I want to achieve is the master-slave three-party Bluetooth interactive communication, so I need two different sets of basic 128-bit UUID. Can I provide the following example reference code?

  • Hi Jack,

    JackWan said:
    and the other set of the base 128-bit UUIDs added the second time was unsuccessful.

    Which par is s fail? Cental to Cental or Cental to Peripheral? What is the operation? What is the error message?

    JackWan said:
    As shown in Figure 1

    The figure is missing.  

    Please kindly provide more information to help us identify the questions.

    -Amanda H.   

Related