0b7d504a7a
Fixed missing git pull command. Fixed missing update for text-edit when only clone the customer repository.
GerhardHoffmann2023-08-02 16:53:19 +02:00
6a4a852fd6
Updated for new device controller lib (CAmaster)
GerhardHoffmann2023-08-02 15:52:01 +02:00
81a9304438
Worker is the work-horse of the update process. Using ismas-client it sends requests to APISM and gets results in a synchronous fashion. Add previous emits to git client and apism client have been removed.
GerhardHoffmann2023-08-02 15:50:04 +02:00
332d689b8c
Add worker-object to be able to update for the worker.
GerhardHoffmann2023-08-02 15:47:19 +02:00
ce1b1859df
Removed apism-client and tcp-client. All done inside of ismas client now.
GerhardHoffmann2023-08-02 15:18:39 +02:00
371cc1a187
Removed communication with ISMAS from git client.
GerhardHoffmann2023-08-02 15:17:10 +02:00
a94606ca89
Added sendRequestReceiveResponse(): static member for communication with APISM, on ports 7777 and 7778. Each request is immediately handled in a synchronous fashion. Added several helper functions to format messages to be sent to APISM/ISMAS.
GerhardHoffmann2023-08-02 15:13:05 +02:00
37c5c7c4f6
Simplified interface. When doing a clone of the repository, do not execute any other commands.
GerhardHoffmann2023-07-17 16:49:44 +02:00
5eb33f3e31
Minor change: renamed function sendUpdateInfToIsmas() to emulateUpdatesAvailable() for clarity.
GerhardHoffmann2023-07-17 16:48:04 +02:00
43f5f3ecae
Removed usage of any files. Removed any dependencies on git-hooks. Removed handling of opkg-related things: they are done now inside the worker itself.
GerhardHoffmann2023-07-17 16:45:11 +02:00
c503750e90
Simplified interface of ctor. onHandleChangedFiles(): split handling of opkg_commands-file and downloading of DC/JSON-Files. rsync to file-system only once these operations were successful.
GerhardHoffmann2023-07-17 16:43:05 +02:00
f5198efab3
Added worker/worker-thread-pair. Worker uses event-loop of worker-thread. Worker itself is used as work-horse for the update-process.
GerhardHoffmann2023-07-14 13:32:00 +02:00
d6446f90fe
Removed C++-thread-handling, replaced it with Qt-versions. Using explicit Worker instance instead.
GerhardHoffmann2023-07-14 13:29:52 +02:00
58bceb5d27
Started ISMASClient providing the data to be sent to ISMAS. It does not send to ISMAS itself.
GerhardHoffmann2023-07-14 13:28:41 +02:00
92084bed99
Added call to waitForConnected() when doing a connectToHost(). Replaced some qCritical() with qDebug()-calls.
GerhardHoffmann2023-07-14 13:27:14 +02:00
cd1c92a7db
Copied from ATBQT app. Added slots requestAvailableIsmasUpdates(), sendCmdSendVersionToIsmas() and sendUpdateInfoToIsmas().
GerhardHoffmann2023-07-14 13:24:14 +02:00
3c54d8de6d
Made GitClient a Qt-object. Impreoved several utility functions handling git commands. Added slot onIsmasUpdatesAvailable(). Added helpers getLastCommit(), gitBlob(), gitCommitForBlob(), gitIsFileTracked().
GerhardHoffmann2023-07-14 13:16:01 +02:00
d91d4261d9
Add another utility function and added signal/slot ismasUpdatesAvailable/onIsmasUpdatesAvailable().
GerhardHoffmann2023-07-14 13:13:03 +02:00
9df425f5f8
Use Qt to format debug-info. Note that the full info is visible only in debug-mode.
GerhardHoffmann2023-07-14 12:58:23 +02:00
5149a67d4b
Provide the possibility to pass parameters to a command using a string-list. Has to be improved later.
GerhardHoffmann2023-07-14 12:56:33 +02:00
26db620465
use of worker/worker-thread so we can work without using buttons (as the cannot be triggered by an automatic update process)
GerhardHoffmann2023-07-11 16:58:49 +02:00
c34944af8b
Add slots for catching output of underlying update_psa_script. iSetting timeout to 200000 when in maintenance-mode.
GerhardHoffmann2023-06-27 17:29:10 +02:00
58684cf3c4
Add new slots readyReadStandardOutput/Error and finished to get messages from included update_psa-script.
GerhardHoffmann2023-06-27 17:25:23 +02:00
0668ab65be
Added helper-function downloadJson() to implement downloadinf print/conf/cash/device.json. Added some compile time flags used for testing.
GerhardHoffmann2023-06-22 15:36:36 +02:00
f66ae498ce
Adding methods for downloading DC2C_cash/conf/device.json
GerhardHoffmann2023-06-22 15:20:21 +02:00
e420f95eb0
Fix: do not print an empty buffer ending with \n
GerhardHoffmann2023-06-22 15:19:17 +02:00
4cee0e37da
executeUpdateScript: set timeout to 200 secs. Open serial port only once for the whole loop handling the lines in update_log.csv. Sending of device controller in Debug-setting worked. Execution of opkg-commnds worked. Sending of JSON files needs further testing: sys_readyForSending failes sometimes after 5 seconds.
GerhardHoffmann2023-06-21 16:25:21 +02:00