Commit Graph

91 Commits

Author SHA1 Message Date
SP2FET
b055eee371 [EGD-5981] Fix BT scan stop issue
Btstack's scan stop call was not working properly thus force stop
function has been added
2021-03-02 11:03:17 +01:00
SP2FET
8460e9e915 [EGD-5980] Fix BT paired devices list
After pairing more than 1 device the paired device list showed
only the last paired. This commit fix this issue
2021-03-02 11:03:17 +01:00
SP2FET
d1fe9bc520 [EGD-5977] Fix empty BT devices list after pairing
After changing flow of settings windows, the stopScan command
is being executed right after executing pairing, so cleaning the
scan devices list is being done on scan start
2021-03-01 16:33:30 +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
Pawel Olejniczak
1e219f3c5c [EGD-2634] Add pairing process result confirmation
Enable pairing BT devices in settings.
Connect popup and add adjust messages for pairing error handling.
2021-02-25 11:36:15 +01:00
SP2FET
3d3b997cc0 [EGD-5856] Update Btstack
Updated to the latest version, fixes few bugs
2021-02-24 08:33:41 +01:00
Wiktor S. Ovalle Correa
fe72169338 [EGD-5737] Merge master into experimental
Synchronize with master before merging
2021-02-23 18:10:52 +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
Radoslaw Wicik
b7622bf149 [EGD-5812] Add cmake support for Products
Move cmake scripts/modules to separate directory, adding Products will
add new more scripts so first clean up, then changes.
2021-02-22 14:13:21 +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
Pawel Olejniczak
cda64d4f8a [EGD-4340] Refactor bluetooth settings and add device windows
Rewrote these windows in a proper way.
Fixed few minor issues.
GUI adjustments.
2021-02-18 18:05:16 +01:00
Wiktor S. Ovalle Correa
c7b7cc4c27 [EGD-5737] Merge master into experimental
Keep experimental up to date with changes from master
2021-02-17 17:10:32 +01:00
Wiktor S. Ovalle Correa
3b141041e9 [EGD-5737] Merge master into experimental
Keep experimental up to date with changes from master
2021-02-17 17:09:37 +01:00
Hubert Chrzaniuk
bb92b333da [EGD-5355] Fix emulator crash
lIndexOfLastAddedTask is shared between two separate functions
that should run consecutively but in some cases the thread
running can be yield in between which results in broken thread
stack.

This change reduces the risk but it does not entirely solve
the problem. It is still possible for the threads to return in
different order. Nevertheless the tests did not confirm that.
2021-02-17 17:06:59 +01:00
Lucjan Bryndza
067ca94835 [EGD-5737] Merge master into experimental
Keep experimental up to date with changes from master
2021-02-17 17:06:30 +01:00
Marcin Smoczyński
bda18b5b54 [EGD-5706] Refactor creating audio device
Audio devices are created in the audio subsystem and it is not possible
to send a device to bt service upon creation.

Introduce hookable audio device factory to allow sharing bluetooth
audio device. Move audio devices from bsp to audio allowing removal of
unwanted bsp -> audio dependency.

Remove Bluetooth proxy device which turned out to be a dead end.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-02-17 16:20:59 +01:00
Lucjan Bryndza
6c4c4e8aef [EGD-5098] Fix and remove old vfs class
Fix and remove global vfs object remove all old data
included in the vfs.hpp class
2021-02-17 16:06:33 +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
133e5c2761 [EGD-5484] Add BT scan documentation
Added documentation related to BT scan operation
2021-02-16 11:28:43 +01:00
SP2FET
cc18f9ba9b [EGD-5475] Add BT on/off documentation
Added documentation with on/off BT flow
2021-02-15 11:54:04 +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
SP2FET
e191817953 [EGD-5480] Bluetooth scan refactor
There was a need for Bluetooth scan code refactor. Here it is
2021-02-10 14:33:14 +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
61f4ab3ea7 [EGD-5625] Optimize the binary size of the SML state machine
The debug firmware couldn't be built because of its size.
2021-02-08 15:05:41 +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
fe4b42519d [EGD-5471] Add Bluetooth on/off state diagram
Added state machine diagram for Bluetooth power on/off
2021-02-01 11:58:30 +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
Jakub Pyszczak
7a942e2b92 [EGD-5070] Change new filesystem in module bt
Due to vfs deprecation there is need to
remove all vfs calls from code.
This PR covers module bluetooth.

[EGD-5070] Review changes.

[EGD-5070] Change new filesystem in module bt

Due to vfs deprecation there is need to
remove all vfs calls from code.
This PR covers module bluetooth
2020-12-23 12:54:57 +01:00
Hubert Chrzaniuk
8a3eb64662 [EGD-4899] Worker class design improvements and fixes (#1190)
* allow workers to run independently from service
* change worker to use FreeRTOS wrapper Queue class instead of
  freeRTOS native queues
* fix bug disallowing to destruct worker that have never ran
* fixed worker bad state transition to Running state
2020-12-14 11:56:29 +01:00
Bartosz Cichocki
ef1a95b740 [EGD-4704] fixed callbacks calling (#1155)
Fix Bluetooth thread sending issue
Co-authored-by: SP2FET <bartosz.cichocki@mudita.com>
2020-12-08 13:49:23 +01:00
Mateusz Grzywacz
8df9b22ac9 [EGD-4582] Bluetooth over DMA (#1115)
[EGD-4582] Bluetooth UART: replace polling with DMA
2020-12-08 13:39:18 +01:00
Bartosz Cichocki
193f8e736e [EGD-4578] bluetooth: added interface messages (#1116)
Add Bluetooth interface messages

[EGD-4578] updated class diagram

Co-authored-by: SP2FET <bartosz.cichocki@mudita.com>
2020-12-03 11:22:49 +01:00
Paweł Olejniczak
77d3b1a0c6 [EGD-4506] Add proposal of basic bluetooth settings data flow (#1090) 2020-11-30 10:12:34 +01:00
Radoslaw Wicik
b117704345 [EGD-4219] Convert service-evtmgr and service-lwip to library 2020-11-18 10:09:02 +01:00
Roman Kubiak
5ce2f3d329 Revert "[EGD-4344] vfs-utils refactor (#1010)" (#1027)
This reverts commit e6ca468d2c.
2020-11-17 12:27:25 +01:00
Roman Kubiak
e6ca468d2c [EGD-4344] vfs-utils refactor (#1010)
* [EGD-4344] removed vfs-utils.cpp and moved all the functions
to utils or eventStore

* [EGD-4344] removed vfs-utils.cpp and moved all the functions
to utils or eventStore

* [EGD-4344] moved methods to utils::filesystem

* Update module-utils/Utils.cpp

Co-authored-by: Piotr Tanski <piotr.tanski@mudita.com>

* Update module-utils/Utils.cpp

Co-authored-by: Piotr Tanski <piotr.tanski@mudita.com>

* Update module-utils/Utils.cpp

Co-authored-by: Piotr Tanski <piotr.tanski@mudita.com>

* [EGD-4344] test fixes, linux fixes, GUI fixes

* [EGD-4344] rebase fixes

* [EGD-4344] bugfixes for rt1051 and mutex support in EventStore

Co-authored-by: Piotr Tanski <piotr.tanski@mudita.com>
2020-11-16 15:36:52 +01:00
Radoslaw Wicik
b96313b158 [EGD-4215] Convert service-bluetooth to library 2020-11-10 09:56:06 +01:00
Hubert Chrzaniuk
b7e1a04a12 [EGD-4301] Bluetooth Audio profile support (#984)
- implemented audio sink/source switching
 - reorganized / renamed sound events
 - moved SetBluetoothStreamData and AudioDevice instance to base Operation class
 - added audio profiles RecordingBluetoothHSP, RoutingBluetoothHSP
 - removed unused audio Profiles
 - removed redundant OutputPath and InputPath classes from CodecParamsMAX98090
2020-11-09 17:53:28 +01:00
Radoslaw Wicik
4bdfb00de7 [EGD-4214] Convert service audio to library 2020-11-09 11:56:19 +01:00
Michał Kamoń
6bbef804c0 [EGD-4284] missing include added (#956) 2020-11-04 08:59:21 +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
Bartosz Cichocki
cd07a0aacb [EGD-4138] updated BT docs (#884)
Co-authored-by: SP2FET <bartosz.cichocki@mudita.com>
2020-10-28 13:15:45 +01:00
Paweł Olejniczak
d676fdabb7 [EGD-2628] Create Add device windows (#867)
[EGD-2628][WIP] Attach Add Device window

[EGD-2628] Fix passing scanned bt devices to Add device window

[EGD-2628] Add bt icon and adjust botton bar of Add device window

[EGD-2628] Add all devices window, & some fixes for add device window

[EGD-2628] Update changelog & cleanup

[EGD-2628] Improve bluetooth main window
2020-10-22 11:42:53 +02: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
Radoslaw Wicik
2276ceed67 [EGD-3743] Update copyrights in fies 2020-10-20 12:55:10 +02:00
SP2FET
8bb8be69d6 [EGD-4082] fixed build in Debug 2020-10-14 12:02:17 +02:00
Bartek Cichocki
305d43a176 [EGD-3773] added A2DP playback backend 2020-10-14 09:23:53 +02:00