As I know you can only read and write to user area but can not erase and write to manufacturer area for finisar (that's why these modules are so cheap on aftermarket).
I wrote you example script, first is pw write 4 byte at once, second is byte by byte (some SFP may require first method, some second). You can make script with GUI from script maker in application.
Code: Select all
// SFP 4 byte password write to 0x7B (4 byte at once: 0x11, 0x22, 0x33, 0x44)
#SCRIPT HEADER;
SCRIPT:v1.6.1;
#HARDWARE SETTINGS;
HW:I2C,3.0V,SLOW;
// write 4 byte password to 0x7B (10ms delay after write)
#OPERATION;
SW:1,3,0,0,0,0,10,0,0,500;
INSTR:A2,7B;
DATA:11,22,33,44;
Code: Select all
// SFP 4 byte password write to 0x7B (byte by byte: 0x11, 0x22, 0x33, 0x44)
#SCRIPT HEADER;
SCRIPT:v1.6.1;
#HARDWARE SETTINGS;
HW:I2C,3.0V,SLOW;
// write 1 byte password to 0x7B (10ms delay after write)
#OPERATION;
SW:1,0,0,0,0,0,10,0,0,500;
INSTR:A2,7B;
DATA:11;
// write 1 byte password to 0x7C (10ms delay after write)
#OPERATION;
SW:1,0,0,0,0,0,10,0,0,500;
INSTR:A2,7C;
DATA:22;
// write 1 byte password to 0x7D (10ms delay after write)
#OPERATION;
SW:1,0,0,0,0,0,10,0,0,500;
INSTR:A2,7D;
DATA:33;
// write 1 byte password to 0x7E (10ms delay after write)
#OPERATION;
SW:1,0,0,0,0,0,10,0,0,500;
INSTR:A2,7E;
DATA:44;
Please note that in some SFP you can write password only directly after SFP power up (it may not work after any operation), so you may need to unplug and plug SFP if you did any operation before.