c++ kr403 usb / serial port model

Hi,

 

  i have a zebra KR403 printer ( the model with usb/serial port) connections.

 

  I am building a Qt/c++ application which needs to print receipts. Additionally for mantainance purposes, i need check if the printer is out of paper or has a papper jam.  I canno't figure out how to query the printer  status. Any ideias on how to accomplish this ?

 

 

 

Best regards,

  Luis G.