Closed HackersSpirit closed 12 months ago
Please use our debug call in your client py script, that will provide you with more detailed information (see our examples).
I am confused, you write you use the async server but your code is sync.
@janiversen : My both issue are interlinked please refer Issue in installing pymodbus #1876
Please use our debug call in your client py script, that will provide you with more detailed information (see our examples).
Are you refering to the following in examples
_logger = logging.getLogger(file) _logger.setLevel("DEBUG")
No look at the last line of the code you supplied.
I am still confused your example is NOT async, and the issues might be interlinked, but seems quite different to me. Maybe first get version 3.54 installed.
Still open ?
Closed due to lack of activity.
Versions
Python: 3.11.4 OS: Ubuntu 23.04 Pymodbus: 3.0.0rc1
Pymodbus Specific
Description
Task: I am attempting to run an asynchronous server by invoking a provided program using a C++ program with execlp.
Issue: Sometimes, my C++ client fails to establish a connection with the server. I have attempted to clear the client context in my application, but I am unable to discern the issue from the server logs. When the client fails, the only logs I receive are as follows:
[MainThread ] [INFO ] Entering the modpi script [MainThread ] [INFO ] Going to start the server [MainThread ] [DEBUG] Using selector: EpollSelector Due to the absence of logs on the server, I am uncertain whether the server has received the request or not whether client fails due to port blocked by server
Code and Logs