Explain me how to read and write a file using Serial port

This is a discussion on Explain me how to read and write a file using Serial port within the C Programming forums, part of the General Programming Boards category; Note:Windows 7, visual studio 2010 ,only C Explain me a working code to read and write a file using serial ...

  1. #1
    Registered User
    Join Date
    Dec 2013
    Posts
    4

    Question Explain me how to read and write a file using Serial port

    Note:Windows 7, visual studio 2010 ,only C

    Explain me a working code to read and write a file using serial communication.and i need to store that file.

    I know normal file handling in C, but how it is through serial port i am not getting .






    waiting for your reply

  2. #2
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    What else can you tell us about this communication set up? For example, what will be on the other side beyond the serial port, to receive the file? Are you using a serial cable for the transfer? Will you be needing a specific serial communication protocol, like RS-232 or what?

    This is not a real easy task. Here's what I'd suggest:

    1) If you have requirements for the program, list them.

    2) List the hardware and software of the receiving unit.

    3) Describe how the receiver will know it should be receiving data, and to put it into a file.

    4) List the protocol you want to use.

    5) Google search for the topic, but avoid the Linux instructions you may run into. They have a different way of doing this. See what you can learn from it.

    6) Make a VERY small test file for your program. Also, be sure your anti-virus software will allow access to your serial port, on both sender and receiver.

    7) Understand that we won't start your program for you. It's up to YOU to do that. If you get stuck on code after you have started, then post up what you have, and we will try to help with some specific problem. That's how the forum works.

    Give yourself plenty of time, these communication programs can be time-consuming.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. read write serial port
    By Marvin Gorres in forum C Programming
    Replies: 16
    Last Post: 06-23-2013, 08:41 AM
  2. Write to serial port
    By sombrancelha in forum C++ Programming
    Replies: 14
    Last Post: 06-01-2012, 09:08 AM
  3. Serial port read/write problem
    By ojaro in forum C Programming
    Replies: 5
    Last Post: 06-25-2010, 09:26 AM
  4. serial port read
    By mackrackit in forum C++ Programming
    Replies: 6
    Last Post: 03-22-2006, 01:40 AM
  5. read from and write to serial port
    By wazilian in forum Networking/Device Communication
    Replies: 3
    Last Post: 04-25-2004, 09:22 AM

Tags for this Thread


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21