Skip to content

A question about parser multiple DoIP header in single TCP frame #63

Description

@6reend0g

081f710d47f19ce89513ae01080045000056004d40003e06c4360a44c9a40a4499f23458d1c8005be3203cb04c085018832c1bbe000002fd80010000000f10010e8062f1ab6608265068202041****02fd80010000000f1d010e8062f1ab6608438372202042

Hi, jacob,

I found that some projects will combine two or more DoIP frames in a single TCP frame, just like I pasted above. https://github.com/jacobschaer/python-doipclient/issues/51 . This issue also mentioned about a similar question. It seems ISO 13400-2 also recognized about this case, and give out the resolvation in Page 38, Sector 9.2, NOTE 1.

But read_doip() can only read out one DoIP frame from rx_buffer , If I have a multi-DoIP frame, It may only take the first DoIP frame when I trying to call read_doip() .

Do you have any experience to handle this case? Maybe we need a flag to let us know if there still have DoIP frames haven`t been parsed in rx_buffer after calling the read_doip() through receive_diagnostic() and send_diagnostic_to_address(). So we can parse it more times manually.

Activity

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