I am developing Windows 10 IOT UWP App to send data via Serial Port (UART0) and also some date to Hardware SPI0 pins, but its not working, same Software Application (written in C# and XAML\ UWP App) works fine when deployed on Raspberri Pi 3 with Windows 10 IOT.
i got the sample code from Dragonboard Pin Mappings - Windows IoT | Microsoft Docs this article and this article shows code for Raspberri Pi3, Dragon Board and minnowboard max ,
here my Actual Code:
// //Custom Code
string aqs = SerialDevice.GetDeviceSelector(“UART0”);
var dis = await DeviceInformation.FindAllAsync(aqs);
/* Find the serial device with our selector string /
serialPort = await SerialDevice.FromIdAsync(dis[0].Id); / Create an serial device with our selected device */
Basically SerialDevice.FromIdAsync(dis[0].Id) is failing to retrieve serial port, and it always returns null, and i suspect that serial port (UART0) and SPI0 may be disabled.
Same line of codes executes well on Raspberri Pi and returns serialPort object