Commit Graph

19 Commits

Author SHA1 Message Date
Lefucjusz
181feb4f40 cleanup 2024-08-20 15:40:34 +02:00
Lefucjusz
09efb75ed5 [MOS-1068] Cleanup BTStack intergration
Code cleanup in various places of
BTStack integration.
2024-05-29 17:33:30 +02:00
Lukasz Mastalerz
d9a1194e6f [BH-1688] Create a standard for logs
* Adding document describing how to use logger
* Adjusting logs to follow a new guide
* Change order in log header:
  line number is now before function name
2023-10-23 15:17:44 +02:00
Lefucjusz
6ed82f3fa3 [MOS-1005] Fix handsfree ringing after caller hangs up
* Fix of the issue that incoming call triggered
handsfree ringing which didn't stop after
calling side hung up.
* Cleanup of several places in code, minor
bluetooth <-> cellular integration refactor.
2023-07-17 15:16:29 +02:00
Lefucjusz
a5f621bc83 [MOS-487] Added call events state machine
Added tests and calls substate
bluetooth sm diagram created
All old bluetooth tests reviewed and updated
removed new - with queue it's not required
removed TODO
Co-authored-by: Bartosz Cichocki <sp2fet@gmail.com>
2022-05-26 16:19:02 +02:00
Adam Dobrowolski
2664e8ccec [MOS-487] Move switch case to sm
massive switch case removed
added logger
moved state machine implementation
added double dispatch
2022-05-26 16:19:02 +02:00
Bartosz Cichocki
d59ac56d51 [MOS-347] Separate A2DP from HFP in ProfileManager
Now, both profiles can operate separately. Additonally, minor
fixes has been applied to allow calling via car audio system.
Some infotainment systems still don't work though.
2022-04-25 10:26:38 +02:00
Adam Dobrowolski
76c924fd5e [EGD-8002] Added SSP, fixed some minor issues, removed obsolete code
ssp seems working
minor crash fixups
copy lacks patched
obsolete code removed
Devicei tests added for added code and cleanup
Added missing tests for new functions
Code cleaned up a bit - mostly moved to cpp
2021-12-09 12:42:33 +01:00
Jakub Pyszczak
1b2dbc813c [EGD-7931] Fixed bt pairing
Fixed bluetooth pairing for devices with long names.
2021-11-18 14:07:14 +00:00
Jakub Pyszczak
78a448347e [EGD-7299] Fixed bt call crash
Fixed crash occurring during bluetooth call
if there was bluetooth device being turned off.
2021-10-27 06:40:31 +01:00
Bartosz Cichocki
8581bef2b1 [EGD-7799] Revert enable SSP authorised pairing
This reverts commit 649cacd1c3 as
the SSP was not working properly with all devices
2021-10-26 10:08:43 +02:00
Bartosz Cichocki
6fddc038ee [EGD-7800] Enable SDP register on BT startup
To be able to pair properly using SSP the BT device have to know
which services we're running, thus we need to register SDP entries
after startup of the BT stack
2021-10-18 10:57:01 +02:00
Bartosz Cichocki
649cacd1c3 [EGD-7799] Enable SSP authorised pairing
This enables Simple Secure Pairing which is required to pair
from another device (device -> Pure). As for now, only KeyboardOnly
capabilities are enabled as we have all frontend and backend
already enabled for entering the pin code/passkey
2021-10-15 13:43:57 +02:00
Bartosz Cichocki
c1c392c303 [EGD-7743] Fix crash on BT device name save
Due to enabled EHCILL the shutdown procedure takes longer time
than before, so restarting by turning off and on without a delay
caused crash in the BT stack. Added delay between shutdown and
power on to let the stack turn off completely
2021-10-04 18:10:29 +02:00
Bartosz Cichocki
8145a88401 [EGD-7077] Rework of BT connection status in AppSettings
Reworked AppSettings handling of BT devices to be prepared for
handling the HFP profile, eliminating by the way few bugs and
speeding up the flow (by getting rid of few refreshes).

Added unit tests for handling the BT devices flow
2021-09-10 13:19:29 +02:00
Jakub Pyszczak
da24f4fd88 [EGD-7003] Removed sensitive data bt
Sensitive data removed from logs in module bluetooth
and service bluetooth.
2021-06-29 17:09:10 +02:00
Bartosz Cichocki
96f9ed1802 [EGD-6972] Update BT stack to 1.4.1 version
This PR updates the BT stack to the newest version
2021-06-25 12:22:49 +02:00
SP2FET
b911ad9044 [EGD-5940] Add BT device unpairing
Implemented possibility to forget/unpair a device via GUI
2021-03-03 08:40:59 +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