I have a hunch that the problem in my code lies in the second program. The second program creates a file called "testout.jpg", and is supposed to read in the data sent from the previous program. It then closes the file, and is supposed to send that file over a serial port. The first program opens a file "test.jpg", reads it in binary mode and stores the result in a buffer. Please note, I asked a question similar to this earlier when I was at a different stage of this project.īelow are programs. I need help reading and writing binary data over a serial port, and would appreciate any advice you may have. So I searched around, and couldn't exactly find what I needed.
0 Comments
Leave a Reply. |