Commit Graph

52 Commits

Author SHA1 Message Date
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
Radoslaw Wicik
2276ceed67 [EGD-3743] Update copyrights in fies 2020-10-20 12:55:10 +02:00
Adam
f5f27d642f EGD-2955 EGD-3588 Timers fully refactored & updated (#721)
* Timers now are Application thread safe
* Timers now have consistent API independend of Application (no more c style timers)
* Timers can have either: callback or override onTimer() method - this
  way we can create more complicated timers or just use existing ones
* gui::Timer added via adapter class GuiTimer to decouple sys::Timer
  with gui::Timer
* Fixed race in wrapper
* Updated docs
* fixed using std and cpp_freertos and DataReceivedHandler hidden in Application.hpp
2020-10-02 14:04:57 +02:00
Bartek Cichocki
9095333b2c [EGD-3502] PR fixes 2020-09-02 17:26:01 +02:00
Bartek Cichocki
9eeeb6ae92 [EGD-3502] reworked endpoints and handlers
added endpoint listener to query
2020-09-02 17:26:01 +02:00
alek
212a32d0e3 remove UNIT_TESTS from log.hpp 2020-07-21 14:09:12 +02:00
pholat
fb586cb4e9 EGD-3229 (#497)
* EGD-3229 text helper classes added with tests - used in tests, plus misc utils needed

No major actual functionality changed - TextClasses added with this PR
are used in tests only in this commit.
* classes needed to rewrite gui::Text added
* some utilities needed to rewrite gui::Text added
* tests added
2020-07-06 16:19:41 +02:00
pholat
938cbc186a Gui text pr1 utils and fixes (needed for gui::Text rewrite mostly) (#485)
* EGD-3229 [FIX] UTF8 fixed uint32_t range error

* EGD-3229 [util] gui::Item Navigation switch case moved to function

Needed to not copy senslessly NavigationDirection enum switch case
* gui::Item Navigation switch case moved to function
* added NavigationDirection::None enum value
* cleaned up Navigation.hpp/cpp

* EGD-3229 [util] gui: InputEvent - str() for logging added & is...() check methods

* EGD-3229 [util] removed notorious log on unknown glyph

* EGD-3229 [util] InputMode - added is(Mode) method, input Profile added default definition

* is() method addded to check instead of `==` comparison
* added default to Profile instead of `== 0` use

* [FIX] ARM GCC 10.1.0 - build fixed

fixed include in wrong place

* PR style fix

* Review applied
2020-07-01 13:14:07 +02:00
Przemyslaw Brudny
8e6d4b284e [EGD-3094] Cleanups, proper erase widget from list. 2020-06-03 19:23:16 +02:00
Przemyslaw Brudny
d2d97160e2 [EGD-3094] Basic Phonebook contact list migration to new ListView. 2020-06-03 19:23:16 +02:00
Marcin Smoczyński
d5cb13d956 [EGD-3234] tests: fix utf8 tests
Convert utf8 tests which were written with gtest help to catch2
framework.

Fix broken index operator test (index operator decodes to UTF-32).

Remove dead gtest dependency
2020-05-27 10:41:17 +02:00
Przemyslaw Brudny
6540a27de4 [EGD-3040] PR cleanups. 2020-04-28 14:10:41 +02:00
Adam Dobrowolski
19c1f66733 EGD-3056 Messages debugging print edbug.hpp option added 2020-04-15 16:50:19 +02:00
Adam Dobrowolski
42ccb924cf EGD-3055 FreeRTOS asssert fixed, added force printf check on logging macros in log.h 2020-04-08 12:23:53 +02:00
Przemyslaw Brudny
c0822b6658 [EDG-3019] Moved log.hpp and debug.hpp into main PurePhone repo 2020-03-24 15:55:32 +01:00
Przemyslaw Brudny
8f92715951 [EDG-3019] Segger utils moved to git submodule 2020-03-23 18:37:37 +01:00
Przemyslaw Brudny
67db9e5885 [EDG-2995] FreeRTOSV10 Core tracing patch moved to separate directory, cleanups. 2020-03-20 14:28:57 +01:00
Przemyslaw Brudny
8f3cc846d2 [EGD-2978] SystemView build parameter added and log_redirect cleanups 2020-03-20 14:28:57 +01:00
Przemyslaw Brudny
e7cb0cb579 [EGD-2978] Formatter cleanups 2020-03-20 14:28:57 +01:00
Przemyslaw Brudny
499d6ce5e1 [EGD-2978] Linux target build macro excluded 2020-03-20 14:28:57 +01:00
Przemyslaw Brudny
2f30344740 [EGD-2978] Performance improvements, RTT logs redirected to SystemView 2020-03-20 14:28:57 +01:00
Przemyslaw Brudny
101bbb1c99 [EGD-2978] Basic SystemView import 2020-03-20 14:28:57 +01:00
Radoslaw Wicik
a8573a404c Apply new style 2020-03-17 10:03:16 +01:00
Adam Dobrowolski
2a57cfccd5 [EGD-2571] SendCommand commonized between ATparser and DLC_channel
* option to handle response based on OK/ERROR
* better return value - Response code & response values
* common parent for common behaviour (TODO add ->cmd(...) to mux channels)
* better logging
* small fixups
2020-02-18 07:39:16 +00:00
Adam Dobrowolski
ae915f3512 [EGD-2571] Clenup: removed MessageType static_casts, fixed debug.h defines. Added GPIO event 2020-02-12 13:31:13 +00:00
Adam Dobrowolski
76d5802275 [EGD-2532] HW timer tested, call made, seems fine 2020-02-04 12:23:34 +01:00
Adam Dobrowolski
c02cee02a1 [EGD-2394] Scoped timer moved to utils, fixed use in DB 2020-01-31 14:05:42 +01:00
Adam Dobrowolski
d2073baece [DEBUG] Moved debug definition close to log definition 2020-01-10 14:15:28 +01:00
Alek-Mudita
8b167d1809 Fix for calling (#91)
* fix for not switching to active call

* Added missing icons during unaswered outgoing call + some error logging

* Added additional logging to AT commands
defult timeout set to 300 ms.
Set different timeouts per each AT command.
Minor code refactoring.

* Added some logging, fixed some timeouts and number of returned tockens.

* commented out not needed log

* Added LOG_CUSTOM logging support. Remove unnecessary LOG_ERRORS.

* set ATA cmd timeout to 90 sec

* PR fixes
2019-11-29 11:18:57 +01:00