This macro always gets 0, Whether not to support ble4. 0 ?
The questions raised btapp, It is a library that uses traditional Bluetooth, Traditional Bluetooth libraries are also supported BLE the. Use the test as follows:
1. operational SDK is V1. 0. 4 edition--wm_sdk_w800_20211203. rar.
2. in SDK Bluetooth library:
a. in lib The directory needs to be libbtcontroller_br_edr. a and libbthost_br_edr. a instead libbtcontroller. a (Replace
Drop the old library) and libbthost. a
b. toolsw800. config Block this line CONFIG_W800_USE_NIMBLE---#CONFIG_W800_USE_NIMBLE=y
c. ldw800gcc_csky. ld Connect file to enlarge code area---LENGTH = 0x120000 instead 0x140000
d. includewm_config. h Configuration using tradition BT Library simultaneous support BLE:
#define TLS_CONFIG_BR_EDR CFG_ON
#define TLS_CONFIG_BLE CFG_ON
e. demowm_demo. h the DEMO_CONSOLE Macro open DEMO_ON, bluetooth DEMO unpack DEMO_BT The macro
#define DEMO_CONSOLE DEMO_ON
#define DEMO_BT (DEMO_ON && DEMO_CONSOLE)
f. After modifying the above places, Precompile library---make lib, again make.
Code modification refer to screenshot:
3. Burn test after generating firmware log As follows:
a. After reset, Test broadcast using serial console instructions: Execute the two commands in the screenshot---Post-success phone nrf connectAPP The device can be searched
b. After reset, Test using serial console instructions SERVER equipment: Execute the two commands in the screenshot---Post-success phone APP connect SERVER equipment, Send communication data.
Can support, SDK There are two Bluetooth stacks in there, The default is NimBLE Bluetooth stack, Only support BLE, Another Bluetooth protocol stack supports it BT and BLE, The compiled firmware will also be larger, Can be selected by macro definition. Refer to the following two documents for each Bluetooth protocol stack:
I almost went with another chip. We'll continue to evaluate the chip tomorrow.