Giter Site home page Giter Site logo

steveglen / sfppi Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sonicepk/sfppi

0.0 1.0 0.0 104 KB

Raspberry Pi and Programming EEPROMs on SFP/SFP+ modules

Home Page: http://eoinpk.blogspot.ie/2014/05/raspberry-pi-and-programming-eeproms-on.html

License: GNU Lesser General Public License v3.0

C 99.22% Makefile 0.78%

sfppi's Introduction

This inital version 0.2 of sfp-generic.c has the following functionality.

sfppi -r: 
Prints out the values for some of the eeprom fields. For example:

Connector Type = LC
Transceiver is 1000Base SX
Wavelength = 850.0
Vendor = Raspberry Pi    
Partnumber = QFBR-5766LP     
Serial = 123456789JK     
date = 050310  
cc_base = c6, sum = c6
extended cc_base = 95 and sum= 95 

sfp -d filename.txt:
Dumps the contents of the eprom to a file.

sfppi -c:
Calculates the checksums and if they are different to what is on the eeprom you will be prompted to write the correct checksum or not. Use at your own risk.

sfppi -m:
Prints out some of the Digital Diagnostics Monitoring parameters. SFP must support DOM.
Internal SFP Temperature = 37.66C
Internal supply voltage = 3.26V
TX bias current = 0.00mA
Optical power Tx = -40.00 dBm
Optical power Rx = -10.17 dBm

---------------------
Version 0.21 of sfp-vendor.c has the following functionality.

Usage: ./sfpp-vendor
	-r read the sfp or sfp+
	-c calculate and write Vendor bytes
	-m Print DOM values if SFP supports DOM
	-d filename - save the eprom to a file

Note: you need to provide your own valid manufacturer key (vendor_key1) and also a valid manufacturer id man_id[0].

sfppi's People

Contributors

sonicepk avatar steveglen avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.