Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!mips!pacbell.com!att!linac!unixhub!slacvm!leif From: LEIF@SLACVM.SLAC.STANFORD.EDU Newsgroups: comp.sys.handhelds Subject: HP48 buffer read problems (still). Message-ID: <91092.195502LEIF@SLACVM.SLAC.STANFORD.EDU> Date: 3 Apr 91 03:55:02 GMT Organization: Stanford Linear Accelerator Center Lines: 19 No one replied to my earlier plea, but I refuse to beleive that everyone was stumped by this one, so I'll ask again: I nead to read data from the serial buffer on the HP48SX whenever a line- feed or carriage return is received into the buffer from the 4-wire port. I would like to know if there is a way of checking the buffer to see if it received a lf/cr before I do an SRECV. Is there any way of checking this!? I have tried just SRECV'ing in how ever many char's BUFFLE returns, but I seem to loose some of the data when I do it this way. I feel that if I could force my program to read **ONLY** after a cr/lf, I would no longer loose data. If anyone has any suggestions PLEASE RESPOND. If I am not expressing myself clearly enough, let me know and I will try to be more explicit. If I could figure it out myself, I would! I'm just asking for suggestions, so please help! Thanks alot in advance (since I know THIS time SOMEONE will answer :-). Later... Leif Johnson Leif@SLACVM.SLAC.STANFORD.EDU