-
Notifications
You must be signed in to change notification settings - Fork 3
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
Cash Drawer not opening #5
Comments
Hi, have a look here:
|
Hi, Is below the code for the control code? $self->driver->write( _DLE . _DC4 . "\x01" . chr( $pin ) . chr( $time ) ); |
This should probably done by $self->driver->write( _DLE . _DC4 . join("", map { chr } qw( 27 112 0 25 250 )) . chr( $pin ) . chr( $time ) ); (untested, please try for yourself) |
I will try later and let you know. Thank you. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We have a pos printer connected to a cash drawer, it works fine for a year until it prints abnormally (paper not feeding properly thus receipts are not printed before it cut).
We replace with a different brand of pos printer, printing of receipts are ok but it would not open the cash drawer.
I suspect that the control codes is different, I wanted to try to change the control code but I cannot find where to change from the ESCPOS source code.
Can you point me which source file to amend?
Thank you.
The text was updated successfully, but these errors were encountered: