Comments (7)
Yeah, this was a change that I regretfully had to make to support the .NET
Compact Framework. Several implementations of the CF do not support timeouts;
the
properties exist but accessing them causes an exception to occur.
A little more background - The 1.10 behavior was to initialize the read/write
timeout values to a 1 second if the provided transport object’s (SerialPort,
TcpClient) timeout was equal to Timeout.Infinte (-1). Obviously this won’t
work
for implementations of the CF which don’t support timeouts. I thought about
using
a preprocessor directive to only initialize default values when targeting the
CF
but by that time the default value initialization strategy started to bother me.
All other settings specific to the underlying transport are controllable by the
underlying object (e.g. SerialPort BaudRate). A user should expect to be able
to
create a SerialPort object, set a timeout value to Timeout.Infinite (-1), pass
it
to a ModbusMaster factory method and have those timeout values preserved.
Therefore I ended up deciding to make the change to put the onus of timeout
initialization on the user.
I should have been more up front about the breaking change. Hope this didn’t
cause you too much trouble.
Scott
Original comment by [email protected]
on 12 May 2009 at 11:46
from nmodbus.
Original comment by [email protected]
on 12 May 2009 at 11:47
- Changed state: WontFix
from nmodbus.
Thanks for the explanation. I was able to find the problem by browsing the
source
code. This is an excellent project. Thanks again.
Original comment by [email protected]
on 13 May 2009 at 12:45
from nmodbus.
Should Modbus.Modbus.DefaultTimeout be marked as obsolete as it is not used
anywhere?
This caused me some confusion until I read this posting.
Original comment by [email protected]
on 23 Oct 2009 at 5:26
from nmodbus.
Good idea, I will reactivate and fix.
Original comment by [email protected]
on 23 Oct 2009 at 8:34
- Changed state: Accepted
from nmodbus.
Original comment by [email protected]
on 15 Nov 2009 at 6:24
- Changed state: Fixed
from nmodbus.
So what exactly happened to this? Modbus.Modbus.DefaultTimeout is still
present... is this deprecated or did you continue using it? The obsolete
decorator is there but these comments are unclear...
Original comment by [email protected]
on 2 Jul 2014 at 8:35
from nmodbus.
Related Issues (20)
- Uninterruptible CRC error cycle during ModbusIpMaster work
- NModbus' FTDAdapter is not multi-platform (but can be very easily, and I've done it) HOT 1
- Delay Between Poll
- cannot open chm documentation file in windows HOT 1
- Log4Net Depedant library version conflict
- Implementation does not follow Modbus data model addressing HOT 1
- Serial Port Read/Write or Return Freezes the Application HOT 1
- WriteMultipleRegisters throws exception
- Timeout read operation closing TCPClient connection HOT 1
- Network Failure HOT 1
- Preset Multiple Holding register
- Accessing ModbusIpMaster while remote debugging throws SecurityException HOT 1
- ModbusIpTransport no call of StreamResource.DiscardInBuffer before StreamResource.Write HOT 1
- Library throw an exception instead of return a exception response for illegal function
- Framework Compact Edition 2.0
- IModbusSerialMaster.ReadWriteMultipleRegisters generates an invalid CRC.
- WriteMultipleRegisters GSM timeout
- On Close of Modbus Master we are getting REST, ACK, reason TCPSlave is not disposed befor removing from dictionary
- Exception response for invalid address
- o
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 nmodbus.