Virtual COM port or using raw endpoints?

前端 未结 1 585
甜味超标
甜味超标 2021-01-22 07:51

I\'m developing software in a microcontroller with a USB controller and code example to implement a Virtual COM port.

The implementation it\'s a device that transfer dat

1条回答
  •  时光说笑
    2021-01-22 08:39

    To implement a virtual COM port you also have to use a USB class USB CDC ACM.

    https://en.wikipedia.org/wiki/USB_communications_device_class

    See this for UART standard baud rates https://electronics.stackexchange.com/questions/9264/what-standard-uart-rates-are-there

    110, 300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 38400, 57600, 115200, 230400, 460800, 921600,... High baud rates sometimes make problems

    When using USB CDC ACM the device will be recognized as (virtual) COM port and can be accessed via a termin

    bulk transfer is the easiest way to transfer data at maximum speed and can be used with the mass storage device class

    https://en.wikipedia.org/wiki/USB_mass_storage_device_class

    The device will be recognized as mass storage (normal drive like a USB stick)

    See this http://www.beyondlogic.org/usbnutshell/usb4.shtml#Bulk

    If you need examples and source code for Atmel MCU see the LUFA library (http://www.fourwalledcubicle.com/LUFA.php) or check out the embedded operating systems like Contiki OS. These include USB source code for other MCUs like MSP430,... also

    0 讨论(0)
提交回复
热议问题