main.cpp

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Merge branch 'DEN-14733-UI-BN-S90-2' into staging

  1. … 43 more files in changeset.
DEN-14736 : IMP: Dry-Demo Support

- added the CLI switch -D : --enable-dry-demo

- added the CLI switch -A : --active-can-bus <CANBus>

- added the CLI switch -F : --disable-fault-screen

- will send confirmation response with ConfirmationID of 99 and as accepted(1):

- e.g. 03:32:29.560,bb00,UI,Confirm,99,1

  1. … 11 more files in changeset.
Bamboo Commit: Updated the Copyright section and replaced tabs with 4 spaces

  1. … 608 more files in changeset.
Bamboo Commit: Updated the Copyright section and replaced tabs with 4 spaces

  1. … 46 more files in changeset.
DEN-13966: Improvement: Export individual log files

Simplified the log:

- Removed completely the Data type and defined only one type of AppED (AKA APPED, Application, log).

- therefore there is no E, or D, in the log anymore.

- added a log header for the debug type as well.

- added cppcheck to normal build process on each local build for debug and release.

  1. … 23 more files in changeset.
Bamboo Commit: Updated the Copyright section and replaced tabs with 4 spaces

  1. … 95 more files in changeset.
Merge branch 'DEN-13198-UI_BN_75' into staging

  1. … 45 more files in changeset.
Bamboo Commit: Updated the Copyright section and replaced tabs with 4 spaces

  1. … 100 more files in changeset.
DEN-13743: IMP: Device Registration - CloudSync POST test - Device Serial/Version req/rsp

- Added the disable functionality ( main.h SINGLETON_... macros ) for the Singleton classes, which are basically controllers, to stop their thread event loop, so they literally stop working.

- Connected the disable functionality of the controllers like, CloudSync, Bluetooth (Maybe later Logger), to the POST result.

- Improved the ./run.sh script and same on the ApplicationPOST class.

- Set the minimum of the HD/DG serial length to 1 byte, since it is not exactly at 15 or 20 char length.

- Removed the "CS" from the UI log of sending out the messages to CS, which the source is UI, not the CS and this is confusing.

- Removed the "Settings/DG Cleaning" scheduling section.

- Changed the POST version/serial request from UI to all to be identified in the log from "Versionreq" to "POSTInfReq".

- Added a new UI POST Alarm in AlarmDefs.h, ALARM_ID_UI_POST_FAILURE_CLOUDSYNC = 295, ///< UI POST CloudSync failure

- Fixed a potential bug on SD-Card not ready service logging.

  1. … 16 more files in changeset.
DEN-13645: IMP: DEN9297: Disinfection implementation [ Disinfection Messages ] [0x7F,0x80]

- Cleaned up / refactor the messages [ 127 (0x7F), 128 (0x80) ]

  1. … 16 more files in changeset.
DEN-13645: IMP: General Implementation [-k, -K]

- The logic for the check-in and Ack messages reversed to be always disabled and can be enabled later if needed.

- For Integration/Unit tests the application needs to be called with these two switches otherwise tests will fail.

  1. … 5 more files in changeset.
DEN-13645: IMP: DEN-13473: HD Communication/UI Issues

***** THIS IS AN EXPERIMENT *****

- It seems like the UI could be initialized early on, even before the controllers, so when the controllers are sending messages to UI to update the screen it is initialized and available to get update.

- previously when controllers were publishing the statuses UI was not even initialized and ready to receive any signal and that seems to be the reason some part of the UI (SD-Card status) was not get updated and missed signals.

_____

- Also added NoCANBus to able to go to Service when there is no HD to confirm the state change.

  1. … 3 more files in changeset.
DEN-13645 IMP: DEN-12958: UI shall generate the POST fail alarm if the SD-Card not present and stop logging

__________

- Log Export

- Added the Alarm generation on the GuiController if SD-Card is not ready, or is/becomes read-only.

- AlarmGenerator

- Added the SD-Card failure alarm - ALARM_ID_UI_POST_FAILURE_SDCARD

- Added alarm clear - ALARM_ID_NO_ALARM

- Added a flag to stop logging if the SD-Card is not ready or is readonly.

- Removed pause on log clean up.

- Improved the DeviceController SD-Card, USB status detection.

- Fixed and improved the MVC connection betweein device/Application/Gui controllers.

- A CLI switch ( -S ) added to disable the feature that is disabling the log if the SD-Card doesn't exist. So if the -S switch is used while calling the denali application, the logging will NOT be disabled, if SD-Card fails.

- In the ExportButton and USBButton(eject) removed the enable logic and has to be done outside of the component. It has been done for the Settings/export and Post-Tx/Review.

- Added title and file count for each SD-Card and USB-Drive panels.

__________

- Run.sh

- Added a check for the CloudSync and if the folder doesn't exist it won't do the rest

- Kill the denali application, in case it is still running.

- Added SD-Card type as part of its detection and if it is not ext4 format it fails the test.

- Optimized the mount point detection.

__________

- NoCANBus

- added the NoCANBus to the fault and init modes to not to navigate to those if NoCANBus is true. Otherwise it conflict with navigate to the home.

- Added a log in case the NoCANBus is enabled.

__________

- Settings

- Converted the '\n' in the settings values to actual newline character.

__________

- Thread:

- Moved the QuiController in its own thread, _Gui_Thread.

__________

- Alarms

- Added an emit to update the Alarm Dialog with the latest title/message, received from Alarms.conf In case there was an alarm before even Alarm.conf is read.

  1. … 27 more files in changeset.
DEN-13489: IMP: General Implementation for any bugs and any other implementations

- Enable Dialin logging CL switch has changed to disable dialin logging, to make the dialin logging as enabled by default and removed -d from run.sh. [Sean's Request]

- Added log unhandled as error to the unhandled reader as well.

- Implemented the NoCANBus to be used when no CANBus enabled. For now it is only bypassing the create treatment button command and helps to get to the treatment parameters for the touchscreen test. [EEMN's Support]

- Fixed a bug on the Volume Adjustment on post, sending to HD to update HD alarm volume with previous, adjusted value, which was sending a request one again receiving HD response, and it was a potential crash loop.

- Added disable acknowledgment logs (req,bak) CL switch, -K : --disable-acknow-log [Sean's Request]

  1. … 14 more files in changeset.
DEN-12804: DOX: General review and support

- Removed the compatibility version from the version format

  1. … 3 more files in changeset.
wrapping up multiple sprint codes

- LOG: Added a CLI option to disable the Check-In logs by adding -k, --disable-check-in-log at the CLI. This was interrupting the log tests. The build macro has been removed.

- POST: During the coverage find out that the getter functions have not even been called in the ApplicationPost.

- CloudSync: Added the Treatment Code(TxCode), received from the cloud after the Treatment Report stored by Cloud System. It is a message communication between UI<=(2008)=CS.

- CloudSync: Two error added for the 2008: TxCode

- CloudSync: Due to some issues on Cloud System regarding the credential expiration, It has been asked to add a temporary workaround to send the credentials (1004) before message 1006:Device State, 1007:Treatment Report.

- DEN-12727: Treatment Parameter Screen: Added more space between the parameters components specially the Temperature slider and the option on top.

- DEN-12829: Enabled the back button on the Start Treatment Screen

- DEN-12761: Enabled an empty Patient ID.

It has not yet been implemented on the CloudSync App, so if sent empty CloudSystem will later reject to store the TxReport.

When later implemented an unassigned random Patient ID will be created for that TxReport to be later defined and assigned.

- DEN-12837, DEN-12840: The Disinfection Scheduling Entry and the Confirm button have been removed from the "Dialysate Generator Settings" screen.

- DEN-12837, DEN-12840: The "Dialysate Generator Settings" changed to "DG Cleaning" for the menu option and the screen title.

- Settings: The Clear Alarm Condition button has been removed from the settings screen for the release.

- Settings: The options which has no implementation for the phase 1 have been removed from the Settings screen Service mode options. [Language, Calibration, SW Update, Factory Reset]

- DEN-12841: Reworded the password entries in Service screen and for WiFi Join Screen.

- TxCode, TxReport: removed the commented out Treatment Report Parameters from the code.

- LOG: added one character space int he DEBUG log for the Not Enough Data in Types.

- Settings: The Service Dates default values changed from 0 to "" since they are strings.

- Settings: Added some clarification for the Home screen greetings

  1. … 32 more files in changeset.
Bamboo Commit: Updated the Copyright section and replaced tabs with 4 spaces

  1. … 159 more files in changeset.
DEN-11812 UI Keyboard displays text on the spacebar and has a wink emoji button

- added the keyboard layout and style to remove some buttons and remove the text on the spacebar.

- added DEBUG_DISABLE_MAXIMIZE, due to touch screen issue on some devices, the maximized alarm can't be minimized to see the screen underneath.

- While fixing some issues in the Dialin/Simulator, added the reject reason notification to the Treatment review screen and cleared the values on rejection.

- update the Dialysate Temperature max to the 37 from 38.

  1. … 40 more files in changeset.
Bamboo Commit: Updated the Copyright section and replaced tabs with 4 spaces

  1. … 77 more files in changeset.
Added Dialin to unhandled

- Added Dialin messages to be defined/logged by unhandled messages definitions.

- It needs the call with the option -d to enable the Dialin handling.

  1. … 4 more files in changeset.
Bamboo Commit: Updated the Copyright section and replaced tabs with 4 spaces

  1. … 584 more files in changeset.
DEN-10614 [On Going Code Review] UI_DEV: Add Patient ID to Pre-Treatment Flow

- Pushed the code improvements

- Addressed the code review comments

  1. … 8 more files in changeset.
Improved the POST

- Updated the run.sh

- Enabled the Sha256 in the application

- Fixed the ShaSum issue in the run.sh

- Added a command line argument to disable the alarm-no-minimize

- Set the timezone to UTC int eh setup script.

- Setup the correct greeting on the home screen

  1. … 12 more files in changeset.
DEN-10247: FW: UI Acknow timeout

- Moved the Check-In logic into the MessageAcknowModel and emit the check-in signal directly to the MessageDispatcher, and removed from MainTimer.

- Removed the POST start from main.cpp and moved in the Main.qml to notify the ApplicaionController onGUIReady to start the POST and Check-In.

  1. … 7 more files in changeset.
Delayed Checkin

- The delayed check-in idea, tested.

- The idea is that the UI is not ready when sending the check-in so delay the check-in to the point that GUI is loaded and can notify that it's ready and check-in and post can start.

- :: It didn't work.

- Some other timestamps were added to the code to get the time between the time message was sent. and UI receiving it, which is the 1.200 s between when the HD sends UI Version Req and when UI actually receives it, which is the root cause of the issue.

  1. … 14 more files in changeset.
DEN-10599: KeborMed [CloudSync infrastructure kickoff ]

- The infrastructure is done for send and receive

- IT only needs interpretation on send and action on receive of messages in CloudSync communication.

  1. … 20 more files in changeset.
DEN-9659: Implementation [POST]

- Created a separate file for the Bluetooth screen since it became bigger.

- Moved the WiFi and Bluetooth start in the Application controller and handled by POST events.

- Added a 5 second sleep for the Bluetooth Device to get ready in run.sh

- Added WiFi POST in run.sh

- Moved lambda functions for POST into slots.

- Added signals in the ApplicationPOST for passed items to be used in the ApplciationController to start WiFi and Bluetooth interfaces.

- Added isValid to the BluetoothInterface to make sure the Bluetooth Adapter is ready for the Interface to setup (Is set by ApplicationController with the information Provided by ApplicationPOST).

- Improved the Bluetooth interface implementation

- Added Rinseback safety volume parameter

- Modified the SAFE_CALL's methods to be public slots.

- Removed the SerialNumber listener from VBluetooth.

- Improved the VBluetooth code and added the connection to the BluetoothController.

  1. … 20 more files in changeset.
[ DEN-9653 , DEN9655 ] : Implementation - Settings [ Screen , MVC ]

  1. … 17 more files in changeset.
DEN-9649: Implementation - Yocto configuration

- Addressed some frequent code review comments

- Fixed the UI POST AlarmTriggered message

- Added the deleteLater for the QQuickViewer pointer _viewer.

  1. … 114 more files in changeset.
DEN-9416: Implementation

- Implementing the foundation of Application POST

- Added ID_AlarmTriggered message on post error.

- Added AdjustUIPostFinalResultRequestData in correct place.

- Created the treading structure for the post to start.

  1. … 15 more files in changeset.