From: Uwe Hermann Date: Wed, 22 Jul 2015 06:02:39 +0000 (+0200) Subject: xfp: Add a test-case. X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=01bafd46bf5b38d178a2a82ff7ddfc97df9b70d7;p=sigrok-test.git xfp: Add a test-case. --- diff --git a/decoder/test/xfp/test.conf b/decoder/test/xfp/test.conf new file mode 100644 index 0000000..de1a445 --- /dev/null +++ b/decoder/test/xfp/test.conf @@ -0,0 +1,6 @@ +test xfp + protocol-decoder i2c channel scl=0 channel sda=1 + protocol-decoder xfp + stack i2c xfp + input i2c/network-transceivers/xfp.sr + output xfp annotation match xfp.output diff --git a/decoder/test/xfp/xfp.output b/decoder/test/xfp/xfp.output new file mode 100644 index 0000000..4c9e537 --- /dev/null +++ b/decoder/test/xfp/xfp.output @@ -0,0 +1,168 @@ +423-507 xfp: fieldnames-and-values: "Module identifier: XFP" +423-507 xfp: fields: "XFP" +1920-3382 xfp: fieldnames-and-values: "Temp high alarm: 80.0 C" +1920-3382 xfp: fields: "80.0 C" +4717-6184 xfp: fieldnames-and-values: "Temp low alarm: -15.0 C" +4717-6184 xfp: fields: "-15.0 C" +7397-8260 xfp: fieldnames-and-values: "Temp high warning: 75.0 C" +7397-8260 xfp: fields: "75.0 C" +9109-10211 xfp: fieldnames-and-values: "Temp low warning: -10.0 C" +9109-10211 xfp: fields: "-10.0 C" +18994-20074 xfp: fieldnames-and-values: "Bias high alarm: 0.1 mA" +18994-20074 xfp: fields: "0.1 mA" +22833-23897 xfp: fieldnames-and-values: "Bias high warning: 0.1 mA" +22833-23897 xfp: fields: "0.1 mA" +26607-27675 xfp: fieldnames-and-values: "TX power high alarm: 1.58 mW" +26607-27675 xfp: fields: "1.58 mW" +28514-29584 xfp: fieldnames-and-values: "TX power low alarm: 0.13 mW" +28514-29584 xfp: fields: "0.13 mW" +30407-31330 xfp: fieldnames-and-values: "TX power high warning: 1.00 mW" +30407-31330 xfp: fields: "1.00 mW" +31928-32892 xfp: fieldnames-and-values: "TX power low warning: 0.20 mW" +31928-32892 xfp: fields: "0.20 mW" +33686-34584 xfp: fieldnames-and-values: "RX power high alarm: 1.78 mW" +33686-34584 xfp: fields: "1.78 mW" +37099-38065 xfp: fieldnames-and-values: "RX power high warning: 1.41 mW" +37099-38065 xfp: fields: "1.41 mW" +38819-39790 xfp: fieldnames-and-values: "RX power low warning: 0.03 mW" +38819-39790 xfp: fields: "0.03 mW" +73716-86277 xfp: fieldnames-and-values: "Interrupt bits: 00 80 00 80 a2 00 00 00 00 00 00 00 00 00 00 00" +73716-86277 xfp: fields: "00 80 00 80 a2 00 00 00 00 00 00 00 00 00 00 00" +87084-87980 xfp: fieldnames-and-values: "Module temperature: 35.8 C" +87084-87980 xfp: fields: "35.8 C" +93487-94448 xfp: fieldnames-and-values: "Measured RX input power: 2.20 mW" +93487-94448 xfp: fields: "2.20 mW" +95184-96147 xfp: fieldnames-and-values: "AUX 1 measurement: 33105" +95184-96147 xfp: fields: "33105" +98505-99390 xfp: fieldnames-and-values: "General Control/Status: TX disable, MOD_NR, P_Down, TX_NR, TX_CDR not locked" +98505-99390 xfp: fields: "TX disable, MOD_NR, P_Down, TX_NR, TX_CDR not locked" +113792-113877 xfp: fieldnames-and-values: "Module identifier: XFP" +113792-113877 xfp: fields: "XFP" +114585-114670 xfp: fieldnames-and-values: "Extended id: Power level 2 module, CDR" +114585-114670 xfp: fields: "Power level 2 module, CDR" +115379-115464 xfp: fieldnames-and-values: "Connector: LC" +115379-115464 xfp: fields: "LC" +116293-122315 xfp: fieldnames-and-values: "Transceiver compliance: 10GBASE-LR, 10GBASE-LW" +116293-122315 xfp: fields: "10GBASE-LR, 10GBASE-LW" +123080-123165 xfp: fieldnames-and-values: "Serial encoding support: 64B/66B" +123080-123165 xfp: fields: "64B/66B" +123964-124049 xfp: fieldnames-and-values: "Minimum bit rate: 10.000 GB/s" +123964-124049 xfp: fields: "10.000 GB/s" +124777-124860 xfp: fieldnames-and-values: "Maximum bit rate: 10.800 GB/s" +124777-124860 xfp: fields: "10.800 GB/s" +125683-125768 xfp: fieldnames-and-values: "Link length (SMF): 10 km" +125683-125768 xfp: fields: "10 km" +126502-126587 xfp: fieldnames-and-values: "Link length (extended, 50μm MMF): (standard)" +126502-126587 xfp: fields: "(standard)" +127455-127538 xfp: fieldnames-and-values: "Link length (50μm MMF): (standard)" +127455-127538 xfp: fields: "(standard)" +128306-128391 xfp: fieldnames-and-values: "Link length (62.5μm MMF): (standard)" +128306-128391 xfp: fields: "(standard)" +129205-129290 xfp: fieldnames-and-values: "Link length (copper): (unknown)" +129205-129290 xfp: fields: "(unknown)" +130038-130123 xfp: fieldnames-and-values: "Device technology: 1310 nm DFB transmitter, no wavelength control, uncooled transmitter device, PIN detector, transmitter not tunable" +130038-130123 xfp: fields: "1310 nm DFB transmitter, no wavelength control, uncooled transmitter device, PIN detector, transmitter not tunable" +130893-143893 xfp: fieldnames-and-values: "Vendor: SumitomoElectric" +130893-143893 xfp: fields: "SumitomoElectric" +144602-144687 xfp: fieldnames-and-values: "CDR support: 9.95Gb/s, 10.3Gb/s, 10.5Gb/s, 10.7Gb/s" +144602-144687 xfp: fields: "9.95Gb/s, 10.3Gb/s, 10.5Gb/s, 10.7Gb/s" +145406-147212 xfp: fieldnames-and-values: "Vendor OUI: 00-0A-1D" +145406-147212 xfp: fields: "00-0A-1D" +147991-160926 xfp: fieldnames-and-values: "Vendor part number: SXP3101LX-A4" +147991-160926 xfp: fields: "SXP3101LX-A4" +161675-162649 xfp: fieldnames-and-values: "Vendor revision: A" +161675-162649 xfp: fields: "A" +163418-164309 xfp: fieldnames-and-values: "Wavelength: 1310 nm" +163418-164309 xfp: fields: "1310 nm" +165143-166113 xfp: fieldnames-and-values: "Wavelength tolerance: 20.0 nm" +165143-166113 xfp: fields: "20.0 nm" +166846-166929 xfp: fieldnames-and-values: "Maximum case temperature: 70 C" +166846-166929 xfp: fields: "70 C" +168620-168703 xfp: fieldnames-and-values: "Max power dissipation: 2.500 W" +168620-168703 xfp: fields: "2.500 W" +169445-169530 xfp: fieldnames-and-values: "Max power dissipation (powered down): 1.500 W" +169445-169530 xfp: fields: "1.500 W" +170347-170431 xfp: fieldnames-and-values: "Max current required (5V supply): 0.000 A" +170347-170431 xfp: fields: "0.000 A" +170347-170431 xfp: fieldnames-and-values: "Max current required (3.3V supply): 0.800 A" +170347-170431 xfp: fields: "0.800 A" +171185-171270 xfp: fieldnames-and-values: "Max current required (1.8V supply): 0.000 A" +171185-171270 xfp: fields: "0.000 A" +171185-171270 xfp: fieldnames-and-values: "Max current required (-5.2V supply): 0.000 A" +171185-171270 xfp: fields: "0.000 A" +171981-184609 xfp: fieldnames-and-values: "Vendor serial number: 833012A00388" +171981-184609 xfp: fields: "833012A00388" +185331-191269 xfp: fieldnames-and-values: "Manufacturing date: 2008-03-21 lot A5" +185331-191269 xfp: fields: "2008-03-21 lot A5" +192082-192167 xfp: fieldnames-and-values: "Diagnostic monitoring: no BER support, average power measurement" +192082-192167 xfp: fields: "no BER support, average power measurement" +192944-193027 xfp: fieldnames-and-values: "Enhanced option support: soft TX_DISABLE, soft P_Down" +192944-193027 xfp: fields: "soft TX_DISABLE, soft P_Down" +193917-194000 xfp: fieldnames-and-values: "AUX1 monitoring: 3.3V supply voltage" +193917-194000 xfp: fields: "3.3V supply voltage" +193917-194000 xfp: fieldnames-and-values: "AUX2 monitoring: not implemented" +193917-194000 xfp: fields: "not implemented" +195798-195881 xfp: fieldnames-and-values: "Vendor ID: 3" +195798-195881 xfp: fields: "3" +195798-195881 xfp: fieldnames-and-values: "Vendor ID: H" +195798-195881 xfp: fields: "H" +195798-195881 xfp: fieldnames-and-values: "Vendor ID: E" +195798-195881 xfp: fields: "E" +195798-195881 xfp: fieldnames-and-values: "Vendor ID: 0" +195798-195881 xfp: fields: "0" +195798-195881 xfp: fieldnames-and-values: "Vendor ID: 0" +195798-195881 xfp: fields: "0" +195798-195881 xfp: fieldnames-and-values: "Vendor ID: 5" +195798-195881 xfp: fields: "5" +195798-195881 xfp: fieldnames-and-values: "Vendor ID: 6" +195798-195881 xfp: fields: "6" +195798-195881 xfp: fieldnames-and-values: "Vendor ID: 4" +195798-195881 xfp: fields: "4" +195798-195881 xfp: fieldnames-and-values: "Vendor ID: A" +195798-195881 xfp: fields: "A" +195798-195881 xfp: fieldnames-and-values: "Vendor ID: A" +195798-195881 xfp: fields: "A" +195798-195881 xfp: fieldnames-and-values: "Vendor ID: A" +195798-195881 xfp: fields: "A" +195798-195881 xfp: fieldnames-and-values: "Vendor ID: A" +195798-195881 xfp: fields: "A" +195798-195881 xfp: fieldnames-and-values: "Vendor ID: 0" +195798-195881 xfp: fields: "0" +195798-195881 xfp: fieldnames-and-values: "Vendor ID: 1" +195798-195881 xfp: fields: "1" +195798-195881 xfp: fieldnames-and-values: "Vendor ID: " +195798-195881 xfp: fields: " " +195798-195881 xfp: fieldnames-and-values: "Vendor ID: " +195798-195881 xfp: fields: " " +195798-195881 xfp: fieldnames-and-values: "Vendor ID: A" +195798-195881 xfp: fields: "A" +195798-195881 xfp: fieldnames-and-values: "Vendor ID: L" +195798-195881 xfp: fields: "L" +195798-195881 xfp: fieldnames-and-values: "Vendor ID: A" +195798-195881 xfp: fields: "A" +195798-195881 xfp: fieldnames-and-values: "Vendor ID: " +195798-195881 xfp: fields: " " +195798-195881 xfp: fieldnames-and-values: "Vendor ID: " +195798-195881 xfp: fields: " " +195798-195881 xfp: fieldnames-and-values: "Vendor ID: I" +195798-195881 xfp: fields: "I" +195798-195881 xfp: fieldnames-and-values: "Vendor ID: P" +195798-195881 xfp: fields: "P" +195798-195881 xfp: fieldnames-and-values: "Vendor ID: U" +195798-195881 xfp: fields: "U" +195798-195881 xfp: fieldnames-and-values: "Vendor ID: I" +195798-195881 xfp: fields: "I" +195798-195881 xfp: fieldnames-and-values: "Vendor ID: A" +195798-195881 xfp: fields: "A" +195798-195881 xfp: fieldnames-and-values: "Vendor ID: R" +195798-195881 xfp: fields: "R" +195798-195881 xfp: fieldnames-and-values: "Vendor ID: R" +195798-195881 xfp: fields: "R" +195798-195881 xfp: fieldnames-and-values: "Vendor ID: D" +195798-195881 xfp: fields: "D" +195798-195881 xfp: fieldnames-and-values: "Vendor ID: A" +195798-195881 xfp: fields: "A" +195798-195881 xfp: fieldnames-and-values: "Vendor ID: A" +195798-195881 xfp: fields: "A" +195798-195881 xfp: fieldnames-and-values: "Vendor ID: T" +195798-195881 xfp: fields: "T"