Nimble BLE COC (Connection Oriented Channels)

dave_see
Posts: 11
Joined: Wed Jan 08, 2020 6:02 pm

Nimble BLE COC (Connection Oriented Channels)

Postby dave_see » Tue Feb 04, 2020 3:42 am

Hello,

I'm unable to build a the hello-world (from the examples) app with support for NimBLE COC data transport. Using idf.py menuconfig, I set CONFIG_BT_NIMBLE_L2CAP_COC_MAX_NUM to 1.

When make this change and try to build, I see the following error when building hello-world :

Code: Select all

In file included from ../../../../components/bt/host/nimble/nimble/porting/nimble/include/syscfg/syscfg.h:9,
                 from ../../../../components/bt/host/nimble/nimble/nimble/include/nimble/ble.h:25,
                 from /Users/dsee/esp/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_l2cap_coc.c:22:
/Users/dsee/esp/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_l2cap_coc.c: In function 'ble_l2cap_coc_chan_alloc':
../../../../components/bt/host/nimble/port/include/esp_nimble_cfg.h:13:49: error: 'MYNEWT_VAL_BLE_L2CAP_COC_MPS' undeclared (first use in this function); did you mean 'MYNEWT_VAL_BLE_L2CAP_COC_MAX_NUM'?
 #define MYNEWT_VAL(x)                           MYNEWT_VAL_ ## x
                                                 ^~~~~~~~~~~
/Users/dsee/esp/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_l2cap_coc.c:250:20: note: in expansion of macro 'MYNEWT_VAL'
     chan->my_mtu = MYNEWT_VAL(BLE_L2CAP_COC_MPS);
                    ^~~~~~~~~~
../../../../components/bt/host/nimble/port/include/esp_nimble_cfg.h:13:49: note: each undeclared identifier is reported only once for each function it appears in
 #define MYNEWT_VAL(x)                           MYNEWT_VAL_ ## x
                                                 ^~~~~~~~~~~
/Users/dsee/esp/esp-idf/components/bt/host/nimble/nimble/nimble/host/src/ble_l2cap_coc.c:250:20: note: in expansion of macro 'MYNEWT_VAL'
     chan->my_mtu = MYNEWT_VAL(BLE_L2CAP_COC_MPS);
                    ^~~~~~~~~~
[428/849] Building CXX object esp-idf/asio/CMakeFiles/__idf_asio.dir/asio/asio/src/asio.cpp.obj
ninja: build stopped: subcommand failed.
ninja failed with exit code 1
Does anyone know how to successfully build with NimBLE COC support?

Many thanks,
Dave

User avatar
WardMas
Posts: 75
Joined: Fri Jun 19, 2020 9:09 am

Re: Nimble BLE COC (Connection Oriented Channels)

Postby WardMas » Fri Feb 19, 2021 8:13 am

I am also having the same problem. Is there an update on this issue.
You can always visit my YouTube channel for embedded systems related tutorials
https://youtube.com/user/wardzx1

DrMickeyLauer
Posts: 168
Joined: Sun May 22, 2022 2:42 pm

Re: Nimble BLE COC (Connection Oriented Channels)

Postby DrMickeyLauer » Sat May 28, 2022 8:48 am

I have a slightly different problem… while everything compiles, it just doesn't do anything. Perhaps you could comment on https://github.com/espressif/esp-idf/issues/9044 to raise more awareness for this issue.

Who is online

Users browsing this forum: No registered users and 388 guests