- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello All,
I´m working in a program to read/write serial COM devices. It works correctly with any COM ports and with USB-COM devices, but in this board using UartSub Device drivers from Intel, I have detected some problems in the next Win32 API methods that I use from Windows API (https://docs.microsoft.com/en-us/previous-versions/ms810467(v=msdn.10)):
- Problem 1: After opening correctly COM port I´m trying to call SetupComm(hCom, 1024, 1024); with valid handle returned but it fails with next error: SetupComm failed with error 31: A device attached to the system is not functioning.
- Problem 2: When calling ClearCommError(hCom, &dwErrorFlags, &ComStat) and check value returned in ComStat.cbInQue from COMSTAT struct, sometimes in cbInQue the devices is returning invalid values (83886080 bytes or -1460703136 bytes ...)
Any ideas or additional tests to do ? I found for new drivers but it seems this is the lastest. The source code used in my program is based on samples of Microsoft and you can see a similar reference in this page: https://wangbaiyuan.cn/en/c-serial-communication-write-reading-2.html
Thank you in advance for your help
Best Regards
Jorge
PS: I attached a picture with COM devices that apparently are installed correctly in Device Manager and we can open/close port correctly.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Jorge!
Did you resolve this issue? How?
We have the same problem on our board with Skylake and x64 Windows 10.
Thanks!
Best regards, Danilov Igor.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page