Skip to content

Performance Issue with Sync and Async Serial Clients with PyModbus 3.8.3 #2561

Closed Locked Answered by janiversen
Nistp asked this question in Help
Discussion options

You must be logged in to vote

As you can see from the log:

2025-02-04 13:53:58,032 DEBUG send: 0x1 0x3 0x0 0x0 0x0 0x2 0xc4 0xb
2025-02-04 13:53:58,127 DEBUG recv: 0x1 0x3 0x4 0x0 0x9 0x8a 0xdf 0xc 0xc9 old_data:  addr=None
2025-02-04 13:53:58,127 DEBUG Processing: 0x1 0x3 0x4 0x0 0x9 0x8a 0xdf 0xc 0xc9
2025-02-04 13:53:58,128 DEBUG decoded PDU function_code(3 sub -1) -> ReadHoldingRegistersResponse(dev_id=0, transaction_id=0, address=0, count=0, bits=[], registers=[9, 35551], status=1) 
2025-02-04 13:53:58,129 DEBUG Frame advanced, resetting header!!

A read where your devices responds takes 95ms, which is the part that pymodbus do not control (you do partly with bps configuration).

Second read is interesting:

2025-0…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@Nistp
Comment options

Comment options

You must be logged in to vote
1 reply
@Nistp
Comment options

Comment options

You must be logged in to vote
1 reply
@Nistp
Comment options

Answer selected by Nistp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants