Start by going to the Device Manager. Once there do the following:
Expand the Ports ‘(COM& LPT)’
You should be looking at something like this:
As you can see Windows has set the port to COM10. However many legacy applications expect the port to be between 1-4. Let’s change that:
Right click on the device and click on ‘Properties’.
Click on ‘Port Settings’. Then click on ‘Advanced…’.
Once you’re in ‘Advanced Settings for COM10’ on the bottom you can see the ‘COM Port Number: COM10’. Click on that to change it to the lowest possible number (between 1-4).
Then click ‘OK’ on all open Property Windows.
Now the device should look like this:
Expand the Ports ‘(COM& LPT)’
You should be looking at something like this:
As you can see Windows has set the port to COM10. However many legacy applications expect the port to be between 1-4. Let’s change that:
Right click on the device and click on ‘Properties’.
Click on ‘Port Settings’. Then click on ‘Advanced…’.
Once you’re in ‘Advanced Settings for COM10’ on the bottom you can see the ‘COM Port Number: COM10’. Click on that to change it to the lowest possible number (between 1-4).
Then click ‘OK’ on all open Property Windows.
Now the device should look like this:
Active5 years, 1 month ago
Normally COM ports are used for RS232 type serial comms. A USB device will not normally have a COM port associated with it. The exception is USB to Serial adapters such as FTDI devices. In this case the FTDI driver can be set up to create a virtual COM port, which you should be able to connect to with VISA. Find Port Number on Linux. Open terminal and type: ls /dev/tty. Note the port number listed for /dev/ttyUSB. or /dev/ttyACM. The port number is represented with. here. Use the listed port as the serial port in MATLAB®. For example: /dev/ttyUSB0.
I have a Windows C# application . The application connects to a RFID card reader over serial port . Though i have given it COM port 3 by default . I land into situations where user's port is not available and his port being used is something different by his windows OS.
However, I am not able to see or read any data from the serial port using ActionScript. This is odd, because the Arduino should be printing data on a loop. The only thing I can think of is that I am not setting the correct serial port number. I have been trying to figure out how to find out what number should be set, that is, 5331, 5332, 5333, etc. USB connections do not have com port numbers assigned to them unless its a usb-serial adapter which then it will assign a virtual com port #. Instead they have an address assigned to them. A simple way that I would do it would be if your running windows 7 is to go to devices and printer by clicking start-then click devices and printers.
My application does give user the ability to change the COM port , but to find which COM port is being used by their operating system , user needs to go to Device Manager and check , which a novice person might not be comfortable with .
Ps/2 Port
Is there a function or a way to find exactly to what port is my RFID card connected to in Windows , so that i can simply display like :
Application Port Set to : COM ....Device Connection Port on OS : COM ....
Also my target framework is 3.5
Edit 1:
Tried using SerialPort.GetPortNames() but it returns an empty string as : System.String[]..
My RFID device is listed under Device Manager > Ports(COM & LPT) as Silicon Labs CP210x USB to UART Bridge (COM3)
user3828453
user3828453user3828453
1 Answer
Device Serial Number On Pc
Hi @user3828453 how about the following and then you can, just use the correct port number which is returned if you still have an empty port than you have to ask the user to go into device manager and update the port via your interface.
Johan J v RensburgJohan J v Rensburg