Commit Graph

30 Commits

Author SHA1 Message Date
Borys Jelenski
d9ae779a37 [EGD-5503] Add watchdog implementation
The system watchdog monitors whether there is message traffic
on the Bus. If no message was sent for an extended period of time,
a reset will occur. It should also protect against system-wide hangs.

On Linux, watchdog is simulated by a FreeRTOS task that will call exit
on timeout.
2021-02-19 11:32:12 +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
Piotr Tanski
4e0f72e70a [EGD-4696] Several stabilization patches. (#1192) 2020-12-15 15:30:13 +01:00
Piotr Tanski
22102c4ba5 [EGD-4200] Message handling refactored. (#974) 2020-11-06 15:24:59 +01:00
Adam
8bab7f0031 EGD-3585 ServiceGUI and ServiceEink initial cleanup (#953)
* EGD-3585 SerwiceGUI and ServiceEink initial cleanup

* moved code to one function per message handling
* removed dead code from comments
* added Service.cpp demangling to debug messages for clear output
* added Response value to return messages to `connect()`
2020-11-03 17:27:00 +01:00
Radoslaw Wicik
2276ceed67 [EGD-3743] Update copyrights in fies 2020-10-20 12:55:10 +02:00
Piotr Tanski
f5aec0444a [EGD-3838] Introduced a meditation progress bar with simple implementation of meditation application. (#783) 2020-10-09 14:14:40 +02:00
Hubert Chrzaniuk
9c7e4139db [EGD-3784] Add service audio non blocking API (#789) 2020-10-08 10:15: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
Radoslaw Wicik
733a7c8d6b [EGD-3230] Increase Total HEAP_SIZE so Linux implementatio of CelularService fit memory 2020-05-26 11:46:49 +02:00
Adam Dobrowolski
352074cea6 EGD-3056 Renamed subscribe to connect (following signal -> slot nomenclature) 2020-04-15 16:50:19 +02:00
Adam Dobrowolski
32f51fd796 EGD-3056 PR review applied 2020-04-15 16:50:19 +02:00
Adam Dobrowolski
b7db6a57ed EGD-3056 Added message to continue system shutdown on power plug ejection 2020-04-15 16:50:19 +02:00
Adam Dobrowolski
62d8f4c094 EGD-3056 Improved events logs 2020-04-15 16:50:19 +02:00
Adam Dobrowolski
19c1f66733 EGD-3056 Messages debugging print edbug.hpp option added 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
714b3c1e18 EGD-3056 Removed LogOutput to use LOG_... instead
LogOutput was not needed, confusing and didn't work on target
Therefore it was removed
2020-04-15 16:50:19 +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
Radoslaw Wicik
a8573a404c Apply new style 2020-03-17 10:03:16 +01: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
pholat
2b275d7951 [EGD-2571] added GSM command sending & small refactor
* added GSM AT commands on 'Commands' channel
* refactor (for better console/script) handling
* docs update
* GSM request asynch send back on uart to requester
2020-02-11 08:41:26 +00:00
Mateusz Grzywacz
aeaf39191b [EGD-2368] moved all AppTimer objects definitions to init list, to get rid of default AppTimer() ctor 2020-01-02 14:53:34 +01:00
Mateusz Grzywacz
e2cafcee70 [EGD-2368] changes requested in a PR 2020-01-02 14:53:34 +01:00
Mateusz Grzywacz
c09df40905 [EGD-2368] Approach 1: list of timers 2020-01-02 14:53:34 +01:00
Mateusz
d299f0916e Auto stash before merge of "EGD-2080_evtmgrdeinit" and "origin/EGD-2079_pwrmgr_services"
Fix: Service's params order
2019-08-28 10:51:48 +02:00
Mati
9c1f919e2e Services: Added parent/child feature
Fix: Raised ApplicationSettings stack to 4kB
Fix: eINK deep refresh fix
2019-08-26 09:31:50 +02:00
Mateusz
0e97e07fef Fixed problems with launching desktop/call apps.
Added logs to Service.cpp
2019-07-09 14:19:39 +02:00
Robert Borzecki
35d15b2bc7 Added key handling logic to applications. 2019-06-26 12:34:06 +02:00
Robert Borzecki
d3235d54d7 Removed submodule 2019-05-21 23:35:00 +02:00