How to interface USB printer to frdm-kl25z ?

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

How to interface USB printer to frdm-kl25z ?

346 Views
prabalvarshney
Contributor I

I am using frdm-kl25z . I want to interface USB printer to it. I am using USB library provided by KSDK. I found some host side examples for MSC and HID. I tried to change class in MSC example to Priner class and able to detect Printer. How can I communicate with Printer and send commands ? 

0 Kudos
1 Reply

237 Views
jorge_a_vazquez
NXP Employee
NXP Employee

Hi Prabal varshney

Sorry for the late reply. Actually there is a usb-printer demo example that supports the PJL and postscript for printers. You can find this example in the newest KSDK libraries (KSDK 2.0), You can build and download it in the next link:

Welcome to MCUXpresso | MCUXpresso Config Tools 

After you unzip the package in your computer, the example is located in <SDK_2.0_FRDM-KL25Z_path>\boards\frdmkl25z\usb_examples\usb_host_printer_plain_text

Hope this information could help you

Best Regards

Jorge Alcala

0 Kudos