Setting up credit card processing Step 19: Set up PIN pads. Skip this step if you are not processing debit cards or EBT food stamps. If you are processing debit cards or EBT food stamps, you must configure each PIN pad you are using in Setup Point of Sale Devices, as described in this section. If you have older Master Session PIN pads, contact your processor to obtain DUKPT-compliant PIN. Amazon.com: 9 Pin Serial Optical Mouse + Mouse Pad!! - 2 Button - DB9 Connection for Dos, Windows 3.1, Win 95, 98, NT - Vintage - Legacy: Video Games.
I'm starting to work with a pinpad.I need that my program find the port where the pinpad is connected without user interaction.
I tried with:
but this only give me 'COM1' and 'COM2' as an answer (My device is connected to COM4)
and with
With this one I can see my device friendly name but I donĀ“t know how to get the port (I receive the names like 'HP printer')
Any idea of how can I get the port that I need?
Thanks in advance
DenLunDenLun
![Serial Com Port Pin Pad Settings Serial Com Port Pin Pad Settings](http://www.payworks.mpymnt.com/sites/default/files/Verifone%20Device%20Manager%20VX820.png)
2 Answers
Based on the comments it sounds like your device is a USB device that has a driver that causes it to appear to be (emulates) a serial port attached device. In that case I would use:
My.Computer.Ports.SerialPortNames
to enumerate and loop over all serial ports. Then, one at a time try to open each one and send a command to the device that you know it responds to. Most devices have some kind of heartbeat or keep alive message that they will respond to. Whichever port you get a response on is the port you need to use.
Shane WealtiShane Wealti1,55722 gold badges1515 silver badges3030 bronze badges
I want to point 2 matters:
1: here is a solution i used for this problem (efficiancy corrections will be appreciated)I used this soution i used to figure out on which port vx805 verifone pin pad was connected (has a unique device id):
End Class
2: would love more clarifiaction on that:
Then, one at a time try to open each one and send a command to the device that you know it responds to. Most devices have some kind of heartbeat or keep alive message that they will respond to
I would love to see a code example of how you send such a heartbeat check to a pinpad
![Serial Com Port Pin Pad Settings Serial Com Port Pin Pad Settings](/uploads/1/2/6/2/126268239/876850519.png)
Tal AruetyTal Aruety