热敏打印机 - pos命令发出蜂鸣声 [英] Thermal Printer - pos command to beep

查看:415
本文介绍了热敏打印机 - pos命令发出蜂鸣声的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,



是否可以向热敏打印机发送哔声命令?



示例:打印订单时,打印机发出蜂鸣声,以便用户知道已打印新订单。





谢谢



Samuel

Hello,

Is it possible to send a beep command to the thermal printer?

Example: when a order is printed, the printer beeps so that the user know that an new order has been printed.


Thanks

Samuel

推荐答案

由于您没有指定特定的热敏打印机,我将不得不说一般。通常,热敏打印机使用蜂鸣声作为错误代码。因此,他们没有为司机提供让他们因其他原因发出哔哔声的方法。此外,这似乎是一个不好的要求,因为打印机已经打印出新的订单,因为打印的订单会从打印机中吐出来,这是不言而喻的。



我的建议是重新评估您的要求。如果绝对有必要在打印新订单时通过音频格式提醒用户,请通过计算机进行操作。电脑可以很容易地发送任意数量的声音。例如,您可以记录打印机有新订单消息,只要打印机打印出来就会播放该消息。不幸的是,这确实意味着计算机需要在附近并且有扬声器。如果计算机不能有扬声器但在附近,则可以使用内部蜂鸣声选项发出简单的蜂鸣声。
Since you did not specify a specific thermal printer, I'll have to speak generally. In general, thermal printers use beeps as error codes. Therefore, they do not provide a way for the drivers to make them beep for other reasons. Further, it seems like a poor requirement, since it will be self-evident that the printer has printed a new order since the printed order will spit out of the printer.

My recommendation would be to re-evaluate your requirements. If it is absolutely necessary to alert the users through an audio format when a new order has printed, do it through the computer. The computer can send any number of sounds quite easily. For instance, you could record a "The printer has a new order" message that gets played whenever the printer prints something. Unfortunately, this does mean that the computer needs to be nearby and have speakers. If the computer cannot have speakers but is nearby, you can use the internal beep option to make a simple beep.


您没有指定控制代码格式,或者您使用的是任何类型的控制打印机时的框架。



我浏览了一些最广泛的控制代码格式的文档,但我找不到太多。



如果是Epson ESC / POS,您可以尝试发送ASCII BEL(十六进制值0x07)而不包含任何其他字符。爱普生不推荐它,但它可能有用。



如果是STAR控制代码格式,请尝试ASCII RS(十六进制值0x1E),不带任何其他字符。



Soren Madsen
You are not specifying the conctrol code format or if you are using any kind of framework when controlling the printer.

I looked through the documentation of some of the most widespread control code formats, but I did not find much.

If it is Epson ESC/POS, you can try sending an ASCII BEL (Hex value 0x07) without any other characters. It is not recommended by Epson, but it might work.

If it is STAR control code format, try the ASCII RS (Hex value 0x1E) without any other characters.

Soren Madsen


厨房打印机闹钟,或许?



http://www.asgcctv.co.uk/store/product/details.php?pid=52
a kitchen printer alarm, perhaps?

http://www.asgcctv.co.uk/store/product/details.php?pid=52


这篇关于热敏打印机 - pos命令发出蜂鸣声的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆