Latency timer settings of communication port
-
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
-
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
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++ -
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++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.
-
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.
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)) -
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
MFC reg edit function use.. FTDIBUS - LatencyTimer (DWORD - 16 (default))