[TECH] SerialPort info

Stephen Pair spair at advantive.com
Thu Dec 27 13:15:08 UTC 2001


I recently did some stuff with the serial port under Windows and found
it to be pretty adequate.  There is nothing that will allow you to wait
(on a semaphore triggered by the VM for example) for data to arrive, so
you have to poll the port in certain circumstances.  You could emulate
the waiting behavior by periodically pulling data off the port and
dumping it into a share queue of some sort.  Other processes would pull
the data out of the shared queue (and hence wait if there is no data
immediately available).

- Stephen

> -----Original Message-----
> From: squeak-dev-admin at lists.squeakfoundation.org 
> [mailto:squeak-dev-admin at lists.squeakfoundation.org] On 
> Behalf Of Bergel Alexandre
> Sent: Thursday, December 27, 2001 7:49 AM
> To: squeak-dev at lists.squeakfoundation.org
> Subject: [TECH] SerialPort info
> 
> 
> Hello,
> 
> It seems there is some lacks about the implementation of 
> serial port in Squeak (as no timeout control, or even 
> threshold). Am I right ?
> 
> I am playing with the RCX (from Lego Mindstorm) but there is 
> some problems. It seems I could send some data toward the 
> yellow brick (by the green light indicator on the tower), but 
> I get absolutely no anwser from the brick. Anyone has any ideas ?
> 
> I am actually working under windows.
> 
> Thanks,
> Alexandre
> 
> 





More information about the Squeak-dev mailing list