[Newbies] Re: Beginners Digest, Vol 89, Issue 1

Marcos Cevallos mcevallos09 at gmail.com
Fri Sep 13 00:35:17 UTC 2013


Hi

I´m newbie in squeak

I want to know how to delete a file in a windows system directory in
pharo 1.3 seaside 3.0.7

I really appreciate it

2013/9/10, beginners-request at lists.squeakfoundation.org
<beginners-request at lists.squeakfoundation.org>:
> Send Beginners mailing list submissions to
> 	beginners at lists.squeakfoundation.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://lists.squeakfoundation.org/mailman/listinfo/beginners
> or, via email, send a message with subject or body 'help' to
> 	beginners-request at lists.squeakfoundation.org
>
> You can reach the person managing the list at
> 	beginners-owner at lists.squeakfoundation.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Beginners digest..."
>
>
> Today's Topics:
>
>    1. Serial port write freezes the VM (mactro)
>    2. Re: Serial port write freezes the VM (Levente Uzonyi)
>    3. Re: Serial port write freezes the VM (Maciej Troszy?ski)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 9 Sep 2013 05:35:18 -0700 (PDT)
> From: mactro <mactro at gmail.com>
> Subject: [Newbies] Serial port write freezes the VM
> To: beginners at lists.squeakfoundation.org
> Message-ID: <1378730118166-4707333.post at n4.nabble.com>
> Content-Type: text/plain; charset=us-ascii
>
> Hi,
>
> I'm developing a mod for Scratch that will allow controlling an educational
> robot via Bluetooth. I'm using SerialPort2 class that is included in
> Scratch
> plugin and allows opening ports by name. Everything works fine BUT, when I
> send commands in a loop, and the connection is lost (i.e. the robot was
> powered off), the VM freezes. I tried forking the port nextPutAll like
> that:
>
> timer := Delay forMilliseconds: 1000.
> port := SerialPort2  new.
> port openPortNamed:'COM14' baud:57600.
> process := [port nextPutAll:'test'. Transcript show:'port'.] forkAt: 1.
> [timer wait. Transcript show:'delay'. process terminate.] forkAt: 7.
>
> but with no result. Is there any way to write to a serial port with
> timeout?
>
> mactro
>
>
>
> --
> View this message in context:
> http://forum.world.st/Serial-port-write-freezes-the-VM-tp4707333.html
> Sent from the Squeak - Beginners mailing list archive at Nabble.com.
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 10 Sep 2013 04:45:35 +0200 (CEST)
> From: Levente Uzonyi <leves at elte.hu>
> Subject: Re: [Newbies] Serial port write freezes the VM
> To: "A friendly place to get answers to even the most basic questions
> 	about	Squeak." <beginners at lists.squeakfoundation.org>
> Message-ID:
> 	<alpine.DEB.2.00.1309100442210.21954 at login01.caesar.elte.hu>
> Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
>
> On Mon, 9 Sep 2013, mactro wrote:
>
>> Hi,
>>
>> I'm developing a mod for Scratch that will allow controlling an
>> educational
>> robot via Bluetooth. I'm using SerialPort2 class that is included in
>> Scratch
>> plugin and allows opening ports by name. Everything works fine BUT, when
>> I
>> send commands in a loop, and the connection is lost (i.e. the robot was
>> powered off), the VM freezes. I tried forking the port nextPutAll like
>> that:
>>
>> timer := Delay forMilliseconds: 1000.
>> port := SerialPort2  new.
>> port openPortNamed:'COM14' baud:57600.
>> process := [port nextPutAll:'test'. Transcript show:'port'.] forkAt: 1.
>> [timer wait. Transcript show:'delay'. process terminate.] forkAt: 7.
>>
>> but with no result. Is there any way to write to a serial port with
>> timeout?
>
> I can't help you with the SerialPort issue, but the process priorities 1
> and 7 are definitely bad. Since the idle process uses priority 10, your
> processes will never run. Try using something between 11 and 39, or use
> the named priorities:
> Processor userBackgroundPriority
> Processor systemBackgroundPriority
>
>
> Levente
>
>>
>> mactro
>>
>>
>>
>> --
>> View this message in context:
>> http://forum.world.st/Serial-port-write-freezes-the-VM-tp4707333.html
>> Sent from the Squeak - Beginners mailing list archive at Nabble.com.
>> _______________________________________________
>> Beginners mailing list
>> Beginners at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>>
>
>
> ------------------------------
>
> Message: 3
> Date: Tue, 10 Sep 2013 08:39:10 +0200
> From: Maciej Troszy?ski <mactro at gmail.com>
> Subject: Re: [Newbies] Serial port write freezes the VM
> To: "A friendly place to get answers to even the most basic questions
> 	about	Squeak." <beginners at lists.squeakfoundation.org>
> Message-ID:
> 	<CAA0uA13poQKKMTSQGjWws56YmxhS_s6EC1Sa6_fMBKMLFNH6Qg at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-2
>
> Well, at first I tried using larger numbers, but it seems, that my VM
> has maximum priority equal to 8. Processor userBackgroundPriority
> prints 3 and Processor userInterruptPriority prints 5.
>
>
> pozdrawiam
> Maciej Troszyński
>
>
> 2013/9/10 Levente Uzonyi <leves at elte.hu>:
>> On Mon, 9 Sep 2013, mactro wrote:
>>
>>> Hi,
>>>
>>> I'm developing a mod for Scratch that will allow controlling an
>>> educational
>>> robot via Bluetooth. I'm using SerialPort2 class that is included in
>>> Scratch
>>> plugin and allows opening ports by name. Everything works fine BUT, when
>>> I
>>> send commands in a loop, and the connection is lost (i.e. the robot was
>>> powered off), the VM freezes. I tried forking the port nextPutAll like
>>> that:
>>>
>>> timer := Delay forMilliseconds: 1000.
>>> port := SerialPort2  new.
>>> port openPortNamed:'COM14' baud:57600.
>>> process := [port nextPutAll:'test'. Transcript show:'port'.] forkAt: 1.
>>> [timer wait. Transcript show:'delay'. process terminate.] forkAt: 7.
>>>
>>> but with no result. Is there any way to write to a serial port with
>>> timeout?
>>
>>
>> I can't help you with the SerialPort issue, but the process priorities 1
>> and
>> 7 are definitely bad. Since the idle process uses priority 10, your
>> processes will never run. Try using something between 11 and 39, or use
>> the
>> named priorities:
>> Processor userBackgroundPriority
>> Processor systemBackgroundPriority
>>
>>
>> Levente
>>
>>
>>>
>>> mactro
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://forum.world.st/Serial-port-write-freezes-the-VM-tp4707333.html
>>> Sent from the Squeak - Beginners mailing list archive at Nabble.com.
>>> _______________________________________________
>>> Beginners mailing list
>>> Beginners at lists.squeakfoundation.org
>>> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>>>
>> _______________________________________________
>> Beginners mailing list
>> Beginners at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>
>
> ------------------------------
>
> _______________________________________________
> Beginners mailing list
> Beginners at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/beginners
>
>
> End of Beginners Digest, Vol 89, Issue 1
> ****************************************
>


More information about the Beginners mailing list