[DC2+PS] Authenticate user passwords

CL4NX CL6NX CL4NX-J CL6NX-J PW208/PW208m PW208NX/PW208mNX FX3-LX CT4-LX/HC4-LX PW4NX LR4NX-FA S84NX/S86NX CL4-SXR CL6-SXR

HEX code

DC2 <12>16
PS

<50>16<53>16

Parameter

,a(,b,c…c,d…d,e…e,f…f)

Default Value

None

Valid range and term of command

When the power is OFF -
Valid range -
During printer operation Command is accepted when printer is working
When getting label sensor information Commands are accepted even while retrieving sensor data
When error is happening Commands can be received even if an error is occurring

Valid range and term of command [CL4-SXR/CL6-SXR]

When turning off the power switch -
Valid range -
Printer operation in progress The command can be received during printing operation.
Error The commands can be received even if an error is occurring.
When the settings screen is displayed The commands can be received when the settings screen is displayed.
Not authenticated -

Function

User authentication is required when changing each printer setting.

Format

[DC2]PS,a(,b,c…c,d…d,e…e,f…f)

Parameters: CL4-SXR/CL6-SXR series

Symbol Parameter name Valid range Acquisition method
a Type of Action

0:Logout

1:Login

Get one-fixed character
b

Login Target

* Not needed for logout

0:[DC2] Command

Get one-fixed character
c

Data Byte Count

* Represents the total number of bytes starting from parameter d. The comma between parameters c and d is not included.

* Not needed for logout

0-1023 Get up to ","
d

Username

* Not needed for logout

Valid Usernames for the passwd Command (Linux) Get up to ","
e

Password

* Not needed for logout

Valid Password for the passwd Command (Linux)

* 4-64 characters

Get up to ","
f

USB Serial

* Not needed for logout

8-16 alphanumeric characters Equivalent to Data Byte Count
Username
Username Description
manager The username used when executing commands that require login or when accessing the settings menu.
Data sample for login)
PS,1,0,21,manager,1111,12345678
Data sample for logout)
PS,0

Return data format (normal, Login Target 0:[DC2] Command)

[STX]aa[ETX]

Symbol Parameter name Valid range
aa Password Authentication Result

00:Authentication Successful / Logout Successful

01:Authentication Failed

02:Login Restricted

03:Already Logged in

Return data format (when a command error occurs)

[NAK]<15>16

Supplemental explanation

  1. If the USB serial set on the printer does not match the USB serial set in the command, authentication will not be performed, and a 'NAK' will be returned.
  2. The authentication process takes approximately 800 milliseconds, so the response time may be delayed.
  3. If a reset is performed while logged in, the logout will be performed. (CL4-SXR/CL6-SXR)