ModbusAdapter icon indicating copy to clipboard operation
ModbusAdapter copied to clipboard

can send data but not receive

Open frankdunn opened this issue 9 years ago • 2 comments

hi I am using your code with a nodemcu module .The tcp master is a simulator and a the rtu slave is a simulator . the tcp master sends a funcion 3 message and the rtu slave will receive and respond , but my tcp master never receives the reply from the rtu slave . The rx and tx for the softwareserial is working , I have tested this with softwareSerial example . capture1

frankdunn avatar Jun 03 '16 19:06 frankdunn

hi ng I have it working now , i had to edit "else if (micros() < _timeToReceive) {" to "else if (micros() > _timeToReceive) {" . timeout on no response is still working .

frankdunn avatar Jun 04 '16 17:06 frankdunn

Thanks, I'll make sure I update that.

Graham. On Jun 4, 2016 1:56 PM, "frankdunn" [email protected] wrote:

hi ng I have it working now , i had to edit "else if (micros() < _timeToReceive) {" to "else if (micros() > _timeToReceive) {" . timeout on no response is still working .

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/graham22/ModbusAdapter/issues/1#issuecomment-223769204, or mute the thread https://github.com/notifications/unsubscribe/AFGATV_nWy8Y1Q5l8oZr8THZcnm36EQHks5qIbxBgaJpZM4It0vW .

graham22 avatar Jun 04 '16 18:06 graham22