Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyDex and BLE_otas issue when using internal flash for OTA #53

Open
EdwinFairchild opened this issue Feb 5, 2023 · 0 comments
Open

Comments

@EdwinFairchild
Copy link
Owner

EdwinFairchild commented Feb 5, 2023

Issue

For some reason I have yet to figure out when using BLE_otas with
a smaller MTU (128) I get have to transmit really small packets of 20 bytes
which would take a really long time.

Workaround

You can enable Connection Parameter Updates in dats_main.c of the
BLE_otas project.
settings that I have tested for fast updates are shown below.

/*! configurable parameters for connection parameter update */
static const appUpdateCfg_t datsUpdateCfg = {
    10,
    /*! ^ Connection idle period in ms before attempting
    connection parameter update. set to zero to disable */
    (6), /*! Minimum connection interval in 1.25ms units */
    (9), /*! Maximum connection interval in 1.25ms units */
    0, /*! Connection latency */
    600, /*! Supervision timeout in 10ms units */
    5 /*! Number of update attempts before giving up */
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant