Solution: Use the serial port debugging assistant to send control character protocol commands <ESC> !?

Source: Internet
Author: User
Tags control characters

The result of an expert in the layman's command is that you must follow what he wants and wait for nothing to do with your own solutions.

Bytes -------------------------------------------------------------------------------------

The bar code label printed with the bar code control of Microsoft is too small. The size of the 18mm x 34mm thermal Label Paper has to keep the margin around 1mm. The results are not satisfactory. I finally used my method in half a month.

Directly operate the printer through a serial port.

Of course, I know, this means that it is a "Bond" with this printer ".

Bytes --------------------------------------------------------------------------------------

This article is original. Please indicate the source explicitly and maintain the integrity of the article.

Link: http://blog.csdn.net/wlsgzl/article/details/38111487

Bytes ---------------------------------------------------------------------------------------

Look at the GP-3120T of the Chinese Programming Manual, too nonsense, so printed the English version, take the Chinese version for reference, the first time.

Bytes ---------------------------------------------------------------------------------------

When I looked at the directory, I found that General commands can still be easily executed, but I noticed that there is a "<ESC> !?" <ESC> is the control character.

So I tried it. Of course, if you press ESC, the serial port debugging assistant will exit.


I have asked some people how to send control characters. They told me that sending in hexadecimal format will be fine, and then there will be no more.

After unremitting efforts, do not ask me why I have made unremitting efforts. I have never performed serial port operations or serial port debugging assistants over the years. I finally learned how to call this command in this tool.

Some things are separated and separated by mountains.


So, right.





Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.