PaulS
[glow]>Eventually, this will bite you. [/glow]
Thanks! Ok then I will add a '\n' to my character array to avoid being bite

Mike T
[glow]>I would not allow to concatenate commands.[/glow]
The right idea. I just thought about the concatenation for 2 of motors: those who run the navigation. Well if I want to tell the robot to move forward, then I have to try to command both motors (nearly) at the same time. Then a command like:
@ma80 mb100will be processed right in one function jump. If no concatenation, then
@ma80 makes a jump to the processing function and only after putting one motor to work, it is back to wait for the command to come from serial port, i.e.
@mb100. Now if for some reason the Linux box delays for sending the next command, the robot is turning when being said to move forward!
May be I'm wrong with this logic?
[glow]>The serial receive buffer can contain more than one command at a time.[/glow]
Could you please explain what do you mean by this, in coding? If I was in Linux only, then I put serial activities in one process, and in the other the command processing and made a pipe between these two processes. Here in Arduino I don't have processes and I won't use interrupt on the serial arival, as it already is on an interrupt. When I receive a command of say 10 byte, then I jump to processing it in another function and I am not there, where the updating of serial data takes place, then how could I have more than one command at a time? I can't understad

[glow]>As long as the baudrate is not too high and you don't have too much code[/glow]
Thank you! These ideas for calculations on commands are very clear and helpful. I didn't know them. Before I thought that a high baudrate is necessary to get sensor reading fast!
