UART_Test Example

I followed this tutorial http://dev.ardupilot.com/wiki/learning-the-ardupilot-codebase/learn...

I built the firmware through make px4-v2 and uploaded it through APM Planner (uploading from terminal was stuck on plug/unplug board, still debugging that). If I connect to Serial4/5 on my Pixhawk I can see this executed

    ::printf("Hello on debug console at %.3f seconds\n", hal.scheduler->millis()*0.001f);

However, none of the UARTs execute their prints (or at least I am not able to see them). I tried both Telemetry1 and Telemetry2. There were some strange symbols when I connected to the GPS, but nothing sensible. I get the same result on screen, MAVProxy and APM Planner

I guess I am missing some step. Here is what I do

1. Connect FTDI cable to Pixhawk (power as well, I don't plug USB)

2. On screen I use

screen /dev/ttyUSB0 57600

This is the right port, I checked it

On MAVProxy I use

mavproxy.py --master=/dev/ttyUSB0,57600
On APM Planner I just go to terminal and connect using the same options.

Do I need to press any button or type some command to see the output from the UARTs?

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Okay after a lot of time spent debuggin I found the answer. Published wiring tables and suggestions are wrong !!! If you assume numbering 1 - VCC and 6 GND on the Pixhawk UARTs, what you need to do is connect pin 2 to yellow on FTDI and pin 3 to orange. VCC and GND connected to FTDI as well.

This reply was deleted.

Activity