3 Replies Latest reply on Mar 26, 2020 4:49 AM by DheerajP_41

    How do I find the static MAC address of a bluetooth device?

    ErVe_4649071

      Hello

       

      How do I find the static MAC address of a bluetooth device?

       

       

      I am using the CYBT-213043-MESH-02 kit but every time I upload a code it changes my MAC address.

       

       

      Can anybody help me?

       

       

      Thank you!

        • 1. Re: How do I find the static MAC address of a bluetooth device?
          DheerajP_41

          Hi,

           

          It takes random address. All Mesh applications prints the UUID in the puart trace. You can use any mesh helper applications such as MeshClient, android/ios app, etc... to scan and find this address.

           

          Please check the void mesh_application_init(void) in mesh_applicaion.c. (search for "UUID").

           

          Thanks,

          -Dheeraj

          • 2. Re: How do I find the static MAC address of a bluetooth device?
            ErVe_4649071

            Thank you very much for your help Dheeraj.

            I have some questions.

            Why does it need to be a random address?

            Could you get any address that is not random but can be detected by Android, IOS or Mesh Client applications?

            Could you give me an example of how to save UUID in a variable?

            I am a beginner in this environment and I still have doubts.

            I hope you can help me.

            Thank you

            • 3. Re: How do I find the static MAC address of a bluetooth device?
              DheerajP_41

              Hi,

               

              It is according to the spec.

              "To decrease the complexity of deploying nodes, a unique Bluetooth BD_ADDR is not required for mesh operations. Instead, each node shall be assigned a 128-bit UUID known as the Device UUID. Device manufacturers shall follow the standard UUID format as defined in [8] and generation procedure to ensure the uniqueness of each Device UUID."

               

              For executing PTS or similar testing, you can enable PTS macro in the makefile of each application.

              If PTS is defined, then the device takes the UUID as local bda with 0x0f in the remaining bytes.

              You can configure BT_DEVICE_ADDRESS also in the makefile. But please do not try to use BT_DEVICE_ADDRESS unless testing with PTS=1.

               

              Thanks,

              -Dheeraj