xref: /haiku/docs/develop/busses/bluetooth/overview.rst (revision 3d4afef9cba2f328e238089d4609d00d4b1524f3)
1Bluetooth overview
2==================
3
4(Copied mostly from
5http://urnenfeld.blogspot.de/2012/07/in-past-i-got-to-know-that-motivation.html)
6
7**L2cap under ``network/protocols/l2cap``**: Provides socket interface
8to have l2cap channels. L2CAP offers connection oriented and
9connectionless sockets. But bluetooth stack as this point has no
10interchangeability with TCP/IP, A Higher level Bluetooth profile must be
11implemented
12
13**HCI under ``src/add-ons/kernel/bluetooth``**: Here we have 2 modules,
14one for handling global bluetooth data structures such as connection
15handles and L2cap channels, and frames
16
17**H2generic under ``src/add-ons/kernel/drivers/bluetooth``**: The USB
18driver, implementing the H2 transport.
19
20**Bluetooth kit under ``src/kit/bluetooth``**: C++ implementation based
21on JSR82 api.
22
23**Bluetooth Server under ``src/servers/bluetooth``**: Basically handling
24opened devices (local connected fisically in our system) and forwaring
25kit calls to them.
26
27**Bluetooth Preferences under ``src/preferences/bluetooth``**:
28Configuration using the kit
29
30**Test applications under ``src/tests/kits/bluetooth``**.
31
32There is a small prototype component which is not here documented below
33src/add-ons/bluetooth/ResetLocalDevice. Its intention was to be an
34add-on of bluetooth preferences, So that new HCI commands could be
35customized by users or external developers. I did not like at the end
36the idea, I did not find the flexibility I wanted.
37