MinnowBoard-org / bugs-and-help

Ask QUESTIONS here. MinnowBoard.org issue and get help submission. See README for use.
14 stars 2 forks source link

How to enbale Turbot Low Speed Expansion UARTs #70

Open etc107 opened 7 years ago

etc107 commented 7 years ago

I have installed Windows 10 OS onto MinnowBoard Turbot. Using the device manager I can see two UART Controllers which I believe are mapped to the Low Speed Expansion UART1 and UART2. I'm porting an existing C# .NET WinForm application that I would like to have access these additional UARTs. I included references for UWP and WinRT and am using Windows.Devices.SerialCommunications.

private async void ListAvailablePorts() { try { string aqs = SerialDevice.GetDeviceSelector(); var devInfo = await Windows.Devices.Enumeration.DeviceInformation.FindAllAsync(aqs);

    for (int i=0; i<devInfo.Count; i++) 
    {
      var match = new DeviceListEntry(devInfo[i], aqs);
      listOfDevices.Add(match);
    }

  }
  catch (Exception ex)
  {
    ErrorHandler(ex.Message);
  }
}

The above method only finds COM1 on the minnowboard and not the low speed Expansion UART1 & UART2. How can I access these UART controllers for serial port communications?

Thanks etc107