Skip to content

Connecting via Gateway does not work due to Address Validation #75

Closed

Description

@christophruethingbmw

When not directly connecting to an ECU but going through a gateway, the check introduced in #68 now fails. For example, I connect to IP 192.168.1.1 and its routing activation response contains diagnostic address 0x10. However, I want to connect to an ECU behind this gateway, let's say with diagnostic address 0x40. In the past I simply use 0x40 in the DoIPClient but this obviously now fails. What is the intention here? I think it is a valid use-case we should support?

Activity

  1. jacobschaer commented on Aug 9, 2026

    @jacobschaer
    Owner

    @1ozZ - ideas? If you have something you think will help for this use case drop an MR.

  2. 1ozZ commented on Aug 10, 2026

    @1ozZ
    Contributor

    @christophruethingbmw You are absolutely right. The check introduced in #68 is indeed too strict for real-vehicle or gateway scenarios, where accessing a non-edge ECU will fail due to the logical address mismatch.
    @jacobschaer Apologies for the broken code in my previous PR. I will submit a fix PR later today to address this issue.

  3. christophruethingbmw commented on Aug 10, 2026

    @christophruethingbmw
    Author

    @1ozZ , thank you very much for the quick fix :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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