Reputation: 2129
I need to open a cash drawer using C/C++ or Java. It is a POS-X cash box with a USB connection. I've never done anything like this before. I noticed the cash box was linked to the "COM3" port. I know Java does not have a USB API so I turned to C/C++.
Upvotes: 3
Views: 3308
Reputation: 49118
Forum post about it here.
In a nutshell, install the driver, change the COM3 baud rate to 9600, and send a "1" to the COM port.
Check out javax.comm
for a method of communicating with a com port on java.
Upvotes: 3