All UDS services

Request File Transfer

0x38

The Request File Transfer service allows the client to perform file system operations on the server, such as adding, deleting, replacing, reading, or resuming files and directories.

Negative response codes
0x130x220x310x330x70

Request

SID 0x38 · 5 bytes
Len (bits)
Parameter description
Value (hex)
8
Request File Transfer SID
0x38
8
Creates a new file on the server.
0x01
16
filePathAndNameLengthByte length of the filePathAndName field.
0x0000-0xFFFF
n*
8
filePathAndNameUTF-8 encoded path and name of the target file or directory.
0x00-0xFF
4
compressionMethodCompression algorithm applied to the file data.
4
encryptingMethodEncryption algorithm applied to the file data.
8
fileSizeParameterLengthByte length of each file size field (fileSizeUnCompressed and fileSizeCompressed).
0x00-0xFF
m*
8
fileSizeUnCompressedSize in bytes of the uncompressed file.
0x00-0xFF
m*
8
fileSizeCompressedSize in bytes of the compressed file.
0x00-0xFF

n = value of filePathAndNameLength

m = value of fileSizeParameterLength

Positive response

SID 0x78
Len (bits)
Parameter description
Value (hex)
8
Request File Transfer SID
0x78
8
Creates a new file on the server.
0x01
8
lengthFormatIdentifierByte length of the maxNumberOfBlockLength field.
0x00-0xFF
n*
8
maxNumberOfBlockLengthMaximum number of data bytes per TransferData message.
0x00-0xFF
4
compressionMethodCompression algorithm selected by the server.
4
encryptingMethodEncryption algorithm selected by the server.

n = value of lengthFormatIdentifier

m = value of fileSizeOrDirInfoParameterLength