0
votes

I have a USB to Serial cable that plugs into a custom built electronics board.

I'm trying to write a UWP app that will 'talk' with it. I have a Raspberry Pi 3, Windows IOT.

I have the capability set:

<Capabilities>
  <DeviceCapability Name="serialcommunication">
    <Device Id="any">
      <Function Type="name:serialPort" />
    </Device>
  </DeviceCapability>
</Capabilities>

I run this code on my local machine and on the remote machine (Pi):

string AQS = SerialDevice.GetDeviceSelectorFromUsbVidPid(0x067B, 0x2303);

DeviceInformationCollection currentDevices = await DeviceInformation.FindAllAsync(AQS); 

var devicesFound = currentDevices.Count;

On the Local Machine (x86) it says I have 1 device, connects and chats fine..

On the Remote Machine it says there is 0

I've tried booting the Pi with the device plugged in, plugging while booted - What am I missing here?

Edit

I ran a devcon stack * in the console and found my device:

USB\VID_067B&PID_2303\5&3753427A&0&3
    Name: USB-Serial Controller
    Device is not set up
    Controlling service:
        (none)

and devcon status:

USB\VID_067B&PID_2303\5&3753427A&0&3
    Name: USB-Serial Controller
    The device has the following problem: 28
    Problem status: 0xC0000490

Does this mean I need a driver?

1
There is a little info about troubleshooting USB serial ports here : social.msdn.microsoft.com/Forums/en-US/… - PaulF
@PaulF Thanks for the comment - I've edited my question - does this mean I need a driver or the hardware is simply not compatible? - Smithy
"does this mean I need a driver" - maybe "the hardware is simply not compatible" - maybe - Code 28: docs.microsoft.com/en-us/windows-hardware/drivers/install/… - I don't think all USB UART chipsets are supported on Win IOT. - PaulF
@PaulF this is proving more difficult than first thought! - I'm trying to find either a generic driver or compatible hardware now :/ - Smithy

1 Answers

1
votes

Please refer to the Hardware compatibility list, it lists the verified deives which is compatible with Windows IoT Core. It is recommended to use the device in the list.