I'm developing a POS with cash drawer integration.But I can't open cash drawer.
I have RS232 cable used to connect cash drawer to PC , dot matrix and cash drawer. This cash drawer has no DLL packaged. Also I tried to open it in DOS
but it failed. Another code is
but it failed too.
Here's my code in VB, but it doesn't worked too..
I have RS232 cable used to connect cash drawer to PC , dot matrix and cash drawer. This cash drawer has no DLL packaged. Also I tried to open it in DOS
Code:
echo>com1
Code:
mode com1:9600,n,8,1 copy con com1 A ^z
Here's my code in VB, but it doesn't worked too..
Code:
Sub OpenCashDrawer()
' create an array to hold the command code bytes
Dim cashDrawerCmd() As Byte = {27, 112, 0, 25, 250}
' sets up comPort as SerialPort and opens the port
With My.Computer.Ports.OpenSerialPort("COM7")
Dim blOpen As Boolean = .IsOpen
Dim blRtsEnabled As Boolean = .RtsEnable
'comPort.RtsEnable = True
.ReadTimeout = 90000
.BaudRate = 9600
.DataBits = 8
.Parity = System.IO.Ports.Parity.None
.StopBits = System.IO.Ports.StopBits.One
.Handshake = System.IO.Ports.Handshake.RequestToSend
' writes the whole of the byte array containg the open drawer command codes to the port
.Write(cashDrawerCmd, 0, cashDrawerCmd.Length)
End With
End Sub
Comment