title: Reading Zebra printer status via USB on Ubuntu
body: <p>After a lot of posts in SO and Google, I could not find an answer to my problem. Most of similar questions are Windows/VB/.Net/C#/Java centric. </p>
  
  <p>I need to send an ESC command to a Zebra USB printer (TTP2130) and get the status back using C/C++ . I am able to print fine (with Zebra generic driver set as default printer) using:</p>
  
  <pre><code>$ lpr file.prn 
  </code></pre>
  
  <p>Used Zebra Toolbox to communicate in Windows and generate *.prn files with ESC commands.</p>
  
  <p>But if I sent a file with a command that needs response from printer, nothing happens.</p>
  
  <p>What would be the best approach to accomplish this? Maybe using libusb1.0 directly?</p>
  
  <p>Thanks for any help!</p>