Support & Downloads

FAQ (Frequently Asked Questions) : Command Reference

Command Printing

Our answers to frequently asked questions about command printing so far are shown below. Before you email us your questions, please check the following.

Q

When sending a command via a network (wired/wireless LAN), what network protocols are available?

A

Any one of the following protocols is available.

  • TCP/IP (Port 9100)
  • LPR
  • FTP
Q

How do I get the status via a network?

A

Please send the following OID to the printer by using the SNMP protocol.
1.3.6.1.4.1.2435.3.3.9.1.6.1.0
This enables you to retrieve MIB information of the status from a printer.
This retrieved information is the same as the return value of the status request information in the ESC/P command reference. For details, please refer to the ESC/P command reference.

Target Models :  RJ-2050, RJ-2140, RJ-2150
RJ-3050, RJ-3050Ai, RJ-3150, RJ-3150Ai
RJ-3250WB
RJ-4040
RJ-4250WB
TD-2120N, TD-2130N
TD-4420DN, TD-4520DN, TD-4550DNWB
PJ-773, PJ-883
PT-P750W, PT-P900W, PT-P950NW
QL-810W, QL-820NWB, QL-1110NWB

Q

How do I get the printer information via a network?

A

Please send the following OID to the printer by using the SNMP protocol.

OIDPrinter InformationExample (RJ-4040)
1.3.6.1.4.1.1240.2.3.4.5.2.3.0IP address010.226.150.051
1.3.6.1.4.1.1240.2.3.4.5.2.4.0Subnet Mask255.255.000.000
1.3.6.1.4.1.1240.2.3.4.5.2.12.0MAC addressXXXXXXXXXXXX
1.3.6.1.2.1.1.6.0Printer name(Printer location)""
1.3.6.1.2.1.25.3.2.1.3.1ModelBrother RJ-4040
1.3.6.1.2.1.43.5.1.1.17Serial numberXXXXXXXXX

Target Models :  RJ-2050, RJ-22140, RJ-22150
RJ-3050, RJ-3050Ai, RJ-3150, 3150Ai
RJ-3250WB
RJ-4040
RJ-4250WB
TD-2120N, TD-2130N
TD-4420DN, TD-4520DN, TD-4550DNWB
PJ-773, PJ-883
PT-P750W, PT-P900W, PT-P950NW
QL-810W, QL-820NWB, QL-1110NWB

Q

How do I get the MPS (Managed Print Service) related information via a network?

A

Please check "List of MPS Related Information".

List of MPS Related Information [ZIP/32KB][ZIP]

Q

How do I send a command via Bluetooth Low Energy?

A

There are two ways to send commands via Bluetooth Low Energy.

  • Please use Brother Print SDK for iOS/Android™. They have the ability to send commands easily.
    Target Models :  PJ-883
    RJ-3230B, RJ-3250WB, RJ-4230B, RJ-4250WB
    TD-4550DNWB

    Please use Brother Print SDK for iOS Type B. They have the ability to send commands easily.
    Target Models :  RJ-2035B, RJ-3035B

  • Another solution is Brother Bluetooth Low Energy Parser Service. This is the minimal GATT(Generic Attribute Profile) service designed to facilitate parser communication in as similar a fashion to SPP(Serial Port Profile) as the GATT model allows.

    Target Models :  PJ-883
    RJ-3230B, RJ-3250WB, RJ-4230B, RJ-4250WB
    TD-4550DNWB

    The data structure of GATT is as follows.
    For details on how to connect via GATT, please refer to the Bluetooth Low Energy communication standard.

    UUID Type Description
    a76eb9e0-f3ac-4990-84cf-3a94d2426b2b Service UUID  
    a76eb9e1-f3ac-4990-84cf-3a94d2426b2b Characteristic From Printer Data
    a76eb9e2-f3ac-4990-84cf-3a94d2426b2b Characteristic To Printer Data

    Target Models :  RJ-2035B, RJ-2055WB, RJ-3035B, RJ-3055WB
    TD-4650TNWB, TD-4650TNWBR, TD-4750TNWB, TD-4750TNWBR
    TJ-4420TN, TJ-4422TN, TJ-4520TN, TJ-4522TN, TJ-4620TN

    The data structure of GATT is as follows.
    For details on how to connect via GATT, please refer to the Bluetooth Low Energy communication standard.

    UUID Type Description
    49535343-FE7D-4AE5-8FA9-9FAFD205E455 Service UUID  
    49535343-1E4D-4BD9-BA61-23C647249616 Characteristic From Printer Data
    49535343-8841-43F4-A8D4-ECBE34729BB3 Characteristic To Printer Data
Q

We would like to know the wiring layout for a serial cable to send a command with serial interface.

A

For the wiring layout for a serial cable at the printer main body side, please refer to the Instruction Manual of the printer.

Q

How do I configure the printer's Busy Control settings to receive commands from a PLC using a serial connection?

A

Configuration method depends on your printer model.

PT, TD-2, and TD-4D:

  • If the PLC uses DTR/DSR control, launch the Brother Printer Setting Tool, click P-touch Template Settings > Communication Settings, and in the Busy Control drop-down menu, select "DTR".
  • If the PLC uses DC code control (DC1/DC3), launch the Brother Printer Setting Tool, click P-touch Template Settings > Communication Settings, and in the Busy Control drop-down menu, select "XON/XOFF".

TD-4T and TJ:
These models do not require configuration changes.

Q

When sending an ESC/P command from the host, does the printer respond to the command?

A

No response returns. You have to send a status check command every time.

Q

When sending an ESC/P command from the host, does the printer return an error response?

A

No error response returns. You have to send a status check command every time.

Q

How do I detect whether the printer is connected via USB or whether the printer is turned on with a program?

A

When the PC and the printer is connected via USB and your program is based on the Windows printer driver, you can determine whether the powered printer is connected before sending a print command by checking the online status of the printer with the OS functions.
If the printer is determined as offline, it cannot be determined whether the printer is disconnected or it is connected and turned off.

Q

How do I detect whether the printer is out of paper with a program?

A

When paper shortage condition occurs after you turn on the printer and print once, if recovery printing is disabled, you can check whether the printer is out of paper with a command.
To check this, while an out-of-paper error occurs, send a printer status request and check the "End of media" error flag of the error information 1.
For details, refer to the "ESC i S printer status request" of the Printer Status Request Command Reference Manual.
For the recovery print setting, refer to the Command Reference Manual.
For the printers with no paper detection function, it cannot be detected whether paper shortage condition occurs before printing immediately after power-on due to their specifications.

For Developers

  • Choose from Purposes

    Label printing, printer setup and management information.

  • b-PAC

    Information on application development tools for Windows

  • Mobile SDK

    Information on application development tools for mobile terminals

  • Command Reference

    Information on control command reference for label printers and mobile printers

  • Versatile software

    Information on versatile software provided by Brother

  • Choose from Models

    Introduction of Brother tools applicable to your model

  • Video Library

    Videos showing how to use SDK and other information

  • Contact Us

    Fill out the contact us form if you have questions about Brother developer tool.