Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RTU over TCP #18

Closed
walkertong opened this issue Feb 19, 2013 · 2 comments
Closed

RTU over TCP #18

walkertong opened this issue Feb 19, 2013 · 2 comments
Assignees

Comments

@walkertong
Copy link

Hi,
I had written a script to pull information from a device through modbus gateway, it worked very well whit version 0.9. Somedays ago i installed 1.1, it can not work anymore. I wirte a brief fllowing:
in v0.9, I created a new class in client/sync.py named ModbusRTUTcpClient, it copied from ModbusTcpClient, the only change is : change BaseModbusClient.init(self, ModbusSocketFramer(ClientDecoder())) to BaseModbusClient.init(self, ModbusRtuFramer(ClientDecoder())).
in v1.1, I found there is framer parameter support, so i use:
client = ModbusTcpClient(host=host, port=port,framer=ModbusRtuFramer)
it cannot work.
Any suggestion? thanks

@bashwork
Copy link
Collaborator

bashwork commented Apr 1, 2013

I am working on this issue with another user as well. I will update this with the resolution(s) as they come.

@bashwork
Copy link
Collaborator

bashwork commented Apr 2, 2013

Walker,

I believe I have found a fix and would be grateful if you could quickly test the latest commit:

996dff2

Thanks

@ghost ghost assigned bashwork Apr 3, 2013
@bashwork bashwork closed this as completed Apr 4, 2013
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants