Use UART on Windows 10 LTSC
Hi everyone,
I'm using Windows 10 Enterprise on UP squared board. My final goal is to use the UART in a .NET application. At the moment I'm doing simple tests to use the UART interfaces using Hercules terminal, but when i try to open the serial port it raise this error: "Error set Event control". Now i can use the uart0 (on the CN7 connector) 'in loop' (connecting tx and rx pins together). Instead, if i try to connect the uart0 to another PC using a USB TTL cable the communication doesn't work properly.
Is there any setting to adjust in order to make it work?
Could it be a driver problem?
Any answer wil be very welcome
Circk
Comments
-
Searching on web and testing i think the problem is due to the drivers used for the HSUART. To use this interfaces from Windows Form application, as i needed, the only way i found is to use the Win32 APIs for serial communications importing these using the DLLImport attribute, since the native namespace System.IO.Ports looks not working at all. I hope this could help someone.
-
Hi, have you succeeded using Win32 API ? I have tried PInvokeSerialPort library, but it throws exception "Bad com settings". When using DMS everything is OK (the same problem is described here: https://forum.up-community.org/discussion/4774/uart-port-works-on-windows-10-using-minicom-device-monitoring-studio-etc-but-not-on-putty#latest)