add json files for linsinger

This commit is contained in:
Gerhard Hoffmann 2024-02-28 13:38:18 +01:00
parent 4bdf53148a
commit 6d0a6ea7a3
18 changed files with 685 additions and 0 deletions

17
etc/psa_config/DC2C_cash.json Executable file
View File

@ -0,0 +1,17 @@
{
"title":"DC2C_cash ",
"project":"NVT Linsinger",
"issued":"18.10.2023 15:00",
"CoinDenom(15..0)":[200,100,50,0,0,0,0,0,0,255,200,100,50,20,10,5],
"CoinValue(15..0)":[0,380,0,0,0,0,0,0,0,3,200,100,50,20,10,5],
"CoinAccept(15..0)":[0,0,0,0,0,0,0,0,0,0,1,1,1,1,1,0],
"ExchangeRate":1,
"TokenChannel":6,
"BillValues(15..0)":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
"BillAccept(15..0)":[0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1],
"LocalTaxRate":19,
"ForeignTaxRate":0,
"Surcharge":0,
"Discount":0
}

12
etc/psa_config/DC2C_conf.json Executable file
View File

@ -0,0 +1,12 @@
{
"title":"DC2C_config",
"project":"NVT Linsinger",
"issued":"18.10.2023 15:00",
"custNum":741,
"machNum":1,
"borough":1,
"zone":1,
"alias":0,
"location":"Kantine"
}

27
etc/psa_config/DC2C_device.json Executable file
View File

@ -0,0 +1,27 @@
{
"title":"DC2C_device",
"project":"NVT Linsinger",
"issued":"18.10.2023 15:00",
"printer":1,
"coinChk":3,
"mifRd":1,
"solarPwr":0,
"modem":0,
"creditCard":1,
"escrow":0,
"RejMotor":0,
"shutter":1,
"billRd":1,
"vaultLock":0,
"autoAlarm":1,
"autoOpen":1,
"AccPrint":1,
"DorPrint":1,
"TokPrint":1,
"CBwarnLev":1600,
"CBerrLev":1900,
"BattWarn":11800,
"BattErr":11200,
"foreign":1,
"refPrint":1
}

175
etc/psa_config/DC2C_print.txt Executable file
View File

@ -0,0 +1,175 @@
Template for Ticket to be printed
Max Length 500bytes
Can be concatenated unless they contain a cut
important for the document-numer 1...99 is the :
"title":"DC2C_pri02", <---- not the file name
Never finish file with a TEXT-Line (set a "nl" after it)!!!
-> TEXT without nl at the end will not be printed
but with next doc nonsens will be printed [0:0...]
Following keys are used:
text // drucke Text direkt
styl // wie soll der Text aussehen
feed // Papier bewegen
vari // Werte aus Speicher drucken
graf // drucke Log, QRcode oder Barcode, rufe Funktionen und stelle Werte bereit
Following value pairs are allowed:
// print a direct textline, max 64bytes, always without "NewLine"
"text":"Parking Ticket",
// select text style bold on/off, underlined on/off or italic on/off
// once switched on it's active until next off or end of document
// not used for appended docs
"styl":"bold on",
"styl":"under off",
"styl":"latin on",
"styl":"font 12", // select Font-type for the following print,
/ range: 1...99
"styl":"size 01", // select Font size for the following print
// range: 1...99, depends on font-type, selects hight and width
// 10th:height 1th=width
"styl":"align c" // 'l' 'c' 'r' // left center right
"styl":"density25"; // 0....[25]...50 0=blass
// move or cut paper:
"feed":"cut",
"feed":"part",
"feed":"eject", // 5 line forward and cut
"feed":"line3", // 3 line forward (1..9)
"feed":"back1", // 1 line back (1..9)
"feed":"BM", // Blackmark
"feed":"nl", // NewLine LF & CR (1..9)
"feed":"margin05", // left border in mm
"feed":"rim05", // right border in mm
"feed":"speed10", // printer speed *10mm/s
// print predefined grafical components like logos, barcodes or QR-Codes
"graf":"barc8", // kind and content is fixed programmed, 1..9
"graf":"logo2", // programmed in printer, 1...9
"graf":"q.r.1", // content is fixed programmed 1..9
// print machine parameters
"vari":"cunu",
"vari":"manu",
"vari":"location",
"vari":"group",
"vari":"zone",
"vari":"alias",
// print current date or time
// ge=german style 15:45 / 31.12.23
// us=us format 3:45PM / 23/12/31
// time long: 14:45:58
// time short: 14:45
// dow short: Mo
// dow long: Monday
"vari":"date ge",
"vari":"date us",
"vari":"time long",
"vari":"wday eng short",
//"wday eng long" "wday deu short" "wday deu long"
#print dynamic values, come per cmd 17 from Master right before printing
#command contains 8 strings (1..8) with 8bytes each
#will be printed as they are
"vari","Dynamic02";
// following varis not yet installed:
// Values from current transaction, to come dynamic from master
"vari":"Amount_bru", // = inserted
"vari":"Amount_net", // = netto
"vari":"percent", // tax rate in percent
"vari":"perc_am", // amount of tax
"vari":"PE dow__short", short/long
"vari":"PE date us", ge/us
"vari":"PE time long", short/long
"vari":"TickCtr" // print consecutive ticket counter
"vari":"overpaid",
"vari":"LicPl", // License Plate
Example:
"styl":"size 1",
"feed":"NL"
"text":"parking until:",
"styl":"size 3",
"feed":"NL"
"vari":"parkend date",
"feed":"NL"
"vari":"parkend time",
"styl":"size 1",
"text":"printed at ",
"vari":"current date",
"feed":"NL"
"vari":"current time",
"feed":"NL"
"text":"payed amount: ",
"vari":"amount",
"feed":"NL"
"text":"--------------",
"feed":"NL"
Umsetzung im Programm bzw Speicherung im Eeprom:
Text: einfach rein, alles andere als ESC-Sequenz mit acht bytes (fünf + reserve) speichern
STYL: ruft eine Druckerfunktion auf
<27><s><b><48><32><32><32><32> (Escape, s für style, b für bold (oder u,l,f,s)
und asc-zahl, hier bold off
<27><s><f><48><50><32><32><32> Font 2
FEED: ruft eine Druckerfunktion auf
<27><f><c><32><32><32><32><32> f für feed, und c für cut (oder p,e,l,b,B,n)
VARI: sucht entspr. Daten, formt sie im string und schickt sie als Text zum Drucker
<27><v><0x35><0x38><32><32><32><32> v für Vari dann zwei Ziffern
Variablen werden durchnummeriert von 10..99
Länge: Json Datei max 500byte, dh. sie enthält max400byte text
Jeder Textspeicher hat 512 Byte, aber Esc-Sequ braucht 8 byte!
Wenn also viele Varis drin sind wirds knapp, aber dann ist die Json ja auch zur Hälfte mit keys gefüllt.
Also besser 1k pro Doc vorsehen, Rest immer mit bin-0 gefüllt --->32kB gesamt
Dann bleiben noch 32 kB übrig:
Abr.-Datensatz je256byte, also Platz für 128DS
Noch 64kB Reserve, evtl von Master zu verwenden
(alle settings liegen im int. eeprom)

36
etc/psa_config/DC2C_print1.json Executable file
View File

@ -0,0 +1,36 @@
{
"title":"DC2C_pri01",
"project":"NVT Linsinger",
"issued":"18.10.2023 15:00",
"styl":"font 08",
"feed":"rim02",
"feed":"margin20",
"styl":"size 00",
"styl":"align l",
"graf":"logo1",
"feed":"margin02",
"styl":"size 10",
"styl":"align c",
"styl":"bold on",
"text":"ESSENSMARKE",
"styl":"bold off",
"styl":"size 00",
"feed":"nl",
"text":"€ 3,00 (Wert € 6,00)",
"feed":"nl",
"text":"Mitarbeiter Nr. ",
"vari":"Dynamic01",
"feed":"nl",
"text":"Lauf. Nr. ",
"vari":"Dynamic02",
"feed":"nl",
"vari":"date ge",
"feed":"nl",
"feed":"nl",
"feed":"nl",
"feed":"nl",
"feed":"part"
}

View File

@ -0,0 +1,31 @@
{
"title":"DC2C_pri01",
"project":"NVT Linsinger",
"issued":"18.10.2023 15:00",
"styl":"font 08",
"feed":"margin20",
"feed":"rim02",
"styl":"size 00",
"graf":"logo1",
"feed":"margin02",
"styl":"size 10",
"styl":"align c",
"styl":"bold on",
"text":"ESSENSMARKE",
"styl":"bold off",
"styl":"size 00",
"feed":"nl",
"text":"€ 3,00 (Wert € 6,00)",
"feed":"nl",
"text":"Mitarbeiter Nr. ",
"vari":"Dynamic01",
"feed":"nl",
"text":"Lauf. Nr. ",
"vari":"Dynamic02",
"feed":"nl",
"vari":"date ge",
"feed":"nl",
"feed":"eject"
}

36
etc/psa_config/DC2C_print2.json Executable file
View File

@ -0,0 +1,36 @@
{
"title":"DC2C_pri02",
"project":"NVT Linsinger",
"issued":"18.10.2023 15:00",
"styl":"font 08",
"feed":"rim02",
"feed":"margin20",
"styl":"size 00",
"styl":"align l",
"graf":"logo1",
"feed":"margin02",
"styl":"size 10",
"styl":"align c",
"styl":"bold on",
"text":"ESSENSMARKE",
"styl":"bold off",
"styl":"size 00",
"feed":"nl",
"text":"€ 3,00 (Wert € 6,00)",
"feed":"nl",
"text":"Mitarbeiter Nr. ",
"vari":"Dynamic01",
"feed":"nl",
"text":"Lauf. Nr. ",
"vari":"Dynamic03",
"feed":"nl",
"vari":"date ge",
"feed":"nl",
"feed":"nl",
"feed":"nl",
"feed":"nl",
"feed":"part"
}

View File

@ -0,0 +1,28 @@
{
"title":"DC2C_pri29",
"project":"NVT Linsinger",
"issued":"18.10.2023 15:00",
"styl":"font 08",
"feed":"margin20",
"feed":"rim02",
"styl":"size 00",
"graf":"logo1",
"feed":"margin02",
"styl":"size 10",
"styl":"align c",
"styl":"bold on",
"text":"ESSENSMARKE",
"styl":"bold off",
"styl":"size 00",
"feed":"nl",
"text":"€ 3,00 (Wert € 6,00)",
"feed":"nl",
"text":"Mitarbeiter Nr. 2345",
"feed":"nl",
"text":"Lauf. Nr. 12345/23 ",
"vari":"date ge",
"feed":"nl",
"feed":"eject"
}

View File

@ -0,0 +1,28 @@
{
"title":"DC2C_pri29",
"project":"NVT Linsinger",
"issued":"18.10.2023 15:00",
"styl":"font 08",
"feed":"margin20",
"feed":"rim02",
"styl":"size 00",
"graf":"logo1",
"feed":"margin02",
"styl":"size 10",
"styl":"align c",
"styl":"bold on",
"text":"ESSENSMARKE",
"styl":"bold off",
"styl":"size 00",
"feed":"nl",
"text":"€ 3,00 (Wert € 6,00)",
"feed":"nl",
"text":"Mitarbeiter Nr. 2345",
"feed":"nl",
"text":"Lauf. Nr. 12345/23 ",
"vari":"date ge",
"feed":"nl",
"feed":"eject"
}

36
etc/psa_config/DC2C_print3.json Executable file
View File

@ -0,0 +1,36 @@
{
"title":"DC2C_pri03",
"project":"NVT Linsinger",
"issued":"18.10.2023 15:00",
"styl":"font 08",
"feed":"rim02",
"feed":"margin20",
"styl":"size 00",
"styl":"align l",
"graf":"logo1",
"feed":"margin02",
"styl":"size 10",
"styl":"align c",
"styl":"bold on",
"text":"ESSENSMARKE",
"styl":"bold off",
"styl":"size 00",
"feed":"nl",
"text":"€ 3,00 (Wert € 6,00)",
"feed":"nl",
"text":"Mitarbeiter Nr. ",
"vari":"Dynamic01",
"feed":"nl",
"text":"Lauf. Nr. ",
"vari":"Dynamic04",
"feed":"nl",
"vari":"date ge",
"feed":"nl",
"feed":"nl",
"feed":"nl",
"feed":"nl",
"feed":"cut"
}

View File

@ -0,0 +1,21 @@
{
"title":"DC2C_pri31",
"project":"door close print",
"Version":"15.11.2023 00001",
"styl":"font 08",
"styl":"size 10",
"feed":"margin02",
"feed":"rim02",
"feed":"speed10",
"styl":"size 11",
"feed":"nl",
"text":"Türöffnung um:",
"feed":"nl",
"styl":"size 00",
"vari":"date ge",
"vari":"time long",
"feed":"nl",
"feed":"eject"
}

View File

@ -0,0 +1,25 @@
{
"title":"DC2C_pri31",
"project":"NVT Linsinger",
"issued":"18.10.2023 15:00",
"styl":"font 08",
"styl":"size 10",
"feed":"margin02",
"feed":"rim02",
"styl":"size 00",
"graf":"logo1",
"styl":"size 10",
"text":"ESSENSMARKE",
"styl":"size 00",
"feed":"nl",
"text":"€ 3,00 (Wert € 6,00)",
"feed":"nl",
"text":"Mitarbeiter Nr. 2345",
"feed":"nl",
"text":"Lauf. Nr. 12345/23 ",
"vari":"date ge",
"feed":"nl",
"feed":"nl",
"feed":"eject"
}

View File

@ -0,0 +1,42 @@
{
"title":"DC2C_pri32",
"project":"refund reciept",
"Version":"15.11.2023 00001",
"styl":"font 08",
"styl":"size 10",
"feed":"margin02",
"feed":"rim02",
"feed":"speed10",
"styl":"size 11",
"text":"Ersatzbeleg",
"feed":"nl",
"styl":"size 00",
"text":"Erstattungsbetrag: ",
"feed":"nl",
"vari":"Dynamic07",
"text":"€",
"feed":"nl",
"text":"KuNu: ",
"vari":"cunu",
"text":"MaNu: ",
"vari":"manu",
"text":"Ort: ",
"vari":"location",
"text":"Gruppe: ",
"vari":"group",
"text":"Zone: ",
"vari":"zone",
"text":"Name: ",
"vari":"alias",
"text":"Am: ",
"vari":"date us",
"text":"Um: ",
"vari":"time long",
"feed":"nl",
"text":" * * * * * * * * ",
"feed":"nl",
"feed":"nl",
"feed":"eject"
}

View File

@ -0,0 +1,7 @@
{
"title":"DC2C_pri04",
"project":"NVT Linsinger",
"issued":"18.10.2023 15:00",
"text":""
}

44
etc/psa_config/DC2C_print5.json Executable file
View File

@ -0,0 +1,44 @@
{
"title":"DC2C_pri05",
"project":"NVT Linsinger",
"issued":"18.10.2023 15:00",
"styl":"font 08",
"feed":"rim02",
"feed":"margin20",
"styl":"size 00",
"styl":"align l",
"graf":"logo1",
"feed":"margin02",
"styl":"size 10",
"styl":"align c",
"styl":"bold on",
"text":"ESSENSMARKE",
"styl":"bold off",
"styl":"size 00",
"feed":"nl",
"text":"€ 3,00 (Wert € 6,00)",
"feed":"nl",
"text":"Mitarbeiter Nr. ",
"vari":"Dynamic01",
"feed":"nl",
"text":"Lauf. Nr. ",
"vari":"Dynamic02",
"feed":"nl",
"vari":"date ge",
"feed":"nl",
"feed":"nl",
"feed":"nl",
"feed":"nl",
"feed":"part"
"styl":"font 08",
"feed":"rim02",
"feed":"margin20",
"styl":"size 00",
"styl":"align l",
"graf":"logo1",
"feed":"margin02",
"styl":"size 10",
"styl":"align c",
"styl":"bold on"
}

43
etc/psa_config/DC2C_print6.json Executable file
View File

@ -0,0 +1,43 @@
{
"title":"DC2C_pri046",
"project":"NVT Linsinger",
"issued":"18.10.2023 15:00",
"text":"ESSENSMARKE",
"styl":"bold off",
"styl":"size 00",
"feed":"nl",
"text":"€ 3,00 (Wert € 6,00)",
"feed":"nl",
"text":"Mitarbeiter Nr. ",
"vari":"Dynamic01",
"feed":"nl",
"text":"Lauf. Nr. ",
"vari":"Dynamic03",
"feed":"nl",
"vari":"date ge",
"feed":"nl",
"feed":"nl",
"feed":"nl",
"feed":"nl",
"feed":"part",
"styl":"font 08",
"feed":"rim02",
"feed":"margin20",
"styl":"size 00",
"styl":"align l",
"graf":"logo1",
"feed":"margin02",
"styl":"size 10",
"styl":"align c",
"styl":"bold on",
"text":"ESSENSMARKE",
"styl":"bold off",
"styl":"size 00",
"feed":"nl",
"text":"€ 3,00 (Wert € 6,00)",
"feed":"nl",
"text":"Mitarbeiter Nr. ",
"vari":"Dynamic01",
"feed":"nl"
}

43
etc/psa_config/DC2C_print7.json Executable file
View File

@ -0,0 +1,43 @@
{
"title":"DC2C_pri07",
"project":"NVT Linsinger",
"issued":"18.10.2023 15:00",
"text":"Lauf. Nr. ",
"vari":"Dynamic04",
"feed":"nl",
"vari":"date ge",
"feed":"nl",
"feed":"nl",
"feed":"nl",
"feed":"nl",
"feed":"part",
"styl":"font 08",
"feed":"rim02",
"feed":"margin20",
"styl":"size 00",
"styl":"align l",
"graf":"logo1",
"feed":"margin02",
"styl":"size 10",
"styl":"align c",
"styl":"bold on",
"text":"ESSENSMARKE",
"styl":"bold off",
"styl":"size 00",
"feed":"nl",
"text":"€ 3,00 (Wert € 6,00)",
"feed":"nl",
"text":"Mitarbeiter Nr. ",
"vari":"Dynamic01",
"feed":"nl",
"text":"Lauf. Nr. ",
"vari":"Dynamic05",
"feed":"nl",
"vari":"date ge",
"feed":"nl",
"feed":"nl",
"feed":"nl",
"feed":"nl",
"feed":"part"
}

34
etc/psa_config/DC2C_print8.json Executable file
View File

@ -0,0 +1,34 @@
{
"title":"DC2C_pri08",
"project":"NVT Linsinger",
"issued":"18.10.2023 15:00",
"styl":"font 08",
"feed":"rim02",
"feed":"margin20",
"styl":"size 00",
"styl":"align l",
"graf":"logo1",
"feed":"margin02",
"styl":"size 10",
"styl":"align c",
"styl":"bold on",
"text":"ESSENSMARKE",
"styl":"bold off",
"styl":"size 00",
"feed":"nl",
"text":"€ 3,00 (Wert € 6,00)",
"feed":"nl",
"text":"Mitarbeiter Nr. ",
"vari":"Dynamic01",
"feed":"nl",
"text":"Lauf. Nr. ",
"vari":"Dynamic06",
"feed":"nl",
"vari":"date ge",
"feed":"nl",
"feed":"nl",
"feed":"nl",
"feed":"nl",
"feed":"cut"
}