[squeak-dev] Problem with SerialPort and Cog

Eliot Miranda eliot.miranda at gmail.com
Wed Apr 3 00:00:13 UTC 2013


On Tue, Apr 2, 2013 at 4:27 PM, Javier Diaz-Reinoso
<javier_diaz_r at mac.com>wrote:

> This example don't work with Cog 4.0.2701 in a iMac OSX 10.8.3:
>
> |p s|
> p := SerialPort new.
> p baudRate: 115200.
> p openPort: '/dev/cu.usbmodem1a21'.
>
> 1 to: 5 do:[:i|
>         s := p readString.
>         Transcript show: 'i=', i asString, '=>', s, '<=';cr.
>         (Delay forSeconds: 1) wait.
>         i=1 ifTrue:[p nextPutAll: 'M105', String lf.]
> ].
> p close.
>
> the same code works ok with the Squeak 4.2.5beta1U, this is connected to
> an Arduino Mega using only a USB cable.
>

and how does it fail?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20130402/a46e64d3/attachment.htm


More information about the Squeak-dev mailing list