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

Help: error in instance client = DoIPClient(ip, logical_address). #48

Open
mmdlife opened this issue Apr 28, 2024 · 1 comment
Open

Comments

@mmdlife
Copy link

mmdlife commented Apr 28, 2024

from doipclient import DoIPClient
address, announcement = DoIPClient.get_entity()
logical_address = announcement.logical_address
ip, port = address
print(ip, port, logical_address)  #  ip, port, logical_address can be displayed correctly.
# Then I executed this line of code and it started reporting errors
client = DoIPClient(ip, logical_address)

# The error is
result = self.request_activation(self._activation_type, disable_retry=True)
if result.response_code != RoutingActivationResponse.ResponseCode.Success:
    raise ConnectionRefusedError(
        f"Activation Request failed with code {result.response_code}"
    )

I checked the result is

RoutingActivationResponse (0x6): { client_logical_address : 3584, logical_address : 4112, response_code : ResponseCode.DeniedUnknownSourceAddress, reserved : 0, vm_specific : None }

routing activation request is 02 FD 00 05 00 00 00 07 0e 00 00 00 00 00 00
routing activation response is 02 FD 00 06 00 00 00 09 0e 00 10 10 00 00 00 00 00
What does this mean, if you see it help answer it, thank you very much.

@mmdlife
Copy link
Author

mmdlife commented Apr 28, 2024

I apologize, I checked the 13400 documentation and this should have nothing to do with your code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant