70
DL-V3 Firmware Reference Manual Rev 2
Chapter 2
DL-V3 Commands
2.42 WRITE
Create User Data Logs
The
write
command/log allows you to create logs which contain user data.
The
write
command allows you to supply user data for the
write
log. Upon receipt of the
write
command, the receiver generates a
write
log to all destinations which have been configured to send
write
logs with a
log write onnew
command.
All of the supplied arguments are echoed in the generated
write
log.
If written to a logfile, the
previous
argument is overwritten to indicate the file offset (from the
beginning of the file) of the previous
writeb
or
writehexb
log. The first record in a logfile has this field
set to 0.
length
specifies the number of bytes supplied as
data
.
data
is up to 1024 bytes, and is ASCII data if the
write
command is issued in ASCII but can be binary
in a binary
write
message.
Syntax
write
previous type length
data
Message ID = 257
2.43 WRITEFILE
Create/Append Files on CF Card
The
writefile
command allows you to create files on the CF card or append data to an existing file on
the CF card.
The
writefile
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 bytes, and is ASCII data if the
writefile
command is issued in ASCII but
can be binary in a binary
writefile
message.
length
specifies the number of bytes supplied as
data
.
Field
Data
Bytes
Format
Units
Offset
1
Header
-
-
0
2
Previous
4
Ulong
Bytes
H
3
Type
4
Ulong
H+4
4
Length
4
Ulong
Bytes
H+8
5
Data
Max. 1024
Char[]
H+16