serial port

John Cuccio jcuccio at pacbell.net
Wed Jan 9 02:25:01 EST 2002


Mac OS 8.1 & Rev. 1.1

I am trying to get the serial port to work with rev.
I just want to read from it. I know the port is opened because the thing
that is hooked up to the computer does not get an error. But when I try to
read from the port and put the contents into a field it is blank. Every
things works fine in HC.


-- button 1
put the serialcontrolstring into tmp
set the serialcontrolstring to tmp  -- I only need the default settings.
open file "modem:" 


-- button 2

read from file "modem:" until eof
put it into field 1

the only thing different from my HC stack and the one I am trying to do in
Rev is I set the CTS to on. I did not see a setting for CTS in the
serialcontrolstring Doc.

Also: I tried to put a "for read" after open file command. The thing hooked
up to the computer returned an error. Meaning the port was not openned. Even
though rev returned it was openned. Closeing the port and re opennign it
with out the for read after open file, worked fine.



Also Sarah Reichelt offered to sent a sample stack of serial ports. Since I
do not know your email address to ask. Can you send me the sample you
offered in another post.

Thank You
John Cuccio e-mail jcuccio at pacbell.net




More information about the use-livecode mailing list