Serial Port access from Squeak

Andreas Raab raab at isgnw.cs.Uni-Magdeburg.DE
Mon Jan 12 20:00:17 UTC 1998


> If you're running on Unix (and probably Win32 too, but I don't know
> much about it) then you can treat a serial line just like a regular
> file.  On Linux, for example:
> 
> 	serial _ FileStream oldFileNamed: '/dev/ttyS0'.
> 	serial nextPutAll: 'Hello, serial device!; cr.

It may work but will have some disadvantages. You have to change the comm
settings manually (using "stty" on Unix or "mode" on Dos/Win32). Also,
using a semaphore for signaling incoming data is probably more convenient.
But anyways, give it a try!

Andreas
-- 
Linear algebra is your friend - Trigonometry is your enemy.
+===== Andreas Raab ============= (raab at isg.cs.uni-magdeburg.de) =====+
I Department of Simulation and Graphics      Phone: +49 391 671 8065  I
I University of Magdeburg, Germany           Fax:   +49 391 671 1164  I
+=============< http://isgwww.cs.uni-magdeburg.de/~raab >=============+





More information about the Squeak-dev mailing list