darth@athena.mit.edu (Darren T Garnier) (05/03/91)
I have a serial device which sends out data (5 bytes every half second at 9600 baud) with no handshaking signals at all. I can read in the data with the Mac using Kermit but I want to write my own program to read in the data. How do I do it ?? Currently, I am calling: RAMSDOpen(sPortA); SerReset(AinRefNum, baud9600+stop20+noParity+data8); hndshk.fXOn = hndshk.fInX = hndshk.fCTS = 0; SerHShake(AinRefNum, &hndshk); bytecount = 5; FSRead(AinRefNum, &byteCount, bufPtr); None of the serial driver calls return any error codes, but the program never returns from the FSRead call, as though there was no data to read. Does anybody know what I am doing wrong?? Thanks for your help. -- Darren Garnier darth@athena.mit.edu | Some rise, some fall, garnier@alcvax.pfc.mit.edu | some try to get to Terrapin.