Comments (6)
We've recently added support for FreeBSD's Netgraph Bluetooth HCI driver on the develop branch https://github.com/bluekitchen/btstack/blob/develop/port/freebsd-netgraph/hci_transport_netgraph.c - which required to disable FreeBSD's L2CAP layer, though.
Do you want/need to keep using BlueZ in parallel, or do you only require BlueZ to load/initialized the Bluetooth Controller (which isn't supported by BTstack directly yet)?
from btstack.
I don't need to use BlueZ in parallel. Btstack application can have exclusive control over the controller. It's fine. I just wonder whether it is possible to make Btstack application send/recv all HCI packets via HCI socket.
from btstack.
Good, running two Host Stacks with one Controller would be a disaster :)
BTstack should be fine once someone implemented hci_transport_t via BueZ' HCI socket. Given the references to Zephyr and NimBLE, it looks like it should just work out of the box (it didn't with FreeBSD which didn't want to send/receive ACL directly).
from btstack.
I am currently implementing this feature. However, I encountered some problems. I wrote a custom hci_transport_t
driver which uses linux bluez socket to send/receive packets. The driver is synchronous, which means can_send_packet_now
is NULL. However, in gap_run_set_local_name
and gap_run_set_eir_data
, hci_reserve_packet_buffer
is used to reserve the HCI buffer. I cannot find a way to release the packet buffer under synchronous transport settings. Does that mean I must design the HCI driver as asynchronous?
from btstack.
Hi @AminoACID123 Please try the current develop branch. gap_run_set_local_name and gap_run_set_eir_data should work with synchronous implementations now as well.
In general, please consider if it's possible to implement an asynchronous driver.
from btstack.
I see. Thank you.
from btstack.
Related Issues (20)
- Fix invalid memory access compile warning in RV64 targets HOT 1
- Failing to bonding iOS without deleting device from iOS HOT 7
- Mapping HID from tinyusb report to HID Classic Keyboard HOT 2
- How to include HID descriptors from usb keyboard in btstack HOT 1
- btstack_run_loop_set_timer stopped from running after disconnect and connect device. HOT 1
- esp32: compiler error when ESP32 console disabled HOT 2
- hci_connection_timeout_handler never triggered HOT 4
- After `hids_client_send_write_report()` client state never gets back to `HIDS_CLIENT_STATE_CONNECTED` HOT 2
- HOG keyboard example is always reconnecting in MAC HOT 1
- Hog multiples hid descriptor HOT 1
- too few arguments to function 'hci_event_create_from_template_and_arglist' HOT 1
- Missing 'create connections' when using different devices/profiles HOT 1
- Wrong address_type and address in some examples HOT 1
- Missing finalization of avdtp connection HOT 5
- Unexpected behavior of L2CAP LE Credit Based Flow Control Mode
- Pairing request is not answered HOT 1
- binding for java is missing some classes HOT 2
- [ESP32] Device examples do not connect after pairing HOT 11
- L2CAP Connection Oriented Channels examples HOT 20
- Whatβs W2 or W4 prefix mean? HOT 1
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 btstack.