Reading data from UART

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi there, 

   

I have connected device with Psoc5 device. I am not sure how can I read data from it. So , basically I send AT commands from Host (Psoc5 device ) to client device. 

   

I am able to test client device through serial term from PC and it is working fine, now I have connected that to Psoc5. I am able to send the data, now I am not sure how could I read response back ?

   

I do send as follow

   

UART_PutString("AT"); 

   

device will give you now Ok response, so not sure hoe could I read it ?

   

Your help would be great !!

   

Thanks

0 Likes
1 Reply
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Assuming that your hardware connections are correct and the signal levels are shifted (PC serial uses +-12V, PSoC uses GND to VDD, so a level shifter as MAX232 needed) there are some APIs within the UART component.

   

You should check the UART Rx status for a character ready and if so, retrieve it using GetByte()

   

 

   

Bob

0 Likes