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