I have been testing RaspberryPi3 with Windows IoT Core to communicate with my existing FreeScale Hardware via RS485. I have been using SerialUART sample as reference. After my UWP successfully init the UART port, I don't seems to be able to receive the RS485 data transmitted by my hardware.
My hardware RS485 UART are configured at 4800baudrate, 8-bit data format, non-parit & stop-in-wait-mode disabled. I managed to successfully init 4800-8-none-one
on UWP sample but the data transmitted by the hardware does not trigger and display on Read Data
text block
.
The data transmitted from my hardware is in hex which is F5-01-55-4B
An error appear during the transmission.
The RS485 circuit is as follow.
Please advise did I miss out anything? Thanks.
private async Task ReadAsync(CancellationToken cancellationToken)
, thebyteRead
isUInt32`. – mylimRx
andTx
.. the pin connection is correct. – mylimdataReaderObject.ReadString
? I'm not sure if you have modified the code inReadAsync
method. From the exception message, i think you need to make sure the received data could be encoded by Unicode. – Michael Xu - MSFT