Commit Graph
75 Commits
Author SHA1 Message Date
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
mateusz f314da6eda change names to reflect function, add separate Time/Date 2020-02-20 16:16:38 +01:00
Adam Dobrowolski 33d66d6bc9 [EGD-2874] current language wasn't set so it wasn't selected 2020-02-20 10:32:29 +00:00
Radoslaw Wicik 0400e5c18b [EGD-2886] Unify and repair build system. 2020-02-19 14:55:14 +01:00
Adam Dobrowolski 470bd9990b [EGD-2571] PR cleanup & mocups for linux 2020-02-18 07:39:16 +00:00
Adam Dobrowolski c082b015e6 [EGD-2571] SIM tray notifications works - no sim, or sim notifications & GSM reload 2020-02-18 07:39:16 +00:00
Adam Dobrowolski 55220c45a5 [EGD-2523] Added sim card indicator on topBar 2020-02-18 07:39:16 +00: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 b5c9af497c [LOG] Added log runtime filtering option 2020-02-11 08:04:03 +00:00
Adam Dobrowolski 76d5802275 [EGD-2532] HW timer tested, call made, seems fine 2020-02-04 12:23:34 +01:00
Mateusz Grzywacz 8d0b50735f [feature] add separate folders in CMake conf & change type of a variable. rebuild.sh updated & docs on separate build folders 2020-02-03 14:12:47 +01:00
Alek-Mudita ee7318ff67 Callog fixes and missing funcionalities (#152)
* [EGD-554] added trash img

* [EGD-2538] dots mode in title

* [EGD-554] added missing font

* [EGD-554] calllog UI fixes

* [EGD-554] dialog delete window isntaed of own one

* [EGD-554] removed not needed files

* [EGD-554] clean up
2020-01-31 15:59:41 +01:00
Adam Dobrowolski c02cee02a1 [EGD-2394] Scoped timer moved to utils, fixed use in DB 2020-01-31 14:05:42 +01:00
Alek-Mudita ea69daaebc Egd 2420 adding new calllog entry phase2 (#150)
* [EGD-2420] tokenizer refactoring
new class CellularCall

* [EDG-2420] new file added

* [EGD-2420] fixed include

* [EGD-2420] added new ModemCall type and its usage in Sevice Cellular.
missing dep in module-cellular.
Fix in tokenizer.

* [EGD-2420] get calllogrecordID one adding new entry to DB
number as contact name

* [EGD-2420] fixes at DB level api for update and delete
Outgoing call seems to add proper calllog entries now

* [EGD-2420][fix] fix for HF during call before full modem init

* [EGD-2420] incoming and missed calls are handled
code clean-up

* [EGD-2420] ModemCall::to_string

* [EGD-2420] added proper exceptions

* [EGD-2420] minor clean up

* [EGD-2420] split string with multichar delimiter

* [EGD-2420] done some TODOs

* [EGD-2420] PR fixes

* [EGD-2420] separation between cellularcall and cellularservice
PR fixes

* [EGD-2420] duration based on timestamp instead of timer

* [EGD-2420] new to_strings

* [EGD-2420] fixes after rebase

* [EGD-2420] operator<<

* [EGD-2420] changed split params

* [EGD-2420] changed returned db id

* [EGD-2420] comment with explantaion
2020-01-30 12:45:29 +01:00
Alek-Mudita 3d7611bd12 [EGD-2423] added numbertostring (#153)
* [EGD-2423] added numbertostring

* [EGD-2423] renamed to to_string
2020-01-30 10:17:35 +01:00
kkleczkowski 9811b7a044 Egd 2404 db modem (#137)
* [EGD-2404] Handling incoming SMS.

* [EGD-2404-db-modem] WiP onf db handling.

* [EGD-2404-db-modem] service-db notification + SmsDB::Add.

* WiP handling service-db notification in service-cellular.

* WiP on cellular<->db.

* Fix in usc2, handlig incoming message.

* Code cleanup pt 1.

* Improvements in service-csllular.

* Fixed compilation error on target, small cleanup.

* Small claenup.

* Fixes after rebase.

* Fixed incoming sms date parsing on target.

* Fix after rebase.

* PR suggestions added.

* dynamic_cast + nullptr check.
2020-01-21 10:49:18 +01:00
Adam Dobrowolski c3582983da [EGD-2476] Added static lifetime store for battery state and use it on UI 2020-01-15 15:51:21 +01:00
Adam Dobrowolski 40b29642a9 [EGD-2474] [utils/i18] added backup to EN language if text not found
- if not found in language selected try Eng
- if not found in selected and eng, return reguested string
2020-01-15 15:18:40 +01:00
Adam Dobrowolski d2073baece [DEBUG] Moved debug definition close to log definition 2020-01-10 14:15:28 +01:00
Alek-Mudita 0079a845c7 EGD-2417 Logging from irq, hard fault handler and assert (#112)
* Logging from IRQ and hard fault handler

* *logging from assert
* assert instead of while(1) in hard fault handler

* added log in _exit(); + no abort instead of assert in hardfaulthandler

* disable scheduler in _exit()
2019-12-20 09:01:28 +01:00
kkleczkowski 013422e519 Cellular messages (#110)
* WiP on porting sms to new cmux.

* [cellular-messages] WiP concatented messages.

* [cellular-messages] Sending sms and concatenated sms.

* [cellular-messages] WiP concatenated messages.

* [cellular-messages] Fixed deserialising multiple frames.

* [cellular-message] Demo app + cellular api.

* [cellular-message] Added text input selection

* [cellular-messages] Fixed font size.

* .gitignore update

* [cellular-messages] cleanup and rm source/version.hpp.

* [cellular-messages] PR suggestions.

* [cellular-messages] Fixed merge overwrites, rest of PR suggestions.

* [cellular-messages] Pr suggestions.

* [cellular-messages] PR suggestions again.
2019-12-17 09:51:05 +01:00
Alek-Mudita 10b2925cf2 added timestamp in logging (#95) 2019-11-29 11:36:04 +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
Adam Dobrowolski ceefd7abb2 [EGD-2335] Added missing file 2019-11-27 11:09:52 +01:00
RomanKubiak 99417b974f UTILS: added Utils.hpp with some useful std::string methods I use
in Phonebook and can be reused in the future, namespace utils::
is introduced
2019-11-19 13:59:57 +01:00
Adam Dobrowolski d430ca6b14 Bluetooth: review aplied 2019-10-14 15:32:06 +02:00
Adam Dobrowolski 8c2622b2c2 Bluetooth compiles and starts on Purephone and Linux fine 2019-10-14 15:32:06 +02:00
Adam Dobrowolski d54746b8e5 Bluetooth: enabled proper bluetooth library logging 2019-10-14 15:32:06 +02:00
Adam Dobrowolski d03a6ed2d7 Bluetooth: Post master rebase fixups 2019-10-14 15:32:06 +02:00
Adam Dobrowolski 07a89b0294 Bluetooth: Handled via servive & worker - drops data
BlueKitchen requests from data, which doesn't mean it knows amount
need - need to provide handling to buffer in Uart handler - than
copy form handler on request, then sent notification when ready
2019-10-14 15:32:06 +02:00
Mateusz 2c7b14d564 Fix: Parsing file attributes in VFS::listdir method 2019-10-09 13:23:06 +02:00
pholat 6e329ce836 time utility readme updated 2019-10-03 10:16:05 +02:00
pholat a71c3963d8 Utils: time conversions utilitiy added
* utils::time::Locale - class for Locale loading/management for i18n
* Time generall class for time conversions
* SysTime specialized class for time conversion based on systime
2019-10-03 10:16:05 +02:00
pholat 5a2f8eb705 UTF8: added operators: std::string() && stream<< 2019-10-03 10:16:05 +02:00
Robert Borzecki 59d6522dcd Merge branch 'master' of github.com:muditacom/PurePhone into EGD-2015_database_model 2019-08-26 12:32:25 +02:00
Robert Borzecki d8389b7c9a Added browse mode. 2019-08-26 06:57:35 +02:00
Robert Borzecki edf7e8ac57 Fixed getText in Text widget. 2019-08-22 11:53:28 +02:00
Robert Borzecki 962fbb9a5d Fixed bug with removing UTF8 character at specified index. 2019-08-22 06:52:49 +02:00
Mateusz 0342924aab WiP: Turned off PLL3 as it's not used 2019-08-21 14:05:05 +02:00
Robert Borzecki ecc2a86e1c Merge branch 'master' of github.com:muditacom/PurePhone into EGD-2015_database_model 2019-08-20 18:26:47 +02:00
Robert Borzecki cb13c40947 Fixed kbd profile error with loading hex values. 2019-08-20 13:02:35 +02:00
Robert Borzecki bf620c3413 Added displaying text lines in text widget. 2019-08-19 13:58:52 +02:00
Robert Borzecki fc93b81be9 Added insert, encode and expand functions for UTF8 class. 2019-08-19 09:52:47 +02:00
Robert Borzecki 6d122c5749 Added text splitting function for text widget. 2019-08-16 14:42:19 +02:00
Mateusz 6536bf8477 WiP: SAI driver dev 2019-08-12 19:57:41 +02:00
Kuba 1c3d0001a9 Merge branch 'master' of github.com:muditacom/PurePhone into service-alarms 2019-07-26 12:19:59 +02:00