summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorChristian Muck <christian.muck@bmw.de>2012-02-08 14:55:54 +0100
committerChristian Muck <christian.muck@bmw.de>2012-02-08 14:55:54 +0100
commit5f0abf66eb361e0a41ddfc8b47b6433da5d2b097 (patch)
tree39625e12ed92d905e8ad23894f182827031dce81 /doc
parent12b47dc73a54e89e0f7ded02faf7d0485b6a31af (diff)
downloadDLT-daemon-5f0abf66eb361e0a41ddfc8b47b6433da5d2b097.tar.gz
[GENDLT-16] Create variable in dlt-system.conf to configure the timeout of the filetransfer fixed.
Diffstat (limited to 'doc')
-rw-r--r--doc/dlt-system.conf.56
-rwxr-xr-xdoc/filetransfer_mainpage.h7
2 files changed, 13 insertions, 0 deletions
diff --git a/doc/dlt-system.conf.5 b/doc/dlt-system.conf.5
index d09a9c1..a3b2476 100644
--- a/doc/dlt-system.conf.5
+++ b/doc/dlt-system.conf.5
@@ -74,6 +74,12 @@ This value defines the amount of time after which a sent file is deleted
and the next file is strated to be transmitted.
.IP
Default: 10
+.TP
+.B FiletransferTimeoutBetweenLogs
+This value defines the amount of time to wait between two file transfer
+logs of a single file.
+.IP
+Default: 10
.SH LOG FILES OPTIONS
.TP
.B LogFileEnable
diff --git a/doc/filetransfer_mainpage.h b/doc/filetransfer_mainpage.h
index 11b1c1e..d1a2f6b 100755
--- a/doc/filetransfer_mainpage.h
+++ b/doc/filetransfer_mainpage.h
@@ -114,6 +114,8 @@ Here is the content of the information package:
#define ERROR_FILE_HEAD -400
//! Error code for dlt_user_log_file_data
#define ERROR_FILE_DATA -500
+//! Error code for dlt_user_log_file_data
+#define DLT_FILETRANSFER_ERROR_FILE_DATA_USER_BUFFER_FAILED -501
//! Error code for dlt_user_log_file_end
#define ERROR_FILE_END -600
//! Error code for dlt_user_log_file_infoAbout
@@ -180,6 +182,10 @@ The method needs the following arguments:
The order of the packages is to send at first the header, then one or more data packages (depends on the filesize) and in the end the end package.
The advantage of this method is, that you must not handle the package ordering by your own.
+Within dlt_user_log_file_complete the free space of the user buffer will be checked. If the free space of the user buffer < 50% then the
+actual package won't be transferred and a timeout will be executed.
+
+If the daemon crashes and the user buffer is full -> the automatic method is in an endless loop.
\subsection Manual Manual
Manual starting filetransfer with the following commands:
@@ -191,6 +197,7 @@ This ordering is very important, so that you can save the transferred files to h
The advantage of using several steps to transfer files by your own is, that you are very flexible to integrate the filetransfer
in your code.
+An other difference to the automatic method is, that only a timeout will be done. There is no check of the user buffer.
\subsection Important Important for integration
You should care about blocking the main program when you intergrate filetransfer in your code.