我是python的新手。对不起,如果这个问题听起来很傻的话。你知道吗
我使用pyModbus在BeagleBone Black上实现一个异步Modbus TCP服务器。它工作得很好,我能够连接客户端并从寄存器中检索值。你知道吗
我启动服务器时使用:
from pymodbus.server.async import StartTcpServer
StartTcpServer(context, identity=identity, address=("0.0.0.0", 502))
我现在正在尝试实现一个服务器进出流量的监视器。 我需要绘制/记录来自客户端的所有请求和来自服务器的所有响应。你知道吗
有没有办法访问rx/tx缓冲区?你知道吗
谢谢你。你知道吗
您可以启用
logging
作为Modbus服务器的调试模式,如下所示:Here's the original example.
相关问题 更多 >
编程相关推荐