automotive-dlt
dlt-daemon_cfg.h
Go to the documentation of this file.
1 /*
2  * @licence app begin@
3  * SPDX license identifier: MPL-2.0
4  *
5  * Copyright (C) 2011-2015, BMW AG
6  *
7  * This file is part of GENIVI Project DLT - Diagnostic Log and Trace.
8  *
9  * This Source Code Form is subject to the terms of the
10  * Mozilla Public License (MPL), v. 2.0.
11  * If a copy of the MPL was not distributed with this file,
12  * You can obtain one at http://mozilla.org/MPL/2.0/.
13  *
14  * For further information see http://www.genivi.org/.
15  * @licence end@
16  */
17 
27 /*******************************************************************************
28 ** **
29 ** SRC-MODULE: dlt-daemon-cfg.h **
30 ** **
31 ** TARGET : linux **
32 ** **
33 ** PROJECT : DLT **
34 ** **
35 ** AUTHOR : Alexander Wenzel Alexander.AW.Wenzel@bmw.de **
36 ** Markus Klein **
37 ** **
38 ** PURPOSE : **
39 ** **
40 ** REMARKS : **
41 ** **
42 ** PLATFORM DEPENDANT [yes/no]: yes **
43 ** **
44 ** TO BE CHANGED BY USER [yes/no]: no **
45 ** **
46 *******************************************************************************/
47 
48 /*******************************************************************************
49 ** Author Identity **
50 ********************************************************************************
51 ** **
52 ** Initials Name Company **
53 ** -------- ------------------------- ---------------------------------- **
54 ** aw Alexander Wenzel BMW **
55 ** mk Markus Klein Fraunhofer ESK **
56 *******************************************************************************/
57 
58 /*******************************************************************************
59 ** Author Identity **
60 ********************************************************************************
61 ** **
62 ** Initials Name Company **
63 ** -------- ------------------------- ---------------------------------- **
64 ** aw Alexander Wenzel BMW **
65 ** mk Markus Klein Fraunhofer ESK **
66 *******************************************************************************/
67 
68 #ifndef DLT_DAEMON_CFG_H
69 #define DLT_DAEMON_CFG_H
70 
71 /*************/
72 /* Changable */
73 /*************/
74 
75 /* Stack size of timing packet thread */
76 #define DLT_DAEMON_TIMINGPACKET_THREAD_STACKSIZE 100000
77 
78 /* Stack size of ecu version thread */
79 #define DLT_DAEMON_ECU_VERSION_THREAD_STACKSIZE 100000
80 
81 /* Size of receive buffer for fifo connection (from user application) */
82 #define DLT_DAEMON_RCVBUFSIZE 10024
83 /* Size of receive buffer for socket connection (from dlt client) */
84 #define DLT_DAEMON_RCVBUFSIZESOCK 10024
85 /* Size of receive buffer for serial connection (from dlt client) */
86 #define DLT_DAEMON_RCVBUFSIZESERIAL 10024
87 
88 /* Size of buffer for text output */
89 #define DLT_DAEMON_TEXTSIZE 10024
90 
91 /* Size of buffer */
92 #define DLT_DAEMON_TEXTBUFSIZE 512
93 
94 /* Maximum length of a description */
95 #define DLT_DAEMON_DESCSIZE 256
96 
97 /* Name of daemon lock file, contain process id of dlt daemon instance */
98 #define DLT_DAEMON_LOCK_FILE "dltd.lock"
99 
100 /* Umask of daemon, creates files with permission 750 */
101 #define DLT_DAEMON_UMASK 027
102 /* Permissions of daemon lock file */
103 #define DLT_DAEMON_LOCK_FILE_PERM 0640
104 
105 /* Default ECU ID, used in storage header and transmitted to client*/
106 #define DLT_DAEMON_ECU_ID "ECU1"
107 
108 /* Default baudrate for serial interface */
109 #define DLT_DAEMON_SERIAL_DEFAULT_BAUDRATE 115200
110 
111 /************************/
112 /* Don't change please! */
113 /************************/
114 
115 #endif /* DLT_DAEMON_CFG_H */
116