Why do I get XCP internal error: timeout expired?

20 visualizaciones (últimos 30 días)
Søren
Søren el 28 de Dic. de 2022
Comentada: Salvatore Matteo Mennea el 31 de Oct. de 2023
Hi,
I have tried to follow this example, but using a Cube Orange instead, which I set up using this guide except on Ubuntu instead of Windows.
But somewhere I messed something up. When I try to run "monitor & tune" on the board, I get the following error:
0 of 1 models built (1 models already up to date)
Build duration: 0h 1m 15.535s
action: EXT_INIT
Creating Target Handler (XCP on Serial)...
Build directory: /home/soren/heavy_duty/matlab/untitled_ert_rtw
Serial Port Name: /dev/ttyUSB0
Baud Rate: 57600
action: EXT_CONNECT
Connecting to the target...
External Mode Open Protocol Connect command failed
Caused by:
Could not connect to target application: XCP internal error: timeout expired, in response to XCP CONNECT command
I have determined it seems like the problem is with the communication between Cube Orange using Telem 1 on the Pixhawk (where I have the FTDI serial converter in). I have tried using different baud rates but can't determine what exactly is the problem with the connection.
  2 comentarios
Hasan Khanzada
Hasan Khanzada el 11 de Ag. de 2023
@Søren Let me know if you were able to solve this issue ?
@Arun Mathamkode I have tried all the solutions you have mentioed in the comments
but i am still getting the same error as mentioned in this post.
Søren
Søren el 11 de Ag. de 2023
Unfortunately I never managed to solve it. I had other task to do, didn't spend a lot more time on the issue

Iniciar sesión para comentar.

Respuestas (1)

Arun Mathamkode
Arun Mathamkode el 2 de En. de 2023
Editada: Arun Mathamkode el 3 de En. de 2023
TELEM1 serial port are fundamentally designed for MAVLink communication and by default MAVLink is enabled in this port. You can consider trying to connect using GPS2 port (/dev/ttyS5). Makesure that parameters GPS_1_CONFIG or GPS_2_CONFIG is not set to enable GPS2 as a GPS port.
  5 comentarios
Salvatore Matteo Mennea
Salvatore Matteo Mennea el 31 de Oct. de 2023
@Søren Have you found a solution? I'm facing the exact same problem
Salvatore Matteo Mennea
Salvatore Matteo Mennea el 31 de Oct. de 2023
@Arun Mathamkode I've tried all the solution you have written in the post but I have the same error.
I'm using win 10 and Pixhawk 6x with matlab 2023b

Iniciar sesión para comentar.

Productos


Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by