Forums: Discussion-Ouverte (Thread #33107)

Macro interface delay causing slow speed (2012-11-16 01:32 by geodome #66305)

I have been struggling with what appears to be a delay in the macro interface, I can only send about 10 lines a second using send and sendln commands. The device im talking too is a UBW32 http://www.schmalzhaus.com/UBW32/ . When sending the same data by creating text files and sending through teraterm I can achieve approximately 100+ times the performance, and even get ok packets returned between sent lines. So connection, hardware, or setup issues are not the problem. After looking through the through the source code, Im not very sure but I think that in the file ttmdde.c, The function 'DDESend()' contains the delay 'Sleep(100)'. Is it possible a DMLERR_BUSY will occur constantly and a delay of 100ms will happen? This is the only piece of code in the command chain that i can find that would make such a delay occur.

RE: Macro interface delay causing slow speed (2013-01-06 18:01 by (del#24082) #66881)

Hi geodome,

Thank you for your reviewing Tera Term source code.
The 100msec sleep is workaround that the CPU loadaverage of Tera Term process
will be 100% while running the macro script.
The 100 is not an important value. However, this workaround can not be
removed because the problem has not been resovled yet.

Thanks.

Répondre à #66305