Commit Graph

104 Commits

Author SHA1 Message Date
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
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
abd246041d [EGD-7702] Fix BT PIN pairing by bumping BT stack version
Bumped up BT stack to develop version as it has fixed PIN pairing
2021-09-28 14:47:58 +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
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
Bartosz Cichocki
e8dd8aacbe [EGD-7404] Adapt & prepare CVSD codec for usage in HFP
Adapted both codec and HFP profile to be able to work together.
Now it's possible to stream 2-way audio via HFP profile, but it
has to be integrated properly with EGD-7405
2021-09-23 10:08:30 +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
Adam Dobrowolski
0247d374cd [EGD-7401] POC for HSP restored from EGD-6727
This code is updated code from EGD-6727, the only changes are:
- use of common SCO and PhoneInterface
- update to newer bluetooth library
2021-08-30 09:38:20 +02:00
Jakub Pyszczak
214451ccf1 [EGD-7083] Fixed earspeaker bt HSP
Routing and ringtone are now hearable via earspeaker/jack
while pure is connected to the device that doesn't support HSP.
2021-07-23 13:03:50 +02:00
Jakub Pyszczak
bd9aaf0adc [EGD-6881] Fix HSP no sound
Fixed no sound during HSP call if there was bluetooth's device
button used to pick up the call.
2021-07-21 15:50:53 +02:00
Bartosz Cichocki
e4f506b56d [EGD-7149] Fix connecting BT devices
Some devices were giving different results after querying for
Class of Device (CoD) and our filters were too restrictive.

Now filtering only take place at pairing, so every suitable
device can be connected
2021-07-13 15:59:14 +02:00
Przemyslaw Brudny
ee2c085e56 [EGD-7130] Renamed settings application
Renamed settings application.
2021-07-09 18:20:12 +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
a2cd1860a6 [EGD-7077] Don't allow for connecting more than 1 BT device at once
We don't have support for multiple connected devices
thus we shouldn't allow for this. This commit fixes
the issue
2021-07-05 15:59:46 +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
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
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
Bartosz Cichocki
30ae0e08ca [EGD-6882] Fix call hangup after BT device disconnect
Updated the BT stack with events that are handled through the
button so now it's possible to fallback to the earspeaker when
BT connection is lost

Added handling of those events
2021-06-17 09:20:34 +02:00
Lukasz Skrzypczak
2911b6b4a1 [BH-378] PR changes
PR changes - mainly includes
2021-06-08 12:24:29 +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
Marcin Smoczyński
ef3f840a4d [EGD-6049] Add voice call over HSP
Add support for voice calls over HSP.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-05-28 15:38:56 +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
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
Jakub Pyszczak
6f2d77c5f4 [EGD-6401] Fix bluetooth initialization
Fixed multiple initialization in A2DP and HSP profiles.
2021-04-14 15:05:54 +02:00
Jakub Pyszczak
9c41f6f592 [EGD-6350] Added bluetooth device volume control
Bluetooth device volume control can be set by Pure Phone
while paired and is in A2DP mode. Temporarly disabled
HSP since it's not fully working and causing control issues.
2021-04-07 21:08:11 +02:00
Marcin Smoczyński
b890bcd6e3 [EGD-5260] Add A2DP playback to audio
Add basic playback capability using Bluetooth A2DP profile.
Only stereo/44100/16bit files are supported at the moment

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-03-25 01:01:35 +01: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
Tomasz Langowski
2de63da943 [EGD-5954] Add CoD verification for bluetooth conn
Implement selective profile connection based on Class of Device
2021-03-17 12:58:45 +01:00
SP2FET
da27b16dcc [EGD-6100] Add BT device turn off handling
After BT device disconnects (e.g. because of shutdown) Pure is now
aware of this
2021-03-11 10:33:51 +01:00
Pawel Olejniczak
72ac24f2e8 [EGD-6073] Fix text formatting in retry windows
Error message in retry windows was displayed incorrectly.
2021-03-10 15:23:15 +01:00
Pawel Olejniczak
77faaaec7f [EGD-6024] Return to All Devices window after attempt to retry action
Execution of retry pairing/unpairing/connecting took too long
to wait for it on retry popup. Fixed minor bugs.
2021-03-05 09:57:46 +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
b055eee371 [EGD-5981] Fix BT scan stop issue
Btstack's scan stop call was not working properly thus force stop
function has been added
2021-03-02 11:03:17 +01:00
SP2FET
d1fe9bc520 [EGD-5977] Fix empty BT devices list after pairing
After changing flow of settings windows, the stopScan command
is being executed right after executing pairing, so cleaning the
scan devices list is being done on scan start
2021-03-01 16:33:30 +01:00