我想使用USB转成串口,通过普通的串口工具和板子通讯。
这是我使用的描述符,PC枚举上设备并出现了一个虚串口号,并且可以使用超级终端向板子这边发送字符,但是板子这边向PC发送字符,PC只通过IN TOKEN接收一个字符后,再也不发IN TOKEN了是不是使用超级终端不能直接从板子这边向PC发字符呢?
static T_U8 deviceDescrCDC[] = { /* USB device descriptor */
18, /* sizeof(usbDescriptorDevice): length of descriptor in bytes */
DEVICE_DESC_TYPE, /* descriptor type */
0x10, 0x01, /* USB version supported */
0x02, /* device class: CDC */
0, /* subclass */
0, /* protocol */
64, /* max packet size */
0x71, 0x04, /* 2 bytes */
0x77, 0x07, /* 2 bytes: shared PID for CDC-ACM devices */
0x00, 0x01, /* 2 bytes */
0, /* manufacturer string index */
0, /*
这是我使用的描述符,PC枚举上设备并出现了一个虚串口号,并且可以使用超级终端向板子这边发送字符,但是板子这边向PC发送字符,PC只通过IN TOKEN接收一个字符后,再也不发IN TOKEN了是不是使用超级终端不能直接从板子这边向PC发字符呢?
static T_U8 deviceDescrCDC[] = { /* USB device descriptor */
18, /* sizeof(usbDescriptorDevice): length of descriptor in bytes */
DEVICE_DESC_TYPE, /* descriptor type */
0x10, 0x01, /* USB version supported */
0x02, /* device class: CDC */
0, /* subclass */
0, /* protocol */
64, /* max packet size */
0x71, 0x04, /* 2 bytes */
0x77, 0x07, /* 2 bytes: shared PID for CDC-ACM devices */
0x00, 0x01, /* 2 bytes */
0, /* manufacturer string index */
0, /*