RS-232 ?

Started by Ryon, October 14, 2002, 10:30:21 AM

Previous topic - Next topic

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?
\"Give me a Kaypro 64 and a dial tone, and I can do anything!\"

Lutz

#1
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

#2
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