-5

I have a RFID Reader that connect to my computer via COM.

1> When the reader connect to my computer via COM3
   C++: OpenComm(3) --> OK

2> When the reader connect to my computer via COM9
   C++: OpenComm(9) --> OK

3> When the reader connect to my computer via COM11
   C++: OpenComm(11) --> Not work

I don't know why it not work.

OpenComm(int com) is a attached library for my RFID Reader. So, I need int value of COM11.

Van Duoc
  • 65
  • 1
  • 8

1 Answers1

2

Assuming that you're using Windows - from the CreateFile documentation:

To specify a COM port number greater than 9, use the following syntax: "\.\COM10". This syntax works for all port numbers and hardware that allows COM port numbers to be specified

Jonathan Potter
  • 36,172
  • 4
  • 64
  • 79