37 Commits

Author SHA1 Message Date
be84634d62 Update ATBQT.ini SysetemControl.ini for Szeged Test 2023-05-05 10:59:31 +02:00
64937d6fb4 Add tariff-file for zone 4 2023-05-04 10:55:28 +02:00
6acc53275d Update as for branch zg1/zone1 2023-04-25 11:53:41 +02:00
87af143cbd Removed *.ini-Files. 2023-03-31 11:46:54 +02:00
e46c1f272b Add .gitignore 2023-03-31 09:51:38 +02:00
73fbc3d5ad Add handling for binary dc-files 2023-03-30 12:48:33 +02:00
17abc2e768 fixed regex 2023-03-27 16:41:10 +02:00
d4934b1f07 10001 2023-03-27 16:38:07 +02:00
83a5649e37 10000 2023-03-27 16:33:57 +02:00
b2de949187 0000 2023-03-27 16:30:35 +02:00
3e394ee48f add dc file 2023-03-27 16:24:08 +02:00
c38e94d289 recreate repo 2023-03-27 16:10:41 +02:00
65efe0c9a9 recreateing whole repository 2023-03-27 15:57:41 +02:00
8648da0488 test 2022-06-05 14:40:21 +02:00
35115ff21c testing 2022-06-05 14:38:20 +02:00
2a73c1807d test 2022-06-04 21:04:06 +02:00
c43da07747 test 2022-06-04 20:34:46 +02:00
f5693d6473 test 2022-06-04 20:29:33 +02:00
6f1e694e65 testing 2022-06-04 19:45:28 +02:00
b283635670 testing 2022-06-04 19:41:45 +02:00
51dc153f6d testing 2022-06-04 19:40:34 +02:00
a5898b6347 testing 2022-06-04 19:38:55 +02:00
8f98a6f5f4 testing 2022-06-04 19:34:44 +02:00
f40e764439 testing 2022-06-04 19:33:13 +02:00
c47b0fec23 testing 2022-06-04 19:29:43 +02:00
da6c0e5c68 testing 2022-06-04 19:24:38 +02:00
b8eeb7c0b9 testing 2022-06-04 19:22:32 +02:00
dfda3999fb testing 2022-06-04 19:21:02 +02:00
a611b2b698 testing 2022-06-03 22:11:57 +02:00
d90112eafd testing 2022-06-03 22:11:23 +02:00
0266ec873d testing 2022-06-03 21:58:06 +02:00
ae65a8a420 testing 2022-06-03 21:57:29 +02:00
ab2631f88d testing 2022-06-03 21:57:05 +02:00
76f470f947 testing 2022-06-03 21:55:26 +02:00
f328d184a7 testing 2022-06-03 21:54:11 +02:00
a314bf2248 testing 2022-06-03 16:35:59 +02:00
cc86c29eec testing 2022-06-03 16:35:12 +02:00
273 changed files with 6275 additions and 2108 deletions

54
.githooks/post-merge Executable file
View File

@@ -0,0 +1,54 @@
#!/bin/bash -
# FILE="/tmp/post-merge$(date +%FT%H-%M-%S)"
# commit=$(git rev-parse --verify HEAD)
# echo "$commit $(git cat-file commit $commit)" >> /tmp/post-merge
# Redirect output to stderr.
exec 1>&2
if [ -z $IFS ]; then
IFS=$'\n'
fi
GIT_PULL_TMP=/tmp/git_changed_files_for_last_pull
OPKG_CMDS_TMP=/tmp/opkg_commands
rm -f $GIT_PULL_TMP
rm -f $OPKG_CMDS_TMP
get_blob () { # get the blob of the file(name) passed as $1
# note: this can be used for any file in the filesystem
echo $(git hash-object $1)
}
get_commit_for_blob () {
# search for the blob in all commits for the file(name) $1
echo $(git log --all --pretty=format:%H -- $2 |
xargs -I{} bash -c "git ls-tree {} -- $2 |
grep -q $1 && echo -n {} && head -n 1")
}
for fn in $(git diff-tree -r HEAD@{1} HEAD --name-only); do
if grep -E -q "(DC.*json|dc.*hex|dc.*bin|tariff.*json)" <<< $fn; then
# called in repository: $fn is e.g. etc/psa_tariff/tariff01.json
# add '/' prefix
fn=$(echo $fn | awk '{ printf "/"$0 }')
if [[ -f "$fn" ]]; then
blob=$(get_blob "$fn")
commit=$(get_commit_for_blob $blob "$fn")
fsize=$(ls -l "$fn" | awk '{ print $5 }')
echo "$fn $fsize $blob $commit" >> $GIT_PULL_TMP
fi
fi
if grep -E -q ".*opkg_commands" <<< $fn; then
readarray opkg_commands < <(cat $fn)
for opkg_c in "${opkg_commands[@]}"; do
test -z $opkg_c && continue;
test ! -z $(grep -E "^\s*[#]+.*$" <<< $opkg_c) && continue
echo -n "$opkg_c" | tr -d '\n\r' >> $OPKG_CMDS_TMP 2>&1
echo "" >> $OPKG_CMDS_TMP 2>&1
done
source "$fn"
fi
done

16
.gitignore vendored Normal file
View File

@@ -0,0 +1,16 @@
*
## Except
!**/.gitignore
!**/.githooks/post-merge
!/etc/*.ini
!/etc/atb/*.ini
!/etc/psa_config/*
!/etc/psa_update/*
!/etc/psa_tariff/*
!/etc/dc/dc2c.hex
!/opt/app/ATBAPP/*.ini
!/opt/app/sysconfig/*.ini
!/opt/app/ISMASMgr/*.ini

100
etc/atb/ATBAPP.ini Normal file
View File

@@ -0,0 +1,100 @@
[COMMON]
com_port_name=/dev/ttyS1
com_baud_rate=9600
lang1=hu_HU
lang2=en_GB
lang3=de_DE
lang4=sr
lang5=ro_RO
defaultLanguage=1
showInfoButton=false
showHelpButton=false
CharacterSet="ISO 8859-2"
#useLanguage=[128+][64+][32+][16]
useLanguage=248
#usePayment=[128+][64+][32+][16]
usePayment=96
#useVehicle=[128+][64+][32+][16+][8]
useVehicle=240
#useProduct=[128+][64+][32+][16+][8]
useProduct=240
textfile=/opt/app/ATBAPP/text/HMI_Texte.xml
logfile=/var/log/atbqt.log
alternativeLogoFile=
feature_Log=off
feature_TouchFeedback=off
feature_DisplayControl=off
feature_SystemSuspend=off
feature_StartButton=on
feature_selfOOO=off
feature_DBusDisplayControl=on
feature_DBusSuspendControl=on
feature_ShowParkingTime=off
suspend_methode=sysfs
suspend_program=
suspend_time=8
touch_feedback_gpio=121
touch_feedback_on_value=1
touch_feedback_off_value=0
#ooo_mode={useDisk|otherMachine}
ooo_mode=otherMachine
sellTimeout_time=60
showInfoButton=false
showHelpButton=false
useAppStates=1
statefile=/opt/app/ATBAPP/states/APP_States.xml
[SCREENCONFIG]
sc_31="1,1,0"
sc_33="1,0,1"
sc_3F="1,0,0"
sc_40="1,0,1"
sc_41="1,0,1"
sc_35="0,0,0"
sc_51="1,0,1"
sc_52="1,0,0"
sc_53="1,0,0"
[PLUGINS]
CCPlugin=IngenicoISelf_CCPlugin
CalculatePricePlugin=MOBILISIS_CalculatePricePlugin
DeviceControllerPlugin=ATBDeviceControllerPlugin
[IngenicoISelf_CCPlugin]
debug=1
PortName=/dev/ttymxc0
ZVT=DE
sleep=1
sleepExtended=1
Currency=HUF
[TCP_CONTROL]
enable=1
[PAYMENT]
currencySymbol=
cashVariant=CoinsOnly
paymentPointInTime=poa
[MOBILISIS_CalculatePricePlugin]
useDebug=1
[ATBDeviceControllerPlugin]
serialPort=ttymxc2

51
etc/atb/SystemControl.ini Normal file
View File

@@ -0,0 +1,51 @@
[COMMON]
startBacklightController=1
startSuspendController=1
startMonitoringController=0
startMQTTController=0
[BACKLIGHT]
inputBrightness=80
curve=1
dimLowValue=1
SensorMax=3500
SensorMin=0
dimMin=20
dimMax=100
[SUSPEND]
program=/home/root/system_powerdown_wakeup.sh
[MONITORING]
protocol=mqtt
useDeviceId=on
monitoring_heartbeatInterval=60
[MQTT]
mqtt_host=mqtt2.atb-comm.de
mqtt_port=8883
mqtt_username=testuser
mqtt_password=xyz123
mqtt_useSsl=on
mqtt_debug=on
mqtt_QoS=0
mqtt_TopicScheme=ATB_ISMAS
mqtt_TopicDeviceType=MP
mqtt_TopicPrefix=ATB
[NETWORKCHECK]
useNetworkCheck=on
setOOO=off
PingHost=google.com
networkRestart="/sbin/ifup -a"
[AT_TASKS]
size=1
1\id=PTU5UPDATE
1\program="/opt/app/tools/atbupdate/PTUGitInstaller"
1\arguments=-q,--platform,wayland
1\envs=QT_QPA_EGLFS_KMS_ATOMIC=1,QT_QPA_EGLFS_ALWAYS_SET_MODE=1,XDG_RUNTIME_DIR=/var/run/user/0
1\hourOfDay=1

6030
etc/dc/dc2c.hex Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -14,4 +14,3 @@
"discount":0,
"":""
}

View File

@@ -1,5 +1,5 @@
{
"title":"DC2C_pri31",
"version":"27.02.2023 12:20 00001",
"":""
}
"":"iiii"
}

View File

@@ -1,5 +1,6 @@
{
"title":"DC2C_pri32",
"version":"27.02.2023 12:20 00001",
"":""
}
"":"",
"":"10001"
}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,4 @@
{
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -16,5 +16,13 @@
# --force-reinstall install ptu5-atb-apinfo
# --force-reinstall install atbqt
# update
opkg update
opkg --noaction install atbqt
opkg install atbqt
#
list
#
#

View File

@@ -1 +0,0 @@
szeged

View File

@@ -1 +0,0 @@
contained zones in group 1

View File

@@ -1 +0,0 @@
1

View File

@@ -1,110 +0,0 @@
[COMMON]
com_port_name=/dev/ttyS1
com_baud_rate=9600
lang1=de_DE
lang2=en_GB
lang3=fr_FR
lang4=tr_TR
#lang3=fr_FR
#lang4=ja_JP
defaultLanguage=1
#useLanguage=[128+][64+][32+][16]
useLanguage=224
usePayment=192
textfile=/opt/app/ATBQT/text/HMI_Texte.xml
logfile=/var/log/atbqt.log
alternativeLogoFile=/opt/app/ATBQT/logo/logo_betterPark.png
feature_Log=off
feature_TouchFeedback=off
feature_SystemSuspend=off
feature_StartButton=on
feature_selfOOO=off
feature_DBusDisplayControl=on
feature_DBusSuspendControl=off
feature_ShowParkingTime=off
touch_feedback_gpio=121
touch_feedback_on_value=1
touch_feedback_off_value=0
#ooo_mode={useDisk|otherMachine}
ooo_mode=otherMachine
sellTimeout_time=120
LicencePlateExampleString=HOAB123
showInfoButton=false
showHelpButton=false
[PLUGINS]
CalculatePricePlugin=ATB_Soap_CalculatePricePlugin
SimulationPlugin=TouchSimulationPlugin
CCPlugin=TCP_ZVT_CCPlugin
[TCP_ZVT_CCPlugin]
CurrencyCode=EUR
debug=1
IP=192.168.5.242
Port=22000
SSL=0
ZVT=DE
sleep=1
printIntermediateStatus=1
Password=277296
preAuthReservation=2500
[ATB_Soap_CalculatePricePlugin]
#useRFID=yes
#useBarcode=yes
useDebug=true
ignoreSslErrors=true
protocol=https
host=atb-api.nexobility.de
port=443
service=
areaId=1
deviceId=1
Password=12335
UserName=user
useSystemSetting=1
fallbackThreshold=1
connectionTimeout=7
maxOfflineTransactions=1000
[SCREENCONFIG]
sc_31="1,1,0"
sc_33="1,0,1"
sc_3F="1,0,0"
sc_40="1,1,1"
sc_41="1,0,0"
sc_35="0,0,0"
sc_51="1,0,1"
sc_52="1,0,0"
sc_55="1,0,0"
sc_82="1,0,0"
[mmmmmmmmmmmmmmm]
[ERRORCODE_MAPPING]
VOUCHER:PROCESS=0xFA30
VOUCHER:SOAP=0xFA31
VOUCHER:TYPE=FA32
VOUCHER:SERVICE=FA33
VOUCHER:VALIDITY=FA34
120103004=FA35

View File

@@ -1,12 +0,0 @@
{
"xxx" : "yyyy",
"xxx" : "yyyy",
"xxx" : "yyyy",
"xxx" : "yyyy"
}

View File

@@ -1,9 +0,0 @@
{
"wwwww" : "zzzzzz",
"wwwww" : "zzzzzz",
"wwwww" : "zzzzzz"
}

View File

@@ -1,110 +0,0 @@
[COMMON]
com_port_name=/dev/ttyS1
com_baud_rate=9600
lang1=de_DE
lang2=en_GB
lang3=fr_FR
lang4=tr_TR
#lang3=fr_FR
#lang4=ja_JP
defaultLanguage=1
#useLanguage=[128+][64+][32+][16]
useLanguage=224
usePayment=192
textfile=/opt/app/ATBQT/text/HMI_Texte.xml
logfile=/var/log/atbqt.log
alternativeLogoFile=/opt/app/ATBQT/logo/logo_betterPark.png
feature_Log=off
feature_TouchFeedback=off
feature_SystemSuspend=off
feature_StartButton=on
feature_selfOOO=off
feature_DBusDisplayControl=on
feature_DBusSuspendControl=off
feature_ShowParkingTime=off
touch_feedback_gpio=121
touch_feedback_on_value=1
touch_feedback_off_value=0
#ooo_mode={useDisk|otherMachine}
ooo_mode=otherMachine
sellTimeout_time=120
LicencePlateExampleString=HOAB123
showInfoButton=false
showHelpButton=false
[PLUGINS]
CalculatePricePlugin=ATB_Soap_CalculatePricePlugin
SimulationPlugin=TouchSimulationPlugin
CCPlugin=TCP_ZVT_CCPlugin
[TCP_ZVT_CCPlugin]
CurrencyCode=EUR
debug=1
IP=192.168.5.242
Port=22000
SSL=0
ZVT=DE
sleep=1
printIntermediateStatus=1
Password=277296
preAuthReservation=2500
[ATB_Soap_CalculatePricePlugin]
#useRFID=yes
#useBarcode=yes
useDebug=true
ignoreSslErrors=true
protocol=https
host=atb-api.nexobility.de
port=443
service=
areaId=1
deviceId=1
Password=12335
UserName=user
useSystemSetting=1
fallbackThreshold=1
connectionTimeout=7
maxOfflineTransactions=1000
[SCREENCONFIG]
sc_31="1,1,0"
sc_33="1,0,1"
sc_3F="1,0,0"
sc_40="1,1,1"
sc_41="1,0,0"
sc_35="0,0,0"
sc_51="1,0,1"
sc_52="1,0,0"
sc_55="1,0,0"
sc_82="1,0,0"
[mmmmmmmmmmmmmmm]
[ERRORCODE_MAPPING]
VOUCHER:PROCESS=0xFA30
VOUCHER:SOAP=0xFA31
VOUCHER:TYPE=FA32
VOUCHER:SERVICE=FA33
VOUCHER:VALIDITY=FA34
120103004=FA35

View File

@@ -1,7 +0,0 @@
{
"xxx" : "yyyy",
"xxx" : "yyyy",
"xxx" : "yyyy",
"xxx" : "yyyy",
"xxx" : "yyyy"
}

View File

@@ -1,6 +0,0 @@
{
"wwwww" : "zzzzzz",
"wwwww" : "zzzzzz",
"wwwww" : "zzzzzz",
"wwwww" : "zzzzzz"
}

View File

@@ -1,4 +0,0 @@
{
"aaaaaa" : "bbbbb"
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1,20 +0,0 @@
# opkg prefix will be added inside evaluating script
#
# package manipulation commands without package:
# update, upgrade, clean
#
# informational commands without package:
# list, list-installed, list-upgradable
#
# ptu5-atb-apinfo
# ptu5-scripts
# ptu5-atb-apinfo
# atb-plugin-calculateprice-prm
# atb-plugin-cc-tcpzvt
# atbqt
# list-installed
# --force-reinstall install ptu5-atb-apinfo
# --force-reinstall install atbqt
# update
#
list

View File

@@ -1,4 +0,0 @@
{
"aaaaaa" : "bbbbb"
}

View File

@@ -1,110 +0,0 @@
[COMMON]
com_port_name=/dev/ttyS1
com_baud_rate=9600
lang1=de_DE
lang2=en_GB
lang3=fr_FR
lang4=tr_TR
#lang3=fr_FR
#lang4=ja_JP
defaultLanguage=1
#useLanguage=[128+][64+][32+][16]
useLanguage=224
usePayment=192
textfile=/opt/app/ATBQT/text/HMI_Texte.xml
logfile=/var/log/atbqt.log
alternativeLogoFile=/opt/app/ATBQT/logo/logo_betterPark.png
feature_Log=off
feature_TouchFeedback=off
feature_SystemSuspend=off
feature_StartButton=on
feature_selfOOO=off
feature_DBusDisplayControl=on
feature_DBusSuspendControl=off
feature_ShowParkingTime=off
touch_feedback_gpio=121
touch_feedback_on_value=1
touch_feedback_off_value=0
#ooo_mode={useDisk|otherMachine}
ooo_mode=otherMachine
sellTimeout_time=120
LicencePlateExampleString=HOAB123
showInfoButton=false
showHelpButton=false
[PLUGINS]
CalculatePricePlugin=ATB_Soap_CalculatePricePlugin
SimulationPlugin=TouchSimulationPlugin
CCPlugin=TCP_ZVT_CCPlugin
[TCP_ZVT_CCPlugin]
CurrencyCode=EUR
debug=1
IP=192.168.5.242
Port=22000
SSL=0
ZVT=DE
sleep=1
printIntermediateStatus=1
Password=277296
preAuthReservation=2500
[ATB_Soap_CalculatePricePlugin]
#useRFID=yes
#useBarcode=yes
useDebug=true
ignoreSslErrors=true
protocol=https
host=atb-api.nexobility.de
port=443
service=
areaId=1
deviceId=1
Password=12335
UserName=user
useSystemSetting=1
fallbackThreshold=1
connectionTimeout=7
maxOfflineTransactions=1000
[SCREENCONFIG]
sc_31="1,1,0"
sc_33="1,0,1"
sc_3F="1,0,0"
sc_40="1,1,1"
sc_41="1,0,0"
sc_35="0,0,0"
sc_51="1,0,1"
sc_52="1,0,0"
sc_55="1,0,0"
sc_82="1,0,0"
[mmmmmmmmmmmmmmm]
[ERRORCODE_MAPPING]
VOUCHER:PROCESS=0xFA30
VOUCHER:SOAP=0xFA31
VOUCHER:TYPE=FA32
VOUCHER:SERVICE=FA33
VOUCHER:VALIDITY=FA34
120103004=FA35

View File

@@ -1,6 +0,0 @@
{
"" : "",
"" : "",
"" : ""
}

View File

@@ -1,6 +0,0 @@
{
"xxx" : "yyyy",
"xxx" : "yyyy",
"xxx" : "yyyy",
"xxx" : "yyyy"
}

View File

@@ -1,5 +0,0 @@
{
"wwwww" : "zzzzzz",
"wwwww" : "zzzzzz",
"wwwww" : "zzzzzz"
}

View File

@@ -1,4 +0,0 @@
{
"aaaaaa" : "bbbbb"
}

Some files were not shown because too many files have changed in this diff Show More