Commit Graph

332 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
d8293b8254 Revert "[MOS-1064] Fix no input language selected for French/Spanish"
This reverts commit 9ef454085e.
2024-02-21 17:49:30 +01:00
Lefucjusz
9ef454085e [MOS-1064] Fix no input language selected for French/Spanish
* Fix of the issue that choosing French
or Spanish as a system language
resulted in no input language selected.
* Added keyboard input parser unit
tests for French and Spanish input
maps.
* Minor cleanups.
2024-02-20 16:32:46 +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
Lefucjusz
8b3ae7b48c [BH-1857] Fix improper PWM module clock frequency computation
* Fix of the issue that source clock for PWM
module was improperly assumed to be derived
from AHB_CLK, while in reality it is
derived from IPG_CLK, what resulted in
module generating signal with 4 times
lower frequency than the configured
one.
* Cleanups.
2024-01-16 13:58:26 +01: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
Lefucjusz
121879f4ec [MOS-220] Changed signal strength refresh mechanism
Modified signal strength update mechanism
to avoid unnecessary screen refreshes in
case new signal strength value is equal
to the previous one.
Minor cleanups.
2023-11-09 13:07:00 +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
Lefucjusz
663177ad49 [MOS-170] Report domestic roaming as home network
Changed behaviour of roaming indicator so that
domestic roaming is displayed as home network.
2023-08-08 21:00:32 +02:00
Lefucjusz
d2b9a10dd3 [MOS-1002] Change USSD code handling to match design
Fixed issues with GUI behaviour on failed
USSD code handling.
Minor code cleanup in several parts of system.
2023-08-02 12:07:29 +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
Kuba Kleczkowski
f94d7f6367 [MOS-636] Added MMI/USSD confirmation
USSD/MMI codes are now confirmed after they are sended.
2023-04-03 16:28:27 +02:00
Kuba Kleczkowski
c514fc53bb [MOS-47] Fixed non closed USSD session
USSD pull session was not closed when USSD popup
was closed by back button. Also USSD code was slightly
refactored.
2023-03-03 17:31:38 +01:00
Kuba Kleczkowski
c5fbf28208 [MOS-879] Fixed misleding SMS flow
Fixed misleading SMS flow after sending error.
When modem was rebooting attempt to send SMS was causing
Rejected by no sim popup, which was misleading for user.
2023-02-15 13:29:54 +01:00
Marcin Zieliński
5e7ff6e5af [MOS-840] VoLTE switch unavailability fix
Added checking if a SIM card is present in the active slot
during ApplicationSettings initialization so that in case
there's no SIM, the VoLTE switch is made anavailable to
toggle.
2023-01-23 13:40:05 +01:00
Kuba Kleczkowski
70fe3a401e [MOS-813] Emergency calling fixed
User is now able to make emergency call with no sim card
inserted. RF functionality in modem is still disabled
until sim card is selected by user.
2022-12-19 17:43:23 +01:00
Marcin Zieliński
94a825af64 [MOS-810] Fixed call state timer termination
Fixed the problem that the call state polling
timer wasn't terminated in some cases, so the
modem command AT+CLCC had still been issued
until e.g. another call was made. In such cases,
this lead to inability for the modem to go to
a power-down state due to constant activity and
thus lead to battery power waste.

Additionally, fixed a hidden bug that TimerRing
hadn't got a virtual destructor.

Also thrown out some dead code.
2022-12-09 16:56:05 +01:00
Marcin Zieliński
357ae2d51c [MOS-825] VoLTE steering according to IMSI
Steering the GUI and the modem according to
whether VoLTE is permitted for the active
SIM card's operator. This is done based on
the SIM card's IMSI string.

Additionally, made logging more consistent.
2022-11-30 08:29:39 +01:00
Marcin Zieliński
1a2ea53249 [MOS-809] Remove dead code around celular channels
Ditto
2022-11-23 12:55:17 +01:00
Marcin Zieliński
b069b7bc6b [MOS-793] Connect GUI and modem VoLTE steering
Additionally, fixed many covert bugs that emerged due to
modem restarting.
2022-11-23 09:47:07 +01:00
Kuba Kleczkowski
d6fbf631f6 [MOS-792] Added VoLTE setting in db
VoLTE enabled/disabled state is now stored in settings
database. VoLTE is enabled or disabled to mach setting
during modem initialisation.
2022-11-15 13:57:03 +01:00
Kuba Kleczkowski
a3c0791bb7 [MOS-797] Revert "[MOS-792] Added VoLTE setting in db"
This reverts commit 0eb652a515
2022-11-09 18:50:19 +01:00
Kuba Kleczkowski
0eb652a515 [MOS-792] Added VoLTE setting in db
VoLTE enabled/disabled state is now stored in settings
database. VoLTE is enabled or disabled to mach setting
during modem initialisation.
2022-11-09 14:15:48 +01:00
Marcin Zieliński
c5e533f94f [MOS-770] Replace VoLTE state switching mechanism
Introduced the new implementation.
2022-11-02 12:12:02 +01:00
Marcin Zieliński
8154243205 [MOS-770] Replace VoLTE state switching mechanism
Thrown out the previous implementation.
2022-11-02 12:12:02 +01:00
Maciej-Mudita
1f9c6b4a51 [MOS-26] Add tethering info on status bar
When tethering is on, info appears in the status bar
and network coverage indicates "no connection"
2022-10-20 08:56:51 +02:00
Dawid Wojtas
72e2a3003b [MOS-738] Fix receiving an empty SMS message
Checking how many parts the modem sent
and then catching an exception in case of an error.
2022-09-29 14:29:11 +02:00
Dawid Wojtas
242f97c037 [MOS-504] Mixed SMS messages
Refactor the old part of SMS handler and
parse the concatenated messages using
std::unordered_map and std::map. Added
unittest to the SMS parser.
2022-09-21 16:26:10 +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
Adam Wulkiewicz
2edcb7e330 [MOS-101] Parse MMS notification and show [MMS] in message thread
The `[MMS]` notification is shown in message thread of the correct
number

- Add PDU WAP Push MMS Notification parser
- Use it in ServiceCellular to parse the raw message
- Refactor hexToBytes and bytesToHex utils
- Add endsWith util
- Add unit tests
2022-08-26 14:16:19 +02:00
Maciej Gibowicz
688126fd54 [MOS-560] Parameter calibration for URC pooling mode
In reporting mode, if we receive more than 4 URCs in the last 15
minutes, we will switch to the pooling mode immediately
2022-06-24 10:09:41 +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
Adam Dobrowolski
409b9b77e5 [MOS-516] FIX: tethering while call disabled
We discard tethering while call now
2022-06-03 16:00:45 +02:00
Adam Dobrowolski
e6189398b5 [MOS-419] Without RING URC CLIP comes delayed
This is modem issue workaround
2022-05-26 15:24:51 +02:00
Adam Dobrowolski
720f56e3cf [MOS-419] Removed AbortCall as popup and fixed tethering poup
Removed dead code causing harm
Moved tethering to call logic
2022-05-24 07:50:59 +02:00
Adam Dobrowolski
81790f22ee [MOS-459] Wait with GUI change till RING delay
As in the description, we can wait with audio etc too - as it's stupid
othervise
2022-05-10 10:20:37 +02:00
Adam Dobrowolski
3343f02809 [MOS-266] Call StateMachine implementation
With some tests, documentation and so on
2022-05-02 15:54:33 +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
e5ae45109a [MOS-263] Remove unnecessary log
Removed log, which was left by accident
2022-04-28 17:57:56 +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
Kuba
7a8a8683c9 [MOS-420] Fix Call ending with sms reworked
Reworked ending with sms is now reworked. Sms is send by call app,
application messages is only providing template text.
Also call hangup and sms send order is changed due to delays caused by
sending sms.
2022-04-28 11:27:42 +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
Maciej Gibowicz
ced864203f [MOS-228] GSM sleep mode dependend on communication with modem
After finishing communication with cellular,
we switch to sleep mode faster, saving the battery
at the same time.
2022-04-28 08:58:27 +02:00
Adam Dobrowolski
a88ccfe49e [MOS-327] Removed call manager call logic in library
Moved call handling to separate library and removed CallManager
Apply suggestions from code review:
Co-authored-by: Bartosz Cichocki <sp2fet@gmail.com>
Co-authored-by: Mateusz Piesta <mateusz.piesta@mudita.com>
2022-04-13 12:23:38 +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
Kuba
4cf2525dfd [MOS-376] Add Call state notifications
Call state notifications are now send on state change.
2022-04-06 10:43:51 +02:00
Kuba
3454dade99 [MOS-325] AudioServiceAPI removed from Call app
AudioServiceAPI is now removed from Call app.
Call audio routing is handled in service cellular.
2022-03-28 16:42:35 +02:00
GravisZro
e59cd4036b [MOS-245] Fix errant spaces
It appears in the past a major edit was made but had used a regex to
change some text which resulted in an errant space between the
enumuneration/struct/class name and the scope resolution operator.
These errant spaces have been removed.
2022-02-24 08:47:20 +01:00
Adam Dobrowolski
c7513c2c65 [EGD-8208] Post rebase and review cleanup
Style fixed, moved files to catalog, renames
2022-02-22 13:36:27 +01:00