Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apsect Receive Buffer Size

Status
Not open for further replies.

dblprops

Programmer
Sep 16, 2004
5
US
Hello,

Can anyone tell me what the size of the Aspect Receive
buffer is.

I am developing a Phone simulator that receives commands
from a PBX type telephone system.
The commands can be either an ACK or a preamble of !DKTPASS
with two bytes of data.

I am setting RXDATA ON and parsing the received data using comread and comgetc.
I use the WHEN $RXDATA Call Procedure and inside Procedure,
I am using the WHEN $RXDATA SUSPEND and WHEN $RXDATA RESUME.

My problem is that I seem to be missing data and I am not sure if it is because the system is not sending it or it's coming to fast for my Aspect script to handle it.

I am connected thru a COM Port running at 9600.

My understanding is that the WHEN $RXDATA commands will queue if one is in progress and another instance is detected. But, I am suspecting that there may be a limit on how much the receive buffer can handle before it starts overwriting data.
Is there some command that indicates that the receive buffer is full?

Thanks in advance for the assistance.
 
I'm not aware of what the limit is on the receive buffer, but I think this is handled by the Windows comm driver. I'm also not aware of a way to tell when this is full, other than possibly reading the value of $RXCOUNT and see if it never exceeds a particular value.

Based on the ASPECT help file discussion of set aspect whensuspend, it does not look like you can suspend when events involving system variables. The help file isn't clear if this means you can't suspend these when commands or if they are never acted on when resumed. I would recommend commenting on any suspend and resume commands you have and see if the script works as expected then.


aspect@aspectscripting.com
 

Knob, thanks for the response. I have since determined
that the problem is not with my Aspect script. It is
somewhere in the code that is sending me the information.

For some reason it is only sending me every other set of
data. Driving me crazy. I can't figure out where it is
happening.

The info provided will be helpful in the future though.
I tried using $RXCOUNT but for some reason my results
were not as expected.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top