5 Support or not btapp inward ble, Instead of NimBLE version

Publish in 2022-09-04 20: 41: 07

define HCI_LE_HOST_SUPPORTED (x) ( (x) [HCI_EXT_FEATURE_LE_HOST_OFF] & HCI_EXT_FEATURE_LE_HOST_MASK)

This macro always gets 0, Whether not to support ble4. 0 ?
20180913104934985. png

See more

follower
0
Be viewed
1. 8k
hshiping
hshiping 2022-09-05
This guy is lazy, Nothing written!

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:
image. png

image. png

image. png

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
image. png

image. png

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.
image. png

image. png

image. png

3 Multiple replies
isme
isme Certified specialist 2022-09-05
Chilled big watermelon

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:
image. png

jxsrtml
jxsrtml 2022-09-05
This guy is lazy, Nothing written!

1

Write an answer

Please login to post your answer, Click to log in

publish
problem

Share
Friend

Cell phone
browse

Scan code mobile browsing