Test düzeneklerimizde, bir gateway’in dört holding register’ı sorgulayıp Hermetry’ye raporlayabilmesi için Modbus RTU slave (adres 7, 19200 8E1) olarak çalışması gereken, PIC24FJ128GA202 içeren özel bir kart var. Transceiver bir MAX485; DE ve /RE, RB9 üzerinde birbirine bağlı.Gateway’den (pymodbus çalıştıran bir Pi; aynı hatta bağlı ticari bir sayaçla sorunsuz test edildi) yalnızca zaman aşımı alıyorum:
pymodbus.exceptions.ModbusIOException: Modbus Error: [Input/Output] No Response received from the remote slave/Unable to decode response
Osiloskopta isteğin A/B çiftinde ve MAX485’in RO pininde geldiğini görüyorum. PIC ise hiç tepki vermiyor gibi. UART RX kesmem tetiklenmiyor. TX çalışıyor: PIC’e saniyede bir test baytı göndertince Pi bunu görüyor. U1RX’i PPS ile RP8’e, U1TX’i RP7’ye eşledim. İki gündür bu sorunun başında bekliyorum.
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.