get com port number of an USB adapter

后端 未结 5 938
既然无缘
既然无缘 2021-01-16 17:23

I am trying to write a program that uses an arduino mega and a FTDI-based USB to RS485 adapter.

I want to make the program user-friendly, thus I don\'t wont the user

5条回答
  •  无人共我
    2021-01-16 17:42

    Well, after studying several forums, I discovered that the com port associated to the USB/RS485 adapter is listed if I run the query SELECT * FROM Win32_PnPEntity .

    But I really don't understand why the serial port of the arduino is shown by a query and the other port with the other query.... I mean, those are both uSB<->serial adapters!

提交回复
热议问题