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. USB-Serial adpater and normal serial communication

USB-Serial adpater and normal serial communication

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorial
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.
  • V Offline
    V Offline
    Veeresh Hiremath
    wrote on last edited by
    #1

    Hi friends, I have an application built using VC++ 6.0 . In these we incorporate serial communication using rs-232 serial port and also thru USB-Serial adapater Now ny requirement is to put a small delay only when the application runs thru USB-Serial not when normal serial communication is used to run the application. These delay is have to do since the data transfer thru USB-Serial is faster as compared to normal serial Now can u please tell me how to find whether the application is running thru USB-Serial or Normal Serial port.

    C 1 Reply Last reply
    0
    • V Veeresh Hiremath

      Hi friends, I have an application built using VC++ 6.0 . In these we incorporate serial communication using rs-232 serial port and also thru USB-Serial adapater Now ny requirement is to put a small delay only when the application runs thru USB-Serial not when normal serial communication is used to run the application. These delay is have to do since the data transfer thru USB-Serial is faster as compared to normal serial Now can u please tell me how to find whether the application is running thru USB-Serial or Normal Serial port.

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      Veeresh Hiremath wrote:

      Now ny requirement is to put a small delay only when the application runs thru USB-Serial not when normal serial communication is used to run the application. These delay is have to do since the data transfer thru USB-Serial is faster as compared to normal serial

      Why do you need to do such a thing ? :confused: That sounds very strange. Your applications (on both sides) should never be dependent on the time needed to transmit the data on the link (it can be unreliable). Anyway, with windows, you won't be able to have a precision under 10 or 15 msec as windows is not a real-time operating system. Maybe if you describe more in detail your problem we can help you to find another solution (please, describe it with keeping in mind that we don't know your app and that we cannot see your screen).


      Cédric Moonen Software developer
      Charting control

      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