Can't connect to PX4 after flashing firmware

Hi there,

Can anybody help with a PX4 issue? I'm unable to connect to the board, even though I'm able to flash the firmware successfully.

The PX4 is brand new and I'm able to flash the firmware using APM Planner, the PX4 toolchain and QGroundControl. However, I'm absolutely unable to connect to the board afterwards. Here's the output in the terminal when I try to connect with APM Planner:

...

 INFO 2014-04-22T20:13:48.092 flashing: 771060 / 771480
DEBUG 2014-04-22T20:13:48.097 Done
DEBUG 2014-04-22T20:13:48.258 Remote CRC: "E8C44831"
DEBUG 2014-04-22T20:13:48.258 Local CRC: "E8C44831"
APMToolBar:CONNECT clicked calling signal
DEBUG 2014-04-22T20:13:58.729 APMToolBar: connectMAV  QObject(0x0)  with sLink SerialLink(0x38bbca0)
DEBUG 2014-04-22T20:13:58.729 APMToolBar: Connecting m_currentLink  SerialLink(0x38bbca0)
DEBUG 2014-04-22T20:13:58.732 Unknown type found on port "ttyS4" description: ""
 INFO 2014-04-22T20:13:58.743 SerialLink: hardwareConnect to  "ttyS4" with type "other"
DEBUG 2014-04-22T20:13:58.744 Port opened!
DEBUG 2014-04-22T20:13:58.744 Setting baud rate to: 115200
DEBUG 2014-04-22T20:13:58.744 Setting data bits to: 8
DEBUG 2014-04-22T20:13:58.744 Setting flow control to: 0
DEBUG 2014-04-22T20:13:58.745 Setting stop bits to: 1
DEBUG 2014-04-22T20:13:58.745 Setting parity to : 0
DEBUG 2014-04-22T20:13:58.745 CONNECTED LINK:  "ttyS4" with settings "ttyS4" 115200 8 0 1
DEBUG 2014-04-22T20:13:58.747 APMToolBar: connecting to link SerialLink(0x38bbca0)
DEBUG 2014-04-22T20:13:58.747 APMToolBar: updateLinkDisplay
DEBUG 2014-04-22T20:13:58.747 APMToolBar setConnection: true
APM Tool BAR QML: connected
APMToolBar:INITIAL SETUP clicked calling signal
DEBUG 2014-04-22T20:14:04.246 No data!!! Attempting reset via reboot command.
APMToolBar:CONFIG/TUNING clicked calling signal
DEBUG 2014-04-22T20:14:04.998 Loading widget: "PARAMETER_INTERFACE_DOCKWIDGET"
APMToolBar:INITIAL SETUP clicked calling signal
DEBUG 2014-04-22T20:14:09.746 No data!!! Attempting reset via DTR.
DEBUG 2014-04-22T20:14:15.246 No Data!! Tried reboot and DTR to no avail
DEBUG 2014-04-22T20:14:24.747 No Data!! Tried reboot and DTR to no avail
DEBUG 2014-04-22T20:14:41.247 No Data!! Tried reboot and DTR to no avail
DEBUG 2014-04-22T20:14:57.747 No Data!! Tried reboot and DTR to no avail
DEBUG 2014-04-22T20:15:14.247 No Data!! Tried reboot and DTR to no avail
DEBUG 2014-04-22T20:15:30.747 No Data!! Tried reboot and DTR to no avail
^C

And with QGroundControl:

LINK COUNT 0
WARNING: Settings loading for trail type (ByTimeElapsed) not implemented
WARNING: Settings loading for trail type (ByTimeElapsed) not implemented
qupgrade/libs/qextserialport/src/qextserialenumerator_linux.cpp 143 Found:  "/dev/ttyACM0"
qupgrade/libs/qextserialport/src/qextserialenumerator_linux.cpp 143 Found:  "/dev/ttyACM0"
WARNING: Settings loading for trail type (ByTimeElapsed) not implemented
Loading widget: "PRIMARY_FLIGHT_DISPLAY_DOCKWIDGET"
Loading widget: "UAS_INFO_INFOVIEW_DOCKWIDGET"
UDP Created  "UDP Link (port:14550)"
ADD LINK CALLED FROM SOMEWHERE
MAVLINK OK
create SerialLink  "" 57600 false false 8 1
m_portName  "ttyACM0"
ADD LINK
ADD LINK CALLED FROM SOMEWHERE
MAVLINK OK
current portName  "ttyACM0"
setPortName to  "ttyACM0"
SerialLink: hardwareConnect to  "ttyACM0"
CONNECTING LINK:  src/comm/SerialLink.cc 437 with settings "ttyACM0" 57600 8 0 1
No data!!! Attempting reset via reboot command.
No data!!! Attempting reset via DTR.
No data!!!
linkErrorCount too high: disconnecting!
disconnect
"ttyACM0"
running so disconnect "ttyACM0"
QThread::wait: Thread tried to wait on itself
Closing Port # 275 "ttyACM0"

What's going wrong here? I'm not able to do anything at all with the drone :(

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

Join diydrones

Email me when people reply –

Replies

  • Hey Daniel,


    I realize this post is rather older (in fact a month to the day), but I was googling the same issue as what you had mentioned. Couldn't find any helpful info, but I think I determined what caused my issue.

    I am working on trying to get my FatShark camera connected and using a small servo pan/tilt system. I just flashed the latest version of ArduPilot(v 3.0.3) to the plane, and downloaded the latest version of APM Planner (v 2.0.9). All went well, adjusted, calibrated, then disconnected. Connected my servo gimble and went back to APM Planner to configure the channels, I get the "No Data!! Tried reboot and DTR to no avail" message. Mind you, I have 1 servo connected on A10 and the other on A11. So I decided to try and unplug those 2 servos, see if that was the issue. Attempted a re-connect and APM connected without an issue. Not sure if the small servos draw to much power from the board or what. Also, as I forgot to mention earlier, I am running the APM 2.0 board, not the PX4. Hopefully, this might give you an idea to try if you are still having an issue.

    Mo

    • Hi Mo,

      Thanks for the reply :) that would be a great tip, but I don't have the autopilot connected to any servos - I'm just trying to connect to the autopilot itself, without any other hardware attached :(

      Daniel

This reply was deleted.

Activity

Neville Rodrigues liked Neville Rodrigues's profile
Jun 30
More…