Comments (4)
ble_hci_sock_init
calls should be removed from apps.
ble_transport_ll_init
initializes LL side of transport which in case of external controller is a HCI socket so the socket should be initialized there.
from mynewt-nimble.
Hello @Fanhang32,
I'm only a user of this project, and I only played it with FreeRTOS, therefore the below might not be completely correct.
In mynewt-nimble v1.5.0, the architecture of HCI transport had been modified.
(You may refer to nimble/doc/transport.md for the current architecture.)
When I was migrating my personal project from v1.4.0 to v1.5.0, I found the examples at that time were not compatible with v1.5.0.
For adapting to the v1.5.0 architecture, I opened PR #1597 to resolve the issue.
Is the example you used porting/examples/linux?
As I saw porting/examples/linux has not been maintained for a long time, I think this example might be kinda outdated and need to be adapted to the new HCI transport architecture.
Would it be better if we keep ble_hci_sock_init()
in ble_transport_ll_init()
mynewt-nimble/nimble/transport/socket/src/ble_hci_socket.c
Lines 836 to 841 in 64067f5
and remove ble_hci_sock_init()
in the example (porting/examples/linux
)?
mynewt-nimble/porting/examples/linux/main.c
Lines 69 to 70 in 64067f5
I think ble_transport_ll_init()
is a more upper-level API for users to initialize the controller, while ble_hci_socket_init()
may be the platform-specific implementation for ble_transport_ll_init()
?
from mynewt-nimble.
@andrzej-kaczmarek @CW-B-W Got it , thanks a lot! I‘ve removed ble_hci_sock_init
in example apps in #1670
from mynewt-nimble.
If it is indeed necessary to do so,i can fix it by remove ble_hci_sock_init
from ble_transport_ll_init
in ble_hci_socket.c
from mynewt-nimble.
Related Issues (20)
- Where can I find the documentation for nimble-1.4.0 and nimble-1.3.0? HOT 2
- Linux unit test: Segmentation fault HOT 8
- Runnig blecent app on Linux does not work HOT 4
- Host HCI commands not freed HOT 2
- Determine if BLE_GATT_ACCESS_OP_READ_CHR is a long read. HOT 1
- Occasional connection supervision timeout on DLE update HOT 2
- reserved identifier violation HOT 1
- Where can I find documentation for known vulnerabilities
- NimBLE supports to disable BLE GATT client or server HOT 1
- NimBLE sample build error with apache-mynewt-core HOT 1
- Broken Link HOT 1
- How to trace function calls in controller code
- Document NimBLE Vendor specific HCI commands and events
- Is it possible to run Nimble auto-pts on linux? HOT 1
- Reducing MSYS_1_BLOCK_SIZE breaks SC Pairing DH key exchange HOT 5
- Ability for ble_gatts_notify_custom() to wait for new packet buffers
- Change Macro from min to MIN in lpn.c
- controller/iso: ISO broadcast support without encryption HOT 1
- Error code of ble_gap_adv_set_data function HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mynewt-nimble.