You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@mynewt.apache.org by "Andrzej Kaczmarek (JIRA)" <ji...@apache.org> on 2018/02/22 11:14:00 UTC

[jira] [Commented] (MYNEWT-887) Sending multiple notifications in short time result in notifications getting lost

    [ https://issues.apache.org/jira/browse/MYNEWT-887?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16372691#comment-16372691 ] 

Andrzej Kaczmarek commented on MYNEWT-887:
------------------------------------------

[~IzidorM] can you share some code snipped to send notifications? I was able to easily stream over 30 notifications per second, given the connection interval is short enough (works on default connection parameters set by Android).

One problem I see here is that if you have simple loop to just push all notifications at once, this may block default event queue and host stack won't be able to receive events from controller thus host stack won't be able to feed data on time. This can be partially circumvented by increasing BLE_ACL_BUF_COUNT setting, but proper solution would be to drive sending notifications by something that works with an event, e.g. callout.

> Sending multiple notifications in short time result in notifications getting lost
> ---------------------------------------------------------------------------------
>
>                 Key: MYNEWT-887
>                 URL: https://issues.apache.org/jira/browse/MYNEWT-887
>             Project: Mynewt
>          Issue Type: Bug
>      Security Level: Public(Viewable by anyone) 
>          Components: Nimble
>            Reporter: Izidor Makuc
>            Assignee: Andrzej Kaczmarek
>            Priority: Critical
>              Labels: NimBLE
>
> when I send notifications (with ble_gattc_notify) in tight loop only some of them are sent.
> This was observed when I was trying to send 30 notifications per second. I only receive around 8 from them every second.
> The problem was reproduced by the slack user sjanc.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)