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. Latency timer settings of communication port

Latency timer settings of communication port

Scheduled Pinned Locked Moved C / C++ / MFC
questioncomhelp
5 Posts 4 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
    AnayKulkarni
    wrote on last edited by
    #1

    Hello to all, In my project I am using a virtual com port means when I connect my device to USB port of a computer then computer creates a virtual serial port and when I disconnect that device then that port gets destroied.Now for my software I need "latency timer(msec)"(which we find in "Advanced" settings of a port) of this serial port to be "10", by default it is "16" there.So my question is can we change this "latency timer(msec)" of a port through programm at the time of opening the port? and if yes then how? Means suppose e.g. I connected my device to the USB port of a computer and computer created a virtual port as "COM 5" then by default "latency timer(msec)" of this "COM 5" will be "16" and I want to change it to "10" then can I do it through programm itself at the time of opening "COM 5"? Its really urgent so please can anybody help me? Thanks and Regards, Anay

    C U 2 Replies Last reply
    0
    • A AnayKulkarni

      Hello to all, In my project I am using a virtual com port means when I connect my device to USB port of a computer then computer creates a virtual serial port and when I disconnect that device then that port gets destroied.Now for my software I need "latency timer(msec)"(which we find in "Advanced" settings of a port) of this serial port to be "10", by default it is "16" there.So my question is can we change this "latency timer(msec)" of a port through programm at the time of opening the port? and if yes then how? Means suppose e.g. I connected my device to the USB port of a computer and computer created a virtual port as "COM 5" then by default "latency timer(msec)" of this "COM 5" will be "16" and I want to change it to "10" then can I do it through programm itself at the time of opening "COM 5"? Its really urgent so please can anybody help me? Thanks and Regards, Anay

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

      What is this "latency timer(msec)" exactly ? Is this something specific to your device ? How do you set it usually (you are talking about an "Advanced" settings but from where is that coming from ?).

      Cédric Moonen Software developer
      Charting control [v1.5] OpenGL game tutorial in C++

      A 1 Reply Last reply
      0
      • C Cedric Moonen

        What is this "latency timer(msec)" exactly ? Is this something specific to your device ? How do you set it usually (you are talking about an "Advanced" settings but from where is that coming from ?).

        Cédric Moonen Software developer
        Charting control [v1.5] OpenGL game tutorial in C++

        A Offline
        A Offline
        AnayKulkarni
        wrote on last edited by
        #3

        No this is not my device specific. when we see the port number(right click on "My Computer" then go to Properties->Hardware->Device Manager->Ports(COM & LPT) ) double click on that port number in that u will get "Port Settings" option, click on it and then click on "Advanced" button, here u will get "latency timer(msec)" option.

        J 1 Reply Last reply
        0
        • A AnayKulkarni

          No this is not my device specific. when we see the port number(right click on "My Computer" then go to Properties->Hardware->Device Manager->Ports(COM & LPT) ) double click on that port number in that u will get "Port Settings" option, click on it and then click on "Advanced" button, here u will get "latency timer(msec)" option.

          J Offline
          J Offline
          Jonathan Davies
          wrote on last edited by
          #4

          Could be that GetCommProperties and Set.. will let you set this, it may append the 'latency' variable as below ...

          // Set internal member to size of struct only and make a copy of the size
          WORD wSize = lpCommProp->wPacketLength = sizeof(COMMPROP);

          // Will set lpCommProp->wPacketLength to extra size required if any data to be appended
          if(!GetCommProperties(m_hPort,lpCommProp))

          1 Reply Last reply
          0
          • A AnayKulkarni

            Hello to all, In my project I am using a virtual com port means when I connect my device to USB port of a computer then computer creates a virtual serial port and when I disconnect that device then that port gets destroied.Now for my software I need "latency timer(msec)"(which we find in "Advanced" settings of a port) of this serial port to be "10", by default it is "16" there.So my question is can we change this "latency timer(msec)" of a port through programm at the time of opening the port? and if yes then how? Means suppose e.g. I connected my device to the USB port of a computer and computer created a virtual port as "COM 5" then by default "latency timer(msec)" of this "COM 5" will be "16" and I want to change it to "10" then can I do it through programm itself at the time of opening "COM 5"? Its really urgent so please can anybody help me? Thanks and Regards, Anay

            U Offline
            U Offline
            User 12930437
            wrote on last edited by
            #5

            MFC reg edit function use.. FTDIBUS - LatencyTimer (DWORD - 16 (default))

            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