Click here to Skip to main content
15,900,815 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I am having RFID reader when it installs in system it shows me com port 17
but when i run the application it doesn't work..
when i change the com port to com 3 from device manager properties, it works properly..
i think com 3 is hard coded in api...
I don't want to let the client to change com port from device manager,
is there any provision to change com port from c# code..
if yes plz help me...
Thanx in advance
Updated 12-Jun-15 1:15am

1 solution

Um...Even if you could, it's not going to be easy. The problem is that the COM port number is tied up with the device driver - so you would need to locate the specific driver settings in the registry and and "tweak" them. Which is (a) difficult, working blind; and (b) dangerous. I wouldn't want to do it, particularly if it's a machine outside my control and very, very specifically if it's a client machine. If you make a small mistake...gawd knows what happens with the client's other software or hardware... Not a risk I'd want to take.

Instead, I'd contact the RFID reader manufacturer, and explain your problem - they may have a solution, or even create a software version for you. If not, I'd find a different RFID reader, it's not as if they have a monopoly on supply! :laugh:
Share this answer
Madhuri Gamane 12-Jun-15 8:02am    
Yes i have already contact to manufacturer...
and he suggest me this solution to change com port from device manager :-|

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900