Commit Graph

31 Commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
80ea3a74e0 [EGD-7405] Add volume control
Added volume control for HFP
2021-09-24 13:25:07 +02:00
Bartosz Cichocki
7274f691d7 [EGD-7405] Connect HFP with audio system
Connected HFP with audio system so 2-way audio transmission is
possible
2021-09-24 13:25:07 +02:00
Artur Śleszyński
b15006a94c [CP-564] Make desktop endpoints a separate lib
In order to have different sets of endpoints for different products,
we need to separate endpoints from the desktop service.
2021-09-21 10:41:37 +02:00
Piotr Tański
bf3897b649 [EGD-7610] Unnecessary services and apps removed
Removed lwIP, FOTA and clock application.
2021-09-21 08:34:53 +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
Pawel Olejniczak
488aedcf7f [CP-264] Ensure bluetooth logging
Add missing logs with required information:
Pairing result and disconnecting bt device.
2021-07-12 11:10:40 +02:00
Bartosz Cichocki
493a836e3d [EGD-7108] Fix disconnecting all devices during unpairing
Due to wrong logic, all devices were disconnecing during unparing
Now, the disconnecting is performed only when the unpaired devices
is the connected one
2021-07-08 13:57:00 +02:00
Bartosz Cichocki
9a75c7fc0b [EGD-7081] Disconnect forgotten BT device
The device has to be disconnected prior forgetting
2021-07-05 16:07:01 +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
Jakub Pyszczak
6be93bef43 [EGD-6166] HSP ringing
Added HSP ring sound on incoming call event while
there's bluetooth connection active and HSP is
selected as the current profile.
Possibility of pick up/decline the call using
BT device buttons added.
Slightly changed HSP initialization according
to the UML-s added.
Changed call hangup handler in service cellular.
2021-04-20 10:29:30 +02:00
Michał Kamoń
46b8914054 [EGD-5945] Bluetooth-harness API messages
This PR:
* provides Bluetooth-Harness API messages definition [EGD-5944]
* provides Bluetooth-Harness API messages implementation
* provides Bluetooth-Harness API usage on harness side [EGD-5946]
* provides Bluetooth-Harness tests [EGD-5947]
2021-03-19 10:27:29 +01:00
SP2FET
83524c42e4 [EGD-5986] Fix re-enabling BT scan
Due to incorrect stopping the BT scan, re-enabling it caused
failure to HCI state machine, which was indirect cause of failing
connections. Now it works
2021-03-03 17:19:49 +01:00
SP2FET
d325f1bd43 [EGD-5984] Add BT implementation of added GUI actions
Implemented BT-side actions for GUI usage, e.g. connection status
2021-03-03 12:42:50 +01: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
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
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
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
1db3f19205 [EGD-5472] Bluetooth worker state machine
State machine POC implemented using SML library.
2021-02-03 12:48:07 +01:00