Page 1 of 1

RS-232 ?

Posted: Mon Oct 14, 2002 5:30 pm
by Ryon
Is there a way to access the RS-232 port from newLISP? Is it as easy as using device to redirect I/O or would a new function have to be written?

Posted: Mon Oct 14, 2002 6:28 pm
by Lutz
I think you could just use a device in /dev, treating it like a file handle, basically working with it like you would in UNIX.

Lutz

Posted: Sat Oct 19, 2002 4:51 pm
by Lutz
on Windows XP the following seems to work:

(open "COM1" "update") => 3

Then used the returned number as a filehandle:

(write-line "Hi there" 3)

I think it works, but have now serial devices to prove it.


Lutz