python-doipclient
python-doipclient copied to clipboard
Help: error in instance client = DoIPClient(ip, logical_address).
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.
I apologize, I checked the 13400 documentation and this should have nothing to do with your code.