[Amforth] R: Re: R: Re: HW flow control

2014-08-02 Thread Paolo Garro
Hi Erich  There is nothing wrong. Me too I'm reading the echo char while transmitting. The timeout problem is while receiving form the mcu.  After transmitting a line you stay earing for a response. How can I know when the response is complete? Wait a lot of seconds is not so logic. How can I know

[Amforth] Adding WANT_X and a forth constant in asm (was: HW flow control)

2014-08-02 Thread Erich Waelde
Hi Paolo, Thank you for your response. On 08/02/2014 01:39 PM, Paolo Garro wrote: > Hi Erich > There is nothing wrong. > Me too I'm reading the echo char while transmitting. > The timeout problem is while receiving form the mcu. > After transmitting a line you stay earing for a response. > How

Re: [Amforth] Adding WANT_X and a forth constant in asm (was: HW flow control)

2014-08-02 Thread Michael Kalus
xon/xoff are characters send. With USB this is does not work better than CR or any other character. Target and PC do not communicate character by character any more. Terminal emulaters do not stop in time, there are buffers inbetween, overrunning oldfashion xon/off protokolls. Michael Am 02.0

[Amforth] R: Adding WANT_X and a forth constant in asm (was: HW flow control)

2014-08-02 Thread Paolo Garro
Hi Erich, You are pretty right... Wait the " ok" and then the "\n> " prompt is not a valid solution. In the middle of a ":" definition, the response is a sole " ok" without a prompt so it is ambiguous in general. I've also tried to wait for an error message r"\?\? -\d+ \d+ \n> $" to stop the loop

Re: [Amforth] R: Adding WANT_X and a forth constant in asm (was: HW flow control)

2014-08-02 Thread Michael Kalus
Hi. In 4e4th the PROMPT is a forth word, executed right after INTERPRET . That way it is easy to modify. I use character ACK ( $06 EMIT ) as signal for the 4e4th-IDE shell. You may serve other information with the prompt string, like the current number base, or what ever you need. mk ; C PROMP