lsongdev / lsongdev/node-escpos

Problem with Cashdraw

Open
#151 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
1.6k
Forks
443
PR merge metrics
No merged PRs in 30d

Description

I tried to let a cashdraw opening with cashdraw function.
But it was not running.
**I was obliged to change _.Cash_DRAWER object values in command.js line #60**
Origin :
CD_KICK_2: '\x1b\x70\x00', // Sends a pulse to pin 2 []
CD_KICK_5: '\x1b\x70\x01', // Sends a pulse to pin 5 []
My Changes
_.CASH_DRAWER = {
CD_KICK_2: '\x1b\x70\x00\x19\xfa', // Sends a pulse to pin 2 []
CD_KICK_5: '\x1b\x70\x01\x19\xfa', // Sends a pulse to pin 5 []

I found this values according to Epson Doc http://support.epostraders.co.uk/support-files/documents/27/Ya8-EpsonDrawerKick.pdf, page #4

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at command.js line 60 and compare the cash-drawer constants with the Epson drawer-kick documentation, page 4. Reproduce the opening attempt with the affected hardware and determine the expected pulse behavior; done when the cash drawer opens without manual edits to the constants.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
embedded-iot
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.