Page 1 of 1

Nimble BLE COC (Connection Oriented Channels)

Posted: Tue Feb 04, 2020 3:42 am
by dave_see
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

Re: Nimble BLE COC (Connection Oriented Channels)

Posted: Fri Feb 19, 2021 8:13 am
by WardMas
I am also having the same problem. Is there an update on this issue.

Re: Nimble BLE COC (Connection Oriented Channels)

Posted: Sat May 28, 2022 8:48 am
by DrMickeyLauer
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.