Commit Graph

142 Commits

Author SHA1 Message Date
Lefucjusz
2e04d268c4 [MOS-1068] Fix A2DP stream not restarting after song changes
Workaround for the issue that A2DP stream
would sometimes not restart when music
player changes song to the next one.
2024-05-29 17:33:30 +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
rrandomsky
b821747851 [MOS-1059] Erase only sensitive data from logs
Erase only sensitive data from logs.
2023-11-30 12:31:05 +01: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
Lukasz Mastalerz
f7ad63c951 [BH-1412] Fix services dependencies
Changes in dependecy managment
Replacing state flags with states in ServiceGUI
Unifying some parts of code
2023-08-01 17:22:48 +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
Lukasz Mastalerz
75b531f7e2 [MOS-871] Loudspeaker icon is not updated when audio routing has changed
Fix for the loudspeaker becomes active again when a headset is unplugged
if it was on while the headset was connected to the phone.
Fix typo in Bluetooth in EventType enum.
2023-02-21 15:40:39 +01:00
Lefucjusz
1c27ec90be [MOS-814] Fix no sound after BT reconnection
Fix of the issue that previous commit
didn't resolve - for some Bluetooth
devices voice still wasn't heard
after disconnection and reconnection
during a call.
2023-01-25 09:06:37 +01:00
Lefucjusz
01843fbadd [MOS-814] Fix no sound after BT device connection during call
Fix of the issue that connecting or
disconnecting BT device while call
was in progress resulted in no sound
being heard anywhere due to audio
routing being stopped when HFP device
disconnected.

Additionally minor code cleanup.
2023-01-16 13:36:52 +01:00
Lefucjusz
255d03a5da [MOS-677] Fix crash on importing unprocessable contact
Fix of the issue that phone crashed when trying
to import contact with phone number that couldn't
be parsed.
Additionally minor code cleanup.
2022-09-06 10:38:53 +02:00
Lefucjusz
d5f84437ca [MOS-92] Fix continuing music playback after BT disconnection
Fix of the issue that after disconnecting
BT A2DP device during music playback
and reconnecting it without leaving
music player app the sound was not
audible anywhere.
Additionally unified behaviour of music
playback on connection/disconnection
of audio devices.
2022-08-29 15:04:52 +02:00
Adam Wulkiewicz
fe708cdf31 [MOS-670] Change clang-format AlwaysBreakTemplateDeclarations to Yes
Add --all and --fix-all options to style-check-hook
2022-08-26 15:22:39 +02:00
Lefucjusz
72b06448e1 [MOS-647][MOS-671] BT volume control fixes
Set of fixes for Bluetooth volume control issues:

* split OS volume from A2DP device volume;
* added translations for additional popup required
to indicate what volume is being set;
* fixed issue that on some devices setting the lowest
volume level would set the highest in reality;
* fixed Bluetooth auto-turnoff functionality;
* minor code cleanup.
2022-08-22 14:11:24 +02:00
Lefucjusz
7b235b8f91 [MOS-647] Fix AVRCP volume control
Fix of the AVRCP volume control.
Minor code cleanup.
2022-08-09 10:21:57 +02:00
Bartosz Cichocki
022b633e3f [MOS-527] Fix bluetooth reconnection error
There was an error when user tried to connect using TRY AGAIN.
The bug was in the bluetooth stack, so we updated it as it has
a fix for it. Now it works and BT overall should work better now.
2022-06-14 14:47:22 +02:00
Bartosz Cichocki
228fca4b83 [MOS-463] Unify cellular namespace
Unified cellular namespace, fixed test buildiing,
removed some unused includes
2022-06-08 10:54:29 +02:00
Bartosz Cichocki
a203d5f25e [MOS-463] Fix no dialing state during BT turned on
When BT was connected (or just turned on) there was no dialing state -
the call went directly to ongoing call. Moreover, fixed no ringing
sound during ringing state - there was a bug in BT stack.
2022-06-08 10:54:29 +02:00
Adam Dobrowolski
08a71027ac [MOS-487] Review required renames
as in description
2022-05-26 16:19:02 +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
3cf1d87c1f [MOS-475] Fix BT reenabling connection
Fixed deinit and reinit of BT profiles
2022-05-11 16:44:49 +02:00
Bartosz Cichocki
e7444ff39f [MOS-263] Fix DTMF handling in Pure
By accident, I've broke DTMF handling via Pure's keyboard
This was because of non strict description of API method.
Now, it has been unified to use ASCII code
2022-05-02 11:57:09 +02:00
Bartosz Cichocki
55bd8c0951 [MOS-263] Add HFP DTMF handling
Added handling of HFP DTMF code sending,
fixed DTMF sending in cellular's code
2022-04-28 17:49:36 +02:00
Lefucjusz
74c3691dec [MOS-368] Add possibility to place call from HFP
Added implementation enabling user to place call
with the phone number supplied from HFP device
Some minor HFP state machine handling fixes
2022-04-28 16:39:10 +02:00
Bartosz Cichocki
cc32dd30dc [MOS-366] Connect cellular events to HFP
Connected all (?) necessary cellular events to the HFP profile
Fixed audio issues when connected with HFP
Some cleanup
2022-04-28 13:00:39 +02:00
Bartosz Cichocki
58fe677527 [MOS-264] Added network registration and roaming status to HFP
Connected HFP with cellular statuses
2022-04-28 11:44:28 +02:00
Bartosz Cichocki
9f30620451 [MOS-383] Fix pairing with NoInputNoOutput devices
Fixed pairing with devices without IO capabilities -
now pairing does not require confirming any passcode
2022-04-26 14:18:46 +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
Lefucjusz
5e57914cc3 [MOS-353][MOS-387] HFP profile fixes
Fixes for the HFP-related problems - lack of the
sound from caller's phone in HF speakers and
not working BT device's hardware hangup button
2022-04-14 16:41:09 +02:00
Bartosz Cichocki
2be81bdf0a [MOS-365] Add BT battery handling
Added handling of the battery state in HFP profile
2022-04-13 09:46:21 +02:00
Bartosz Cichocki
31db992c5c [MOS-264] Add handling of signal strength and operator name in HFP
To be able to display signal strength, operator name and
rest of status indicators in Bluetooth's HFP profile, some
refactor has been done.
2022-04-11 11:46:30 +02:00
Bartosz Cichocki
28c9acd1de [MOS-124] Add Code Comparision pairing logic
Added missing logic for code comparison pairing, fixed popup text
2022-03-17 09:34:07 +01:00
Marcin Lyda
06ef1e131b [MOS-300] Remove unused variables
Remove unused variables from PVS Studio analysis
2022-03-14 15:38:46 +01:00
Kuba
9a6b836335 [MOS-231] Updated bt stack
Bluetooth stack updated from 1.4.1 to 1.5.1.
2022-03-09 14:26:50 +01:00
Przemyslaw Brudny
ad3aa54b66 [MOS-123] Added bluetooth authentication popups
Added bluetooth authentication popups with different
pair methods and process info display.
2022-03-03 20:37:16 +01:00
Adam Dobrowolski
30487c6008 [MOS-110] Statistics api for system
Gets data from freertos and prints on frequency change depending
if it's important. Gathering is not costly, printing is though.
For less intrusive checks I would rather disable names gathering
as in worst case scenario it hangs rtos context switching till
thread id is found.
2022-02-17 16:46:56 +01:00
Bartosz Cichocki
96a53d1dd9 [EGD-8005] Fixed constant ringing in HFP after call answer
Fixed answering the call via Pure when connecting to the BT device
2022-01-11 14:31:38 +01: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
Bartosz Cichocki
37171538c9 [EGD-7873] Fix call ended screen during BT connecting
Some devices were sending hangup message during connecting, which caused
call ended screen - now it's disabled unless a call has been picked up
2021-11-25 14:50:45 +01:00
Bartosz Cichocki
a7f3ae4daf [EGD-7697] Fix BT names in all files
Some fallback names were incorrect
2021-11-25 13:43:51 +01:00
Jakub Pyszczak
ed431b1708 [EGD-7875] Fixed bt not ringing
Fixed bluetooth not ringing after bt call hang up.
2021-11-25 13:34:30 +01:00
Bartosz Cichocki
12aff015de [EGD-7874] Fix no disconnect after unpair
When user tried to unpair connected device, the device was not
disconnecting. Now it's fixed
2021-11-22 14:04:51 +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
Jakub Pyszczak
7c75cdaf9d [EGD-7849] Fixed compilation with sensitive logs
Fixed compilation with sensitive data flag being turned on.
2021-10-25 13:21:49 +01: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
Piotr Tański
1d2f5cf7a4 [EGD-7754] Dates bumped in disclaimers
Dates bumped from 2020 to 2021.
2021-10-11 19:08:26 +02:00
Bartosz Cichocki
e588ee047b [EGD-7761] Fix HFP reconnect
After connecting to another device while it was connected
HFP didn't disconnect from the previous one
2021-10-11 08:23:11 +02:00