Commit Graph

80 Commits

Author SHA1 Message Date
Kuba
c720ce543a [EGD-8001] Fix enable cellular logs
It will be possible to debug cellular now.
2021-11-24 12:18:49 +01:00
Alek Rudnik
65d67e2690 [EGD-7948] Extend log dumping
Log are now dumped:
* on system shutdown including hard faults and aborts
* every 5 minutes

Fixed some logs
2021-11-16 17:56:28 +01:00
Marek Niepieklo
b5749912a9 [CP-825] Interrupted transfer to FS endpoint may corrupt the filesystem
Using std::fstream for file I/O at every file access in FileContext.
Reworked file opening/closing to happen on each file chunk
read/write, so that a file isn’t left open in case of an error
or transfer cancelation.
Separeted RxID and TxID for reliable cancelation of stalled xfers.
2021-11-16 10:50:54 +01:00
Maciej Janicki
bd79db0504 [BH-1073] Add missing asset debug flag
Because Harmony uses Pure components,
a lot of debug infromation is generated
with missing assets. Therefore, we need mechanism
to stop those messages for release before refactor
of shared window components is done.
2021-10-27 11:49:59 +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
Alek Rudnik
1490158034 [EGD-7725] Tune up file system io access
Increasd io stream buffers:
- 64kB for big files with short lifetime scope
- 16kB for big files with long lifetime scope
- 1kB - dont changes default forr the rest
2021-10-08 10:28:38 +02:00
Jakub Pyszczak
d492c3646e [EGD-7548] Crash dump rotate
Added dumps rotation. Maximum count of the files set to 5.
The oldest dumps are removed if there're more than 5 of them.
Comparison is taken by the date.
Unified log and crash dumps rotators.
2021-10-04 16:32:34 +02:00
Marek Niepieklo
22a02078cd [CP-162] Implement Logs directory
Added listing of log/crash dump files
Reorg'ed log/crash dump files locations
Added harness api/device_info
Updated test and tool scripts
2021-09-29 10:37:58 +02:00
Marcin Smoczyński
1f9109b924 [BH-819] Fix illegal dependencies in bsp
Break circular dependencies in the BSP module. Fix some missing
dependencies which surfaced after fixing BSP.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-09-27 17:27:21 +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
Adam Dobrowolski
3e57a07b43 [EGD-7495] Fixed log use on Linux to be the same as on Rt1051
- Log headers were incomplete
- Log filtering was broken on linux
2021-09-06 09:12:21 +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
Mateusz Grzegorzek
6e0c4844f8 [BH-739] Split EventManager
Renaming:
- rename EventManager to EventManagerCommon,
- rename PureEventManager and BellEventManager
to EventManager
2021-08-16 14:15:55 +02:00
Marek Niepieklo
f3480da43e [EGD-7269] Phone stuck on log dump operation
Problem occured when logging while log was flushed to file
2021-08-05 17:54:53 +02:00
Przemyslaw Brudny
10f27328e8 [EGD-7215] Connected Sim contact import with backends
Connected Sim contact import with cellular contact read
and DB contacts write.
2021-07-29 23:31:04 +02:00
Marek Niepieklo
e7776f6c17 [CP-228] Force flushing of logs before getting log files
Moved flushing function to Logger class
Decreased flushing time to 2 min
Added EM event to request flushing from ServiceDesktop
2021-07-29 11:28:43 +02:00
Marek Niepieklo
6c32205e1b [CP-371] Updater miscelanous developer mode and logs changes
This reverts commit cb93d58d85.
2021-07-27 17:03:28 +02:00
Adam Dobrowolski
cb93d58d85 [CP-371] Updater miscelanous developer mode and logs changes
Changed:
- Runtime disabled logs which didn't add value from ServiceDesktop
- Runtime disabled logs which didn't add value from SystemManager
- Added possibility to change runtime logging levels
- Integrated ServiceDesktop developer code a bit - it might be used
  as virtual base with little to no modifications for other endpoints
  which would result with less redundant code
2021-07-27 13:56:37 +02:00
Mateusz Piesta
71becac0d0 [EGD-6609] Separated out sms logic
Switching to async sending model required separation of out sms logic.
Specific class was added and most of the logic was moved from cellular
service to this class.
2021-07-20 07:46:01 +02:00
Alek Rudnik
49b7ab8509 [EGD-7005] Removed sensitive data cellular
Removed sensitive data from service and module cellular.
Logger factory introduced to easily manage sensitive logs.
2021-07-12 12:25:04 +02:00
Pawel Olejniczak
56449096fd [CP-267] Ensure cellular logging
Log information such as: selected SIM slot,
received signal parameters (QNWINFO, CSQ),
selected antenna, AT commands exchanged
with the modem, slider position.
Also fixed logging level for rt1051.
2021-07-09 16:50:30 +02:00
Marek Niepieklo
1a0851dbaa [CP-316] Tool to get MuditaOS log
Python tool to get MuditaOS.log file from Pure
2021-07-08 16:43:10 +02:00
Lukasz Skrzypczak
eecde32337 [BH-378] Corrected includes
Corrected includes
2021-06-08 12:24:29 +02:00
Lukasz Skrzypczak
e13ad08bff [BH-378] Utils move log to library
Moved log to separate library
2021-06-08 12:24:29 +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
Paweł Joński
5ad878c6c4 [BH-371] Replace gsl with mainline submodule and move to third-party
Replacing loose gsl files with gsl mainline project as submodule
and moving it to third-party
2021-06-07 09:30:04 +02:00
Maciej Gibowicz
06fa920e20 [EGD-6768] Disable logs in interrupts
Temporarily disable logs in interrupts
for heap overwriting reasons
2021-05-19 09:05:16 +02:00
Maciej Janicki
c88c82ae86 [EGD-6319] Refactor cellular modem directory
- Removed not used files from old implementations.
- Renamed some classes to follow naming convention.
- Renamed methods to use consistent styling.
- Restructured code.
2021-05-05 16:34:35 +02:00
Maciej Janicki
ea27e68716 [EGD-5748] Remake Cellular flow
This commit remakes cellular data flow
introducing full error propagation.
2021-04-23 15:03:08 +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
Alek Rudnik
6e106deb29 [EGD-6455] Disable service audio debug loggs
They were too much of them
2021-03-23 18:17:01 +01:00
Mateusz Grzegorzek
16763ee2ef [EGD-4593] Add Logging Engine docs
Add Logging Engine docs
2021-03-19 11:03:27 +01:00
Mateusz Grzegorzek
a60e27fa4b [EGD-4593] Dump logs to file on timeout
- Dump logs to file every 10 sec.
- max file size is 50 MB
  (after reaching it, no more logs will be logged),
- Add `LockGuard` with locking mechanism
  supporting IRQ and use it in `Logger`.
- Fix minor style issues in `Logger`.
- Add `mount_user_lfs_partition.py` script for mounting LFS on Linux FS
  in order to get `MuditaOS.log` file from `user` partition
2021-03-17 16:33:02 +01:00
Adam Dobrowolski
ad136fbb84 [EGD-6078] Limited logs from Settings and Service messages
* Right now there is too much spam. These logs can be enabled with
  build flag
* Fixed clang-tidy warnings on Settings
2021-03-09 12:57:47 +01:00
Mateusz Grzegorzek
def5dbcfa9 [EGD-5908] Fix bug in Logger + add log unit test
Because `vsnprintf` return value means:
"
The number of characters that would have been
written if n had been sufficiently large,
not counting the terminating null character.
If an encoding error occurs, a negative number is returned.
"

`Logger` crashed when log msg was longer than LOGGER_BUFFER_SIZE.
Checking `vsnprintf` return value solves this issue.
2021-03-05 09:06:39 +01:00
Adam Dobrowolski
30fde886e4 [EGD-5326] Fixed AT commands harness utility
We can now use test harness to send and check at commands
2021-03-02 14:49:50 +01:00
Adam Dobrowolski
324a40252d [EGD-5326] Fixed system messages logging crash
with messages debug utility and error on memory there  was crash
2021-03-02 14:49:50 +01:00
Mateusz Grzegorzek
0b75c6299d [EGD-4873] Add colors to rt1051 logs
Bring back possibility to get colorful logs from rt1051.
Colored logs can be now turned on in runtime using
Logger::enableColors method.
2021-02-10 18:19:32 +01:00
Mateusz Grzegorzek
3fd237c1e4 [EGD-5181] Add Circular and Logger buffers
Add RandomStringGenerator class.
Implement Circular and Logger buffers.
Add UTs for LoggerBuffer.
2021-01-22 13:02:50 +01:00
alek
4a826142c0 [EGD-4429] Enable DEBUG_MODEM_OUTPUT_RESPONSE to true
All those logs are crucial for identification of modem issues.
All modem debug logs are disabled in runtime by default.
2021-01-18 11:16:43 +01:00
alek
1f7d471831 [EGD-4429] Fix gui issues in application call
Fix the persistent answer and reject labels in Call Window issue
Fix the wrong call duration issue in both Call and Calls apps
Fix the not working call ignoring issue
2021-01-18 11:16:43 +01:00
SP2FET
71a8252029 [EGD-4580] Add BT settings middleware
Added bluetooth settings middleware to store BT status in settings.
Added middleware layer to handle new settings queries.
2021-01-14 17:19:44 +01:00
Mateusz Grzegorzek
0c3cc549b6 [EGD-4706] Change log for RT1051 and Linux platform
Unify log for RT1051 and linux platform.
Add Logger class where common functions
for RT1051 and Linux are stored.
2021-01-11 12:39:15 +01:00
Mateusz Grzegorzek
caa4ecec76 Revert "[EGD-4532] Implement dumping logs to a file for RT1051 (#1114)" (#1197)
This reverts commit 3572f1bf79.
2020-12-15 13:30:24 +01:00
Mateusz Grzywacz
8df9b22ac9 [EGD-4582] Bluetooth over DMA (#1115)
[EGD-4582] Bluetooth UART: replace polling with DMA
2020-12-08 13:39:18 +01:00
Mateusz Grzegorzek
3572f1bf79 [EGD-4532] Implement dumping logs to a file for RT1051 (#1114)
Dump logs to a file on RT1051 after reaching 80% of log buffer utilization.
2020-12-03 16:56:49 +01:00
Mateusz Grzegorzek
9d35def14d [EGD-4477] Dump logs to a file for linux (#1081)
[EGD-4477] Implement dumping logs to a file for linux
2020-11-27 11:26:02 +01:00
Przemyslaw Brudny
e131dae68f [EGD-3743] Removed old doxygen copyright statements from project. 2020-10-20 12:55:10 +02:00