フィルターのクリア

XCP connection error: server did not respond to command connect

7 ビュー (過去 30 日間)
Svenh
Svenh 2023 年 12 月 6 日
回答済み: Svenh 2023 年 12 月 6 日
I want to connect to my ECU over a xcp channel.
Therefor i'm connect to the ecu with an ethernet cabel.
I than wrote a script that generates a a2l file and should than create a xcp channel to connect to the ecu.
To generate an a2l file worked and also the xcp channel creation worked, but as soon as i try to connect i get the error
Error: Server did not respond to comand connect
In my script i do it like this
%first i generate my a2l file out of my .mldatx file
coder.asap2.export(Simulink_model_name,Folder=application_name_path);
%after that i create an a2l-file object
a2lfile_obj = xcpA2L(Path2a2l)
%I create the xcp channel with the default settings, because we use the
%default settings
xcpch = xcpChannel(a2lfile_obj, "UDP","192.168.1.110",5555);
%then i try to connect with the command,
% but this throws me the above described error
connect(xcpch);
  1 件のコメント
Svenh
Svenh 2023 年 12 月 6 日
I forgot to unncomment my xcp configuration block in the simulink, after that it worked

サインインしてコメントする。

採用された回答

Svenh
Svenh 2023 年 12 月 6 日
I had to uncoment my xcp configuration block in simulink, than build again and export the a2l file.
After that it worked

その他の回答 (0 件)

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by