Novedad: el cortafuegos de IA supervisa toda la plataforma y explica cada incidente con palabras sencillas. Vea cómo funciona

PIC24FJ128GA202 Modbus RTU slave over MAX485 never answers the gateway

PIC24FJ128GA202 Modbus RTU slave over MAX485 never answers the gateway

1 2

Our test rigs have a custom board with a PIC24FJ128GA202 that should act as a Modbus RTU slave (address 7, 19200 8E1) so a gateway can poll four holding registers and report them to Hermetry. Transceiver is a MAX485, DE and /RE tied together on RB9.

From the gateway (a Pi with pymodbus, tested fine against a commercial meter on the same bus) I get timeouts only:

pymodbus.exceptions.ModbusIOException: Modbus Error: [Input/Output] No Response received from the remote slave/Unable to decode response

On the scope I see the request arrive on the A/B pair and on the MAX485’s RO pin. The PIC never seems to react. My UART RX interrupt doesn’t fire. TX works: if I make the PIC send a test byte every second, the Pi sees it. I mapped U1RX to RP8 and U1TX to RP7 with PPS. I’ve been staring at this for two days.

♥ 1

Is RO actually reaching the PIC pin? Scope the PIC pin itself, not the MAX485 side.

♥ 1
Viendo 2 entradas – de la 1 a la 2 (de un total de 2)
  • Debes estar registrado para responder a este debate.

Únete a la conversación

Inicia sesión para preguntar y responder, dar me gusta a las publicaciones útiles y marcar la respuesta que resolvió tu problema. Cada aportación suma puntos y niveles.

Compartir