Opening a cash drawer from a rails application

Hi guys, I'm planning a Point Of Sale made with rails, and right now I'm
wondering if it is possible to manage the opening of the cash drawer after
a sale is saved.

I argue:
Desktop POS software integrates with the cash drawer, the printer and the
barcode reader, once the order is ready and you press a key, the cash
drawer gets open automatically.
How can I achieve this?

can you check the printer and cash drawer model ruby sdks only if their sdk
is present we can do it .

···

On Sun, 8 Aug, 2021, 5:34 pm Otoniel Reyes Galay, < otonielreyesgalay@gmail.com> wrote:

Hi guys, I'm planning a Point Of Sale made with rails, and right now I'm
wondering if it is possible to manage the opening of the cash drawer after
a sale is saved.

I argue:
Desktop POS software integrates with the cash drawer, the printer and the
barcode reader, once the order is ready and you press a key, the cash
drawer gets open automatically.
How can I achieve this?

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

What is the brand and model? According to the API model, it may be easy or
hard. For example, with a Ruby API, it is so easy. With a CLI or HTTP API,
it is easy. With a C/C++ API, it is not hard. Without an API, it is hard.

naveen kumar <navkumar2245@gmail.com>, 8 Ağu 2021 Paz, 21:07 tarihinde şunu
yazdı:

···

can you check the printer and cash drawer model ruby sdks only if their
sdk is present we can do it .

On Sun, 8 Aug, 2021, 5:34 pm Otoniel Reyes Galay, < > otonielreyesgalay@gmail.com> wrote:

Hi guys, I'm planning a Point Of Sale made with rails, and right now I'm
wondering if it is possible to manage the opening of the cash drawer after
a sale is saved.

I argue:
Desktop POS software integrates with the cash drawer, the printer and the
barcode reader, once the order is ready and you press a key, the cash
drawer gets open automatically.
How can I achieve this?

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

--

Hello Otoniel,

as a minimum requirement you will need to find out if the cash drawer,
the printer and the barcode reader have any interface that you can talk to.

To my best of knowledge cash drawers and barcode readers are treated
like serial port endpoints and you can interact with them by using one
of the following gems: [1], [2], [3] ( some printers too, but this
really depends on the model ).

If you have newer models they might offer TCP/IP connectivity ( for the
barcodes I doubt it ), but to be sure you need to check the interfacing
options given by their manufacturer and find a manual or instructions of
their supported command set.

[1] serialport | RubyGems.org | your community gem host
[2] GitHub - hybridgroup/rubyserial: FFI Ruby library for RS-232 serial port communication
[3] GitHub - hparra/ruby-serialport: ruby-serialport is a Ruby library that provides a class for using RS-232 serial ports

···

On 8/8/21 3:03 PM, Otoniel Reyes Galay wrote:

Hi guys, I'm planning a Point Of Sale made with rails, and right now
I'm wondering if it is possible to manage the opening of the cash
drawer after a sale is saved.

I argue:
Desktop POS software integrates with the cash drawer, the printer and
the barcode reader, once the order is ready and you press a key, the
cash drawer gets open automatically.
How can I achieve this?

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

--
--
--A.D Masiakos
--GIAC REM #4706
--KeyId: 0x48D84811
--http://recodestuff.wordpress.com

El 8/8/21 a las 14:03, Otoniel Reyes Galay escribió:

Hi guys, I'm planning a Point Of Sale made with rails, and right now I'm wondering if it is possible to manage the opening of the cash drawer after a sale is saved.

I argue:
Desktop POS software integrates with the cash drawer, the printer and the barcode reader, once the order is ready and you press a key, the cash drawer gets open automatically.
How can I achieve this?

Unsubscribe: <mailto:ruby-talk-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk&gt;

This is usually done (in "recent" drawers) by a ESC/P code, so, read the documentatión and print that code to the printer (usually the drawer is connected to a printer's open drawer port)