Hi, there. I'm trying to open the cash drawer using QZTray without printing anything. I'm using a cash drawer that's attached to my Star TSP100III printer via an RJ45 cable.
I'm able to configure the cash drawer to open using the normal Windows configuration as seen below and using pixel printing.

However, now I'm trying to get the cash drawer to open WITHOUT printing anything. I've tried using the below function but nothing seems to be happening.
function openDrawerQZTray(printer) {
var config = qz.configs.create(printer);
var data = [{ type: 'raw', format: 'plain', data: '\x10' + '\x14' + '\x01' + '\x00' + '\x05', options: { language: "ESCPOS" } }];
qz.print(config, data).catch(displayError);
}
If I'm not mistaken, the Star printer comes default in "Star Line Mode". Since I'm normally using pixel-based printing with QZTray, I haven't had to mess with the mode.
Is it possible to open the cash drawer while the printer is in Star Line Mode? If so, how do I do it?
Or must I change it to ESC/POS mode? If so, how would I change it to ESC/POS mode?
I'm using QZTray 2.0.5.
Thank you very much for your help.
Charles Tang