Commit Graph

136 Commits

Author SHA1 Message Date
Hubert Chrzaniuk
180bfbadcd [EGD-4170] Cellular - modem reset (#929) 2020-10-29 08:36:41 +01:00
Radosław Wicik
d5de12f7ce [EGD-3852] clean include in service (#928) 2020-10-28 15:19:24 +01:00
jimmorrisson
958e304ba2 [EGD-4121] UCS2 32 bit support (#897) 2020-10-27 14:02:51 +01:00
alek
d19406f6ab [EGD-2975] Added Network Access Technology support 2020-10-27 10:13:41 +01:00
Hubert Chrzaniuk
acfe536435 [EGD-4120] Cellular - new line at the end of the command (#877) 2020-10-22 08:55:57 +02: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
Maciej Gibowicz
d5b0283a0c [EGD-4038] handling incoming calls and sms in sleep mode (#819) 2020-10-19 13:25:39 +02:00
kkleczkowski
330c57e1d0 Egd 3259 (#781)
* [EGD-3259] Updating RTC time from network time.

* [EGD-3259] Updated changelog.

* [EGD-3259] Missing files.

* [EGD-3259] Time updaten notification.

* [EGD3259] Fixed SET_TIME_ZONE_REPORTING command.

* [EGD3259] SET_TIME_ZONE_REPORTING fixed properly.

* [EGD-3259] Commands added to factory.

* [EGD-3259] Fixes after rebase.

* [EGD-3259] Style fix.

* [EGD-3259] PR applied.

* [EGD-3259] PR applied again.

Co-authored-by: Kuba Kleczkowski <dd>
2020-10-07 15:33:46 +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
kkleczkowski
250e7ea9c0 Egd 2914 ussd (#729)
* [EGD-2914] Window + base API.

* [EGD-2914] USSD test window changed.

* [EGD-2914] CMUX frames deserialised in dlc channel.

* [EGD-2914] USSD session.

* [EGD-2914] CUSD urc handler.

* [EGD-2914] Simplified USSD test window, sms storage command.

* [EGD-2914] Setting sms storage at modem init.

* [EGD-2914] Changelog.

* [EGD-2914] Style fix.

* [EGD-2914] Style fix again.

* [EGD-2914] Cleanup.

* [EGD-2914] PR applied.

* [EGD-2914] Rebase fixes.

* [EGD-2914] Style fix.

Co-authored-by: Kuba Kleczkowski <dd>
2020-10-01 14:30:22 +02:00
alek
07c33c89cc [EGD-3491] Added DTMF tone transmission 2020-09-25 18:18:34 +02:00
alek
c3998f5224 [EGD-3813] fixed outgoing call stucked in calling state 2020-09-24 15:32:57 +02:00
Przemyslaw Brudny
b7eb4365ea [EGD-3799] Messages queries cleanups. 2020-09-23 15:02:04 +02:00
kkleczkowski
06e3bb0f3f Egd 3709 - Application antenna - added parameter history window. (#713)
* [EGD-3709] Applicatgion antenna switch parameters window.

* [EGD-3709] Changelog + service-antenna disabled.

* [EGD-3709] PR suggestions + missing antenna rquest.

Co-authored-by: Kuba Kleczkowski <dd>
2020-09-22 14:35:00 +02:00
Piotr Tanski
9447da6585 [EGD-2870] Message drafts feature implemented. (#704)
- Save unsent messages as drafts on thread view window close.
- Queries for SMS add and update introduced.
- Fix for windows IDs all being zeroes across the GUI.
2020-09-21 10:25:00 +02:00
jimmorrisson
7b626ce755 [EGD-3098] Add audio volume control per functionality. 2020-09-20 13:41:19 +02:00
RobertPiet
82fb697c24 [EGD-2460] protection at the moment of conversion added: exception handling or parameter checkup
[EGD-2460] additional stoi/stoul protected; usage of magin_enum; review issues resolved

[EGB-2460] added return when exception caught as mention by Radek
2020-09-11 14:37:56 +02:00
Marcin Smoczyński
885fe1083a db: improve query handling
Introduce a new way to handle query responses allowing to deal with
races:
 - bind reponse with request,
 - handle responses with an observer-like interface.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2020-08-06 14:13:35 +02:00
alek
279f53276c [EGD-2878] added incoming text message ringtone 2020-07-28 14:04:08 +02:00
Mateusz Grzywacz
6ebdc5f447 [EGD-3435] fix SMS send again (moved to Query) 2020-07-22 13:37:30 +02:00
kkleczkowski
e1c765ee1d Egd 3248=long sms fix (#517)
* [EGD-3248=long-sms-fix] Fixed timeout in concantenated sms.

* [EGD-3248=long-sms-fix] Removed unused CREG command.

* [EGD-3248=long-sms-fix] Changelog.

Co-authored-by: Kuba Kleczkowski <dd>
2020-07-14 11:53:06 +02:00
kkleczkowski
e46d2a2829 Egd 3244 antenna manager (#490)
* [EGD-3244] Service antenna + utils State.

* [EGD-3244] CellularAPI + at::response.

* [EGD-3244-antenna-manager] Changes in application Antenna.

* [EGD-3244-antenna-manager] Changes in antenna app ( antenna switch multicast ).

* [EGD-3244-antenna-manager] Changed Antenna app GUI.

* [EGD-3244-antenna-manager] Basic algorithm.

* [EGD-3244-antenna-manager] Fixes in algorithm.

* [EGD-3244-antenna-manager] Small fixes + service blocking.

* [EGD-3244-antenna-manager] Little cleanup.

* [EGD-3244-antenna-manager] Restored Cellular call in Application Antenna.

* [EGD-3244-antenna-manager] Style fix.

* [EGD-3244-antenna-manager] Sewrvice antenna disabled.

* [EGD-3244-antenna-manager] PR suggestions + linux buil fixed.

* [EGD-3244-antenna-manager] Updated changelog

* [EGD-3244-antenna-manager] Style fix.

* [EGD-3244-antenna-manager] Fixed submodule.

* [EGD-3244-antenna-manager] PR suggestions + toNumeric UT.

* [EGD-3244-antenna-manager] PR suggstions again.

Co-authored-by: Kuba Kleczkowski <dd>
2020-07-07 10:54:47 +02:00
alek
25fd7888ef [EGD-2834] icnoming message home screen notification 2020-06-26 11:20:13 +02:00
Alek Rudnik
019b5cf719 Egd 3338 missed calls home scree notifications (#463)
* [EGD-3338] Missed calls home screen notifications
2020-06-25 23:42:42 +02:00
Alek Rudnik
d5c8cb0c5b Egd 3343 add notifications database (#465)
* [EGD-3158] added UT for CallogTable and CalllogRecord

* [EGD-3343] added notifications db
2020-06-25 13:47:31 +02:00
Radoslaw Wicik
806902c1df [EGD-3067] Add FOTA window 2020-06-23 16:11:38 +02:00
Marcin Smoczyński
aeeafb43ca [EGD-2595] do not use string numbers in messaging
Use PhoneNumber::View instead.
Removed caching mechanism of ContactRecord, because it was causing
several problems and it was a bad place to put it anyway.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2020-06-22 13:57:40 +02:00
Mateusz Grzywacz
9c5e3b3618 [EGD-3254] Cellular power down handle - extended states handling 2020-06-09 12:31:18 +02:00
Mateusz Grzywacz
8e88911cd1 [EGD-3254] Cellular power down handle 2020-06-09 12:31:18 +02:00
Radoslaw Wicik
04acd2c1c7 [EGD-3236] Add new cellular states URCReady and Ready 2020-06-02 18:32:15 +02:00
Mateusz Grzywacz
dd56d1a088 [EGD-3222] SMS DB update rebuilds app windows 2020-06-02 11:00:56 +02:00
Mateusz Grzywacz
a1ca0dacb7 [EGD-3222] SMS failed sending updates DB 2020-06-02 11:00:56 +02:00
Radoslaw Wicik
dfc21b3567 [EGD-3228] Acquire DataChanel from CellularService 2020-05-28 16:40:11 +02:00
pholat
23df384c55 EGD-3087 SMS Search implemented (#374)
* EGD-3087 WIP adding SMS Querry

* EGD-3087 Added query virtual interface on Service top layer

Service shouldn't implement query logic and should be proxying that.

additionally:
- small fixes in includes
- shared service db name same way as apps and event manager

* EGD-3087 Query - want to work on interface not on db

* EGD-3087 Query gluecode works fine. Our query in SMS search calls getBySMSQuery

Changes cut off before any potential orm interface layer

* EGD-3087 WIP Interface in use

* EGD-3087 Query for SMS search works as designed

* EGD-3087 Query results should be on screen

* EGD-3087 BUG workaround - need to deep refresh display to show data

* EGD-3087 Searching for text from input works fine

* EGD-3087 Showing results / or empty results depending on query

* EGD-3087 Pre PR fixups

* EGD-3087 Empty search - getting back to prewious window ignore current

* EGD-3087 PR applied

* EGD-3087 PR - style fixed

* EGD-3087 Review - DB ListView handling moved to separate function

* EGD-3087 Workaround: crash on use after free fix

* EGD-3087 PR stylistic changes

* EGD-3087 PR cleanup applied

* EGD-3087 Added test for Query interface

* EGD-3087 renamed getByQuery to getQuery & finished tests

* EGD-3087 Post rebase fixup

* EGD-3087 PR - moved ListView request part to separate function

* EGD-3087 PR Fixups

* EGD-3087 Post rebase style fix

* EGD-3087 Added variable for DB service stack & const to getter function
2020-05-27 13:49:50 +02:00
kkleczkowski
b86c961b76 Egd 3134 rtc timestamp fix (#379)
* [EGD-3134] SRTC used as time source.

* [EGD-3134] Message timestamp taken from os time.

* [EGD-3134] Timeout added.

* [EGD-3134] TRC init loop delayed.

Co-authored-by: Kuba Kleczkowski <dd>
2020-05-26 10:16:09 +02:00
kkleczkowski
b70ad6c5fc Egd 3196 small cellular refactor (#365)
* [EGD-3196] Fixed fatals in cellular.

* [EGD-3196] Fixed sms sending.

* [EGD-3196] Fixed timeout in ConfProcedure.

* [EGD-3196] Board type moved to Event Manager.

* [EGD-3196] Event Manager API renamed.

* [EGD-3196] Misiing files.

* [EGD-3196] Fixed modem status message, return code in magnetometer driver, case in modem init procedure.

* [EGD-3196] PR suggestions applied.

* [EGD-3196] Style fix.

* [EGD-3196} GetBoardName -> c_str();

* [EGD-3196] Style fix.

* [EGD-3196] PR suggestions added.

* [EGD-3196] Style fix...

* [EGD-3196] Style fix again.

Co-authored-by: Kuba Kleczkowski <dd>
2020-05-21 16:56:24 +02:00
Kuba Kleczkowski
d8a9d30c8c [EGD-2911-modem-init-rework] PR applied. 2020-05-11 14:04:31 +02:00
Mateusz Grzywacz
192d7c1225 [EGD-2911] modem init - delay URCs until needed 2020-05-11 14:04:31 +02:00
Mateusz Grzywacz
40471b779e [EGD-2911] modem init rework - T3/T4/Linux cold/hot start 2020-05-11 14:04:31 +02:00
Kuba Kleczkowski
6ebae24abd [EGD-2911-modem-init-rework] modem init fixes (cold start) & missing Linux files/implementation 2020-05-11 14:04:31 +02:00
Kuba Kleczkowski
22a911c2ba [EGD-2911-modem-init-rework] Hardware platform discover. 2020-05-11 14:04:31 +02:00
Kuba Kleczkowski
e444bd9ade [EGD-2911-modem-init-rework] Modem power-up hardware specific for T3, T4 & init fixes 2020-05-11 14:04:31 +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
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
Adam Dobrowolski
51e8dac933 EGD-3056 Linux power manager stub - added missing override for Reboot & fixed typo in ServiceCellular 2020-04-15 16:50:19 +02:00
Adam Dobrowolski
2cee195e09 EGD-3056 subscribtion based execution (on typeid) added and works fine
Till now there was no clear way to register hanlder for message in
Service, with this approach one can register function/lambda handler
for Message which encurages handling messages in functions rather than
in hudge switch cases.
With aproach like this our Messages resembe something between Command
and State pattern. In state pattern `Message` would be `Event` send,
whereas Service would be `Context`.
2020-04-15 16:50:19 +02:00
Adam Dobrowolski
8342d813a3 EGD-3056 Created EventManager serivce name constant in inline string 2020-04-15 16:50:19 +02:00
Radoslaw Wicik
f4a9bee7c5 Add modem firware version info 2020-04-14 14:30:29 +02:00
kkleczkowski
b7312fbf07 [EGD-3050-antenna-app-improvements] Added new window in antenna test app, added new command in service-cellular. (#281)
Co-authored-by: Kuba Kleczkowski <dd>
2020-04-09 13:41:43 +02:00