Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hope Support Beep Command #56

Open
Mfk759853063 opened this issue Nov 20, 2020 · 2 comments
Open

Hope Support Beep Command #56

Mfk759853063 opened this issue Nov 20, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@Mfk759853063
Copy link

when i set escpos.write(0x07), but ticket printer not beep? am I wrong?
please see: https://pythonhosted.org/python-printer-escpos/_modules/escpos/commandset/generic.html#Generic.beep

@Mfk759853063 Mfk759853063 added the enhancement New feature or request label Nov 20, 2020
@Mfk759853063
Copy link
Author

i find this command
byte[] beep = {0x1b,0x42,0x02,0x01}; //// Beeps 2 times for 1*50ms each time
escPos.write(a, 0, a.length)
:)

@anastaciocintra
Copy link
Owner

Hi @Mfk759853063

nice, you discovered the command sequence that works on your printer.

I find some issues about beep on escpos-php from mike42
mike42/escpos-php#142
mike42/escpos-php#173
mike42/escpos-php#174

based on these issues:
-not all printer models have this feature.
-the (beep) command depends on printers model / not a pattern
I don't know yet the best whay of how to implement the beep, if it is good to configure on some text file or class enheritance.

The lib have some others similar commands that needs design attention, like "open cach drawer", "line feed" and "character table configuration".

I'm thinking about it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants