104 lines
8.0 KiB
HTML
104 lines
8.0 KiB
HTML
<!doctype html>
|
||
<html lang="es">
|
||
<head>
|
||
<meta charset="utf-8">
|
||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||
<title>Prueba de banco — Ethernet y puertos serie (V5)</title>
|
||
<script src="../js/tema.js"></script>
|
||
<link rel="stylesheet" href="acta.css">
|
||
</head>
|
||
<body>
|
||
<div id="acta"></div>
|
||
<script src="flota.js"></script>
|
||
<script src="series.js"></script>
|
||
<script src="acta.js"></script>
|
||
<script>
|
||
const ethSi = v => String(v.eth_aplica || '').startsWith('Sí');
|
||
const serSi = v => String(v.ser_aplica || '').startsWith('Sí');
|
||
const fwLazo = v => serSi(v) && String(v.ser_fw || '').startsWith('Build con lazo');
|
||
|
||
Acta.render({
|
||
tipo: 'prueba-ethernet-serie',
|
||
repetible: true,
|
||
tecnicoDesdeUsuario: true,
|
||
nombres: { alan: 'Alán Basurto', daniel: 'Daniel Martínez', leo: 'Leo Rodríguez' },
|
||
unidades: window.SERIES,
|
||
etiquetaSerie: 'Unidad o tarjeta bajo prueba',
|
||
titulo: 'Acta: Ethernet y puertos serie',
|
||
subtitulo: 'V5.5 / V5.6. Procedimiento: Taller → Ethernet y puertos serie.',
|
||
textoOK: 'PRUEBA COMPLETA',
|
||
intro: 'W5500 (J10) y SC16IS752 con RS-485 (P15) y RS-232 (P16). Ethernet solo con el build de banco <code>0.6.1-eth</code>; lazo y eco serie solo con un build posterior (0.6.1 no los trae). '
|
||
+ '<b>Reglas:</b> nunca Ethernet en batería o solo por USB · 5 V ≥ 5.2 V · al terminar, de vuelta al binario de campo vigente (<code>0.6.0</code>). '
|
||
+ 'Laptop en 192.168.7.1/24 con <code>nc -lk 5010</code>; consola HBOX (J11, 115200) grabando a archivo; teclas <code>s</code> STAT · <code>E</code> Ethernet on/off.',
|
||
secciones: [
|
||
|
||
{ titulo: '0 · Configuración',
|
||
items: [
|
||
{ tipo:'fecha', clave:'fecha', req:true, guardaEn:'fecha', txt:'Fecha' },
|
||
{ tipo:'radio', clave:'tarjeta', req:true, guardaEn:'clasificacion', txt:'Tarjeta', opciones:['V5.5','V5.6'] },
|
||
{ tipo:'texto', clave:'h00', rows:'1', txt:'Unidad en el monitor (H00xx)', ph:'H0012' },
|
||
{ tipo:'texto', clave:'fw', rows:'1', req:true, txt:'Firmware (línea BOOT o banner)', ph:'hbox-v5-bringup 0.6.1-eth built …' },
|
||
{ tipo:'radio', clave:'alim', req:true, txt:'Alimentación', opciones:['24 V al GX16 (SD-15B interno)','Fuente 5.3 V en P2 (sin batería)'] },
|
||
{ tipo:'medida', clave:'v5', req:true, txt:'STAT v5, etapa ON', esperado:'5.2 – 5.4 V (ok)', u:'V' },
|
||
{ tipo:'check', clave:'monitor', txt:'Monitor abierto con la unidad (para ver que el 4G no se afecta).' },
|
||
] },
|
||
|
||
{ titulo: 'A · Ethernet',
|
||
sub:'Cable directo J10 ↔ laptop (192.168.7.1/24); <code>nc -lk 5010</code> escuchando antes de energizar.',
|
||
items: [
|
||
{ tipo:'radio', clave:'eth_aplica', req:true, txt:'Ethernet probado', opciones:['Sí','No — sin build -eth disponible','No — el panel no lleva RJ45'] },
|
||
{ tipo:'radio', clave:'eth_hw', si:ethSi, req:true, txt:'Consola al energizar', opciones:['ETH W5500 OK en SPI2','ETH W5500 NO responde (ETH_HW fail)','No apareció ninguna línea ETH'] },
|
||
{ tipo:'radio', clave:'eth_link', si:ethSi, req:true, txt:'LED de enlace de J10', opciones:['Encendido','Apagado','Parpadea sin quedarse fijo'] },
|
||
{ tipo:'radio', clave:'eth_ip_modo', si:ethSi, req:true, txt:'Dirección obtenida', opciones:['Estática 192.168.7.2 (sin DHCP en 4 s)','DHCP','Nunca llegó a «enlace ARRIBA»'] },
|
||
{ tipo:'texto', clave:'eth_ip', si:ethSi, rows:'1', txt:'IP en STAT (eth=… ip=)', ph:'192.168.7.2' },
|
||
{ tipo:'radio', clave:'eth_tcp', si:ethSi, req:true, txt:'Espejo TCP a 192.168.7.1:5010', opciones:['Conectó y nc recibe líneas','Conectó pero nc no muestra nada','Nunca conectó (eth=buscando_srv)'] },
|
||
{ tipo:'check', clave:'eth_phid', si:ethSi, txt:'Primero <code>$PHID,…,0.6.1-eth,…</code> en <code>nc</code>, luego NMEA + <code>$PHLG</code>.' },
|
||
{ tipo:'texto', clave:'eth_phid_txt', si:ethSi, rows:'1', txt:'Línea $PHID', ph:'$PHID,3A0021000E51313230383335,0.6.1-eth,EinarBoard v5 (HBOX v5),02:48:42:1F:2C:9B,42*5C' },
|
||
{ tipo:'texto', clave:'eth_stat', si:ethSi, rows:'2', txt:'STAT eth= a 5 min', ph:'eth=CONECTADO ip=192.168.7.2 lineas=612 bytes=48210 drop=0 conn=1' },
|
||
{ tipo:'radio', clave:'eth_cable', si:ethSi, req:true, txt:'Cable fuera 10 s: reconecta en < 10 s', opciones:['Sí','No'] },
|
||
{ tipo:'radio', clave:'eth_srv', si:ethSi, req:true, txt:'nc relanzado: reconecta solo', opciones:['Sí','No'] },
|
||
{ tipo:'radio', clave:'eth_e', si:ethSi, txt:'Tecla E apaga y levanta', opciones:['Sí','No','No probado'] },
|
||
{ tipo:'radio', clave:'eth_4g', si:ethSi, req:true, txt:'4G sin afectar con Ethernet conectado (modoB=ON, phlg_aire sube)', opciones:['Sí','No','Sin módem en esta prueba'] },
|
||
{ tipo:'archivo', clave:'eth_nc', si:ethSi, etiqueta:'eth-nc', txt:'Captura de nc' },
|
||
] },
|
||
|
||
{ titulo: 'B · RS-485 (P15)',
|
||
sub:'1 = A · 2 = B · 3 = GND. JP5 = terminación 120 Ω, cerrada solo si el HBOX es un extremo del bus.',
|
||
items: [
|
||
{ tipo:'radio', clave:'ser_aplica', req:true, txt:'Puertos serie probados', opciones:['Sí','No — el panel no lleva clemas serie','No — pendiente'] },
|
||
{ tipo:'radio', clave:'ser_fw', si:serSi, req:true, txt:'Alcance según firmware', opciones:['0.6.0 / 0.6.1 (y sus -eth): presencia + niveles','Build con lazo serie: presencia + niveles + lazo + eco'] },
|
||
{ tipo:'check', clave:'ser_post', si:serSi, req:true, txt:'POST: <code>[PASS] SC16IS752 0x4D ACK, SPR rd=0xA5</code>.' },
|
||
{ tipo:'radio', clave:'jp5', si:serSi, req:true, txt:'JP5 durante la prueba', opciones:['Abierto (de fábrica)','Cerrado (120 Ω)'] },
|
||
{ tipo:'medida', clave:'r485_ohm', si:serSi, txt:'A–B en ohms, tarjeta apagada', esperado:'≈ 120 Ω con JP5 cerrado · > 10 kΩ abierto', u:'Ω' },
|
||
{ tipo:'medida', clave:'r485_a', si:serSi, txt:'A (P15.1) a GND, sin nada conectado', esperado:'1 – 3 V', u:'V' },
|
||
{ tipo:'medida', clave:'r485_b', si:serSi, txt:'B (P15.2) a GND', esperado:'1 – 3 V', u:'V' },
|
||
{ tipo:'radio', clave:'r485_tx', si:fwLazo, txt:'Eco RS-485 9600 8N1 — TX', opciones:['OK 10/10','Parcial (caracteres perdidos)','Nada'] },
|
||
{ tipo:'radio', clave:'r485_rx', si:fwLazo, txt:'Eco RS-485 — RX', opciones:['OK','Nada'] },
|
||
{ tipo:'radio', clave:'r485_swap', si:fwLazo, txt:'A y B intercambiados', opciones:['No','Sí (adaptador con D+/D− al revés)'] },
|
||
] },
|
||
|
||
{ titulo: 'C · RS-232 (P16)',
|
||
sub:'1 = TX (sale) · 2 = RX (entra) · 3 = GND. Contra la laptop, cruzado: TX → DB9 2, RX ← DB9 3, GND ↔ 5.',
|
||
items: [
|
||
{ tipo:'medida', clave:'r232_tx_v', si:serSi, req:true, txt:'TX (P16.1) a GND en reposo', esperado:'−5 a −6.5 V', u:'V',
|
||
aviso:'≈ 0 V = MAX3232 sin alimentación o bomba de carga muerta · ≈ +5 V = U10 en reset (T1IN bajo).' },
|
||
{ tipo:'radio', clave:'r232_tx', si:fwLazo, txt:'Eco RS-232 9600 8N1 — TX', opciones:['OK 10/10','Parcial','Nada'] },
|
||
{ tipo:'radio', clave:'r232_rx', si:fwLazo, txt:'Eco RS-232 — RX', opciones:['OK','Nada'] },
|
||
{ tipo:'texto', clave:'ser_nota', si:serSi, rows:'2', txt:'Adaptadores (marca / chip) y velocidad', ph:'USB-RS485 CH340 con terminación interna ON · USB-RS232 FTDI · 9600 8N1' },
|
||
] },
|
||
|
||
{ titulo: 'Cierre',
|
||
items: [
|
||
{ tipo:'archivo', clave:'log', req:true, etiqueta:'eth-serie-consola', txt:'Log completo de consola' },
|
||
{ tipo:'foto', clave:'f_banco', etiqueta:'banco', txt:'Banco: J10, clemas y JP5.' },
|
||
{ tipo:'check', clave:'reflash', txt:'De vuelta al binario V5 vigente de Descargas (<code>hbox-v5-bringup_0.6.0.bin</code>), anotado en el acta de reflasheo.' },
|
||
{ tipo:'radio', clave:'accion', req:true, guardaEn:'accion', txt:'Resultado',
|
||
opciones:['APROBADA — Ethernet y serie OK','APROBADA — solo Ethernet (serie no aplica / pendiente build con lazo)','APROBADA — solo serie','FALLA Ethernet','FALLA serie','FALLA ambos'] },
|
||
{ tipo:'texto', clave:'observaciones', rows:'4', txt:'Observaciones', ph:'síntoma, punto del árbol de fallas, valores fuera de rango' },
|
||
] },
|
||
]
|
||
});
|
||
</script>
|
||
</body>
|
||
</html>
|