This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2652RB: What does Group A and Group B represents in auto connect option in simple_central application

Part Number: CC2652RB

Hi,

I am working with simple_central example.

When i opened the putty terminal after downloading the code, it shows its complete menu.

In that there was option of autoconnect 

-> Group A

-> Group B

->Disable


What does Group A and Group B represent here?

I wants to enable autoconnect feature for a specific mac address.

Do i need to add that mac address in Group A or Group B?

Thanks and Regards

Akansha

  • Hi,

    if you look in simple_central.c you will find the logic of the options in the SimpleCentral_doAutoConnect function. 

  • Hi,

    I saw that but there is nothing like what is part of Group A and Group B.

    I want to make my device autoconnected to module, where i need to add that device?

    Do i need to add UUID of my device somewhere?

    Thanks 

    Akansha

  • Hi,

    Please see the readme for simple_central. It outlines the following;

    The third option can be selected to select a group to which the central will start connecting automatically to. After selecting the group (Group A or Group B) the menu will go back to main menu. Then the user will have to choose Discover Devices to start scanning and connecting to the group members. After all members are connected , the "Work with" menu can be chosen to use one of the members. If one of the members got disconnected along the way , as long as the AutoConnect is not disabled, new "Discover Devices" can be initiated.

    Basic assumptions that need to be taken into account:

    • A peripheral node is associated with a group when it advertises a group name as part of its adv data. The peripheral should advertise the group name as its Shortened local name (opcode 0x07) and then GA for Group A or GB for Group B.
    • The central won't start automatically connecting to the chosen group until all defined group members are successfully scanned and found. Number of group members are defined by MAX_NUM_BLE_CONNS. Hence the user have to pre-define the number of members that wanted to be connected to.
    • if the user defined MAX_NUM_BLE_CONNS to be bigger then 8 , then all update parameters requests will be rejected.

    For further information regarding the limitation and settings of scheduling and memory, please see the BLE5-Stack User's Guide.

  • Hi,

    I have some queries regarding this:

    1. Can i made Groups according to my device's mac address?

    2. If i am only having mac address of target device, then is it possible to add them in group?

    3. I want target device to get connected immediately after master starts scanning, without pressing any option in menu. Is it possible?

    4. Where is that Group list, where i can write mac address of my target device? Is that editable?

    Thanks and Regards

    Akansha

  • Hi Akansha,

    It sounds like you are more interested in keeping the device address hardcoded in the central device. If so, you can add that functionality to the filtering policy (embedded development) rather than adding them manually through the two-button menu. I suggest you start reviewing the users guide as your questions cover rather trivial topics and I get the feeling you need to ramp up on the GAP / BLE architecture and functionality in general.