You are here

UART Receive data incorrect (sometimes) | Cypress

UART Receive data incorrect (sometimes)

Summary: 3 Replies, Latest post by kiku on 14 Jan 2011 03:03 AM PST
Verified Answers: 0
Last post
Log in to post new comments.
Swys's picture
User
5 posts

 Hi all,

 

I have a problem with the UART on the PSoC 5 and the CY8CKIT-001 development kit. What I am doing, is sending (Modbus) data via a serial to USB cable from the PC to the device. When using Realterm to send the data packet to the device, everything works fine, every time. However, if I send the data packet from a C# app using the .net SerialPort class, some bytes get scrambled at the device side. This does not happen every time, but actually most of the time. I used the same C# app on a PIC Modbus devce that I built, and it works fine every single time.

 

I actually resorted to go to Java, using the RXTX library to send the Modbus packet to the device. However, the same happens from the Java app.

 

How can this be, that the data gets to the device correctly when I am using Realterm, but when I am using any other custom app, some bytes get scrambled?

Please help me with this

Swys's picture
User
5 posts

I also ran the same C# app to query a PIC micro of mine with great success (every time).

 

 Isn't there anyone (maybe from Cypress?) who can please help me with this?

Stub for 2575603's picture
User
99 posts

That does seem odd.  I'll talk to one of our application engineers, but I think we might need to move this case over to our technical support tool.  That will allow us to have a one-on-one dialog and potentially share project files back and forth.

 

-Bobby

kiku's picture
Cypress Employee
64 posts

Hi,

Yes. Can you please create a Tech Support case on this issue as we may require to debug your code.

You can create a case by
Design Support -> Tech Support -> Create a Case -> Create a Case -> Select "Technical Support" -> Enter the details of your issue, attach your project and click CreateMyCase.

Regards,
Kishore.

Log in to post new comments.