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. Transmit files by Serial Ports

Transmit files by Serial Ports

Scheduled Pinned Locked Moved C / C++ / MFC
question
3 Posts 3 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,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. YES, I am here.

    A T 2 Replies Last reply
    0
    • A Angel Kid

      Hi,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. YES, I am here.

      A Offline
      A Offline
      Abbas_Riazi
      wrote on last edited by
      #2

      It's very simple. Read file character by character and send this character to another PC by your serial interface. Another PC read these character and save them on a new file! This article[^] has a sample demo for transferring files by Serial Port! A. Riazi

      1 Reply Last reply
      0
      • A Angel Kid

        Hi,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. YES, I am here.

        T Offline
        T Offline
        Ted Ferenc
        wrote on last edited by
        #3

        Just sending characters is Ok for a simple application. To do it "properly" you need to use some protocol to prevent the loss of data, such as XMODEM, YMODEM, KERMIT etc. I am sure you can easily find a freeware library for XMODEM or YMODEM, with these protocols you can also send the name of the file you are transfering, I can't rember if that one is XMODEM or YMODEM. Happy hunting


        If I have seen further it is by standing on the shoulders of Giants. - Isaac Newton 1676

        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