Can someone please explain COMTIMEOUTS for me?

I have an application that has strict timing.

Inter-character delay must be no more than is 0.15s

The messages themselves are quite small. 10 - 50 chars

I don't understand what ReadTotalTimeoutMultiplier and ReadTotalTimeoutConstant actually mean in practice.

The math in this example doesn't work? http://www.lookrs232.com/com%5Fport%5Fprogramming/api%5Fcommtimeouts.htm

-------------Problems Reply------------

ReadIntervalTimeout = max time between two bytes ReadTotalTimeoutConstant = max time for a multi-byte read to complete ReadTotalTimeoutMultiplier = extra time allowed for each byte in a multi-byte read

Since you specified a strict limit on the inter-character delay, you'll want to only set ReadIntervalTimeout. Odd btw, the usual limit is a time-out on a message.

Category:windows Views:0 Time:2009-11-26

Related post

  • Can you explain closures (as they relate to Python)? 2008-08-17

    I've been reading a lot about closures and I think I understand them, but without clouding the picture for myself and others, I am hoping someone can explain closures as succinctly and clearly as possible. I'm looking for a simple explanation that mi

  • Can someone explain __all__ in Python? 2008-09-04

    I have been using Python more and more, and I keep seeing the variable __all__ set in different __init__.py files. Can someone explain what this does? --------------Solutions------------- it's a list of public objects of that module -- it overrides t

  • How do you interpret a query's explain plan? 2008-09-17

    When attempting to understand how a SQL statement is executing, it is sometimes recommended to look at the explain plan. What is the process one should go through in interpreting (making sense) of an explain plan? What should stand out as, "Oh, this

  • Absolute position, can someone explain this 2008-09-18

    Here is a snippet of CSS that I need explained: #section { width: 860px; background: url(/blah.png); position: absolute; top: 0; left: 50%; margin-left: -445px; } Ok so its absolute positioning of an image obviously. top is like padding from the top,

  • Is there a better way to explain the behaviour differences between structs and classes in .net? 2008-09-19

    The code below shows a sample that I've used recently to explain the different behaviour of structs and classes to someone brand new to development. Is there a better way of doing so? (Yes - the code uses public fields - that's purely for brevity) na

  • In need for a site that explains how to use PHPUnit 2008-09-21

    I am searching for a tutorial (optimally with Zend Framework) on how to use PHPUnit. I have found a couple on google but have not quiet understood it yet. --------------Solutions------------- What your are looking for is the Pocket Guide. It explaine

  • What is PostgreSQL explain telling me exactly? 2008-09-22

    MySQL's explain output is pretty straightforward. PostgreSQL's is a little more complicated. I haven't been able to find a good resource that explains it either. Can you describe what exactly explain is saying or at least point me in the direction of

  • Explain Plan for Query in a Stored Procedure 2008-09-23

    I have a stored procedure that consists of a single select query used to insert into another table based on some minor math that is done to the arguments in the procedure. Can I generate the plan used for this query by referencing the procedure someh

  • Could you explain STA and MTA? 2008-09-24

    Can you explain STA and MTA in your own words? Also, what are apartment threads and do they pertain only to COM? If so, why? --------------Solutions------------- The COM threading model is called an "apartment" model, where the execution context of i

  • Can someone explain hex offsets to me? 2008-09-26

    I downloaded Hex Workshop, and I was told to read a .dbc file. It should contain 28,315 if you read offset 0x04 and 0x05 I am unsure how to do this? What does 0x04 mean? --------------Solutions------------- 0x04 is hex for 4 (the 0x is just a common

  • Can anyone explain how the oracle "hash group" works? 2008-09-30

    I've recently come across a feature of doing a large query in oracle, where changing one thing resulted in a query that used to take 10 minutes taking 3 hours. To briefly summarise, I store a lot of coordinates in the database, with each coordinate h

  • UTF8 vs. UTF16 vs. char* vs. what? Someone explain this mess to me! 2008-10-05

    I've managed to mostly ignore all this multi-byte character stuff, but now I need to do some UI work and I know my ignorance in this area is going to catch up with me! Can anyone explain in a few paragraphs or less just what I need to know so that I

  • Can someone explain per-pixel collision detection? 2008-10-06

    Can someone explain the pros and cons of it and any math involved with it? --------------Solutions------------- For 2D: You do not need any math for this problem, you need only a custom bitblit-routine. You will blit collision candidates into a hidde

  • Explain this mod_rewrite rule 2008-10-07

    Can anyone explain what this mod_rewrite rule is doing? I'm trying to comment the file, but the code seems to state the opposite of what I think it's doing # Enable rewriting of URLs RewriteEngine on # Allow specified file types to be accessed # Thin

  • Explaining pattern matching vs switch 2008-10-14

    I have been trying to explain the difference between switch statements and pattern matching(F#) to a couple of people but I haven't really been able to explain it well..most of the time they just look at me and say "so why don't you just use if..then

  • MySQL, reading this EXPLAIN statement 2008-10-21

    I have a query which is starting to cause some concern in my application. I'm trying to understand this EXPLAIN statement better to understand where indexes are potentially missing: +----+-------------+-------+--------+---------------+------------+--

  • Can someone help explain this scheme procedure 2008-10-21

    question: ((lambda (x y) (x y)) (lambda (x) (* x x)) (* 3 3)) this was #1 on the midterm, i put "81 9" he thought i forgot to cross one out lawl, so i cross out 81, and he goes aww. Anyways, i dont understand why its 81. I understand why (lambda (x)

  • Explaining refactoring 2008-10-23

    Question My question is how can you teach the methods and importance of tidying-up and refactoring code? Background I was recently working on a code review for a colleague. They had made some modifications to a long-gone colleagues work. During the n

  • How to use Explain Plan to optimize queries? 2008-10-24

    I have been tasked to optimize some sql queries at work. Everything I have found points to using Explain Plan to identify problem areas. The problem I can not find out exactly what explain plan is telling me. You get Cost, Cardinality, and bytes. Wha

Copyright (C) dskims.com, All Rights Reserved.

processed in 0.170 (s). 11 q(s)