Commit Graph

110 Commits

Author SHA1 Message Date
Lefucjusz
181feb4f40 cleanup 2024-08-20 15:40:34 +02:00
rrandomsky
93eb6be683 [BH-1799] Refactor usage of unicasts to dispatch BatteryStatusChangeMessage
Unicast type of sending BatteryStatusChangeMessage is changed to multicast type.
Thanks to this, the flow of messages is more transparent
and there is no unnecessary transmission to non-existent services.
2024-03-12 11:31:45 +01:00
Lefucjusz
32c6769cb6 [BH-1657][BH-1833][BH-1854] Add WFI and SDRAM self-refresh mode
* Added mechanism enabling CPU to
enter WFI mode when the OS is
in idle, what results in large
power consumption reduction.
* Added mechanism to switch SDRAM to
self-refresh mode before entering
WFI, what resulted in further power
consumption reduction.
2024-01-22 12:32:35 +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
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
3c1067cd87 [MOS-421] Add state refresh when BT automatically turns off
Added code to update BT power state
when it automatically turns off due
to inactivity.
2022-08-01 17:22:45 +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
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
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
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
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
Maciej Janicki
8e6ee1fdda [MOS-291] Fix bluetooth auto turnoff
Fix bluetooth auto turn off
disconnecting connected device
2022-03-22 08:58:31 +01:00
Maciej Janicki
0b74a39310 [MOS-291] Fix bluetooth auto turn off
Fix bluetooth not auto turning off
Changed logic to properly turn off on idle state
2022-03-17 10:19:09 +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
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
Maciej Gibowicz
0bc5db64a6 [EGD-8138] Software closing procedure improved
Release of resources and closing of all unfinished
services and workers.
2022-01-20 17:07:37 +01:00
Alek Rudnik
3e7b94dc05 [EGD-8137] Fix system pre closure procedure
Added some services specific implementations of pre closure procedure.
If one request pre closre, all mesagges (except system ones) recieved
by service are ignored.
2022-01-18 16:28:33 +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
Maciej Gibowicz
7f9bc6bf6f [EGD-7922] Added Permanent Frequency Setting
Added Permanent Frequency setting in Advanced Developer
Mode with simple set window.
2021-12-06 13:57:38 +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
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
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
33b19759ff [EGD-7440] Fix BT statusbar after BT disconnect
BT statusbar was set by disconnect message, which was not
aware of BT on/off status, thus always after disconnect
the statusbar icon was set to idle/enabled
2021-10-12 12:28:21 +02:00
Bartosz Cichocki
682fb74e0e [EGD-7086] Add BT profile connection info
Added info about connected profile to the devices list
2021-10-06 08:27:34 +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
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
Marcin Smoczyński
57874cab33 [BH-912] Improve sys module structure
Improve structure of the module sys. Problems within this module
prevents from linking others.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-09-24 10:01:19 +02:00
Marcin Smoczyński
bd90e57516 [BH-907] Split utils module into components
Split module-utils into smaller components for better dependency
management. Fix many dependencies throughout the project.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-09-23 15:14:40 +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
Piotr Tański
90e7a48198 [EGD-7362] Merge release/0.76.1 into master
Merge release/0.76.1 into master.
2021-09-02 11:12:59 +02:00
Przemyslaw Brudny
ee2c085e56 [EGD-7130] Renamed settings application
Renamed settings application.
2021-07-09 18:20:12 +02:00
Jakub Pyszczak
6d61aabbec [EGD-6514] HSP volume control
Bluetooth headset profile volume control
introduced. Small refactor on A2DP volume control
done.
2021-06-25 18:05:01 +02:00
Lukasz Skrzypczak
7fee0d9cfb [BH-378] Utils move log to library
Moved log to separate library
2021-06-08 12:24:29 +02:00
Bartosz Cichocki
52d5a35c1b [EGD-6447] Add Bluetooth PIN pairing
Implemented legacy pairing using PIN code
2021-05-25 16:12:01 +02:00
Adam Dobrowolski
b38adceced [EGD-6019] Minimum settings ownership lifetime fixups
added weakptr link to settings and checks
    it wont crash on deinitialized setings now
Pseuto UT are passing
Added:
    - deregistration on Settings destrution
    - weak referencing of Service to not crash Settings on missuse
    - Proxy as initialization parameter to Settings
Unused code removed
Enabled tests to be written for Settings
Removed dependency from freertos in test global file
EntryPath tests updated and compilation slimed
2021-05-18 13:25:54 +02:00
Przemysław Brudny
e71a044bd3 [EGD-6019] Revert of two commits
This reverts commit b6416b15da.
This reverts commit e2f3882d8a.
2021-05-14 09:54:36 +02:00