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. Serial Communication - Laptop and PDA

Serial Communication - Laptop and PDA

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++comhardwarehelp
2 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.
  • D Offline
    D Offline
    Deepa Gopal
    wrote on last edited by
    #1

    Hello, I am a beginner in the world of Embedded VC++ programming and am confronted with the following problem: I have a PDA (iPAQ, Win CE OS) connected to my Laptop. I have to implement a program such that i can write data to the COM port which the PDA has to read and display.Now, I can write seperate read and write programs, but how can I run it simultaneously?Moreover, if the port is open for writing by one program can I open it for reading by another program at the same time?Any pointers in clearing the above queries is most welcome. Thanks a lot for your time, Deepa.

    J 1 Reply Last reply
    0
    • D Deepa Gopal

      Hello, I am a beginner in the world of Embedded VC++ programming and am confronted with the following problem: I have a PDA (iPAQ, Win CE OS) connected to my Laptop. I have to implement a program such that i can write data to the COM port which the PDA has to read and display.Now, I can write seperate read and write programs, but how can I run it simultaneously?Moreover, if the port is open for writing by one program can I open it for reading by another program at the same time?Any pointers in clearing the above queries is most welcome. Thanks a lot for your time, Deepa.

      J Offline
      J Offline
      J B 0
      wrote on last edited by
      #2

      Deepa Gopal wrote: if the port is open for writing by one program can I open it for reading by another program at the same time? From my undestanding, since the two programs are running on different machines (laptop and PDA), you just have to make sure both sides have opened the same port using the same settings (e.g. Parity, Flow Control..etc). Have the PDA continously reading any incoming data (ReaadFile()) and the laptop to send the data whenever you like. Hope it helps in some way.

      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