newLISP Fan Club

Forum => newLISP in the real world => Topic started by: Ryon on October 14, 2002, 10:30:21 AM

Title: RS-232 ?
Post by: Ryon on October 14, 2002, 10:30:21 AM
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?
Title:
Post by: Lutz on October 14, 2002, 11:28:47 AM
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
Title:
Post by: Lutz on October 19, 2002, 09:51:42 AM
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