This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

USB Host printer driver

Hi everyone,

I am implementing a host side driver for printer .

I have completed enumeration part of the printer. I am able to read Device ID string. My printer supports PCL3 language. I want to print any sample message by sending command. I am using bulk transfers for sending commands.
USBH_StatusTypeDef USBH_BulkReceiveData(USBH_HandleTypeDef *phost, uint8_t *buff, uint16_t length, uint8_t pipe_num)

#define ESCAPE "\033" #define COMMAND_TEXT_START "LB"
#define COMMAND_TEXT_STOP "\003;"
#define COMMAND_JOB_START ESCAPE "%-12345X" ESCAPE "E" ESCAPE "&l0E" ESCAPE "&l0F" ESCAPE "&a0L" ESCAPE "&a0M" //ESCAPE "&a0N"
#define COMMAND_JOB_STOP ESCAPE "E" ESCAPE "%-12345X"
#define TEXT_TO_PRINT "Print successful"

But I am not getting any response from printer and not getting print as well.

Please tell me proper way to use these commands for printing any text message.

Regards.