DL-V3 Commands
Chapter 2
DL-V3 Firmware Reference Manual Rev 2
71
Syntax
writefile
filename
length
data
Message ID = 204
2.44 WRITEFILEHEX
Create/Append Data to CF Card
The
writefilehex
command allows you to create files on the CF card or append data to an existing file
on the CF card in Hexbyte format.
The
writefilehex
command writes
data
to a file named
filename
on the CF card. If a file named
filename
does not exist, the file is created. If a file named
filename
already exists, data is appended to
the end of the file. Only simple filenames (maximum 8 characters and an optional 3-character
extension) are supported.
data
is up to 1024 joined hexadecimal pairs if the
writefilehex
command is
issued in ASCII, and is 1024 bytes in a binary
writefilehex
message.
length
specifies the number of bytes supplied as
data
.
Syntax
writefilehex
filename
length
data
Message ID = 240
Field
Data
Bytes
Format
Units
Offset
1
Header
-
-
0
2
Filename
12
Char[]
H
3
Length
4
Ulong
Bytes
H+12
4
Data
Max. 1024
Char[]
H+16
Field
Data
Bytes
Format
Units
Offset
1
Header
-
-
0
2
Filename
12
Char[]
H
3
Length
4
Ulong
Bytes
H+12
4
Data
Max. 1024
Hexbyte
H+16