[DC2+DE] File Download [SX]

CL4-SXR CL6-SXR

HEX code

DC2 <12>16
DE

<44>16<45>16

Parameter

,aa,b,c・・・c,d・・・d,e・・・e

Default Value

None

Command Valid Range and Period [CL4-SXR/CL6-SXR]

When turning off the power switch The file is maintained.
Valid range -
Printing in Progress Commands are not accepted while printing is in progress. ([NAK] return)
Error The command can be received even if an error is occurring.
When the settings screen is displayed The command can be received when the settings screen is displayed.
Unauthentication Commands cannot be received even if authentication is not in progress using the [DC2+PS] command. ([NAK] return)

Function

This command is used to download the specified file.

Format

[DC2]DE,aa,b,c・・・c,d・・・d,e・・・e

Parameter: CL4-SXR/CL6-SXR

Symbol Parameter name Valid range Acquisition method
a Language

SB: SBPL settings

SZ: SZPL settings

SI: SIPL settings

SD: SDPL settings

CA: common settings (when specifying other than font logo and TrueType fonts)

Two characters fixed acquisition
b File type 0: Font/logo
1: True Type font

2: Wireless LAN Certificate (Wi-Fi Root CA)

3: Wireless LAN Certificate (Wi-Fi Client Certificate)

4: Wireless LAN Certificate (Wi-Fi Private Key)

5: Wireless LAN Certificate (Wi-Fi EAP_FAST PAC_file)

6: HTTPS Certificate

One character fixed acquisition
c

File name

Data consisting of up to 255 characters from the following character set

  • Alphabet
  • Numeral
  • Hyphen ("-")
  • Underscore ("_")
  • Period (".")
  • Slash ("/")
Acquired up to the file name size
d File size 0 to 999999999 (byte) Acquired up to ","
e File data - According to the file size

Return data format (normal)

[ACK]<06>16

Return data format (when a command error occurs)

[NAK]<15>16

Return data format (when the same file name error occurs)

1<31>16

Exception processing

Parameter name Exception condition:
A value outside the range is specified
Exception condition:
The specified size and received size are different
Exception condition:
When the same file name
Identifier Command error Command error -
File type Command error Command error -
File name Command error - Same file name error
File size Command error - -
File data - Invalid receive data -

Terminology Description
Command error Downloading not performed. The data received after a command error is determined is not considered as a parameter of this command.
Same file name error The file is not saved.
Invalid receive data The data exceeding the file size is ignored.

Supplemental explanation

  1. Send this command when printing has stopped. The content of the response data is not guaranteed even when this command is received during printing.
  2. When you specify SZPL for "Parameter a: Identifier ", "0: Font/logo", "1: TrueType font" settings of "Parameter b: File type" will be ignored.




Supplementary Notes (CL4-SXR / CL6-SXR)

  1. 1. When the identifier is "CA" and the file type is specified as one of "2, 3, 4, 5, 6 ", files with the same name will be overwritten. For all other cases, a duplicate file name error will occur.

Sequence