fiberhome: fix ver sinal
Signed-off-by: Rodrigo Bertoldo de Sousa Martins <rodrigo.sousa.577@gmail.com>
This commit is contained in:
1 parent
5201f8823c
commit
6b5a7ba0a3
1 file changed
+20
-5
@@ -387,25 +387,28 @@ class FiberhomeManager {
|
||||
const comandosDetalhados = [
|
||||
// Para informações de distância e estado (comando válido do manual)
|
||||
`LST-ONUSTATE::OLTID=${oltId},PONID=${ponEncontrada},ONUNO=${numeroONU}:CTAG::;`,
|
||||
// Para informações DDM/potência ótica (comando válido do manual)
|
||||
// Para informações DDM/potência ótica da ONU (comando válido do manual)
|
||||
`LST-OMDDM::OLTID=${oltId},PONID=${ponEncontrada},ONUNO=${numeroONU}:CTAG::;`,
|
||||
// Para informações das portas LAN (comando válido do manual)
|
||||
`LST-ONULANINFO::OLTID=${oltId},PONID=${ponEncontrada},ONUNO=${numeroONU}:CTAG::;`
|
||||
`LST-ONULANINFO::OLTID=${oltId},PONID=${ponEncontrada},ONUNO=${numeroONU}:CTAG::;`,
|
||||
// Para informações DDM da porta PON da OLT (transceiver da OLT)
|
||||
`LST-OMDDM::OLTID=${oltId},PONID=${ponEncontrada}:CTAG::;`
|
||||
];
|
||||
|
||||
this.logger.debug('Executando comandos TL1 detalhados:', comandosDetalhados);
|
||||
|
||||
const [resultadoEstado, resultadoDDM, resultadoLAN] = await Promise.all([
|
||||
const [resultadoEstado, resultadoDDM, resultadoLAN, resultadoDDM_PON] = await Promise.all([
|
||||
this.executarComandoTL1(comandosDetalhados[0]),
|
||||
this.executarComandoTL1(comandosDetalhados[1]),
|
||||
this.executarComandoTL1(comandosDetalhados[2])
|
||||
this.executarComandoTL1(comandosDetalhados[2]),
|
||||
this.executarComandoTL1(comandosDetalhados[3])
|
||||
]);
|
||||
|
||||
// LOG COMPLETO DO LST-OMDDM PARA DEBUG - FORÇAR CONSOLE OUTPUT
|
||||
if (resultadoDDM.success && resultadoDDM.data) {
|
||||
const separador = '='.repeat(80);
|
||||
console.log('\n' + separador);
|
||||
console.log('LST-OMDDM RESPOSTA COMPLETA');
|
||||
console.log('LST-OMDDM RESPOSTA COMPLETA (ONU)');
|
||||
console.log(separador);
|
||||
console.log('Comando: ' + comandosDetalhados[1]);
|
||||
console.log('Resposta RAW:');
|
||||
@@ -420,6 +423,18 @@ class FiberhomeManager {
|
||||
}
|
||||
}
|
||||
|
||||
// LOG DO TRANSCEIVER DA PORTA PON DA OLT
|
||||
if (resultadoDDM_PON.success && resultadoDDM_PON.data) {
|
||||
const separador = '='.repeat(80);
|
||||
console.log('\n' + separador);
|
||||
console.log('LST-OMDDM RESPOSTA COMPLETA (PORTA PON DA OLT - TRANSCEIVER)');
|
||||
console.log(separador);
|
||||
console.log('Comando: ' + comandosDetalhados[3]);
|
||||
console.log('Resposta RAW:');
|
||||
console.log(resultadoDDM_PON.data);
|
||||
console.log(separador + '\n');
|
||||
}
|
||||
|
||||
// Adicionar dados coletados
|
||||
onuEncontrada.estadoGeral = resultadoEstado.success ? resultadoEstado.data : null;
|
||||
onuEncontrada.detalhes = resultadoDDM.success ? resultadoDDM.data : null;
|
||||
|
||||
Reference in new issue
Block a user