oxidecomputer / transceiver-control

Crate for controlling optical transceivers over the network
Mozilla Public License 2.0
7 stars 0 forks source link

Want support for more CMIS advertised pages #29

Open bnaecker opened 1 year ago

bnaecker commented 1 year ago

26 added basic support for decoding the pages a module advertises support for. SFF-8636 modules are pretty simple here, but CMIS is a good deal more complicated. We're parsing a few of the more straightforward pages, but here is a list of some others we should add support for. That requires reading a few more bytes from the module and decoding the right bits. Not complicated, but not critical at this point.

Aaron-Hartwig commented 1 year ago

I would like to add the following to the wishlist:

Read page 0x01 byte 142, where bit 5 indicates support for page 0x13 and 0x14, Module Performance Diagnostics Control and Results.

bnaecker commented 1 year ago

Yeah, that'd be nice. During the racktest whirlwind, we ended up reading lots of data out of those pages, such as the LOS / LOL flags. It'd be very nice to have a high-level decoding command that extracts whatever information is available about the physical layer, things like those LOS flags.