Commit Graph

153 Commits

Author SHA1 Message Date
breichel
46b856d6e6 [EGD-5831] Fix handling URC
Fix handling URC like no carrier
2021-02-23 20:13:43 +01:00
Wiktor S. Ovalle Correa
fe72169338 [EGD-5737] Merge master into experimental
Synchronize with master before merging
2021-02-23 18:10:52 +01:00
breichel
1a165ee797 [EGD-5692] Change URC parsing mechanism
Improved the mechanism for processing URC messages
so that long messages and those containing end of line
inside messages can be handled also if income
in more than one data chunk.
2021-02-18 16:38:54 +01:00
Kuba Kleczkowski
0b77d46357 [EGD-5216] Add module-callular unit test
Adds unit tests for TS0710 frame and ATStream.
2021-02-18 14:15:13 +01:00
Wiktor S. Ovalle Correa
3b141041e9 [EGD-5737] Merge master into experimental
Keep experimental up to date with changes from master
2021-02-17 17:09:37 +01:00
Tomasz Langowski
d3e51fb7cd [EGD-5319] Add test related to cold and hot start of cellular
Add harness test related to cold and hot start of cellular service
2021-02-12 08:00:49 +01:00
breichel
dc00afaad3 [EGD-5599] Change AT and DLC channels for big return
Change which allow to handle large return from
at commands both via UART and DLC-Commands
2021-02-10 16:15:30 +01:00
Lukasz Skrzypczak
28d811bd0d [EGD-5677] Tune echo cancellation parameters
Tuned parameters according to Quectel guide
2021-02-10 15:54:21 +01:00
Kuba
87b5938e37 [EGD-5594] Fix sending multiple cmux frames
Sending multiple cmux frames was broken. Sending at command
longer than 127 bytes caused the modem to freeze.
2021-02-09 15:26:36 +01:00
Lukasz Skrzypczak
eedf73eaac [EGD-5299] PR comments
Deleted commented-out digital filter calls. Moved QEEC to factory.
Added selection for echo cancellation strength.
2021-02-09 12:14:29 +01:00
Piotr Tański
bc4d32c7d8 [EGD-5158] Change access to the bus methods
The bus is now accessible only via Service object.
2021-02-08 16:56:42 +01:00
Lukasz Skrzypczak
e4462dce33 [EGD-5298] Microphone Adjust
Changed parameters for mic GSM path to get clear voice
2021-02-02 18:31:03 +01:00
Adam Dobrowolski
78a52c0705 [EGD-5451] Added SMS Center SMSC check to OS
Extended cmd mechanism to provide class defined responses and
implemented SMS center verification to check if SIM card is properly
cofigured and is able to send SMS messagess at all.
This check is needed because if SMS Center is lost we are not able
to send SMS messages with no verbose error codes.
Added milliseconds and noexcept specifiers for at commands
Fixed Chanel name to Channel
2021-01-31 11:24:37 +01:00
Adam Dobrowolski
afa195764b [EGD-5451] Removed unused and potentially harmful cmux api
We do not and should not use api removed. We should use Chanel and
Response in cellular code.
2021-01-31 11:24:37 +01:00
Radoslaw Wicik
d14e40d378 [EGD-4831] Add license headers to c, h and sql files
Add license headers to `h`, `c` and `sql` files as this files haven't
been checked previously, script now to automatically updates current
year in existing licenses.
2021-01-28 14:41:33 +01:00
Radosław Wicik
be0a8696a9 [EGD-3220] Convert service-fota to library (#1038) 2020-11-18 14:04:00 +01:00
Radoslaw Wicik
945e39df21 [EGD-4216] Convert service-cellular to library 2020-11-10 13:35:12 +01:00
breichel
f6161b1125 [EGD-4116] +CME ERROR support for AT commands. Error number available … (#893)
[EGD-4116] +CME ERROR and +CMS ERROR support for AT commands. Now error code available in at::Result as errorCode via Variant type.
2020-11-05 14:58:56 +01:00
Bartosz Cichocki
d5baec3837 [EGD-4211] moved test harness into service-desktop (#945)
Co-authored-by: SP2FET <bartosz.cichocki@mudita.com>
2020-11-05 13:37:34 +01:00
Hubert Chrzaniuk
6a92a7261e [EGD-2962] Refactor / improve URC handling (#947)
- QIND URC has been extended to support FOTA reply
 - added support for CLIP, CMTI and POWERED DOWN URCs
 - added support for URC responses codes handling
 - created URCHandler abstraction and moved out URC handling from
   cellular service code
 - URC objects are now created by factory on a basis of URC head, rather
   than previous approach where they were created a priori
 - Renamed classes to be consistent with rest of the project
2020-11-05 11:52:39 +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
4fa2e8d033 [EGD-4101] Temporary removed SMS memory setting. (#850)
Co-authored-by: Kuba Kleczkowski <dd>
2020-10-16 12:36:28 +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
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
Tomasz Sobkowiak
45773ddfdf [EDG-3415] Handle new line when entering text 2020-09-04 13:12:02 +02:00
alek
9821cd77c6 [EGD-3558] remove memalloc 2020-09-04 11:45:50 +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
Alek Rudnik
b4ec5eafb0 [EGD-3384] remove .at from TS0710 (#508) 2020-07-08 12:13:35 +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
Marcin Smoczyński
a9cb37d7f4 tests: add proper catch2 handling
Add proper catch2 support:
 - add catch2 as a submodule
 - add cmake function to add test easily
 - discover each test in test binary
 - remove copies of catch.hpp
 - do not try to process tests for rt1051

Do not test internals of utf8, only public interface (nasty bugs could
occur otherwise).

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2020-06-24 10:38:14 +02:00
Radoslaw Wicik
806902c1df [EGD-3067] Add FOTA window 2020-06-23 16:11:38 +02:00
Radoslaw Wicik
dfc21b3567 [EGD-3228] Acquire DataChanel from CellularService 2020-05-28 16:40:11 +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
Adam Dobrowolski
d204f23859 EGD-2911 Fixed timeout in Baud detection 2020-05-11 14:04:31 +02:00
Adam Dobrowolski
2a432e1891 EGD-2911 changed baudrate detection 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
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
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
Adam Dobrowolski
106220d75b [FIX] '%s' check build-linux fail fixed 2020-04-08 14:00:45 +02:00
Adam Dobrowolski
4a61f400e7 EGD-3055 Fixed printf issues 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