Commit Graph

333 Commits

Author SHA1 Message Date
Bartosz
fef2ad61a8 [MOS-786] A/B Booting - fixed factory reset from menu
Now factory reset works both from ecoboot and from menu
2023-01-19 16:41:56 +01:00
Bartosz
01857dd1bd [MOS-786] Added support for A/B boot codes in OS
Further implementation of A/B booting
2023-01-19 16:41:56 +01:00
Pawel Olejniczak
0867d17242 [CP-1424] Refactor backup and restore endpoints
Redesign of backup and restore endpoints in the
service-desktop to delegate responsibility for
execution of the actual backup and restore process
onto the Updater.
2023-01-19 16:41:56 +01:00
Maciej-Mudita
4bd7b1acf4 [MOS-275] Fix alarm rings on the low battery screen
When we had a critical battery level and the alarm clock rang,
it was impossible to turn it off.
2023-01-19 12:07:19 +01:00
Maciej-Mudita
7fff20a0e7 [MOS-788] Fix incorrect total CPU usage in logs
After a long time, a counter overflow appeared
2022-11-02 10:59:17 +01:00
Maciej-Mudita
f4aaf4e302 [MOS-775] Create run-time statistics for tasks
Every hour, statistics of tasks that put a heavy load
on the CPU will be logged
2022-10-25 18:46:54 +02:00
Dawid Wojtas
e77b5d6702 [MOS-424] Improvement of logger module
Due to losing bytes the logger has a worker
which is responsible for dumping logs to
the file. The logger also has its own timer
to dump logs every 15 minutes. EventManager
is not responsible for interval dumping logs
now.
2022-09-15 11:58:09 +02:00
Dawid Wojtas
b7330da36c [MOS-662][MOS-301] Fix E-ink shutdown while restoring data
While restoring system data the timer can turn off power of E-ink
to save the power. To avoid this situation we need to power on
the E-ink before wiping out the display. The restore procedure
also performs reversing services list to close. In this case
we do it twice so the order is wrong.
2022-08-30 11:00:04 +02:00
Dawid Wojtas
ded7e1a7a5 [MOS-676] Fix destroying wrong sentinels
If the service is closed the governor removes connected
sentinel. The base iterator refers to the element that is next
in the reversed list. Adding std::next the iterator points to
the correct element.
2022-08-30 08:54:55 +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
Maciej Gibowicz
c9b16c3064 [MOS-598] Improved keyboard responsiveness
Add sentinel that increases and hold the CPU frequency
after a button press event
2022-07-28 12:16:36 +02:00
Lefucjusz
ab02490917 [MOS-559] Fix phone unlock after mode change
Correction of the previous fix addressing this issue.
Previous idea didn't work when popup tried to
display in application other than ApplicationDesktop
2022-06-30 13:31:18 +02:00
Paweł Joński
870250433a [MOS-298] HALize ServiceEink
Add HAL to ServiceEink
Remove dead code from Linux eink substitute
Fix LUTS.bin refresh problems on simulator
2022-06-29 13:37:20 +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
Lefucjusz
c6e08f47ce [MOS-42] Tethering popup with SIM not present fix
Fix of the issue that tethering popup showed
after the USB cable has been connected even
if selected SIM card was not present, so
there was no connection to network.
2022-06-06 10:13:13 +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
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
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
Maciej Gibowicz
fc05d5e618 [MOS-389] Fix phone stuck on shutdown screen
The phone sometimes remained on the power off screen
during system shutdown.
2022-05-05 14:16:03 +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
Mateusz Piesta
97e9d7b79f [BH-1449] Fix gui/eink dependencies
* Dependencies between service-gui and service-eink
have been correctly defined.
* System close routine was replaced with the sequential one
which should solve many bell issues.
* It also fixes BH-1406 and BH-1442.
* Fixed some weird CMake issues in module-audio and
several other modules.
* Fixed service-gui closing routine
* Removed unneeded messages/states from service-gui/eink.
* Enhanced app-mgr closing routine. Fixed closing action handling.
2022-04-26 13:47:12 +02:00
Adam Dobrowolski
fc64a97b8e [MOS-380] Sentinels for each added that removes bad data
As in topic
2022-04-15 10:54:57 +02:00
Maciej Gibowicz
619685d70a [MOS-339] Fix rapid change of CPU frequency
After disconnecting the USB cable, the CPU consumption
increased to over 80% (for 4 MHz), which resulted
in a cyclical change in the CPU frequency and finally
a much shorter battery life.
2022-04-11 08:54:54 +02:00
Mateusz Piesta
2f42cd5e73 [BH-1424] FreeRTOS update
Updated FreeRTOS source code to 10.4.6.
Moved FreeRTOS sources to the third-party directory.
Added necessary changes to the CMake configuration.
Split FreeRTOSConfig.h. From now, each board has its own.
Added missing log headers.
Minor refactor of the module-os cmake.
Fixed stack overflows in bell application main and time service.
2022-04-07 13:31:28 +02:00
Adam Dobrowolski
cc02ffffbb [MOS-258] System profile util works with separate rtt
Profiling Move RTT handling to interfacing library
Library for msgpack sink
magic enum updated
performance monitor fixups
2022-04-07 11:32:49 +02:00
Mateusz Piesta
d2e4219f0c [BH-1438] Bell crash during start
Fixed.
2022-03-30 09:50:52 +02:00
Adam Dobrowolski
1cb4da819d [MOS-307] Application and Service example and docs
Working example of application and service ready to copy from
with minimum documentation
Apply suggestions from code review
Co-authored-by:
* Paweł Olejniczak <58421550+pawel-mudita@users.noreply.github.com>
* Paweł Joński <79840715+paweljonskim@users.noreply.github.com>
* Bartosz Cichocki <sp2fet@gmail.com>
2022-03-28 08:17:39 +02:00
Maciej Gibowicz
90b4f0c5ce [MOS-338] Fix regression in the frequency stepping algorithm
Downscaling the CPU frequency from max to min
takes less than 1 second.
2022-03-25 16:10:50 +01: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
Adam Dobrowolski
43cd960523 [MOS-278] Fixed frequency hold algorithm behaviour
fixed hold frequency algorithm behaviour
added basic tests for frequecy changing
updated catch for newer gcc
tests added
2022-03-15 17:26:09 +01:00
Marek Niepieklo
aacd665eb9 [CP-1119] Fix Restore failure
Restored Eink service to Restore whitelist
2022-03-15 10:27:49 +01:00
Mateusz Piesta
6ad290366f [MOS-296] Merge SNVS cherry-pick conflicts fixed
Fix SNVS Harmony approach conflicts with master
2022-03-09 19:34:39 +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
Adam Dobrowolski
b0c41d4ed4 [MOS-225] Restore SystemManager service idle priority
It crashes othervise on use of deleted elements
2022-03-04 07:05:02 +01:00
Adam Dobrowolski
1fff92e9d6 [MOS-225] Review applied
As above.
2022-03-04 07:05:02 +01:00
Adam Dobrowolski
224f397370 [MOS-225] Fixed integer overflow issue in Bus
blocking calls implementation had a bug when exceeded
uint32_t value returned immediatelly instead waiting
for message
2022-03-04 07:05:02 +01:00
Adam Dobrowolski
d4d1344f0c [MOS-225] Fixed no response from SystemManager service
SystemManager service had implementation of bus processing
which never sent responses. This rendered any blocking call
to SystemManager useless
2022-03-04 07:05:02 +01:00
Adam Dobrowolski
dd12853503 [MOS-226] Moved algorithms and their data to separate classes
This way we have controll over what does what, and can test
them separatelly
Logging statistics update more and better data presented
2022-03-04 07:05:02 +01:00
Maciej Gibowicz
2a11e4d6e3 [MOS-135] Proper system shutdown during restore
After the restore process is complete, the system shuts down
properly without any unexpected events.
2022-03-01 18:45:09 +01: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
Adam Dobrowolski
f7f5bc377a [EGD-8208] Added stop audio route on async response
We get Token on play, and require it in stop. While we cant
stop sound by title & data set to play. And adding standard
handling causes either totally synchronous calls or requires
multiple additional guards it seemed like best use.
Fixed expectation for the same named Response, but meant for bell
Needed so that
- we ring only when needed
- we handle CLIP and RING properly
Applied style
Missed file added
Moved SML logger as it's usefull to some more common parts of code
2022-02-22 13:36:27 +01:00
Adam Dobrowolski
2cf6bd6962 [EGD-8208] Removed unused ping, added simple Async
Removed unused code: ping and stale messages
Detached UnicastSync send and sync part so that we would be able
to await for message in the code.
Added sys::Async to be able to handle situations where we want to
sync to the response, but after some time.
Fixed messages logging: for some reason demangling abi use caused
bad system behaviour
2022-02-22 13:36:27 +01:00
Adam Dobrowolski
ddf5342b75 [EGD-8208] Fixed race condition on ring within call management
Now we get request for call and to end call in proper order
2022-02-22 13:36:27 +01:00
Adam Dobrowolski
301fddd227 [EGD-8208] Removed unused confusing code
for numerous reasons this is bad
2022-02-22 13:36:27 +01:00
Przemyslaw Brudny
304fb2c844 [MOS-111] Added missing refresh conditions
Added missing refresh conditions.
2022-02-22 12:49:27 +01:00
Alek Rudnik
e0da78c9be [EGD-8193] Proper system shutdown durign update
Made sure all system is deinitialized during update.
Currently there are two exceptions: service eink and service
desktop. There are some issues with them but it should be fixed
in the near future
2022-02-22 09:42:12 +01:00
Adam Dobrowolski
30487c6008 [MOS-110] Statistics api for system
Gets data from freertos and prints on frequency change depending
if it's important. Gathering is not costly, printing is though.
For less intrusive checks I would rather disable names gathering
as in worst case scenario it hangs rtos context switching till
thread id is found.
2022-02-17 16:46:56 +01:00