Problem with PX4 connection

9 visualizaciones (últimos 30 días)
Dhruvil
Dhruvil el 1 de Mayo de 2025
Respondida: Dhruvil el 1 de Mayo de 2025
Hey,
I am currently trying to connect my pixhawk 6c with Matlab to develop custom flight control algorithm.
I have followed all steps of hardware setup. Everything is validated and the firmware is also built without any failure.
In the next step, the software automatically selects COM4 as serial port connection and which is true. I checked with Device Manager and it appears COM4 for Pixhawk 6C.
When i initiate the upload firmware, i first get a popup to plug out, press OK and plug in. After this step, the Hardware setup is stuck and i keep on getting message in command prompt to unplug and re plug. I did it couple of times but no success in uploading the firmware.
Then i check the Device Manager while Harware setup tries to upload the firmware. The serial port for PX 6C keeps on changing from COM4 to COM3 and again to COM4. I assume this is create a problem in uploading the firmware.
As soon as i cancel the hardware setup, the serial port for PX 6C remains COM4 in Device Manager.
Could anyone please guide me through this?

Respuesta aceptada

Dhruvil
Dhruvil el 1 de Mayo de 2025
Found the solution.
  • Disconnect the Pixhawk 6C from your computer.
  • Open Device Manager in Windows (you can search for it in the Start menu).
  • Reconnect the Pixhawk 6C via USB.
  • Observe the Ports (COM & LPT) section in Device Manager:
  • Initially, a COM port (e.g., COM4) will appear when the Pixhawk is in bootloader mode. Note this as the bootloader COM port.
  • After 5–10 seconds, the port may disappear and reappear as a different COM port (e.g., COM3). Note this as the main communication COM port.
  • In the Test Connection or Firmware Upload step, select Specify Serial Port instead of letting MATLAB automatically select the port.
  • Enter the bootloader COM port (e.g., COM4) in the Enter Serial Port field.

Más respuestas (0)

Etiquetas

Productos


Versión

R2024b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by