![]() ![]() The value we expect would be around 19.2 kBaud. Running the code through the debugger shows that the baudrate is 1200 irrespective of the value I assign. LpcPortName = L"COM3" hComm = CreateFile(lpcPortName, GENERIC_READ|GENERIC_WRITE, // Open for reading or writing 0, // Share mode - no share 0, // Security - handle can't be inherited OPEN_EXISTING, // Opens device FILE_FLAG_SEQUENTIAL_SCAN, // Sequential access 0 // Template file - none ) if (hComm = INVALID_HANDLE_VALUE) // End code fragment The key section is for "dcb.BaudRate". Following is the code in question: // Begin code fragment LPCWSTR lpcPortName Moreover, when I check the DCB, the value is 1200, irrespective of the value I put in the DCB. The problem I'm encountering is that a device that should be operating at 19.2 kBaud seems to be reading at 1200 Baud. A serial to USB modification was made so said device could run under XP - the original device runs under NT using a driver that is no longer supported. ![]() The explanation is: "Please note that FTDI have not produced a programmer's guide for VCP drivers due to the large amount of documentation available from Microsoft on serial communication." The device in question is for reading/writing mag tape cartridges running on an XP machine. I'm posting this question here because the FTDI Chip site offers no programmer's reference for its Virtual COM Port drivers.
0 Comments
Leave a Reply. |