Commit Graph
121 Commits
Author SHA1 Message Date
rkubiak01andAlek Rudnik 7cac882c7a [2306] VFS: support .boot.ini and "current" and "previous" os types (#315)
* VFS: support .boot.ini and "current" and "previous" os types

* fixes for first batch of comments
- moved crc32 functions to a seperate file
- changed naming of constant with _
- removed one magic number
- crc methods now cross platform

* using smart pointer for buffer management

* created a simple USER_FILE macro for database names

* removed commented-out code

* style fixes

* Updated crc32 version

* Update module-vfs/vfs-utils.cpp

Co-Authored-By: Alek Rudnik <54846206+alekrudnik@users.noreply.github.com>

* Update module-vfs/vfs-utils.cpp

Co-Authored-By: Alek Rudnik <54846206+alekrudnik@users.noreply.github.com>

* renamed USER_FILE to USER_PATH macro, this was also
bromen and was returning incorrect paths, std::filesystem::path
behavior is causing these issues.

* VFS: remove method changed

* fixed path for assets copy

* UNITTEST: vfs test fixed

* VFS: changed computeCRC32 return type to void

* Max supported partition to 2 (was 1)

* EOL in vfs.cpp

* nullptr check in computeCRC32
include for log.hpp fixed

* flash_eMMC merged properly

* CRC32 commit update

* testBuild

* fix newline at start of smsdb.cpp
removed test from cmake

* no user/ folder on the root of emmc causes sqlite3 to fault
this adds a create empty user call for rt1051

* flash script fixes
- do not use build-*/sys
- common.sh contains a static list of iles that land on the flash

Co-authored-by: Alek Rudnik <54846206+alekrudnik@users.noreply.github.com>
2020-05-08 10:27:17 +02:00
Marcin Smoczyński c47923d70a [EGD-3107] Call number validation
Use specialized class to to pass phone number between apps and services
instead of ambigious std::string. Introduced class (utils::PhoneNumber)
wraps calls to libphonenumber providing more convienient interface.
However using libphonenumber directly may be resource hungry in terms
of stack, heap and cpu usage, so helper class has been introduced to
pass information about phone numbers (utils::PhoneNumber::View). It is
designed to maintain integrity thus can be created from an instance of
utils::PhoneNumber only or moved/copied to.

Add new field to the calllog db holding e164 formatted number. Both
entered and e164 numbers will be needed to be able to match with
contacts correctly.

Add constexpr information about country codes (utils::country).
2020-05-05 00:51:53 +02:00
Marcin Smoczyński c9062e83e0 doc: cleanup readme files for doxygen 2020-04-28 17:34:00 +02:00
Marcin Smoczyński 7cc27ee143 [EGD-3113] Add thread safety to RE2 2020-04-28 17:01:33 +02:00
Marcin Smoczyński 86bdeb347d [EGD-3113] Add thread safety to libphonenumber
Add thread safety based on the RTOS wrapper and FreeRTOS mutex. The
mutex protects regexp cache only so additional safety on regexp level is
needed.

Add method to get currently running thread - needed by thread checker
class in libphonenumber.
2020-04-28 17:01:33 +02:00
Przemyslaw Brudny 6540a27de4 [EGD-3040] PR cleanups. 2020-04-28 14:10:41 +02:00
Radoslaw Wicik 49ca4257da [EGD-3151] Add fixes for SIM detection
Add proper passing SERIAL_PORT info
Convert cmux to unique_ptr in module-cellular
2020-04-27 17:24:24 +02:00
Alek Rudnik 62c37c4107 [EGD-2798] use either e164 number or name (#321) 2020-04-22 11:16:22 +02:00
Adam Dobrowolski 19c1f66733 EGD-3056 Messages debugging print edbug.hpp option added 2020-04-15 16:50:19 +02:00
Marcin Smoczyński 5f7d52cb2b [EGD-2592] utils: add libphonenumber
Add libphonumber support:
 - no thread safety support (disabled mutexes, etc.)
 - use re2 regexes instead of ICU's
 - don't normalize utf8 decimals - use ASCII decimals only
2020-04-08 18:23:45 +02:00
Marcin Smoczyński 268385b093 [EGD-2591] utils: add protobuf library support
Add protobuf-lite library (thread safety turned off).
2020-04-08 18:23:45 +02:00
Marcin Smoczyński d41ceb4611 [EGD-3052] utils: add re2 library support
Add RE2 library with thread safety option turned off.
2020-04-08 18:23:45 +02:00
rkubiak01 bdb48fb7e5 added sbini library for simple C INI parser support
EGD-2922
2020-04-08 12:40:50 +02:00
Adam Dobrowolski 86353db8f5 EGD-3055 Make tests compile on linux 2020-04-08 12:23:53 +02:00
Adam Dobrowolski 2b07ca005f EGD-3055 use PRIu64 to log time 2020-04-08 12:23:53 +02:00
Adam Dobrowolski 4a61f400e7 EGD-3055 Fixed printf issues 2020-04-08 12:23:53 +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
Radoslaw Wicik d31affe660 [EGD-3037] Add locale and tzdata to docker to resolve utils time UT error 2020-04-07 13:07:20 +02:00
Alek-Mudita 36be49c15b Egd 3046 unexpected reset (#274)
* [EGD-3046] fix HF handler
added boot reason printing and clearing

* [EGD-3046] added prining of  GPR_5 on checking boot reason

* [EGD-3046] added halt if debugging

* [EGD-3046] halt if debugging only in exit

* [EGD-3046] rename

* [EGD-3046] added DEBUG check

* [EGD-3046] fixed formatting

* [EGD-3046] fixed includes
2020-04-01 16:34:56 +02:00
rkubiak01 c83546c332 added crc32 as a submodule 2020-03-31 11:41:50 +02:00
Alek-Mudita a449edc03d [EGD-3039] fix for time conversion UT (#269) 2020-03-26 12:58:53 +01:00
Alek-Mudita 1446a4bff8 Egd 2539 duration class (#258)
* [GED-2539] Timestamp : changed buffer to heap one

[EGD-2539] implemented 1st version of Duration class

[EGD-2539] added autoformating of the output

[EGD-2539] clean up

[EGD-2539] used duration in call and calllog
added Duration operators

[EGD-2539] add better duartions to calllog.db

[EGD-2539] format file

* [EGD-2539] fixes after rebase

* [EGD-2539] displayed format follows design guidline

* [EGD-2539] added UT for duration class and necessary FW fixes

* [EGD-2539] fixed tim_conversion UT

* [EGD-2539] PR fixes

* [EGD-2539] added move constructor to UTF8 class

* [EGD-2539] added checking for nullptr in fillContactData

* [EGD-2539] PR fixes
2020-03-25 17:14:00 +01:00
Przemyslaw Brudny c0822b6658 [EDG-3019] Moved log.hpp and debug.hpp into main PurePhone repo 2020-03-24 15:55:32 +01:00
Adam Dobrowolski 7674b44385 EGD-3026 PR applied, fixed buid for release 2020-03-24 14:17:12 +01:00
Adam Dobrowolski abe6813ce6 EGD-3026 Wall Werror and Wextra added to project 2020-03-24 14:17:12 +01:00
Przemyslaw Brudny 8f92715951 [EDG-3019] Segger utils moved to git submodule 2020-03-23 18:37:37 +01:00
Alek-Mudita f94688f996 [EGD-2998] fixed UT for Utils. (#253)
* [EGD-2998] fixed UT for Utils.

* [EGD-2998] clean up

* [EGD-2998] missing cmake file
2020-03-23 16:21:17 +01:00
Radoslaw Wicik 8dea0d7675 [EGD-2981] Add UT target: check
Clean CMake tests targets
2020-03-20 16:46:11 +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 98cd819ffb [EGD-2978] PR cleanup changes 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 864265a2c7 [EGD-2978] System View updates 2020-03-20 14:28:57 +01:00
Przemyslaw Brudny c8d87e1cfb [EGD-2978] FreeRTOSV10 Core tracing patch applied 2020-03-20 14:28:57 +01:00
Przemyslaw Brudny 5e96463979 [EGD-2978] SystemViev moved to utils 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
Przemyslaw Brudny 735a5f2d6b [EGD-2995] Unix line ending applied to .h, .hpp, .c, .cpp, .s, .sh, .cmake files 2020-03-18 15:43:26 +01:00
Radoslaw Wicik a8573a404c Apply new style 2020-03-17 10:03:16 +01:00
Alek-Mudita a62ca62934 [EGD-2976] fix the issue with mutex (#230) 2020-03-16 12:59:25 +01:00
Alek-Mudita dc3d655abe Egd 2566 signal strength indicator (#214)
* [EGD-2566] refactored cellular notification recogniton

* [EGD-2566] add new conversion to dBm

* [EGD-2566] added dBm to bar calculations
some minor fixes connected to signal strength
put static data in event store

* [EGD-2566] removed magic number

* [EGD-2566] PR fixes

* [EGD-2566] PR fixes

* [EGD-2566] missing rebase fix

* [EGD-2566] moved Signal Strength to separate file.

* [EGD-2566] missing return

* [EGD-2566] update signalstrength without message sending

* [EGD-2566]  reverted USE_DAEFAULT_BAUDRATE to 1

* [EGD-2566][fix] missing change for closing  end call window

* [EGD-2566] fix for proper checking for CSQ. Verbose setting of singla strength in Store

* [EGD-2566] fixed inlude in ScopeDTime.

* [EGD-2566]  added mutex in GSM store

* [EGD-2566] missing change

* [EGD-2566] reverted USE_DAEFAULT_BAUDRATE

* [EGD-2566] PR fixy
2020-03-13 16:42:42 +01:00
Adam Dobrowolski e1968f8b02 EGD-2848 Cellular state logging & SIM Tray show notification icon
* Made Cellular State settable only via setter (which loggs this change)
    for debug purposes
* Sim tray shows proper sim state (default on for all screens)
* removed few lines of dead code
2020-03-12 15:24:39 +01:00
Adam Dobrowolski d5847e37b6 EGD-2848 added SIM icons 2020-03-12 15:24:39 +01:00
kkleczkowski e4b7e9202e Egd 2507 settings date (#164)
* [EGD-2507] Wip on Date and Time window.

* [EGD-2507] Utlis, timeDateFormat in settings.db.

* [EGD-2507] - WiP on DateTimeWindow.

* [EGD-2507] dateTimeWindow layout + time validation + database_v2.md update.

* [EGD-2507] Code clean-up.

* [EGD-2507] Fixes after rebase, unused include removed.

* [ EGD-2507 ] PR suggestions.

* [ EGD-2507 ] Fixed missing 0 minutes, pr suggestions.

* [EGD-2507-settings-date] Fixes after rebase.
2020-03-05 14:32:06 +01:00
rkubiak01 66ffd1efab microtar added as a submodule
microtar.c is modified to work with freeRTOS fat
2020-03-05 05:29:08 -07:00
d1665ed3ba [EGD-2855][EGD-2856] Parser for desktop app (#188)
* [EGD-2306] DESKTOP application initial commit

most of this code is foreign and unverified
it's low level magic numbers for the platform

on Linux i used PTY to simulate a serial line

* [EGD-2306] Add contact-list and contact-count commands

* [EGD-2306] Add command for geting contact by id and minor fixes

* [EGD-2856][WIP] Add basic serial parser

* [EGD-2855] Set usb device config buffer property cacheable

* [EGD-2856] Separate handlers from fsms, add status codes

* [EGD-2855] fd passed to state machine for linux renderer support

* [EGD-2856] Fix warnings

* [EGD-2855] New send task added and buffer queque

* [EGD-2856] Add simple ServiceDesktop documentation

* [EGD-2855] rt1051 worker refactor

* [EGD-2855] Added service workers for desktop app.
Changed linux USB driver mock up.
Added queue name mapping for service workers.
Added queue registry support (maybe redundant with mapping)

* [EGD-2855] Added proper message pointer to queue send and memory free
Added bsp driver namespace for linux and rt1051

* [EGD-2856] Major cleanup

* [EGD-2856] Fix typo

* [EGD-2856] Fix warnings

* [EGD-2856] Delete recursive fsm calling to prevent stack overflow

* [EGD-2856] Reduce http codes

* [EGD-2856] Rename serial parser to parser

* [EGD-2855] USB_CDC drives renames and cleanups
Service Worker queue cleanups

* [EGD-2855] Service Worker queue cleanups

* [EGD2855] Fixed external driver import

* [EGD-2856] Remove redundant message type

* [EGD-2856] Switch on enums instead of ints, and other minor changes requested after code review

* [EGD-2855] usb driver moved to bsp directory structure, pull request fixes

* [EGD-2855] clang #include fix

* [EGD-2856] Add tinyfsm as git submodule, update readme and minor fix

Co-authored-by: rkubiak01 <56821808+rkubiak01@users.noreply.github.com>
Co-authored-by: PrzeBrudny <60609703+PrzeBrudny@users.noreply.github.com>
2020-02-27 15:34:42 +01:00
mateusz d017f29026 [EGD-2910] unused time formatter label + flash eMMC fix 2020-02-25 16:27:38 +01:00
mateusz 8f790ba70c change clocks from DateTime → Time 2020-02-20 16:16:38 +01:00
mateusz ccb0a0c2ac TODO: parse local time format 2020-02-20 16:16:38 +01:00