Async Client Error with Async Server Example

283 views
Skip to first unread message

William Fitzgerald

unread,
Apr 26, 2015, 10:35:14 AM4/26/15
to pymo...@googlegroups.com
Hi All,

If I run the Async Client [1] and the Async Updating Server[2] from the PyModbus examples I get an error:

Server shows:
DEBUG:pymodbus.server.async:Client Disconnected: [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionDone'>: Connection was closed cleanly.]

Client shows:
DEBUG:pymodbus.client.async:Client disconnected from modbus server: [Failure instance: Traceback (failure with no frames): <class 'twisted.internet.error.ConnectionDone'>: Connection was closed cleanly.]

Any ideas on what has happened?

Note, on the client side I modified 1 line to match the server port of 5020 instead of 502

defer = protocol.ClientCreator(reactor, ModbusClientProtocol
        ).connectTCP("localhost", 5020)

[1] https://pymodbus.readthedocs.org/en/latest/examples/asynchronous-client.html
[2] https://pymodbus.readthedocs.org/en/latest/examples/updating-server.html

Sarmad Yousif

unread,
Jul 23, 2017, 10:48:03 AM7/23/17
to pymodbus
Hello William,

I'm currently facing the same problem? Were you able to get a solution for this ?

Sarmad Yousif

unread,
Jul 24, 2017, 12:16:27 AM7/24/17
to pymodbus
after looking into it, I found that this is not an error, it just means that the connection has just finished after executing the code. this example is not a looping code, it just writes the value to the server and read it back. this operation is being executed only once.
Reply all
Reply to author
Forward
0 new messages