Usb printer host driver LPC4337

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Usb printer host driver LPC4337

403 Views
Tech13
Contributor I

Hi,

We trying to interface the USB Printer HP Deskjet  4530 with LPC4337.

We are using a USB stack lib of LUFA. as of now, our device is successfully enumerated, we had capture the Device ID and also able to read the port status.

When we are trying to send some data for printing we are not able to get the printout. Printer shows the message printing and this message get disappear after few minutes and back to home screen.

This are the few commands ESC commands for PCL3

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'};

I am send the commands using this function for testing.

PRNT_Host_SendString(FeedFmTray,sizeof(FeedFmTray));

We request you to kindly help us out.

 

Warm regards

0 Kudos
1 Reply

363 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

Maybe this is a clue, you have the source code, you can search the error message as a key words, refer to the line and analysize the code to get the cause.

BR

Xiangjun rong

0 Kudos