qgroundcontrol icon indicating copy to clipboard operation
qgroundcontrol copied to clipboard

pixhawk latest firmware connection issue

Open blankered opened this issue 10 years ago • 34 comments

Hello, I was using qgroundcontrol v2.8.0 to update my pixhawk to the latest firmware and found that it does not connect to qgroundcontrol after flashing it. It does however connect to qgroundcontrol after flashing the APM firmware. I am confused why this is happening, the ports in qgroundcontrol were the same when compared to the dmesg output in Ubuntu 14.04. Is this a firmware issue or qgroundcontrol issue?

blankered avatar Jan 09 '16 15:01 blankered

Can you please re-flash? I have cross tested this and it should work just fine with the latest code.

LorenzMeier avatar Jan 09 '16 15:01 LorenzMeier

It would be fantastic if you could re-try and provide us an update.

LorenzMeier avatar Jan 09 '16 19:01 LorenzMeier

I reflashed the pixhawk to the px4 firmware using v2.8.0. After I flashed it, I disconnected and reconnected the USB. I checked the dmesg output and verified the connection settings in QGroundControl. QGroundControl can find the px4 and flash it accordingly but wont bring up the summary page after I hit connect in the top right corner. I have tried both the pre-compiled version and the qt compiled version with the same effect.

UPDATE: I checked the development version and I receive an error saying that the port is locked. It is serial port permissions error.

UPDATE 2: I checked the permissions on my user account and they include the dialout. I tried running qgroundcontrol dev in sudo mode and still receive the message:

"Error on link /dev/ttyACM0. Error connecting: Could not create port. Permission error while locking the device"

Note: this only happens on the px4 firmware

blankered avatar Jan 10 '16 20:01 blankered

Error on link /dev/ttyACM0. Error connecting: Could not create port. Permission error while locking the device

This is an OS problem not a GGC problem.

DonLakeFlyer avatar Jan 10 '16 21:01 DonLakeFlyer

@DonLakeFlyer This only occurs when I flash the px4 firmware. GGC connects when I flash the apm firmware. Why would it be firmware specific?

blankered avatar Jan 10 '16 21:01 blankered

@blankered Its still an OS issue. It likely has nothing to do with Firmware but the sequence of your trial and error steps. Have you tried re-flashing the most recent PX4 Firmware (like from now) and trying again?

Also make sure to connect to the back of your PC (NOT A HUB) and to not power your whole drone off USB (your USB doesn't provide enough power)

LorenzMeier avatar Jan 10 '16 21:01 LorenzMeier

I can't answer that, but that error is exactly what you get when there is an OS permission issue. Given the fact that you are clicking a Connect button I assume you are running a Stable build. I'd also make sure you are using a daily build.

DonLakeFlyer avatar Jan 10 '16 21:01 DonLakeFlyer

I have both the stable build and daily build. I tried flashing the px4 firmware using the daily build, a usb port off the back of my tower, and battery pack connected. It still fails to connect after flashing the firmware, the pixhawk boots and starts to flash red rapidly. If I use QGC to flash the apm firmware then I have no problems getting the pixhawk to connect and show the summary page.

blankered avatar Jan 10 '16 22:01 blankered

Can you flash it again today, unless you have done that already? I want to be sure that both QGC and the Firmware are absolutely recent - depending on the combination they need to be absolutely recent.

LorenzMeier avatar Jan 10 '16 22:01 LorenzMeier

OK, so I reformatted the SD and it fixed itself. I reflashed using the daily build with the px4 master build firmware. QGC has established a connection with the px4 after the flashing process. I am going to do so testing to see if the problem is actually fixed and report back later. Thank you for your help.

blankered avatar Jan 10 '16 22:01 blankered

That's quite interesting. Could you try that at the end again to see if maybe flashing APM actually threw off the PX4 boot?

LorenzMeier avatar Jan 10 '16 22:01 LorenzMeier

@blankered What's the state of this? Is there a QGC problem here?

DonLakeFlyer avatar Jan 11 '16 20:01 DonLakeFlyer

Hello together. I have exact the same Problem as "blankered" I can´t connect to my Pixhawk after flashing the stable Firmware on QGC 2.8.0. I am useing QGC on Windows 7 64 Bit. Flashing works only if the Pixhawk is NOT powered with external Power. Only if I flash with USB Power onIy can I flash it otherwise the flashing is not start up. On QGC 2.7.1 it works fine so I guess it must be a issue in QGC 2.8.0 or in last stable Firmware.

Flugsicherung avatar Jan 15 '16 12:01 Flugsicherung

It is designed to prevent reboots if the system is pre-armed, which probably happens when you connect the battery. So it all works as it should.

@DonLakeFlyer Do the instructions ask users to ONLY have USB connected already?

LorenzMeier avatar Jan 15 '16 12:01 LorenzMeier

I flash Firmware 1.1.0 and I can connect to the Pixhawk and the Summary Page is shown. I make a Test and flash 1.1.1 again.....

Flugsicherung avatar Jan 15 '16 12:01 Flugsicherung

I flash Firmware 1.1.1 and same Problem, I can´t connect to Pixhawk.....

Flugsicherung avatar Jan 15 '16 12:01 Flugsicherung

Do the instructions ask users to ONLY have USB connected already?

It doesn't say no battery. That wording is starting to read like a book! I'll change it. I think I'm going to change it to output after a failed flash as well.

DonLakeFlyer avatar Jan 15 '16 18:01 DonLakeFlyer

Sorry but why do you close this issue? The Problem is not to make the flash of the Firmware. Flashing without battery works fine. But if I flash Firmware 1.1.1 I can´t get a connection after successful flashing, but with Firmware 1.1.0 it works!!!! Please can you explain it for me, thanks.

Flugsicherung avatar Jan 15 '16 19:01 Flugsicherung

Can you switch to using a QGC Daily Build. Stable is quite old and this point. If you still can't connect after that. See here for getting connection logging: http://www.qgroundcontrol.org/logging. Then put log output here.

DonLakeFlyer avatar Jan 15 '16 19:01 DonLakeFlyer

@Flugsicherung I'm checking the release. Let me make sure I didn't screw up and something bad slipped in.

LorenzMeier avatar Jan 15 '16 19:01 LorenzMeier