Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Comments
Fatih Sağlam 1-Oct-17 19:32pm    
Hey there! Could you find any solution? I finished my whole project but I'm stuck at beeping step. I need help so much. I couldn't find any solution about this. And I can't use PrintDocument class for printing an empty line because IIS can't make printer beep but IISExpress can. i couldn't understand why. I tried givin auth rights to every user in computer. I'm finished guys. I'm tired.
Member 1789076 11-Dec-19 5:52am    
2112

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.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 25-Jun-12 15:46pm    
Good points, a 5.
--SA
SoMad 26-Jun-12 19:35pm    
I do agree with your points and this is most likely the right solution, but some of the POS printers do support the Beep functionality defined by Epson. I suspect the reason for this is the same as what drove the OP to post this question - an order printer is placed in the kitchen of a restaurant and they want to be alerted when an order is printed out. I am not saying it is a good requirement as the beep will probably drown out in the kitchen noise, but you know how requirements are at times :)

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
 
Share this answer
 
Comments
samuel.debrincat 26-Jun-12 8:28am    
None of the above commands worked :(
SoMad 26-Jun-12 17:57pm    
Ok. It would be easier to help you out if you provided the name and model of your printer.
There is a beep command defined in Epson ESC/POS as "ESC ( A", but this has to be followed by parameters that depend on the printer model and you might even have to change the DIP switch to enable the beep feature. I am afraid there is no guarantee that your printer supports this command.

Soren Madsen
samuel.debrincat 28-Jun-12 6:00am    
Printer Model: PRP-088III
SoMad 29-Jun-12 1:44am    
I cannot find any real details about this printer, other than it supports ESC/POS. Take a look at this document. The "ESC ( A" Control Beeper Tones command is documented on page 398. You can try to see if you are able to get it working, but the document indicates that it is only supported by a few printers.
ESC-POS-Programming-Guide.pdf[^]

Soren Madsen
a kitchen printer alarm, perhaps?

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

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900