- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Sir ,
I have six 20737s devices and use 2.2.1 sdk.
I look "hello_client" project , it define a variable
#define HELLO_CLIENT_MAX_SLAVES | 4 |
and look "puart_control" project , it define a variable
#define PUART_CONTROL_MAX_CONNECTIONS | 8 |
I use puart_control project do actual test , Max can connections only four ,
When I try to connect a fifth device , the debug port display "connection failure" ,
Really can support connections to eight devices?
thanks you !
Solved! Go to Solution.
- Labels:
-
MasterSlave
-
SDK 2.X
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
puart_control is probably missing a call to set the max number of slaves to 8. Try adding:
blecm_setmaxconnection(PUART_CONTROL_MAX_CONNECTIONS);
to APPLICATION_INIT()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think you need to change HELLO_CLIENT_MAX_SLAVES
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi kwang
I use puart_control project
PUART_CONTROL_MAX_CONNECTIONS 8
but it only can connect four devices
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sorry I misread your post,
Are you using the WICED Sense kits? or your own custom board?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Do all your evaluations on the tag3 board. The max number of slaves can be set up to 7. If you include the master, then it will be a total of 8 members in the piconet.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi boont
But I do actual test , a master can only connection four slaves ,limit.
Have you actually measured ?
hello_client project some code in "connection_up" event method :
if (con_index >= HELLO_CLIENT_MAX_SLAVES) // con_index = (0x40 ~ 0x43) - (0x40) , can connect four devices
{
....
return;
}
puart_control project some code in "connection_up" event method ::
if (con_index > PUART_CONTROL_MAX_CONNECTIONS) // The same situation as above
{
.....
return;
}
PUART_CONTROL_MAX_CONNECTIONS is 8 , but actual test only connected four devices (0x40~0x43).
Connect handle no more than 0x43 , because when I try connect fifth slave device , the first debuger port print "connection failure" .
After connected four devices, used bleprofile_Discoverable() method can't Advertising.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Note that we confirmed today with the Developers that the 20737/36 will support up to 8 slaves (i.e. it will be the master of all the 8 slaves).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
have anyone try use puart_control App connect more than four slave devices ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Maybe I description is not clear enough.
I step by step do to you look :
step 1:
Scan result of five 20737 chip device:
step 2:
Connect address :0x1234567890DD
step 3:
Connect address :0x1234567890CC
Step 4 :
Connect address :0x1234567890AA
Step 5 :
Connect address :0x1234567890EE
Step 6:
I finish connect four slave devices ,I try connect 5th device 0x1234567890BB slave devices,
but can't connect it , no any connect success message !
step 7 :
final I click start advertisements , I use ble sinffer , not catch any package about this device.
and slave device 0x1234567890BB still advertisements !
-------------------------------------------------------------------------------------------------------------------------------------------------
Really can connect more than four slave devices ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
puart_control is probably missing a call to set the max number of slaves to 8. Try adding:
blecm_setmaxconnection(PUART_CONTROL_MAX_CONNECTIONS);
to APPLICATION_INIT()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi thanks you ,
I add this function blecm_setmaxconnection(PUART_CONTROL_MAX_CONNECTIONS);
it slove my problem !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi kwang !
Sorry Answer delay !
I No problem now.
Thank you for your interest