Hello,

I am trying to interface an epuck with our custom autopilot through UART,
I used the example from e-puck.org/Downloads/e-puck-latest-svn-trunk/Library
to be able to receive on the e-puck bytes sent from my AVR32 MCU.

I am sending some bytes from our autopilot and I am trying to get them from
the e-puck uart2 to drive the motors.
I checked with the oscilloscope that the epuck is sending bytes from RS_RX
line (connector JE1 pin2, e-puck_c).
Thus the epuck should received bytes on the Rs_TX line (connector JE1
pin12).

However with the example code in my main loop

while(e_ischar_uart2())
{
char c;
e_getchar_uart2(&c);
                counter++;

                // Do something with c
}

I received only one byte in total
Then the function e_ischar_uart2() always return false.
I did checked with the oscilloscope that there are some bytes sent from my
avr32 on the Rs_TX line.

Is there anything to set on the e-puck to make it a slave ?

Any suggestion on how to debug this communication failure ?

I also saw that in e_init_uart2.s there is this line
.equiv BAUDRATE, 115000
is it normal that baudrate is 115000 instead of 115200 as it is claimed to
be ?

Thanks in advance,
Best

   Grégoire Heitz
   Support Engineer LIS Laboratory
_______________________________________________
E-puck-dev mailing list
[email protected]
https://mail.gna.org/listinfo/e-puck-dev

Reply via email to