Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Again:Transmit files by Serial Ports

Again:Transmit files by Serial Ports

Scheduled Pinned Locked Moved C / C++ / MFC
questionperformancehelp
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Angel Kid
    wrote on last edited by
    #1

    Hi,guys three days ago I post my question about transmit files by Serial Ports here. "I have a question when I was writing the program about serial communication. It seems that most articles about serial communication are wrote to the characters transmission.But now I want to transmit files by serial ports,how could I do that.I mean "transmit files" is that copy files on a PC to another. Is there anyone could give me a method to do that? Thanks very much. " Now I have map the file to the memory ,and could write it to the cache of serial ports,and can read the content of the file.but my purpose is copy files form a PC to another.So......anyone could help me again? YES, I am here.

    E 1 Reply Last reply
    0
    • A Angel Kid

      Hi,guys three days ago I post my question about transmit files by Serial Ports here. "I have a question when I was writing the program about serial communication. It seems that most articles about serial communication are wrote to the characters transmission.But now I want to transmit files by serial ports,how could I do that.I mean "transmit files" is that copy files on a PC to another. Is there anyone could give me a method to do that? Thanks very much. " Now I have map the file to the memory ,and could write it to the cache of serial ports,and can read the content of the file.but my purpose is copy files form a PC to another.So......anyone could help me again? YES, I am here.

      E Offline
      E Offline
      Eugene Pustovoyt
      wrote on last edited by
      #2

      Attach to the transmitted data header of a file and transfer all this, and let the receiver will create a file by header and will write in him data. Best regards, Eugene Pustovoyt

      A 1 Reply Last reply
      0
      • E Eugene Pustovoyt

        Attach to the transmitted data header of a file and transfer all this, and let the receiver will create a file by header and will write in him data. Best regards, Eugene Pustovoyt

        A Offline
        A Offline
        Angel Kid
        wrote on last edited by
        #3

        Thanks your reply.but I can not understand what is "Attach to the transmitted data header of a file ".what is header? YES, I am here.

        E 1 Reply Last reply
        0
        • A Angel Kid

          Thanks your reply.but I can not understand what is "Attach to the transmitted data header of a file ".what is header? YES, I am here.

          E Offline
          E Offline
          Eugene Pustovoyt
          wrote on last edited by
          #4

          You're must from file's header create your own header (name, extension, date, attributes etc.) as data and add it to begin data from file. After this you can transmit this packet through serial port. Receiver must extract header from packet and create file on disk. And after this you must put the file's data from the packet to him. Best regards, Eugene Pustovoyt

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups