Skip to content

How to choose network interface for DoIp client #44

@sylvtellier

Description

@sylvtellier

Hello everyone.

Many thanks for this package which works perfectly with udsoncan to connect to an ECU using DoIp.

However, I am encountering a problem choosing the network interface to use to create the DoIPClient client.

I have a classic internal network card and a USB/Ethernet adapter on my computer. My ECU supporting Doip is plugged to the usb/ethernet adapter. The network card is used for other communication.
When I simply create my client (as in this package's documentation : address, announcement = DoIPClient.get_entity()), the VehicleIdentificationRequest is sent by default to my internal ethernet card.

I would like this request to go to my usb/ethernet adapter.

If I deactivate the internal network card via the Windows control panel, the VehicleIdentificationRequest goes to my usb/ethernet adapter and I correctly receive the response from my ECU with its IP address, its port and its logical address.

How can we define the communication interface of the DoIP client?

Thanks for your help

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions