RS-232 ?

Q&A's, tips, howto's
Locked
Ryon
Posts: 248
Joined: Thu Sep 26, 2002 12:57 am

RS-232 ?

Post 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?

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post 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

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post 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

Locked