Page 1 of 1

Communication between micro pyhton and c++

Posted: Thu May 15, 2014 12:42 pm
by Nyxaal
Hi all,

First, Thanks for this wonderful project, i really enjoy experimenting with my fresh received board.

I try to establish a bidirectional communication between uPyhton and C++ through Serial.
The goal is to send python code from c++ and receive the result, the same way as it is done by Putty.
I think about using the REPL mode likes with Putty, but don't succeed to make it works.
I succeed to connect to the board with a serial library, but commands i send appear to not being executed.

Any idea ? Do i go the wrong way ?
Thanks for your answers !

Re: Communication between micro pyhton and c++

Posted: Thu May 15, 2014 3:45 pm
by dhylands
I'll guess that you need to send \r as the end of line rather than \n

Most serial terminals send \r when you hit ENTER.

Re: Communication between micro pyhton and c++

Posted: Thu May 15, 2014 4:25 pm
by fma
I wanted to ask something related: how do we use other USARTS available? Is there a Serial(num_port) object, as found in Arduino?

Re: Communication between micro pyhton and c++

Posted: Fri May 16, 2014 11:13 am
by fma
:oops: There is a UART object!!!!

Sorry for the noise!

Re: Communication between micro pyhton and c++

Posted: Tue May 20, 2014 12:24 pm
by Nyxaal
Thanks for you answer,
totally right ;)