Home > other >  Thermal printer esc pos instruction, how to obtain the state of the printer?
Thermal printer esc pos instruction, how to obtain the state of the printer?

Time:09-17

HHandle=CreateFile (device) Port) c_str (), GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);

Refer to the great god, thermal printer esc pos instruction, how to obtain the state of the printer,
0 x10, 0 x04, 4
Only know get state instruction, but after sending instructions, how to read the return value?

CodePudding user response:

You have to find a READ function

CodePudding user response:

If this is should find factory development documentation?

CodePudding user response:

reference 1st floor dceacho response:
you have to find a READ function

With the read method, first write command, then execute the ReadFile, perform card directly after death,

CodePudding user response:

reference R0CK - Y0U reply: 3/f
Quote: refer to 1st floor dceacho response:

You have to find a READ function

With the read method, first write command, then execute the ReadFile, perform card directly after death,

Serial debugging assistant first to make sure you write and read right back

CodePudding user response:

reference 4 floor dceacho response:
Quote: reference R0CK - Y0U reply: 3/f

Quote: refer to 1st floor dceacho response:

You have to find a READ function

With the read method, first write command, then execute the ReadFile, perform card directly after death,

Serial debugging assistant first to make sure you write and read right back

By bus hound caught, read write command is normal, no back to read the data, the key don't know how to is normal, no debugging printer,

CodePudding user response:

refer to fifth floor R0CK - Y0U reply:
Quote: refer to 4th floor dceacho response:

Quote: refer to the third floor R0CK - Y0U reply:

Quote: refer to 1st floor dceacho response:

You have to find a READ function

With the read method, first write command, then execute the ReadFile, perform card directly after death,

Serial debugging assistant first to make sure you write and read right back

By bus hound caught, read write command is normal, no back to read the data, the key don't know how to is normal, no debugging printer,

Printer is usually receives' \ r \ n "started to print, you just send some string in the past and then send" \ r \ n "to see if the printer

CodePudding user response:

refer to 6th floor dceacho response:
Quote: refer to fifth floor R0CK - Y0U reply:

Quote: refer to 4th floor dceacho response:

Quote: refer to the third floor R0CK - Y0U reply:

Quote: refer to 1st floor dceacho response:

You have to find a READ function

With the read method, first write command, then execute the ReadFile, perform card directly after death,

Serial debugging assistant first to make sure you write and read right back

By bus hound caught, read write command is normal, no back to read the data, the key don't know how to is normal, no debugging printer,

Printer is usually receives' \ r \ n "started to print, you just send some strings in the past and then send" \ r \ n "to see if the printer move

Ask the website customer service, the USB does not support read back, can't track the status of the printer, thank you for your reply,
  • Related