The KMH Solutions

The KMH Solutions Information Technology
Software Development

'In this post i'll show you how to fire a USB/Serial cash drawer trigger.These are little boxes that go between the comp...
28/11/2025

'In this post i'll show you how to fire a USB/Serial cash drawer trigger.

These are little boxes that go between the computer and a cash drawer to open it when there is no receipt printer (most support the firing of it for you).

Some background: The device installs itself as a virtual COM port, this means if you look under device manager and com ports you should see what value is given to it, you can hard code the port but I use a simple method to grab it

***DISCLAIMER*** this assumes you have only 1 COM device installed on your machine
------------------

Public Sub Opencashdrawer()
If IsNothing(My.Computer.Ports.SerialPortNames(0).ToString) Then
Else
Dim p As String = My.Computer.Ports.SerialPortNames(0).ToString
Dim sp As New SerialPort
sp.PortName = p
sp.Open()
sp.Write("o")
sp.Close()
sp.Dispose()
End If
End Sub..
As you can see in the code we grab the first entry in the list of port names then open a serialport. To trigger the device you just need to write any old data to it, here I have just sent an o

Merry Christmas !!!
25/12/2024

Merry Christmas !!!

TRY ANOTHER ONE
25/12/2024

TRY ANOTHER ONE

01/12/2024

SWEET DECEMBER ***

08/11/2024
The next idea *
01/02/2024

The next idea *

Clinic Tree Dental SpecialitiesAddress : No(19/B) , corner of 1st & 5th Street,( #8) ward, South Okkala pa Township,Yang...
27/01/2024

Clinic Tree Dental Specialities
Address : No(19/B) , corner of 1st & 5th Street,
( #8) ward, South Okkala pa Township,
Yangon, Myanmar.
ph : 0988 541 3528


KMH Solutions

Address

Singapore

Website

Alerts

Be the first to know and let us send you an email when The KMH Solutions posts news and promotions. Your email address will not be used for any other purpose, and you can unsubscribe at any time.

Share