locked
VEROFONE VX805 connect to PC by COM9 RRS feed

  • Question

  • Hi,

    I've new project to transactional switch with a pinpad device Verifone VX805. I can´t write and read info from this device. My project in C# is:

    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    using System.IO.Ports;
    using Trx.Messaging;
    using Trx.Utilities;


    namespace Medianet01
    {
        public partial class Form1 : Form
        {

            static string respuesta;
            public Form1()
            {
                InitializeComponent();

                SerialPort spPuerto = new SerialPort("COM9");
                Envio oEnvio = new Envio();
                try
                {
                    spPuerto.BaudRate = 9600;
                    spPuerto.DataBits = 8;
                    spPuerto.Parity = Parity.None;
                    spPuerto.PortName = "COM9";
                    spPuerto.StopBits = StopBits.One;

                    spPuerto.Open();
                               
                    txtEstado.Text = "Activo";
                    respuesta = oEnvio.Envio_requerimientoPinpad(null, 9, 30000, "CT", null, 1);
                    spPuerto.WriteLine(respuesta);
                    spPuerto.ReadTimeout = 30000;
                    System.Threading.Thread.Sleep(500);
                    txtRespuesta.Text = spPuerto.ReadExisting();
                }
                catch (Exception e) 
                {
                    txtEstado.Text = e.ToString();
                }

                spPuerto.Close();

            }
        }
    }

    Friday, November 13, 2015 9:52 PM

Answers

  • You should contact to the support of verifone.
    In general, information about using the PINPad you will need to sign a NDA.
    Monday, November 16, 2015 9:33 PM