SerialportCommunication

maybe you can have a look on these topics:

The sample code there should be working with UART.