-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
-
×InformationNeed Windows 11 help?Check documents on compatibility, FAQs, upgrade information and available fixes.
Windows 11 Support Center. -
- HP Community
- Printers
- Printer Setup, Software & Drivers
- hp deskjet 4530 printer printing issue (embedded device)

Create an account on the HP Community to personalize your profile and ask a question
08-16-2023 11:01 PM
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 command
On UEL or start job