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!

RXDATA

Status
Not open for further replies.

flea333

Technical User
Sep 4, 2003
47
US
I'm still having this problem. I set the rxdata on and display off so the user can't see the stuff. Then I turned rxdata off and display on so the user can see the transmittions. If I do not use a waitfor command, the rx data is stored in the buffer and not displayed until exit is called. What is going on?
 
I believe this is working as expected. With rxdata on, your script needs to deal with the data in the receive buffer. If there is data in the receive buffer and you turn rxdata off as well as display on, then the data in the receive buffer will be displayed. To keep this data from displaying, you'll either need to use rxflush to clear the receive buffer or use a command such as rget to read the data and then discard it.


aspect@aspectscripting.com
 
I understand what you are talking about, but that isn't my problem. What's going on is that the waitfor command doesn't work after about 10 times I use it unless I use the rxflush every serveral waitfor commands. So it might have to do with what your talking about, but I don't know how or why because I do turn the rxdata off.
 
I can't post the code, it is job related. I can tell you that using the rxflush fixes the problem. I would really like to know why that is necessary, I don't know if any detailed explanations of these commands exists. If I strategically place the rxflush commands between all my transmit's and waitfor's it solves the problem.

A thought just popped into my head; could the problem be that the rxdata buffer only holds 256 bytes of data, then no longer stores more?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top