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

Add CRC32 at the end of a transfer and demark the payload as a field #6

Merged
merged 2 commits into from
Jun 8, 2023

Conversation

emrainey
Copy link
Collaborator

@emrainey emrainey commented Jun 7, 2023

Fixes #5
Added Payload size too and fixed names for CRC.

Fixes #5
Added Payload size too and fixed names for CRC.
@emrainey emrainey self-assigned this Jun 7, 2023
Copy link
Member

@thirtytwobits thirtytwobits left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'd have to help me with the APIs for my review to be really worth-while but as long as this matches the specification (https://opencyphal.org/specification/Cyphal_Specification.pdf) then we're good.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The version is only 4 bits. The following 4 bits are reserved.

@@ -23,7 +23,10 @@ frame_index_eot = ProtoField.uint32("cyphal_udp.frame_index_eot", "frame_index_e
frame_index = ProtoField.uint32("cyphal_udp.frame_index", "frame_index", base.DEC)
end_of_transfer = ProtoField.bool("cyphal_udp.end_of_transfer", "end_of_transfer", base.NONE)
user_data = ProtoField.uint16("cyphal_udp.user_data", "user_data", base.HEX)
crc16_ccitt_false = ProtoField.uint16("cyphal_udp.crc16_ccitt_false", "crc16_ccitt_false (BE)", base.HEX)
crc16_ccitt_false = ProtoField.uint16("cyphal_udp.crc16_ccitt_false", "CRC16-CCITT-FALSE (BE)", base.HEX)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's all upper-case now. Okay. Am I supposed to be impressed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the reference online are in SHOUTY CASE. So I thought I'd SHOUT too.

@emrainey emrainey merged commit b421297 into main Jun 8, 2023
@emrainey emrainey deleted the emrainey/issue5 branch June 8, 2023 15:14
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

Successfully merging this pull request may close these issues.

Add CRC32 at the end of a transfer and demark the payload as a field
2 participants