USB KR403 ~HQES response in Java/windows

// Expert user has replied.
K Kevin Smotherman 3 years 7 months ago
42 1 0

I'm trying to read the result from a USB KR403 kiosk receipt printer, from Java, without much success.  I've tried link-os but that doesn't return all the sensor data from the KR403.  I've tried javax.print, but that's even worse.  How can I get the response to the ~HQES command in java from a USB printer?

Please Register or Login to post a reply

1 Replies

M Manuel Caicedo-Rivera

Hi Kevin,

My apologies for the delay in response.  We had a bug in our system, so we see your question today.

I was searching your question, I do not know if you already tried the following command in java, but I think it will help you to manage this issue.

string dataExpected = printer.sendAndWaitForResponse("~HQES", 1000, 1000);

Please, let me know if this solved the issue.

Thanks,
MC

CONTACT
Can’t find what you’re looking for?