mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
Fix SFP diagnostic monitoring data in web interface
If the module is not internally calibrated, it is necessary to apply calibration values to get meaningful results.
This commit is contained in:
1 parent
45ba32f65d
commit
6eaa1985aa
2 files changed
+90
-5
No files matched your search
@@ -651,6 +651,19 @@ void send_status(void)
|
||||
sfp_send_data(machine.is_sfp[i] - 1, 230, 2);
|
||||
slen += strtox(outbuf + slen,"\",\"sfp_rxpower\":\"0x");
|
||||
sfp_send_data(machine.is_sfp[i] - 1, 232, 2);
|
||||
if (sfp_options[machine.is_sfp[i]-1] & 0x10) {
|
||||
slen += strtox(outbuf + slen,"\",\"sfp_temp_cal\":\"0x");
|
||||
sfp_send_data(machine.is_sfp[i] - 1, 212, 4);
|
||||
slen += strtox(outbuf + slen,"\",\"sfp_vcc_cal\":\"0x");
|
||||
sfp_send_data(machine.is_sfp[i] - 1, 216, 4);
|
||||
slen += strtox(outbuf + slen,"\",\"sfp_txbias_cal\":\"0x");
|
||||
sfp_send_data(machine.is_sfp[i] - 1, 204, 4);
|
||||
slen += strtox(outbuf + slen,"\",\"sfp_txpower_cal\":\"0x");
|
||||
sfp_send_data(machine.is_sfp[i] - 1, 208, 4);
|
||||
slen += strtox(outbuf + slen,"\",\"sfp_rxpower_cal\":\"0x");
|
||||
sfp_send_data(machine.is_sfp[i] - 1, 184, 16);
|
||||
sfp_send_data(machine.is_sfp[i] - 1, 200, 4);
|
||||
}
|
||||
slen += strtox(outbuf + slen,"\",\"sfp_state\":\"0x");
|
||||
sfp_send_data(machine.is_sfp[i] - 1, 238, 1);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user