310 Commits

Author SHA1 Message Date
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
69eb87e358
DeviceController Interface 1.1.6 (Ticket Variant FREE_TICKET) 2024-07-23 10:58:56 +02:00
8eab11479c
Merge branch 'pu/klaipeda' into pu/integration 2.3.0 2024-07-15 15:30:54 +02:00
ac93e9e631
Send W255 on restart CArun 2.2.9 2024-07-15 11:09:37 +02:00
c1dd20ec4f
Restart carun on consecutive E255 2024-07-15 11:09:28 +02:00
2d60a7bd5c
Send W255 on restart CArun 2024-07-15 10:08:56 +02:00
6d7d9ade70
Restart carun on consecutive E255 2024-07-15 10:03:41 +02:00
72dbc8b858
Print receipt: encode QString 2024-06-27 11:55:35 +02:00
32d70abf44
Proposal for usage of TICKET_VARIANT::FINE_PAYMENT 2024-06-27 11:48:16 +02:00
c076090e03
DeviceController Interface 1.1.5 (Ticket Variant FINE_PAYMENT) 2024-06-27 11:46:40 +02:00
6c2717c56b
Diag: check doors in sub_componentAssessment ...
... this prevents sending Operate "O000" in case of an opend door and
enables sending Operate "O000" after closing all doors because
'lastResult' has not changed.
2.2.8
2024-06-11 09:27:07 +02:00