Commit Graph

43 Commits

Author SHA1 Message Date
Pawel Olejniczak
c51411c876 [EGD-5861] Complete bluetooth connecting process on settings side
Enable connecting BT devices in settings.
Connect popup and add adjust messages for connection error handling.
2021-02-26 09:51:48 +01:00
SP2FET
2b1ce1aa0e [EGD-5879] Fix BT uart error
To be able to properly send data via UART, the frequency has to
be higher (to be fixed in the future)
2021-02-25 14:14:17 +01:00
SP2FET
f9b80ac26c [EGD-5764] Implement handling multiple BT profiles
To be able to connect to the BT device with more than one audio
profile, we need something to manage those profiles. Created here
ProfileManager made it convenient
To be able to work properly with BT, CPU freq has to be at least
at Level_5 - to be fixed!
2021-02-25 14:03:44 +01:00
SP2FET
1929a38252 [EGD-5848] Fix bluetooth pairing key import
After BT refactor settings init for key storage has been moved,
thus in the initial phase settings were unavailable and btstack
couldn't import keys from storage
2021-02-23 09:18:24 +01:00
SP2FET
5c7b518136 [EGD-5700] Fix Bluetooth pairing
To be able to proper propagate the pair message there was a need
for Command wrapper (to be able to send command and parameter in
one piece)
2021-02-21 14:17:29 +01:00
SP2FET
619ad219d2 [EGD-4394] Add BT device name change
Added handling of BT device name changing
2021-02-16 12:38:16 +01:00
SP2FET
a30887bb40 [EGD-5666] Add BT off function
Turning BT off was impossible thus there was the need of fixing it
Updated harness test
2021-02-11 12:01:58 +01:00
SP2FET
fa24dcc829 [EGD-5483] Updated BT harness tests
Added harness test for BT scan in order to be able
to test regression
2021-02-11 11:48:07 +01:00
Piotr Tański
65119cb495 [EGD-5027] Services synchronization introduced
Dependencies between services are now supported.
2021-02-10 12:37:42 +01:00
Piotr Tański
bc4d32c7d8 [EGD-5158] Change access to the bus methods
The bus is now accessible only via Service object.
2021-02-08 16:56:42 +01:00
Piotr Tański
1db3f19205 [EGD-5472] Bluetooth worker state machine
State machine POC implemented using SML library.
2021-02-03 12:48:07 +01:00
SP2FET
0fad723135 [EGD-5457] Add harness test for bluetooth on/off
There is no functional tests related to the Bluetooth. As the
refactor is on the way,we need to have a tool to check if it works
By the way fixed worker deinit
2021-01-28 17:14:59 +01:00
SP2FET
6befeb5073 [EGD-5316] Add Bluetooth run loop integration into worker
To be able to handle properly the Bluetooth stack we need to
get rid of doubled FreeRTOS task and do refactor of
the whole BT section. This is first part of refactor and it
includes integrating run loop into our worker and unifying
namespaces
2021-01-28 12:36:43 +01:00
SP2FET
71a8252029 [EGD-4580] Add BT settings middleware
Added bluetooth settings middleware to store BT status in settings.
Added middleware layer to handle new settings queries.
2021-01-14 17:19:44 +01:00
Przemyslaw Brudny
e7b9bcf7e9 [EGD-5133] Fix settings bus add duplications
Changed Bus Channels vector to set to prevent
duplicates and cleaned logging.
2021-01-08 17:33:00 +01:00
SP2FET
f8c83ce25c [EGD-4869] Add bluetooth message status to application settings
This change demonstrates how to work with Bluetooth messages
in application settings windows.
Responses to bluetooth status messages are mocked because
settings storage and message handlers in Service Bluetooth
are not ready yet.
2020-12-21 12:34:54 +01:00
SP2FET
edc7fd63cb [EGD-4579] Add bluetooth settings storage
Add settings storage to bluetooth related items
2020-12-21 12:06:58 +01:00
Paweł Olejniczak
ab4efaa9d5 [EGD-4778] Add Bluetooth settings to db (#1174) 2020-12-10 12:50:27 +01:00
Radoslaw Wicik
b96313b158 [EGD-4215] Convert service-bluetooth to library 2020-11-10 09:56:06 +01:00
Piotr Tanski
22102c4ba5 [EGD-4200] Message handling refactored. (#974) 2020-11-06 15:24:59 +01:00
Bartosz Cichocki
ac2c954d93 [EGD-3772] added HSP sink and source (#918)
Added HSP playback to the BT device and stream of the BT device microphone back to the OS

Co-authored-by: SP2FET <bartosz.cichocki@mudita.com>
2020-11-03 14:21:50 +01:00
Radosław Wicik
d5de12f7ce [EGD-3852] clean include in service (#928) 2020-10-28 15:19:24 +01:00
Bartosz Cichocki
061479780b [EGD-4011] added BT audio device with A2DP playback (#870)
Co-authored-by: SP2FET <bartosz.cichocki@mudita.com>
2020-10-22 09:59:13 +02:00
Hubert Chrzaniuk
4c22ef5107 [EGD-4099] BT set stream (#846) 2020-10-20 13:43:53 +02:00
Radoslaw Wicik
2276ceed67 [EGD-3743] Update copyrights in fies 2020-10-20 12:55:10 +02:00
Bartek Cichocki
305d43a176 [EGD-3773] added A2DP playback backend 2020-10-14 09:23:53 +02:00
Adam
f5f27d642f EGD-2955 EGD-3588 Timers fully refactored & updated (#721)
* Timers now are Application thread safe
* Timers now have consistent API independend of Application (no more c style timers)
* Timers can have either: callback or override onTimer() method - this
  way we can create more complicated timers or just use existing ones
* gui::Timer added via adapter class GuiTimer to decouple sys::Timer
  with gui::Timer
* Fixed race in wrapper
* Updated docs
* fixed using std and cpp_freertos and DataReceivedHandler hidden in Application.hpp
2020-10-02 14:04:57 +02:00
Bartek Cichocki
2060dd964f [EGD-2625] added BT scan
[EGD-2625] moved btstack to mudita_develop branch
2020-09-29 13:51:58 +02:00
Bartek Cichocki
6d22e00544 [EGD-3637] restoration of Bluetooth stack
[EGD-3637] Bluetooth hangup fix
2020-09-22 09:52:15 +02:00
Roman Kubiak
1925bb2ac6 removed all bluetooth code 2020-07-24 12:21:07 +02:00
Przemyslaw Brudny
c0822b6658 [EDG-3019] Moved log.hpp and debug.hpp into main PurePhone repo 2020-03-24 15:55:32 +01:00
Przemyslaw Brudny
8f92715951 [EDG-3019] Segger utils moved to git submodule 2020-03-23 18:37:37 +01:00
Radoslaw Wicik
a8573a404c Apply new style 2020-03-17 10:03:16 +01:00
Adam Dobrowolski
2206aeab44 [EDG-2135] Bluetooth PAN research cleanup 2019-11-20 12:42:03 +01:00
Adam Dobrowolski
d3b1a08e68 [EDG-2135] Bluetooth: bluetooth r/w control imporoved
* Improved bluetooth library interface write in one demand
* can start scan
* not used BT options hidden
* still some issues on flood - transaction style interface should be considered
2019-11-20 12:42:03 +01:00
Adam Dobrowolski
079dfb5891 Bluetooth: Cleaned up actual code & added bluetooth start to settings 2019-10-25 14:53:36 +02:00
Adam Dobrowolski
8c2622b2c2 Bluetooth compiles and starts on Purephone and Linux fine 2019-10-14 15:32:06 +02:00
Adam Dobrowolski
d03a6ed2d7 Bluetooth: Post master rebase fixups 2019-10-14 15:32:06 +02:00
Adam Dobrowolski
07a89b0294 Bluetooth: Handled via servive & worker - drops data
BlueKitchen requests from data, which doesn't mean it knows amount
need - need to provide handling to buffer in Uart handler - than
copy form handler on request, then sent notification when ready
2019-10-14 15:32:06 +02:00
pholat
5cecc2f7bf Bluetooth: BlueKitchen interface
Interface for BT added
2019-10-14 15:32:06 +02:00
pholat
8b6ea5e6c2 Bluetooth: Added linux stack init 2019-10-14 15:32:06 +02:00
pholat
eaa79e3032 Bluetooth: Added BlueKitchen & split build depending on bluetooth library
Compiles for both Linux and Cross
2019-10-14 15:32:06 +02:00
pholat
11cdbf1c9c Bluetooth Bluetopia interface added
Compiles, starts service and initializes Bluetopia in A2DP mode
2019-10-14 15:32:06 +02:00