Commit Graph

31 Commits

Author SHA1 Message Date
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
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
Adam Dobrowolski
e4de2a2410 SIM hot swap fixes and system abort on not enabled hot swap feature
* SIM hot swap should now properly show |x| in sim place when there is
  no SIM inserted in selected sim slot
* ServiceCellular now can inform on Fatal state desktop which will
  trigger window `Reboot` with no point of exit
* All windows in Desktop now have name in one place
* Access to cmux channels via enum class instead of String (which is errorprone)
2020-03-19 14:53:03 +01:00
Mateusz Grzywacz
58c11d6ded [EGD-2999] Antenna Select fix 2020-03-19 14:16:44 +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
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
49e2c98126 EGD-2848 Made wait on polling fail in cellular initialization, added AT+CRC to sim init 2020-03-12 15:24:39 +01:00
Adam Dobrowolski
e97a54f7ec EGD-2848 Initialize SIM after unlock 2020-03-12 15:24:39 +01:00
kkleczkowski
358a39b377 [EGD-2945-restored-115200-baudrate] Restored 115200 baudrate. (#224)
* [EGD-2945-restored-115200-baudrate] Restored 115200 baudrate.

* [EGD-2945-restored-115200-baudrate] Define added.

* [EGD-2945-restored-115200-baudrate] Cosmetic change.

Co-authored-by: Kuba Kleczkowski <dd>
2020-03-12 11:59:54 +01:00
Adam Dobrowolski
e363b2f027 EGD-2956 sim swap force on start 2020-03-09 14:47:33 +01:00
Adam Dobrowolski
84eb7a60fb EGD-2956 SIM detection test 2020-03-09 14:47:33 +01:00
kkleczkowski
2868c87322 Egd 2854 antenna test app (#184)
* [EGD-2854-antenna-test-app] Antenna app + window.

* [EGD-2854-antenna-test-app] Cellular API, antenna app gui.

* [EGD-2854-antenna-test-app] Pin mux, small gui improvements.

* [EGD-2854-antenna-test-app] Compilation fix.

* [EGD-2854-antenna-test-app] PR suggestions.
2020-02-25 15:42:03 +01:00
Adam Dobrowolski
4a851263e8 [EGD-2656] All at commands gathered in one place
* at commands in one place, with timeouts set
* commands used with stream->cmd(...) have last execution time and result stored
2020-02-20 08:13:55 +00:00
Adam Dobrowolski
2ba032edb4 [EGD-2571] [FIX] gsm works each time it restarts
[EGD-2571] squash with previous
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
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
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
9bc0e6f3c5 Egd 2420 adding new calllog entry phase 1 (#134)
* [EGD-2420]  minor fix in call app timer

* [EGD-2420] added missing dictionary definitions

* [EGD-2420] removed the same preprocesor defintions

* [fix][EGD-2420] for adding new entry to calllog DB.
It is workaournd as it looks like there is issue with printing 64bit variables in vsnprintf

* [EGD-2420] added new timer for call duration on cellular servcice.

* [EGD-2420] changed unnecessary LOG_ERRORs to LOG_DEBUGs

* [EGD-2420] changed logging levels

* [EGD-2420] added TODO
2020-01-15 15:05:25 +01:00
Alek-Mudita
7ed1fa2f62 Egd 2449 fix for call aborting (#130)
* [fix] checked for proper time ID

* [fix] missing change

* adding proper debugging  possibility

* [fix] added more response validation

* [fix] validatio of the AT+CLCC response

* changed log level

* [fix] added explantation for the fix

* clean up AT command resposne validation methods

* [fix] for aborting call using long press

* added abort() in vApplicationStackOverflowHook

* code review fixes
2020-01-10 16:08:10 +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
af3332fd87 Fix hardfault during calling (#106)
* formatting of ServiceCellular::DataReceivedHandler

* [fix] - check if channel is not nullptr

* Minor enhancments and safety checks

* minor clean up

* sprintf removal

* references
2019-12-06 12:18:27 +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
ab8ef46b98 [EGD-2167] Workaround for crash when no modem on Linux
When there is no modem connected to PC, there is crash, which is not
caused by Read and Write, but somewhere deeper.
2019-11-19 12:53:29 +01:00
Lukasz Skrzypczak
22d42288b4 [EGD-2167] Added signal quality read on startup 2019-11-19 12:53:29 +01:00
Lukasz Skrzypczak
09e70fd107 [EGD-2167] Alek's PR's corrections 2019-11-19 12:53:29 +01:00
Lukasz Skrzypczak
8d2db70e2a [EGD-2167] Merged (consider remove) 2019-11-19 12:53:29 +01:00
RomanKubiak
5e491d4a63 [WiP] [EDG-2167] Working CMUX, call in/out. Code to be cleaned 2019-11-19 12:53:29 +01:00