Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Control message request over UDP(unicast/multicast) not working #523

Open
tejaswinijoshi89 opened this issue Aug 30, 2024 · 8 comments
Open
Assignees
Labels

Comments

@tejaswinijoshi89
Copy link

I am connecting dltviewer (tried with v2.26.0, v2.27.0, v2.18.0) with dltdaemon (https://github.com/COVESA/dlt-daemon/tree/master) over UDP. I am able to receive log messages from dltdaemon over both UDP unicast and multicast interface. But when I try to send control message from dltviewer (GetLogInfo,GetDefaultLoginfo,etc) i get error as "ECU Not Connected ". I even checked on wireshark. UDP signal transmission traces from dltviewer to dltdaemon over UDP are not present.
Does dltviewer supports control message request over UDP. If so then how to enable it.

@vifactor
Copy link
Collaborator

vifactor commented Sep 3, 2024

I tried to have a look to this issue and cannot even configure dlt-daemon to be able to receive dlt logs via UDP in dlt-viewer. I run daemon with src/daemon/dlt-daemon -c custom_dlt.conf, where the conf file contains a single entry: UDPConnectionSetup = 1. On dlt-viewer side I connect with:
image

The connection to ECU does not happen (connection icon is yellow, not green). If I switch to TCP, I can connect and see some technical logs. what do I miss for UDP?

@alexmucde
Copy link
Collaborator

Sending control messages is only supported for TCP connections. Sending UDP messages to ECUs is not allowed in our cars. I do not know how other OEMs are handling this.

@alexmucde
Copy link
Collaborator

DLT Daemon also does not support this, because of the same reason.

@Samuel-John
Copy link

Samuel-John commented Nov 6, 2024

Hi @tejaswinijoshi89 / @vifactor ,
Were you able to connect to ECU via UDP?

@alexmucde , I am facing the same issue. The UDP connection is not happening to ECU. It remains in yellow. Due to this, the DLT messages from ECU are not seen on the dlt-viewer.

Do you have any workaround for this?
Also, will PDU header in the DLT message cause an issue?

@alexmucde
Copy link
Collaborator

Hello together,
i would like to know exactly in which version and on which platform UDP reception is not working anymore.
I have got another report that there is an issue with Windows 11.

  • Qt version used
  • OS used (Linux, Windows 10/11, MacOs)
  • DLT Viewer version used
    It would be also important with which version/commit this issue happened the first time to identify a possible commit, which causes the regressions.

@Samuel-John
Copy link

Samuel-John commented Nov 6, 2024

Hi @alexmucde ,
Please find the details below:

  • Qt version used = 5.14.2
  • OS used = Windows 10.
  • DLT Viewer version used = 2.26.2 (although after installing the tool, the GUI shows "2.27.0 unstable"). Commit = df6a563.

@alexmucde
Copy link
Collaborator

@Samuel-John Please check if it is a firewall issue. Can you also try older versions of DLT Viewer?

@vifactor
Copy link
Collaborator

vifactor commented Nov 6, 2024

I tried multiple versions of the dlt-viewer. In particular 2.21, 2.26 and the one built from master. Never could connect to dlt-daemon (built from scratch and running directly on my machine) even if I configure it to use UDP as I described above. I use ubuntu. Qt 5.15.x and 6.4.x

Firewall can be indeed the reason, but I am not sure how to check it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

4 participants