MATLAB Answers

Error occurred while executing External Mode MEX-file 'ext_comm': Timed-out waiting for second connect response packet.

35 次查看(过去 30 天)
Yu-Ru chien
Yu-Ru chien2019-8-31
评论: df zhang ,2021-9-29,8:07
I use the ttyACM0 ( COM3 port in my PC) to enable MAVLink and ttyS2( TELEM2 in PX4 and COM4 in my PC) for the external mode. The Following image is my model configuration setup :
1.png2.png
I was able to build the firmware successfully. However, when I run the external mode, it got a error and said the following ( compied from diagnostic windows) :
Program: [================== ] 90.6%
Program: [=================== ] 97.0%
Program: [====================] 100.0%
Verify : [ ] 1.0%
Verify : [====================] 100.0%
Rebooting.
### Successful completion of build procedure for model: px4_control_system_ver4
Build process completed successfully
host endian mode: Little
Component:Simulink | Category:Model
byte swapping required: false
Component:Simulink | Category:Model
action: EXT_CONNECT
Component:Simulink | Category:Model
Error occurred while executing External Mode MEX-file 'ext_comm': Timed-out waiting for second connect response packet.
Component:Simulink | Category:Block diagram error
Unable to connect to the 'PX4 Pixhawk 1' target for 'px4_control_system_ver4'.
Component:Simulink | Category:Model error
Can somebody help me to fix the problem.....plz

回答(1 个)

Subhadra Mahanti
Subhadra Mahanti 2019-9-4
Have you checked the baud rate? Make sure that it is in line with the external mode baud rate (921600).
  3 个评论

请先登录,再进行评论。

Community Treasure Hunt

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

Start Hunting!

Translated by