Comments (1)
Right, so twisted is not going to automatically detect that the cable is pulled. It is going to wait until the tcp connection times out. In order to do this correctly, I would need to implement a heartbeat (which I'm not sure how it would work without polling the device).
I could (and should) be associating a timeout deferred for every async request that either retries 3 times or fails . I could then add some logic on top of that so if I get N errors, I disconnect.
from pymodbus.
Related Issues (20)
- Server not returning data expected in data block HOT 7
- consider changing the github default landing branch to "master" ? HOT 3
- Intermittent Incomplete Modbus Messages When Polling a Slave Device HOT 34
- target machine actively refused connection HOT 13
- FramerType module not available with pymodbus 3.6.8. HOT 4
- TLS implementation seems broken? HOT 9
- Use pyserial RS485 - not serial_from_url HOT 3
- Serial Communication Drops After Few Messages on Ubuntu HOT 2
- How to get tag name with address HOT 2
- 2 ip address for 1 server HOT 2
- Register data missing HOT 1
- Bug when converting pymodbus.DATATYPE.FLOAT32 to float HOT 6
- pymodbus 3.6.8 does not work, while works with modbus-tk and pymodbus 2.5.3 HOT 5
- Example server_async.py: AttributeError: module 'helper' has no attribute 'get_commandline' HOT 3
- ModbusException not trown while under the hood asyncio.TimeoutError("Server not responding") is fired HOT 3
- Not working after upgrade tp 3.6.9 HOT 7
- examples not working HOT 2
- No response received from remote while modpoll is able to get it HOT 14
- Add issue tracker / source code repository to the doc HOT 4
- move transaction handling into framer socket. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pymodbus.