I am using CY8CKIT-059 with usbuart module. On the PC side I'm using Teratem to send and receive data. teratem send a file .txt file over the uart. The code is working fine but now I want to remove the Teratem(any terminal). I want to implement it just by some piece of code. that can open a com port on PC side and send a file (.txt) from particular location in pc to cypress controller. Is there any way to implement this?
Solved! Go to Solution.
Just make a PC- side application which sends data to COM port. Use whatever programming language you know (Python, C#, Qt,...), and study any basic example sending Tx commands using UART. It is not related to PSoC programming.
BoTa, Thanks for the reply. my main concern is that is it possible with cypress psoc creator I can read a .txt file from PC directory and sent over UART (com port) to cypress controller?
It seems like you will have to save the text file for PSoC first.
I see 2 options:
1. use SD CARD (emFile)
2. AN93979 PSoC 3 and PSoC 5LP Implementing a USB Mass Storage Device
No, I don't believe so. Creator IDE can't do that. It only creates code for PSoC. You have to utilize some other creative programming language on the other side. Fortunately it is trivial. If you feel it's too much for you, ask someone around, this is 15 min job. Else post your request on DICE.com or similar websites.
If you're using PSoC USB module as UART, you can write a batch file for Windows console, which transfers the given text file to COM port.
Just one or two lines of command line instructions.