get com port number of an USB adapter

后端 未结 5 990
既然无缘
既然无缘 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:56

    Basically, this is due to the HID (Human Interface Device)

    I think that this is due to the HID provided by the arduino board. Arduino hardware (and thus, the microcontroller) communicates directely with the PC using HID (and so, no need for additional device). And HID can behave as a mouse, keyboard, or simply a serial device (it "simply" declare itself to the PC as a Serial Comport). So somehow, there is some "intelligent" way when communicating with the PC.

    On the other hand, USBtoSerial converters and in some Arduino boards, like the Arduino Nano which embed an FTDI (or CH340), these are "obliged" to behave as a normal comport cause there is no intelligence behind (the the one behind the HID).

提交回复
热议问题