View Single Post
  #9 (permalink)  
Old 07-01-2008, 10:07 PM
bkirt bkirt is offline
Member
 
Join Date: May 2007
Posts: 5
bkirt is on a distinguished road
My printer is a tar TSP100. After getting the crutch to work, I have not revisited the problem and probably will not as that small delay has not caused concern.

What I finally ended up with was sending the receipt the the standard Java Printable facility. It appears to convert non-printable characters to something printable so the 0x07 was not being received by the printer to open the cash drawer.

As pointed out in the thread above, there are packages that provide a Java interface to the USB ports. The complexity was just too much to deal with for such a small function. The printer manufacturer also provided a serial port emulator along with the standard USB driver. After installing that, I was able to send the non-printable 0x07 to the printer through this emulator as if it were on COM3. The disadvantage was a one second delay between the two transmissions, regardless of the order of sending. By dinking aound with my application, I was able to make that pause unnoticeable. I believe I send the 0x07 first, followed by the receipt.
Reply With Quote