History log of /haiku/src/servers/bluetooth/LocalDeviceImpl.cpp
Revision Date Author Comments
# 62c7ec5c 23-Nov-2018 Augustin Cavalier <waddlesplash@gmail.com>

Fix various instances of -Wset-but-unused.

Largely no functional change; most of these are just
removing the unused variables.


# 88445a43 07-May-2016 Augustin Cavalier <waddlesplash@gmail.com>

bluetooth_server: Attempt to fix the x86_64 build.


# 5559d51d 07-May-2016 Augustin Cavalier <waddlesplash@gmail.com>

bluetooth_server: Nuke the weird logging system, just use macros...

... just like everything else on Haiku does. Permanently enabled for the
time being. At least I can tell what's going on now.


# db706cb5 22-Apr-2016 Alexander von Gluck IV <kallisti5@unixzen.com>

bluetooth_server: Fix fatal warning under gcc2


# b4a9d9a6 09-Apr-2016 Alexander von Gluck IV <kallisti5@unixzen.com>

bluetooth: Fix x86_64 build of server


# 5bb75b44 09-Apr-2016 Alexander von Gluck IV <kallisti5@unixzen.com>

bluetooth: Quick style cleanup. No functional change


# 7a74a5df 27-Aug-2012 Fredrik Modéen <fredrik@modeen.se>

WIP... Updating Bluetooth.

* Some bugfixes.
* added scan mode read.
* inactivated some printout for now. Was a lot of noice in terminal


# 269ebc04 19-Aug-2010 Oliver Tappe <zooey@hirschkaefer.de>

Fix #6373, second try
* make BDADDR_* macros refer to value types instead of addresses
* adjust all interfaces using bdaddr_t* to use (mostly const) refs instead,
which IMHO makes the interface & code clearer
* that got rid of a couple of const incorrectness casts
* some cleanup along the way


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38265 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a5bf1237 14-Jun-2010 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

*Incorrect endianess handling from bdaddr at parsing from string.
*Remove bluetooth_util deprecated header
*Issue conn_req for socket connect() call



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37132 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 125183f9 07-May-2010 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Add possibility yo set a custom friendly name to our device. Which will be seen by remotes devices at discovery


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36729 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ddbc9a0f 24-Apr-2010 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- I expected once Haiku sets a connection with a remote device, such connection
was to expire in a couple of minutes, but not, seems to stay forever.
- Implement a Disconnect button in prefrences&kit



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36450 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 040fb3ea 24-Apr-2010 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Refactor the handling of Expected and unexpected events.
- Handle all events invovled in the authentication
- LinkKey requests -> reply always negative due the lack a a local linkey database
- LinkKey Notification
- Handle Completed number of packets for future control flow
- Allow clients to issue a command without having to expect an event
- Fix: LocalDevice Handler was stopping the search once the opcode expected did not match
- Cleanup debug window



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36446 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2db900d8 17-Apr-2010 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Some refactoring on the event handling

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36335 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ecd60ae8 02-Apr-2010 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Fix creating BPath with empty string
- Add handling of local features to know about the role and encryption capabilities



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36024 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2a3b755c 10-Jul-2009 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

Add handling for write device class event

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31501 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ccf28e4d 07-Jul-2009 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Unregister the device when appears any error Issuing any command. Now at least we realize in userland when a dongle has been unplugged with the first problem appears.
- Move code between parent & children classes of the Accessors
- a bit Styling



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31446 a95241bf-73f2-0310-859d-f6bbb57e9c96


# deb0a3ed 02-Jul-2009 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

Some stars to left

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31377 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ddac4074 02-Jul-2009 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Add initial code to unregister devices from server
- Handle Hardware error event
- Add function to retrieve an string from a bluetooth error
- Styling



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31376 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a1163de8 13-Jun-2009 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Long events were locking the bluetooth server, as events can be more than 256 counting with the header.
- Add debug more information in H2 driver and Command Status event
- Change name of port for posting events(former was too long)



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31036 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6971db8c 23-Apr-2009 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

Do not leak the delegate, as suggested by Stippi

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30355 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b9068dbf 23-Apr-2009 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Change LocalDevice getter for HCI id
- Fix some new some std::nothrow on critical allocations among kit and server
- Some styling



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30353 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d081e691 27-Mar-2009 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Add Strings for bluetooth events
- Use then in bluetooth server output



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29750 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 52e3ce2c 24-Mar-2009 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

Mika Lindqvist & me
- Add Handling for MaxSlotChange
- Many Styling and consistency
- Debug output improved


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29682 a95241bf-73f2-0310-859d-f6bbb57e9c96


# dd5df905 23-Mar-2009 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Remove size output parameter creating commands
- Add support for reading the size of internals buffers of the bt chips
- Add support for Resetting the Device
- Add broadcom vendor command fro writting the bdaddr
- clean up the debug output



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29669 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3fdaa5bf 21-Mar-2009 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Drop R5 compatibility by removing first 4 bytes in the IOCTLs containing the size of the command.
- Implement mechanism GetProperty to retrieve detailed information about the LocalDevice
- Generic BluetoothDevice interface changed and adapted
- Implement ReadLocalVersion to be aware of the bluetooth specification supported by our localdevice



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29639 a95241bf-73f2-0310-859d-f6bbb57e9c96


# e5da0ec5 16-Jan-2009 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

some cleanups and styling by Mika and me

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28915 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 33fe7b32 13-Dec-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Implement retrieval of Device Classes.
- Implement DeviceClass for easy analisys of discovered devices's type.
- Make harder the intantiation of RemoteDevices.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28809 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fbbf64a4 08-Dec-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

Remove dedicated implementation of GetAddress and GetName in server side.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28784 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d23283c4 25-Nov-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

Increase the priority of the thread handling the HCI events, + a bit formatting

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28728 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b48fa68a 31-Jul-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

Fix bluetooth_server debug window tabs, they were getting out of bounds due the index assignation

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26704 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 585f2ec6 25-Jul-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

In some cases the remote name request is never returning us the event containing the name. It fails, the reason could be that the command has some differences in the fields depending on the BT version. This is handling the error code properly in this fail case avoiding the wait.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26637 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3205e523 24-Jul-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

Implement pairing with a remote bluetooth device
- Fix PincodeWindow to send the pincode commands dissapear after clicking
- Improve the debug output of bluetooth_server
- Handle all needed events for the pairing
- Simple request could send and receive the event before adding the request to the events wanted list. Inverted the order of this sequence.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26614 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 41da6509 17-Jul-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Add handling of some events taking part on the pairing process
- Rename event structures to be consistent with another remaining ones
- Fix typos
by Mika & Oliver




git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26476 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 291e1143 01-Jul-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

Fix EOL



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26199 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 480cccf6 01-Jul-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

Fix a serious TODO,
Report the index where the event opcode pair has been found.
Currently server was expecting them to be the first entry of the request



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26198 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 18dbcd22 01-Jul-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

Handle the command status sent before the arrival of a remote name request.
Avoid unhandled event in the bluetooth_server
by Mika Lindqvist



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26196 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 14ea910d 18-Jun-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

Identation and handling of the pincode and incoming connection events


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26012 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 39399f65 19-Apr-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Implement RemoteDevice::GetFriendlyName() in kit and handle the required reply in the server.
- Now a discovery process is nicer.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25053 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ae736793 16-Apr-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Fix parsing of the inquiry replies. There is a first byte indicating the number responses which was ignored.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24993 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 717c9b00 15-Apr-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Fix correct handling of the command status event
- Fix Removal of specifil event wanted in a given request



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24971 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4b7428b5 01-Apr-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Implement the server understand the Inquiry complete, and the Inquiry result.
- With this, we should be able to discover other devices, but not tested yet. No application to use this part of the kit



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24733 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fd223db5 30-Mar-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Add capability to the server to handle Command Status events
- Add capability to reply the inquiry started command status



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24700 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a774d59f 17-Mar-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

Implement handling of the scan mode event reply

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24426 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 009fac99 08-Mar-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

Code & text output cleaning

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24317 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 30f1d1f3 06-Mar-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

bluetooth_server: a really young piece of meat, code not even to be looked at. Bad/fast code in some modules. But better here than in a crashed partition.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24282 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7a74a5df454197933bc6e80a542102362ee98703 27-Aug-2012 Fredrik Modéen <fredrik@modeen.se>

WIP... Updating Bluetooth.

* Some bugfixes.
* added scan mode read.
* inactivated some printout for now. Was a lot of noice in terminal


# 269ebc04b9082e0081f3660bd727d9a6bc4a683d 19-Aug-2010 Oliver Tappe <zooey@hirschkaefer.de>

Fix #6373, second try
* make BDADDR_* macros refer to value types instead of addresses
* adjust all interfaces using bdaddr_t* to use (mostly const) refs instead,
which IMHO makes the interface & code clearer
* that got rid of a couple of const incorrectness casts
* some cleanup along the way


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38265 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a5bf12376daeded4049521eb17a6cc41192250d9 14-Jun-2010 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

*Incorrect endianess handling from bdaddr at parsing from string.
*Remove bluetooth_util deprecated header
*Issue conn_req for socket connect() call



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37132 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 125183f9e5c136781f71c879faaeab43fdc3ea7b 07-May-2010 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Add possibility yo set a custom friendly name to our device. Which will be seen by remotes devices at discovery


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36729 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ddbc9a0f2a1f3d8cee26566a6a2f5aaf33cbac24 24-Apr-2010 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- I expected once Haiku sets a connection with a remote device, such connection
was to expire in a couple of minutes, but not, seems to stay forever.
- Implement a Disconnect button in prefrences&kit



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36450 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 040fb3eaaca3d80c40a301d6ba8c2b1efb9a6190 24-Apr-2010 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Refactor the handling of Expected and unexpected events.
- Handle all events invovled in the authentication
- LinkKey requests -> reply always negative due the lack a a local linkey database
- LinkKey Notification
- Handle Completed number of packets for future control flow
- Allow clients to issue a command without having to expect an event
- Fix: LocalDevice Handler was stopping the search once the opcode expected did not match
- Cleanup debug window



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36446 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2db900d8f180e68e68c7cb7e9c805408a62b3555 17-Apr-2010 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Some refactoring on the event handling

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36335 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ecd60ae87eec42046bbc68a75c26e38fd90c72da 02-Apr-2010 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Fix creating BPath with empty string
- Add handling of local features to know about the role and encryption capabilities



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36024 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 2a3b755cbe01f77d1a7904ccaf068baafbcaa181 10-Jul-2009 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

Add handling for write device class event

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31501 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ccf28e4dd1d5314629a2c3c9675cde612345da0c 07-Jul-2009 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Unregister the device when appears any error Issuing any command. Now at least we realize in userland when a dongle has been unplugged with the first problem appears.
- Move code between parent & children classes of the Accessors
- a bit Styling



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31446 a95241bf-73f2-0310-859d-f6bbb57e9c96


# deb0a3ed2f00c5273319497eaf490570c8c6518c 02-Jul-2009 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

Some stars to left

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31377 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ddac407426cd3b3d0b4589d7a161b300b3539a2a 02-Jul-2009 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Add initial code to unregister devices from server
- Handle Hardware error event
- Add function to retrieve an string from a bluetooth error
- Styling



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31376 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a1163de83ea633463a79de234b8742ee106531b2 13-Jun-2009 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Long events were locking the bluetooth server, as events can be more than 256 counting with the header.
- Add debug more information in H2 driver and Command Status event
- Change name of port for posting events(former was too long)



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31036 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6971db8cca83e30dd996a3d519fafaff95014ed2 23-Apr-2009 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

Do not leak the delegate, as suggested by Stippi

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30355 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b9068dbf95e05818c251ab36f8cb1d8619d2c9be 23-Apr-2009 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Change LocalDevice getter for HCI id
- Fix some new some std::nothrow on critical allocations among kit and server
- Some styling



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30353 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d081e691a0b4858c78af5955b5de5cf94e8d0f35 27-Mar-2009 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Add Strings for bluetooth events
- Use then in bluetooth server output



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29750 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 52e3ce2c74e25c213198cc4f8f7487828d90c24f 24-Mar-2009 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

Mika Lindqvist & me
- Add Handling for MaxSlotChange
- Many Styling and consistency
- Debug output improved


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29682 a95241bf-73f2-0310-859d-f6bbb57e9c96


# dd5df905704a199c74f0907fb044bcd8dee3b229 23-Mar-2009 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Remove size output parameter creating commands
- Add support for reading the size of internals buffers of the bt chips
- Add support for Resetting the Device
- Add broadcom vendor command fro writting the bdaddr
- clean up the debug output



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29669 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3fdaa5bf72a0bb3d751cb7c82a22c09aa2b2af46 21-Mar-2009 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Drop R5 compatibility by removing first 4 bytes in the IOCTLs containing the size of the command.
- Implement mechanism GetProperty to retrieve detailed information about the LocalDevice
- Generic BluetoothDevice interface changed and adapted
- Implement ReadLocalVersion to be aware of the bluetooth specification supported by our localdevice



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29639 a95241bf-73f2-0310-859d-f6bbb57e9c96


# e5da0ec57e7e7de6640b4cfc98eab2c7856951dc 16-Jan-2009 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

some cleanups and styling by Mika and me

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28915 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 33fe7b32dbd27350f238446ce69e4221766f3588 13-Dec-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Implement retrieval of Device Classes.
- Implement DeviceClass for easy analisys of discovered devices's type.
- Make harder the intantiation of RemoteDevices.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28809 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fbbf64a41071d2b8426a48498d16b10acde8b4f0 08-Dec-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

Remove dedicated implementation of GetAddress and GetName in server side.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28784 a95241bf-73f2-0310-859d-f6bbb57e9c96


# d23283c43e93d8d470354a50ea6d816549d65136 25-Nov-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

Increase the priority of the thread handling the HCI events, + a bit formatting

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28728 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b48fa68ace063e766334c04d4e9ed0d2a96ac3b2 31-Jul-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

Fix bluetooth_server debug window tabs, they were getting out of bounds due the index assignation

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26704 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 585f2ec6815f217f3b7ea633366ec94c53acdf0a 25-Jul-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

In some cases the remote name request is never returning us the event containing the name. It fails, the reason could be that the command has some differences in the fields depending on the BT version. This is handling the error code properly in this fail case avoiding the wait.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26637 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3205e523cd3467d8bd63f872eb542d0845e264aa 24-Jul-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

Implement pairing with a remote bluetooth device
- Fix PincodeWindow to send the pincode commands dissapear after clicking
- Improve the debug output of bluetooth_server
- Handle all needed events for the pairing
- Simple request could send and receive the event before adding the request to the events wanted list. Inverted the order of this sequence.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26614 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 41da6509b2f89bff3b5dc0c6a1a418141dfc0511 17-Jul-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Add handling of some events taking part on the pairing process
- Rename event structures to be consistent with another remaining ones
- Fix typos
by Mika & Oliver




git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26476 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 291e1143331969af10d504391cdf0ec9e36a2a0a 01-Jul-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

Fix EOL



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26199 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 480cccf67bf66c430aecda3a311bf3e981cd7345 01-Jul-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

Fix a serious TODO,
Report the index where the event opcode pair has been found.
Currently server was expecting them to be the first entry of the request



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26198 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 18dbcd22a0435edeb9d9a115f807149dcdd6dd36 01-Jul-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

Handle the command status sent before the arrival of a remote name request.
Avoid unhandled event in the bluetooth_server
by Mika Lindqvist



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26196 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 14ea910db6431787b815144b61b441eb907b20c6 18-Jun-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

Identation and handling of the pincode and incoming connection events


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26012 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 39399f65f0111be87adf699f2b43edc5a81ee42d 19-Apr-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Implement RemoteDevice::GetFriendlyName() in kit and handle the required reply in the server.
- Now a discovery process is nicer.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25053 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ae736793e8d8f6fc83d20bcac1fb56409df8d8b9 16-Apr-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Fix parsing of the inquiry replies. There is a first byte indicating the number responses which was ignored.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24993 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 717c9b00f201c3307a1f75b31ba4eb629f163c58 15-Apr-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Fix correct handling of the command status event
- Fix Removal of specifil event wanted in a given request



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24971 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4b7428b5647f3b4cb53ec43a44673685eec1457c 01-Apr-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Implement the server understand the Inquiry complete, and the Inquiry result.
- With this, we should be able to discover other devices, but not tested yet. No application to use this part of the kit



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24733 a95241bf-73f2-0310-859d-f6bbb57e9c96


# fd223db5ad4d1709cbaf4c4769bab87581ea50f2 30-Mar-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Add capability to the server to handle Command Status events
- Add capability to reply the inquiry started command status



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24700 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a774d59ff04123b36bb8eb09232178f3c368bd2c 17-Mar-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

Implement handling of the scan mode event reply

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24426 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 009fac990660d0f697395d351e2c1744a7966f59 08-Mar-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

Code & text output cleaning

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24317 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 30f1d1f363a1093509fff5a5e527340f1907f502 06-Mar-2008 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

bluetooth_server: a really young piece of meat, code not even to be looked at. Bad/fast code in some modules. But better here than in a crashed partition.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24282 a95241bf-73f2-0310-859d-f6bbb57e9c96