- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Solved! Go to Solution.
- Labels:
-
BLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
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)-
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.
-Gyan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
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)-
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.
-Gyan