Commit Graph

221 Commits

Author SHA1 Message Date
Lefucjusz
181feb4f40 cleanup 2024-08-20 15:40:34 +02:00
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
Lefucjusz
6e600784c7 [MOS-1069] Change A2DP stream volume scale to exponential
Fix of the issue that A2DP stream volume
was controlled using naive approach
with linear scaling instead of
exponential one, what resulted in
highly non-linear volume control
experience.
2024-05-29 16:50:36 +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
Bartosz
f05106a46c [MOS-525] Fix BT autoconnect when another device is already connected
Fixes an issue when another device is connected via HFP and a new device
wants to connect

Updated BT stack to 1.5.5 version
2023-03-10 10:38:24 +01: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
Mateusz Piesta
7bb2caed22 [MOS-297] Fixed release build for the simulator
Fixed.
2023-02-21 13:13:53 +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
ce43ee37e5 [MOS-570] Fix HFP answering bug
Call answer event was incorrectly routed to BT, thus
the device was not aware of answering the call
2022-06-23 14:32:29 +02:00
Lefucjusz
b99fd74628 [MOS-529] Forgotten BT device remains on the list
Fix of the issue that forgotten BT device
reappeared on 'All devices' list after
reentering the list from home screen.
Additionally fixed pairing confirmation
popup that wouldn't hide after pressing
"Confirm".
2022-06-21 12:52:38 +02:00
Lefucjusz
c27594274b [MOS-527] Fix BT logger after btstack update
Fixed BT logger after btstack has been updated.
2022-06-15 14:04:37 +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
Lefucjusz
6e9030e942 [MOS-528] Fixed BT disconnect option
Fix of the issue that after connecting
to Bluetooth device it was impossible
to disconnect using Disconnect button.
Refactor of connect/disconnect events
naming (and all names related).
2022-06-07 10:06:13 +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
c2f38ad4f9 [MOS-452] Fix BT keys duplicates
Due to possibility to have duplicated entries per BT address
BT stack was requesting pairing when wrong key has been provided.
Now, all previous key entries are deleted prior adding.
2022-05-06 13:46:32 +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
Maciej Gibowicz
e5114922d3 [MOS-138] Correction of URC poll mode parameters
In poll mode, the CSQ will be requested every 15 minutes
and another attempt to switch the mode will be after 1 hour.
If the keyboard is unlocked or the USB cable is connected
or the BT car kit is connected, the URCs will be operated
in the reporting mode.
2022-04-28 09:19:39 +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
Lefucjusz
d0f2f3cd55 [MOS-384] BT paired devices list fix
Fix of the bug that after pairing with one device
the entire list of devices that were visible at
the pairing time is transferred to paired devices
list.
2022-04-14 11:53:45 +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
Lefucjusz
dd3eeaf1e2 [MOS-240] PVS Studio analysis bugs fix
Fixes to major part of issues found
by PVS Studio static analysis
mainly micro-optimisations
2022-03-28 13:57:08 +02:00
Adam Dobrowolski
053f270655 [MOS-282] Librarisation of services and test service
* options work a bit better ,now services and apps are
  selectable by option in cmake
* test service example added
* major documentation for module-services
* documentation for project configs and logs

Co-authored-by: Bartosz Cichocki <sp2fet@gmail.com>
Co-authored-by: Mateusz Piesta <mateusz.piesta@mudita.com>
2022-03-18 08:06:21 +01: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
Maciej Janicki
5dc42c2be6 [MOS-296] Merge new master commits into merge-stable-wip
Merge new master commits
2022-03-09 19:32:59 +01:00
Maciej Janicki
2b2bb13a49 [MOS-296] Merge remote-tracking branch 'origin/stable'
Merge stable Harmony branch into merge wip branch
2022-03-09 19:27:50 +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