-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAppSettings.py
129 lines (123 loc) · 5.35 KB
/
AppSettings.py
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
119
120
121
122
123
124
125
126
127
128
129
############################################################################
#
# Python Onboard Diagnostics II Advanced
#
# AppSettings.py
#
# Copyright 2021-2023 Keven L. Ates ([email protected])
#
# This file is part of the Onboard Diagnostics II Advanced (pyOBDA) system.
#
# pyOBDA is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# pyOBDA is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with pyOBDA; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
############################################################################
VERSION = "1.5.2"
ID_ABOUT = 101
ID_EXIT = 110
ID_CONFIG = 500
ID_CLEAR = 501
ID_GETC = 502
ID_RESET = 503
ID_LOOK = 504
ALL_ON = 505
ALL_OFF = 506
ID_DISCONNECT = 507
ID_HELP_ABOUT = 508
ID_HELP_VISIT = 509
ID_HELP_ORDER = 510
CHAR_CHECK = u'\u2713'
CHAR_BALLOTX = u'\u2717'
CHAR_CROSSX = u'\u274C'
CHAR_QMARK = u'\u003F'
# Debug Setting for wx Trace Page
# Debug events are sent to the Trace Page for display.
# The DEBUG_LEVEL controls what Debug Events will be sent to the Trace Page:
# 0 = No Debug Events (least verbose)
# to
# 5 = All Debug Events (most verbose)
DEBUG_LEVEL = 5 # ...default - debug everthing, changed by config
STR_HELP_TEXT = \
"Onboard Diagnostics II Advanced: pyOBDA Version " + VERSION + "\n" + \
" (C) 2021-2023 Keven L. Ates ([email protected])\n" + \
"\n" + \
"Diagnostic Trouble Codes: Get DTC / Clear DTC\n" +\
"=============================================\n" + \
"While each vehicle type varies for OBD II operations, best practices suggest\n" + \
"that a vehicle should be ON, but NOT running, when examining and clearing codes.\n" + \
"\n" + \
"System Tests and Sensor Reports: A, B, and C\n" + \
"=============================================\n" + \
"If sensor reports are desired, ensure the vehicle is runnning to obtain real\n" + \
"time results.\n" + \
"\n" + \
"Configuration Items:\n" + \
"=============================================\n" + \
"The OBD II configuration items are:\n" + \
" PORT - a computer port connecting the ELM device\n" + \
" BAUD - the Baud Rate used to communicate using the port\n" + \
" PROTOCOL - an ELM protocol used to communicate with the vehicle\n" + \
" FAST - support the ELM fast command response\n" + \
" CHECKVOLTS - validate the ELM connection voltage\n" + \
" TIMEOUT - the (fractional) seconds to wait for the connection response\n" + \
" RECONNECTS - the number of times to try a connection before giving up\n" + \
" DELAY - the (fractional) seconds to wait between page updates for sensors (1.0 sec min)\n" + \
"Debug configuration items are:\n" + \
" LEVEL - a debugging verbosity level from 0 (None) to 5 (most verbose)\n" + \
"\n" + \
"To setup a configuration for pyOBDA:\n" + \
" Linux: create a config file in the pyOBDA configuration directory\n" + \
" ~/.config/pyobda/config\n" + \
" Mac: same as Linux\n" + \
" Windows: create a pyobda.ini file in the pyOBDA program directory\n" + \
" <path_to_app>\\pyobda\\pyobda.ini\n" + \
"\n" + \
"In the config file, place similar following text with your settings:\n" + \
"---------------------------------------------\n" + \
"[OBD]\n" + \
"PORT=/dev/ttyUSB0\n" + \
"BAUD=115200\n" + \
"PROTOCOL=6\n" + \
"FAST=True\n" + \
"CHECKVOLTS=True\n" + \
"TIMEOUT=2.0\n" + \
"RECONNECTS=5\n" + \
"DELAY=1.0\n" + \
"[DEBUG]\n" + \
"LEVEL=1\n" + \
"---------------------------------------------\n" + \
"\n" + \
"\n" + \
"Based on PyOBD and python-obd\n" + \
" PyOBD:\n" + \
" (C) 2008-2009 SeCons Ltd. (www.obdtester.com)\n" + \
" (C) 2004 Charles Donour Sizemore ([email protected])\n" + \
" (C) 2021 Jure Poljsak (https://github.com/barracuda-fsh/pyobd)\n" + \
" python-obd:\n" + \
" (C) 2004 Donour Sizemore ([email protected])\n" + \
" (C) 2009 Secons Ltd. (www.obdtester.com)\n" + \
" (C) 2009 Peter J. Creath\n" + \
" (C) 2016 Brendan Whitfield (brendan-w.com)\n" + \
"\n" + \
"pyOBDA is free software! You can redistribute it and/or modify it under the terms of " + \
"the GNU General Public License as published by the Free Software Foundation using " + \
"either version 2 of the License, or (at your option) any later version.\n" + \
"\n" + \
"pyOBDA is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY--" + \
"without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. " + \
"See the GNU General Public License for more details. You should have received a copy " + \
"of the GNU General Public License along with PyOBD. If not, write to the\n" + \
" Free Software Foundation, Inc.\n" + \
" 59 Temple Place\n" + \
" Suite 330\n" + \
" Boston, MA 02111-1307 USA"