Tamer
Tamer

Reputation: 105

UWP UART send/recieve bytes incorrectly

i have Pi3 and i'm developing UWP to transfer data from/to Pi3 and another device (currently PC over UART)

but i can't get the right data, i'm using the Sample from Microsoft SerialSample but it didn't work, the data comes not right, i enforced the encoding in the App in both sides but no luck.

Link to the sample

Upvotes: 0

Views: 276

Answers (1)

Rita Han
Rita Han

Reputation: 9710

You need check hardware compatibility list to see if your device is supported on Windows IoT core.

Also, and for serial sample here is a note to state the supported USB-to-TTL cables or modules:

NOTE: Only USB-to-TTL cables and modules with Silicon Labs chipsets are natively supported on MinnowBoard Max and Raspberry Pi2.

So, USB-Serial CH340 is not supported on Windows IoT core.

For doing self testing of the device, you can use the sample and do the following two tests :

  1. First, shorten Tx and Rx of the USB-to-TTL cable to test it on PC.
  2. Second, shorten Tx and Rx pins on Raspberry Pi to test its on-board UART.

You will receive what you have sent if the device works normally.

Upvotes: 1

Related Questions