Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
rnd:projects:aft [2022-12-20 22:58] – [Data entry] asdf | rnd:projects:aft [2023-05-07 02:54] (current) – asdf | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== AFT: A fiber tracer ====== | + | ====== AFT fiber tracer ====== |
---- dataentry projects ---- | ---- dataentry projects ---- | ||
status_ : active | status_ : active | ||
- | oneline : A tool for tracing fiber lines | + | oneline : a tool for tracing fiber optic lines |
---- | ---- | ||
- | |||
I have on occasion required a tool for identifying fiber optic lines at work. While it isn't often enough to justify the expense of a proper fiber test device, it might be within my capabilities to construct a basic fiber " | I have on occasion required a tool for identifying fiber optic lines at work. While it isn't often enough to justify the expense of a proper fiber test device, it might be within my capabilities to construct a basic fiber " | ||
- | The project' | + | The project' |
===== Background ===== | ===== Background ===== | ||
Line 14: | Line 13: | ||
==== SFP modules ==== | ==== SFP modules ==== | ||
- | SFPs (small form-factor pluggable) are compact IR transceivers designed for fiber optic networking. There are two major advantages to using an SFP in this device. First, it puts the tester on equal footing with the devices in the live environment. We don't have to worry about propagation distances; if the tester can't transmit over the entire fiber run, then neither will a switch be able to. Second, it allows the tester to check the SFP itself using DDM/DOM [(ddm_dom)] or I2C [(sfp_i2c)]. In the future, we may also be able to program the tester to talk to live network devices to help determine where the other end of the cable goes((It seems likely that an Arduino Uno is not fast enough to process Ethernet frames. One of the beefier boards may, but this feature is not essential for the tester as described.)). | + | SFPs (small form-factor pluggable) are compact IR transceivers designed for fiber optic networking. There are two major advantages to using an SFP in this device. First, it puts the tester on equal footing with the devices in the live environment. We don't have to worry about propagation distances; if the SFP-equipped |
The electrical pinout is shown in {{ref> | The electrical pinout is shown in {{ref> | ||
Line 24: | Line 23: | ||
| 2 | Tx_Fault | Transmitter fault indication | | | 2 | Tx_Fault | Transmitter fault indication | | ||
| 3 | Tx_Disable | Optical output disabled when high | | | 3 | Tx_Disable | Optical output disabled when high | | ||
- | | 4 | SDA | 2-wire serial interface data line (using the CMOS EEPROM protocol defined for the ATMEL AT24C01A/ | + | | 4 | SDA | 2-wire serial interface data line (using the CMOS EEPROM protocol defined for the ATMEL AT24C01A/ |
| 5 | SCL | 2-wire serial interface clock | | | 5 | SCL | 2-wire serial interface clock | | ||
| 6 | Mod_ABS | Module absent, connection to VeeT or VeeR in the module indicates module presence to host ((This is a prime target for connecting to a falling interrupt.)) | | | 6 | Mod_ABS | Module absent, connection to VeeT or VeeR in the module indicates module presence to host ((This is a prime target for connecting to a falling interrupt.)) | | ||
Line 43: | Line 42: | ||
</ | </ | ||
- | For the prototypes, we will be using the Osmocom SFP Experimenter board. This breakout contains all support circuitry required to send single-ended signals through an SFP. No restriction is made on the input data, so we need not send valid Ethernet frames. That opens up the question of how we are to encode the data for transmission [(data_encoding)]. Of course, instead of sending arbitrary bits, we could instead transmit a clock. | + | <WRAP center round tip 60%> |
+ | The '' | ||
+ | </ | ||
+ | |||
+ | ==== Osmocom SPF experimenter ==== | ||
+ | For the prototypes, we will be using the Osmocom SFP Experimenter board. This breakout contains all support circuitry required to send single-ended signals through an SFP. No restriction is made on the input data, so we need not send valid Ethernet frames. | ||
For whatever reason, the SFP Experimenter board is designed to accept I/O connections through SMA connectors (one per stream). The units ship without the connectors soldered to the board, so we can add whatever kind of interface we want---simple wires will do. | For whatever reason, the SFP Experimenter board is designed to accept I/O connections through SMA connectors (one per stream). The units ship without the connectors soldered to the board, so we can add whatever kind of interface we want---simple wires will do. | ||
+ | |||
+ | The I2C bus on the board already includes pull-up resistors, so no external pull-ups are required. | ||
==== SFP data registers ==== | ==== SFP data registers ==== | ||
- | SFP modules expose a great deal of data detailing their internal status, all accessible through I2C at one of two addresses ('' | + | SFP modules expose a great deal of data detailing their internal status, all accessible through I2C at one of two addresses ('' |
+ | |||
+ | <code cpp> | ||
+ | // load in the EEPROM address | ||
+ | Wire.beginTransmission(0x50); | ||
+ | Wire.write(20); | ||
+ | Wire.endTransmission(); | ||
+ | |||
+ | // request the data | ||
+ | Wire.requestFrom(0x50, | ||
+ | // data is now ready for read(), see docs | ||
+ | </ | ||
+ | |||
+ | After each read, the internal address register is incremented so it points to the next byte. Given the way we're most likely to access this table, this fact is of relatively little use to us. | ||
+ | |||
+ | <table |tab_sfpreg_50> | ||
+ | < | ||
+ | |||
+ | < | ||
+ | ^ Value ^ Address (dec) ^ Data length ^ | ||
+ | | Manufacturer name (ASCII) | 20 | 16 | | ||
+ | | Compliance code | 3 | 8 | | ||
+ | | Nominal signalling rate (100s Mbd) | 12 | 1 | | ||
+ | | Supported optional DDM features | 93 | 1 | | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | <table |tab_sfpreg_51> | ||
+ | < | ||
+ | |||
+ | < | ||
+ | ^ Value ^ Address (dec) ^ Data length ^ | ||
+ | |||
+ | </ | ||
+ | </ | ||
+ | ==== Serial data transmission ==== | ||
===== Design ===== | ===== Design ===== | ||
- | The idea is to have a pair of Arduino-based devices. For a given test session, one (designated the sender) is connected the the line under test and begins transmitting a particular signal. The other (designated the receiver) watches for this signal. Once it finds the signal, it can send a reply back to confirm that the sender | + | The idea is to have a pair of Arduino-based devices. For a given test session, one (designated the toner) is connected the the line under test and begins transmitting a particular signal. The other (designated the probe) watches for this signal. Once it finds the signal, it can send a reply back to confirm that the toner is indeed on the other end. Each device should be equipped with a display and some kind of controls |
==== User interface ==== | ==== User interface ==== | ||
Line 78: | Line 120: | ||
===== Prototyping ===== | ===== Prototyping ===== | ||
- | * 2x [[https:// | + | * 2x <del>[[https:// |
* 2x [[https:// | * 2x [[https:// | ||
* 2x [[https:// | * 2x [[https:// | ||
Line 87: | Line 129: | ||
We don't want to rely on the Osmocom SFP Experimenter board for the final product, but it has the major advantage of a built-in differential transmitter and receiver((If sending differential signals, must they be of the same magnitude? Can I send a clock into one side and the actual data into the other? Need to read more and possibly simulate this.)). | We don't want to rely on the Osmocom SFP Experimenter board for the final product, but it has the major advantage of a built-in differential transmitter and receiver((If sending differential signals, must they be of the same magnitude? Can I send a clock into one side and the actual data into the other? Need to read more and possibly simulate this.)). | ||
- | {{ref> | + | {{ref> |
<table |tab_pin_usage> | <table |tab_pin_usage> | ||
Line 93: | Line 135: | ||
| ^ Device pin ^ ^ Arduino pin ^ | | ^ Device pin ^ ^ Arduino pin ^ | ||
^ LCD |||| | ^ LCD |||| | ||
- | | | RX | <- | D8 | | + | | | RX | <- | D8 ('' |
| | +5V | <- | +5V | | | | +5V | <- | +5V | | ||
| | GND | <- | GND | | | | GND | <- | GND | | ||
Line 99: | Line 141: | ||
| | +3.3V | <- | +3.3V | | | | +3.3V | <- | +3.3V | | ||
| | GND | <- | GND | | | | GND | <- | GND | | ||
- | | | **RX** | + | | | __RX__ |
- | | | TX | <- | | | + | | | TX | <- | D1 ('' |
- | | | SDA | < | + | | | SDA | < |
- | | | SCL | < | + | | | SCL | < |
- | | | TX_FAULT | -> | | | + | | | TX_FAULT | -> | D5 | |
- | | | MOD_ABS | -> | | | + | | | MOD_ABS | -> | D4 | |
^ Rotary encoder |||| | ^ Rotary encoder |||| | ||
- | | | **Enc A** | -> | | | + | | | __Enc A__ | -> | D18 | |
- | | | **Enc B** | -> | | | + | | | __Enc B__ | -> | D19 | |
| | GND | <- | GND | | | | GND | <- | GND | | ||
- | | | **Sw A** | | | | + | | | __Sw A__ | |
- | | | Sw B | | | | + | | | Sw B | | GND | |
</ | </ | ||
+ | ==== Communication ==== | ||
+ | UART transmission is not looking terribly promising at this time. | ||
+ | |||
+ | Different SFP models appear to produce different signals when the output is open. The SMF unit (unknown vendor) outputs nothing, while the Veloso units send (noisy) pulse trains (see {{ref> | ||
+ | |||
+ | <figure center|fig_idle> | ||
+ | < | ||
+ | {{ : | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | {{ : | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | </ | ||
+ | |||
+ | <figure center|fig_k> | ||
+ | < | ||
+ | {{ : | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | {{ : | ||
+ | < | ||
+ | </ | ||
+ | < | ||
+ | </ | ||
==== Power considerations ==== | ==== Power considerations ==== | ||
Portable operation is a must for this tester. | Portable operation is a must for this tester. | ||
Line 118: | Line 188: | ||
===== Relevant links ===== | ===== Relevant links ===== | ||
- | * [[https:// | ||
- | * [[https:// | ||
- | * [[https:// | ||
- | * [[https:// | ||
- | * [[https:// | ||
- | * [[https:// | ||
* [[https:// | * [[https:// | ||
- | * [[https:// | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
Line 131: | Line 194: | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
- | * the [[https:// | + | * the [[https:// |
+ | * the [[https:// | ||
* [[https:// | * [[https:// | ||
- | * [[https:// | + | * [[https:// |
* [[https:// | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * https:// | ||
===== References ===== | ===== References ===== | ||
Line 142: | Line 217: | ||
[(sfp_i2c> | [(sfp_i2c> | ||
[(pwm_read> | [(pwm_read> | ||
+ | [(sparkfun_serialcomm> | ||
+ | [(twi_protocol> | ||
+ | {{tag> |