I need to send the data of the file through a serial COM1 port to a FPGA that has a mpeg-2 decoder running on it. The mpeg decoder will then send the decoded stuff back thru the COM2 port. So what i have is a program running on a PC that is converting the file (.m2v) into a bitstream that is to be sent thru the COM1 port.
The following are to be taken care of :
(1) I am to use GCC only.
(2) The data to be read from file should be sent thru COM1.
-- To check whether the program (that is yet to be made) works or not, i will connect COM1 to COM2 and then send thru COM1 and recieve thru COM2.
AIMS & Objectives :
-- read data from a file (say input.txt) and send this data thru COM1.
-- recieve data from a serial port (say COM2) and write this into a file.
I need :
(1) Program that reads file in 'n' bytes at a time. This is pretty simple and i have a version made by myself.
(2) Program (This is Important) that sends this read data thru the serial port. (and recieves too)
Remember : All in GCC.
Email : firstname.lastname@example.org (feel free to email me, this is urgent :D )