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

Diagnostic file format #104

Open
leducp opened this issue Jul 7, 2023 · 0 comments
Open

Diagnostic file format #104

leducp opened this issue Jul 7, 2023 · 0 comments

Comments

@leducp
Copy link
Owner

leducp commented Jul 7, 2023

Here is a proposal to post analyse a network behavior with a dedicated tool.

File/Stream Header

Entry type value if constant meaning
Magic number u32 TODO To recognize file format
Version u16 1 File format version
Start time u64 N/A Start time in ns since UNIX Epoch)
Data section u64 N/A Offset of the data section

Data block header

Entry type meaning
Block type u16 To recognize block format
Slave address u16 Slave address that generates this block
Timestamp u64 timestamp of the block in ns
Data Block type dependent Data of the block. Cf. following sections

Slave description

Block type: 1

Entry type meaning
Vendor ID u32 cf. SSI doc
Product code u32 cf. SSI doc
Revision number u32 cf. SSI doc
Serial number u32 cf. SSI doc

DL Status

Block type: 2

Entry type meaning
DL status u16 cf. register doc

AL Status

Block type: 3

Entry type meaning
AL status u16 cf. register doc
AL code u16 cf. register doc

Error counters

Block type: 4

Entry type meaning
Error counters sizeof(ErrorCounters) cf. register doc
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