Hello
i tried to use the UART5 to open a halfe duplex communication with an RS485 device.
the UART is on HArdware side adapted to the RS485 over an external driver.
first I tried to open the UART5 like the example in this thread
but it faild at this point
*port = CreateFile(TEXT("CoM5:"), GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, FILE_FLAG_WRITE_THROUGH, NULL);
if (*port == INVALID_HANDLE_VALUE)
{
printf("Error Opening CoM Port\n");
return FALSE;
}
which fault have i done to open this port.
additional question is which modifikation i have to do to run the UART5 as RS485 in halfe duplex mode
thanks for the Help