1 Reply Latest reply on Jun 25, 2018 3:58 AM by GyanC_36

    Pairing of modules


      Hi everyone.


      I have some questions. I use CYBLE-022001-00 BLE module.


      A device Client

      B device Server

      I'm working on communication client-server. There is no problem communicating.

      I use communication protocol when connecting modules.


      Connect packet 0x01 0xC0 blemacid1 blemacid2 cheksum 0x04


      I want to pair the modules.

      Client module connect to server module with connection package.

      I turn off the devices and turn them back on again, I want the client module to connect to the server module pair. I want the client module to connect to the server we have mapped to.


      When we want to connect to another server, the reset communication package is sent, then the connection package is sent to connect to the new server.

      How can i match modules?

      Which methods should I use?


      Best Regards.

        • 1. Re: Pairing of modules



               You can pair both the devices and bond and in future on power off/on, in your central project check if any boded device is already present in the bonding list of your central device and if it is present send the connect request to the bonded peripheral device only.


          If you want to connect to a new server device , remove the bonding information from your central device and allow connection to a new server (peripheral) device.


          To implement this feature please refer the code example from below link ( Along with document for testing the project)-

          PSoC-4-BLE/100_Projects_in_100_Days/Day015_Bonding at master · cypresssemiconductorco/PSoC-4-BLE · GitHub 


          This example will show you how to bond the devices using CySmart App , how to remove a device from the bonding list based on UART commands.


          Please let us know if it helps.