mavlink / qgroundcontrol

Cross-platform ground control station for drones (Android, iOS, Mac OS, Linux, Windows)
http://qgroundcontrol.io
3.23k stars 3.56k forks source link

Open failed on port ttyACM0: Permission denied #11832

Open eshcheglov opened 1 month ago

eshcheglov commented 1 month ago

Hi.

I can't flash PX4 Autopilot to my Pixhawk using QGC

Expected Behavior

PixHawk flashed with PX4 Autopilot

Current Behavior

Screenshot from 2024-09-04 12-47-23

Steps to Reproduce:

Please provide an unambiguous set of steps to reproduce the current behavior

  1. Open QGC
  2. Go to Vehicle Setup -> Firmware
  3. Connect Pixhawk via USB

System Information

When posting bug reports, include the following information

Detailed Description

Log Files and Screenshots

sudo journalctl -f ``` 12:49:28 carbon kernel: usb 1-2: new full-speed USB device number 54 using xhci_hcd 12:49:28 carbon kernel: usb 1-2: New USB device found, idVendor=3185, idProduct=0038, bcdDevice= 1.01 12:49:28 carbon kernel: usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 12:49:28 carbon kernel: usb 1-2: Product: PX4 BL FMU v6C.x 12:49:28 carbon kernel: usb 1-2: Manufacturer: Auterion 12:49:28 carbon kernel: usb 1-2: SerialNumber: 0 12:49:28 carbon kernel: cdc_acm 1-2:1.0: ttyACM0: USB ACM device 12:49:28 carbon mtp-probe[35955]: checking bus 1, device 54: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2" 12:49:28 carbon mtp-probe[35955]: bus: 1, device: 54 was not an MTP device 12:49:28 carbon mtp-probe[36015]: checking bus 1, device 54: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2" 12:49:28 carbon mtp-probe[36015]: bus: 1, device: 54 was not an MTP device 12:49:33 carbon kernel: usb 1-2: USB disconnect, device number 54 12:49:33 carbon kernel: usb 1-2: new full-speed USB device number 55 using xhci_hcd 12:49:33 carbon kernel: usb 1-2: New USB device found, idVendor=3162, idProduct=0053, bcdDevice= 2.00 12:49:33 carbon kernel: usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 12:49:33 carbon kernel: usb 1-2: Product: Pixhawk6C-bdshot 12:49:33 carbon kernel: usb 1-2: Manufacturer: Holybro 12:49:33 carbon kernel: usb 1-2: SerialNumber: 3A0035001751323531393234 12:49:33 carbon kernel: cdc_acm 1-2:1.0: ttyACM0: USB ACM device 12:49:33 carbon kernel: cdc_acm 1-2:1.2: ttyACM1: USB ACM device 12:49:33 carbon mtp-probe[36058]: checking bus 1, device 55: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2" 12:49:33 carbon mtp-probe[36058]: bus: 1, device: 55 was not an MTP device 12:49:33 carbon mtp-probe[36139]: checking bus 1, device 55: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-2" 12:49:33 carbon mtp-probe[36139]: bus: 1, device: 55 was not an MTP device ```
QGC log ``` $ QGroundControl.AppImage Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway. Settings location "/home/copy/.config/QGroundControl.org/QGroundControl.ini" Is writable?: true Filter rules "*Log.debug=false\nGStreamerAPILog.debug=true\nqt.qml.connections=false" System reported locale: QLocale(English, Latin, United States) ; Name "en_US" ; Preffered (used in maps): "en-US" serialnmea: No known GPS device found. Specify the COM port via QT_NMEA_SERIAL_PORT. VideoReceiverLog: Stop called on empty URI VideoReceiverLog: Stop called on empty URI MAVLinkLogManagerLog: MAVLink logs directory: "/home/copy/Documents/QGroundControl/Logs" qt.network.ssl: QSslSocket: cannot resolve EVP_PKEY_base_id qt.network.ssl: QSslSocket: cannot resolve SSL_get_peer_certificate Ignoring ssl certificates due to OpenSSL version mismatch Map Cache in: "/home/copy/.cache/QGCMapCache300" / "qgcMapCache.db" qt.network.ssl: QSslSocket: cannot call unresolved function SSL_get_peer_certificate setCurrentPlanViewSeqNum setCurrentPlanViewSeqNum qt.network.ssl: QSslSocket: cannot call unresolved function EVP_PKEY_base_id qt.positioning.geoclue2: Unable to start the client: "org.freedesktop.DBus.Error.AccessDenied" "Geolocation disabled for UID 1000" QGCPositionManager error 0 "v4.3.0" Ignoring ssl certificates due to OpenSSL version mismatch Ignoring ssl certificates due to OpenSSL version mismatch qt.network.ssl: QSslSocket: cannot call unresolved function SSL_get_peer_certificate qt.network.ssl: QSslSocket: cannot call unresolved function EVP_PKEY_base_id FirmwareUpgradeLog: PX4 releases github download failed "Error during download. Error: 201" qt.network.ssl: QSslSocket: cannot call unresolved function SSL_get_peer_certificate qt.network.ssl: QSslSocket: cannot call unresolved function EVP_PKEY_base_id "Holybro" "Pixhawk6C-bdshot" QIODevice::write (QSerialPort): device not open "Write failed: Permission denied" bool QSerialPort::flush(): device not open VideoReceiverLog: Stop called on empty URI ```
DonLakeFlyer commented 1 month ago

This is almost always some sort of OS permission problem. Can you try with a daily build instead?

eshcheglov commented 1 week ago

I tried today daily build. Still same