• ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
  • ×
    Information
    Need Windows 11 help?
    Check documents on compatibility, FAQs, upgrade information and available fixes.
    Windows 11 Support Center.
  • post a message
Guidelines
Here is the solution to configure HP FutureSmart Printers with Kiwi Syslog Server Click here to view the instructions!
Check some of the most frequent questions about Instant Ink: HP INSTANT INK, HP+ PLANS: INK AND TONER.


Check out our WINDOWS 11 Support Center info about: OPTIMIZATION, KNOWN ISSUES, FAQs AND MORE.
HP Recommended
Other

Hi,

We are into a bio medical equipment manufacturing. We have a various series of medical test equipment. Our device has a facility to print the Test report, as of now we have a small thermal printer. Now we want to add a USB printer support.

I had develop the printer driver for microcontroller. 

We had successfully enumerate the attached printer, read the device ID and also able to read the port status.

(Printer device ID MFG:HP;MDL:DeskJet 4530 series;CMD:PCL3GUI,PJL,Automatic,JPEG,PCLM,AppleRaster,PWGRaster,DW-PCL,802.11,DESKJET,DYN;CLS:PRINTER;DES:F0V64B;CID:HPIJVIPAV4;LEDMDIS:USB#FF#CC#00,USB#07#01#02,USB#FF#04)

To get the test print, I send the couple of PCL commands 

static const char StartJob[] = {ESC,'%','-','1','2','3','4','5','X',ESC,'E',ESC,'&','l','0','E',ESC,'&','l','0','F',ESC,'&','a','0','L',ESC,'&','a','0','M'};
static const char EjectPaper[] = {ESC,'&','l','0','H'};
static const char EjectPaper1[] = {ESC,'&','l','0','H','(','h',')'};
static const char FeedFmTray[] = {ESC,'&','l','1','H'};
static const char FeedFmTray1[] = {ESC,'&','l','1','H','(','h',')'};
static const char SelfTest[] = {ESC,'z'};
static const char ResetPrn[] = {ESC,'E'};

#define COMMAND_TEXT_START "LB"
#define COMMAND_TEXT_STOP "\003;"
#define TEXT_TO_PRINT "Sample Message"

On printer screen, Printing message appears for few minutes, but not printing anything.

I also tried the PJL

static char PCL3GUIPOST[] =
" "\
"%-12345X@PJL \r\n"
\
"@PJL ENTER LANGUAGE = PCL5 \r\n"
\
"/inch {72 mul}def\r\n"
\
"/GetFont {findfont exch scalefont setfont} bind def\r\n"
\
"/Font1 {0.5 inch /Helvetica GetFont} def\r\n"
\
"/PrintString {moveto show} bind def\r\n"
\
"(NXP host printer test) 20 700 Font1 PrintString\r\n"
\
"showpage"
\
" "
\
"%-12345X";

 

Still getting the same result, on printer screen it shows printing but no printout.

I request you to kindly guide us. 

 

 

On eject commandOn eject commandOn  UEL or start jobOn UEL or start job

 

 

† The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the <a href="https://www8.hp.com/us/en/terms-of-use.html" class="udrlinesmall">Terms of Use</a> and <a href="/t5/custom/page/page-id/hp.rulespage" class="udrlinesmall"> Rules of Participation</a>.