-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathatclient.cfg.sample
More file actions
118 lines (106 loc) · 4.96 KB
/
atclient.cfg.sample
File metadata and controls
118 lines (106 loc) · 4.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
############################################################################################
# JVM Arguments
############################################################################################
# Some argument may be set via system properties:
# -Dconfig.file=/home/pi/atclient/atclient.cfg
# -> location of the ATClient configuration file
# -Dlog.file=/home/pi/atclient/atclient.log
# -> location of the ATClient log file
# -Dlog4j.configurationFile=/home/pi/atclient/log4j2.xml
# -> location of the Log4j2 configuration file
# -Dserial.port=/dev/ttyACM1
# -> force a specific serial port (optional)
# -DproxySet=true -DproxyHost=my-host -DproxyPort=8080
# -> proxy server configuration (optional)
############################################################################################
# Serial Port Configuration
############################################################################################
# default port name of the PLS8-E LTE wireless terminal (HIT U4)
# required for auto detection
port.name.windows = Gemalto M2M ALSx PLSx LTE USB serial Port
port.name.linux = LTE Modem
# USB port parameters
port.baudrate = 9600
port.databits = 8
port.stopbits = 1
port.parity = 0
# default timeout until AT response received from the terminal
port.communication.timeout = 5000
# send AT test command every x milliseconds of inactivity.
atclient.atcommand.heartbeat = 180000
############################################################################################
# Radio Access Technology
############################################################################################
# Force the mobile terminal to select and register a specific network
# <empty> = Automatic mode, default
# 0 = GSM (2G)
# 2 = UTRAN (3G)
# 7 = E-UTRAN (4G/LTE)
# invalid non-empty values fall back to automatic mode
cops.mode =
############################################################################################
# Watchdog [optional]
############################################################################################
# If enabled, ATClient writes/refreshes a watchdog file.
# Important: ATClient only updates the file; Linux watchdog daemon decides when stale
# file age should trigger recovery action (for example reboot).
# Refer to https://linux.die.net/man/5/watchdog.conf
#
# Operational intent:
# - communication mode checks low-level AT/RX liveness.
# - activity mode checks higher-level Mobile ID/SIM Toolkit activity.
#
# watchdog.mode:
# communication (default): refresh file on incoming AT RX traffic (legacy behavior)
# activity : refresh only on meaningful STK activity events
#
# STK event semantics in this project:
# The modem reports STK via ^SSTR / ^SSTN notifications; ATClient logs these as STKxxx markers.
# 19 = SEND MESSAGE (STK019) <-- strongest recommended production health signal
# 33 = DISPLAY TEXT (STK033) (UI/context marker)
# 35 = GET INPUT (STK035) (UI/context marker)
# 37 = SET UP MENU (STK037) (lifecycle marker)
# 254 = Applet returns to main menu (STK254) (lifecycle marker)
#
# watchdog.activity.events:
# comma-separated STK event allowlist used only in watchdog.mode=activity
# default/fallback is: 19,33,35,37,254
# recommended production focus: 19
#
# watchdog.activity.startup.grace:
# startup grace window in milliseconds (ms) for activity mode.
# During this time, communication RX can still refresh the watchdog file to reduce
# early reboot-loop risk while modem/SIM is still initializing.
# 0 = disabled
#
# Linux watchdog integration hint (separate from ATClient config):
# Recommended production target state uses one productive watchdog file only:
# /var/log/watchdog.atclient
# Legacy paths for older setups (not recommended as parallel production model):
# /home/mid/atclient/watchdog.atclient
# /var/log/watchdog-keywordcheck.atclient
# Example /etc/watchdog.conf:
# file = /var/log/watchdog.atclient
# change = 900 # conservative production starting point (15 minutes, seconds)
#
# Operational commands:
# sudo systemctl status watchdog
# sudo systemctl stop watchdog
# sudo systemctl start watchdog
# stat /var/log/watchdog.atclient
#
# Sample defaults below follow recommended production baseline for activity semantics,
# but watchdog remains disabled by default for safe local/manual usage.
#
watchdog.enable = false
watchdog.file = /var/log/watchdog.atclient
watchdog.mode = activity
watchdog.activity.events = 19
watchdog.activity.startup.grace = 300000
############################################################################################
# Maintenance Mode [optional]
############################################################################################
# If enabled, ATClient will look for the keyword 'MAINTENANCE' in the Mobile ID message
# and execute the maintenance shell script as specified below. See example script.
maintenance.enable = false
maintenance.script.file = /home/mid/atclient/maintenance.sh