320 Commits

Author SHA1 Message Date
b34716ef93
Minor: order debug output 2025-06-12 08:40:59 +02:00
f75f2c57df
Diag: E255 / W255 / M0254 -> set, send and finish diag
This states are rather meta infos about dc condition. Therefore the
where created and sent outside of superviseSystem()-method.
This commit should ensure that:
 - this states are sent to ISMAS
 - this states are inserted in machineEventSet in order to enable
   a reset in next diagRun
2025-06-12 08:35:58 +02:00
18a35acf20
Diag: add single exit method for ReqDiag 2025-06-12 08:35:00 +02:00
ccc2b8120d
Diag: new constructor for DCMachineEvent 2025-06-12 08:33:28 +02:00
ccc1c6033f
Diag: Send operate O000 as last event (after set/reset events) 2025-06-11 14:13:09 +02:00
c23364874e
Diag: machineEventSet:
- do not overwrite previous events, only insert new events (unite)
 - remove all events not in machineEventSet
2025-06-11 12:35:27 +02:00
1e5020132f
Diag: DEBUG EventSets 2025-06-11 09:58:31 +02:00
6bd02f1831
Diag: care about EventSet.clear() (-> TEST / TODO) 2025-06-11 09:58:31 +02:00
923bff1117
Diag: Operate O000 is not part of machineEventSet
- O000 is not a direct result from DC
 - O000 is constructed in DCDiag, if no Error EXXXX and no Warning WXXXX
   ocurred
 -> O000 must not be part of machineEventSet (e.g. O000 can not be
    reset)
2025-06-11 09:58:31 +02:00
12be31ee49
Diag: getCurrentMachineState: return previousState ...
... if diag is running.
This method is currently not used, but maybe in future it could be
usefull to read current state.
2025-06-11 09:58:31 +02:00
f8757b352d
Diag: clear machineEventSet on the begin of DCDiag ...
... not on end.
This is to keep current machineEventSet during normal IDLE process.
2025-06-11 09:58:25 +02:00
4567aed6d1
Introduce DCMachineEvent ...
... this is an DC-Plugin internal data-structure which can be
transformed to an ATBMachineEvent and sent to ISMAS.

DCMachineEvent is in fact a couple ot DeviceController::State and a
QString eventID.

Thi eventID is necessary to send a state-reset to ISMAS. ISMAS needs
same enventID for set- and reset Events.
2025-06-11 09:55:25 +02:00
4df3a83126
Debug diag: print machineEventSet 2025-06-11 09:43:53 +02:00
5c66abfd87
Improve E255 handling:
- start BackgroundTask on first data not valid
 - in any case of E255/data-no-valid: try to restart diag;
   This is because there were only 'returns' without initiating
   something, so that next check/restart carun happened first on next
   wokeup.
2025-05-28 13:57:48 +02:00
efe56672ff
DCDiag: add dbus interface 2025-05-27 12:59:12 +02:00
58c99753a9
PrintTicket: Support FIXED_PRICE Tickets 2.7.2 2025-05-16 08:48:58 +02:00
e703befb2f
Merge branch 'improveTicketPrint' into pu/integration 2.7.1 2025-05-13 13:46:48 +02:00
83bcdcb47e
Print: improve printing receipt:
- call prn_cut() 200ms after prn_switchPower(true)
 - make an "emergency cut" on error
 - improve log output on error
2025-05-13 13:44:12 +02:00
70e6ec293d
Merge branch 'improveDeviceControllerDiag' into pu/integration 2.7.0 2025-05-08 10:12:54 +02:00
3601f2d868
Merge branch 'improveTICKET_VARIANTS' into pu/integration 2025-05-08 10:12:46 +02:00
0876fa229e
Diag: do not send reset errors/warnings ...
... this is a proposal for future.
2025-05-08 10:11:19 +02:00
1c13d92171
New proposal for DeviceControllerDiag:
Manage two sets of errors and compare to previous run.
2025-04-14 08:18:11 +02:00
10b0e494b2
requestPrintTicket: switch to legacy, if no template list is configured 2.6.100 2025-04-08 08:58:29 +02:00
24a1390a11
Interface: add TICKET_VARIANTS for FIXED_PRICE_TICKETS 2.6.99 2025-04-07 14:30:27 +02:00
c8508a0c62
Read config TICKET_TEMPLATES: read list- or string-value 2025-03-25 12:26:18 +01:00
fbfbe3d243
prepareDynTemplateData: setup for all TICKET_VARIANTs 2025-03-12 16:12:44 +01:00
cbc0dd0ad6
Ticket: Use printer templates from config 2025-03-12 15:56:51 +01:00
1abd6bfa90
default templateList is empty 2025-03-12 14:25:33 +01:00
a03dfe87a5
requestPrintTicket: improve debug output: print template list 2025-03-12 14:07:23 +01:00
03b192fb60
Read ticket templates from config:
- config group is [TICKET_TEMPLATES]
 - reads list of printer templates for each TICKET_VARIANT
2025-03-12 13:57:36 +01:00
e8b3bb1aa0
Interface: 1.2.1 (add additional TICKET_VARIANTs) 2025-03-12 13:55:14 +01:00
8fe705f49b
DCState: send EVENT_CLASS::STATE as eventName "Mxxxx" 2.6.0 2024-11-20 15:42:29 +01:00
bf1bdc34bb
Fix: onNewVoltage: Unit is "mV" 2024-11-20 14:04:35 +01:00
73ae01573d
cashInputFinished: set errorCode/-description 2024-10-10 15:20:49 +02:00
bc595e1c7e
Printing: set "productText" to dynTicketData.dynDat5 2024-10-08 16:49:59 +02:00
18104b7271
Start dc_autoRequest() on wokeup 2.5.1 2024-09-25 12:33:52 +02:00
d720c7190f
Merge branch 'PayUpWithChanger' into pu/integration 2.5.0 2024-09-16 15:09:44 +02:00
3fff6a0ebe
PayUp: CashCollect(amount) 2024-09-16 15:09:04 +02:00
bacee366b8
DeviceControllerInterface 1.2.0 2024-09-13 14:54:48 +02:00
acf3e143c1
Fix: debug ouput 2024-08-21 18:15:50 +02:00
c84050091b
Fix: TICKET_ID for FINE_PAYMENT 2.4.2 2024-08-09 14:08:53 +02:00
9be2841187
Init DC structs 2024-08-09 08:06:14 +02:00
3e4db6cfcc
Add test code for printing date-strings 2.4.1 2024-08-08 10:21:55 +02:00
5898be8807
TicketUtils: fix date format string 2024-08-08 10:17:11 +02:00
f20957c14a
Use TicketUtils to format date string on ticket 2024-08-08 10:12:35 +02:00
1bcdb5ba21
Add TicketUtils class for ...
Ticket helper methods e.g. string format helpers.
Currently only on method for getting a date string in short format
according to selected language.
2024-08-08 10:10:27 +02:00
a43af8ab86
Print ticket-number on ticket 2.4.0 2024-08-07 15:29:12 +02:00
d7443974e2
requestPrintTicket() add new product names 2.3.99 2024-07-23 14:36:45 +02:00
346c953175
Print ticket FREE_TICKET 2024-07-23 11:01:13 +02:00
8cf6897a21
FREE_TICKET defaults to templates 24, 25, 26 2024-07-23 11:00:03 +02:00