From 0fcfad0ee6d4510c8cbfb22e757e68a442b94b0b Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 21 Mar 2016 22:05:59 +0100 Subject: [PATCH] CHG: testing for windows clients to get a higher baudrate. Was 9600, testing 115200 as for non_win. CHG: testing to set USB 2.0 standard, instead of USB1.1 ... --- client/uart.c | 2 +- common/usb_cdc.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/client/uart.c b/client/uart.c index e3a6a57b..71cea110 100644 --- a/client/uart.c +++ b/client/uart.c @@ -369,7 +369,7 @@ serial_port uart_open(const char* pcPortName) { // Prepare the device control memset(&sp->dcb, 0, sizeof(DCB)); sp->dcb.DCBlength = sizeof(DCB); - if(!BuildCommDCBA("baud=9600 data=8 parity=N stop=1",&sp->dcb)) { + if(!BuildCommDCBA("baud=115200 parity=N data=8 stop=1",&sp->dcb)) { uart_close(sp); return INVALID_SERIAL_PORT; } diff --git a/common/usb_cdc.c b/common/usb_cdc.c index 79f34979..9bdaed29 100644 --- a/common/usb_cdc.c +++ b/common/usb_cdc.c @@ -46,7 +46,8 @@ const char devDescriptor[] = { /* Device descriptor */ 0x12, // bLength 0x01, // bDescriptorType - 0x10,0x01, // Complies with USB Spec. Release (0110h = release 1.10) + //0x10,0x01, // Complies with USB Spec. Release (0110h = release 1.10) + 0x00,0x02, // Complies with USB Spec. Release (0110h = release 2.00) 0x02, // bDeviceClass: CDC class code 0x00, // bDeviceSubclass: CDC class sub code 0x00, // bDeviceProtocol: CDC Device protocol -- 2.39.2