COVESA / dlt-daemon

Diagnostic Log and Trace.
https://covesa.github.io/dlt-daemon/
Mozilla Public License 2.0
381 stars 295 forks source link

IPv6 UDP not working #419

Closed phamcongspk closed 2 years ago

phamcongspk commented 2 years ago

I configure DLT daemon using IPv6 and UDP support (build with WITH_DLT_USE_IPv6=ON and WITH_UDP_CONNECTION=ON) But it not working with UDP, only TCP is working. I configure in dlt.conf as follow: UDPConnectionSetup = 1 UDPMulticastIPAddress = FF14::C UDPMulticastIPPort = 42557

Am I missing something perhaps?

thanhbnq commented 2 years ago

Hello @phamcongspk ,

Sorry for being late here. I checked with my local Ubuntu setup. IPv6 and UDP is working well. I'd like to share my configuration. For dlt.conf:

UDPConnectionSetup = 1 UDPMulticastIPAddress = ff02::1 UDPMulticastIPPort = 3491

And the dltviewer tool, in UDP tab, please choose multicast address as "ff02::/8", port as: 3491 then we can capture dlt message.

Best regards, Thanh

phamcongspk commented 2 years ago

Hi Thanh,

Thanks for your response I have configured as your suggestion, but it still not working Below is my setting on dltviewer tool in 2 ways: image

image

Note: I run dltviewer on Window, not Ubuntu Do I miss something?

Best regards, Cong.

thanhbnq commented 2 years ago

Hi @phamcongspk ,

Well, regarding dlt-viewer for Windows, I can suggest some extra steps you have to perform in this case.

  1. Check which UDP ports are allowed by firewall. On Windows command line, run: netsh firewall show state
  1. Check which multicast groups Windows can belong to. On Windows command line, run: netsh interface ip show joins

  2. (Maybe not necessary) on Ubuntu, Add multicast group of Viewer into ip table by command: sudo ip route add <result_of_#2> dev <inet_interface_of_dlt_daemon>

I hope it could help you.

Best regards, Thanh

phamcongspk commented 2 years ago

Hi Thanh,

Thanks for your help,

Below is the result when I try the step 1 and 2

  1. image

  2. image

Base o the result, multicast group haven't not add on Windows, have it? What can I do to add the multicast group?

Thank you! Cong.

thanhbnq commented 2 years ago

@phamcongspk In the picture 1, it looks like your system is only allowing TCP port 32111. I think you should contact your admin IT to (maybe) open another UDP port. I would say I am not an expert in Windows so you'd better consult your IT dept and refer to some following links: https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/windows-fireware-rule-block-udp-communication

In picture 2, it is telling us that the interface 8 Ethernet 2 is already member of some multicast groups. Hence, you have to guarantee your Ubuntu (host of dlt-daemon) will add one of groups. Check my step 3

Well. If it is somehow difficult to deal with your Windows system, I would suggest to you dltviewer for Ubuntu then :)

Hope it could help you. Thanh

phamcongspk commented 2 years ago

Hi Thanh,

Thanks again for your help. The reason I use dltViewer on Windows is that I use CANoe tool to view the DLT log but CANoe tool can run on Windows only. Now I think I will back to use TCP with CANoe tool. But CANoe tool do not support DLT protocol As I know, DLT client like dltViewer or CANoe tool must send a request to dlt-daemon before received data from dlt-daemon. Is it right? Can I create a request packet like that on CANoe tool over TCP/IP? I hope you can understand what I say. Otherwise, I can explain it in Vietnamese for more easy understanding :)

michael-methner commented 2 years ago

I am closing this one. These question is not related to DLT and more like an general IT problem.