Central with 8 connections to peripherals

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads athttps://www。dialog-semiconductor.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
4 posts / 0 new
Last post
ks@xtel.dk
Offline
Last seen:6 months 1 week ago
加入:2019-04-10 11:43
Central with 8 connections to peripherals

Hi

I am developing software for a device that should connect to 8 peripherals. I have used the DSPS_HOST example as inspiration, but when I run into a assert in gapc_disconnect_ind_handler because the state is APP_CONNECTABLE instead of APP_CONNECTED. It happen when one connection is established, but run out of range and it is scanning for more devices at the same time.

When I at start scanning I set ke_state_set(TASK_APP, APP_CONNECTABLE)

When starting the the scan. I do it with:

static void user_scan_start(void)
{
struct gapm_start_scan_cmd* cmd = KE_MSG_ALLOC(GAPM_START_SCAN_CMD,
TASK_GAPM,
TASK_APP,
gapm_start_scan_cmd);

cmd->op.code = GAPM_SCAN_PASSIVE;
cmd->op.addr_src = GAPM_STATIC_ADDR;
cmd->interval = 10;
cmd->window = 5;
cmd->mode = GAP_GEN_DISCOVERY;
cmd->filt_policy = SCAN_ALLOW_ADV_ALL;
cmd->filter_duplic = SCAN_FILT_DUPLIC_EN;

// Send the message
ke_msg_send(cmd);

// We are now connectable
ke_state_set(TASK_APP, APP_CONNECTABLE);
}

Is this the correct way to do it, or do you know what I do wrong.

Is there any examples or documentation that tells how to make a central with more than one connections.

Best regards

Kim

Device:
PM_Dialog
Offline
Last seen:18 hours 48 min ago
工作人员
加入:2018-02-08 11:03
Hi Kim,

Hi Kim,

Many thanks for your question. Let me check it internally and I will get back to you shortly.

Thanks, PM_Dialog

ks@xtel.dk
Offline
Last seen:6 months 1 week ago
加入:2019-04-10 11:43
Thanks. Looking forward for

Thanks. Looking forward for your reply.

regards

Kim

PM_Dialog
Offline
Last seen:18 hours 48 min ago
工作人员
加入:2018-02-08 11:03
Hi Kim,

Hi Kim,

I will send you an email in your registered email address.

Thanks, PM_Dialog