Skip to content

Commit

Permalink
Doc generation patch (pymodbus-dev#408)
Browse files Browse the repository at this point in the history
* Rebase to dev3.7

* Adding 3.7 to travis configuration

* Updated documentation to resolve warnings introduced with the longer names
Updated requirements-docs.txt to include missing modules

* Fixed reference to deprecated asynchronous

* Adding gmp disable to fix pypy build issues

* Adding gmp disable to fix pypy build issues

* Removing travis python 3.7 configuration

Commenting out python3.7 from Travis while waiting for support. You can run teh 3.7 tests with tox without issues

* Adding asserts for Payload Endianness

* Fixing example of Payload. Same Endianness for builder and decoder.

* Fix Sql db slave context validate and get methods - pymodbus-dev#139

* pymodbus-dev#353 - debugging, Add debug logs to check size of avaialble data in read buffer

* pymodbus-dev#353 Provide an option to disable inter char timeouts

* pymodbus-dev#353 Bump version, update changelog

* check self.socket (pymodbus-dev#354)

* check self.socket

self.socket might be None at this point

* Update pymodbus/client/sync.py

Co-Authored-By: mpf82 <[email protected]>

* Fix typo (pymodbus-dev#378)

* Pymodbus 2.2.0 (pymodbus-dev#375)

* pymodbus-dev#357 Support registration of custom requests

* pymodbus-dev#368 Fixes write to broadcast address

When writing to broadcast address (unit_id=0) there should be no response according to the Modbus spec. This fix changes expected_response_length to 0 when writing to unit_id=0. This will break any existing code that is improperly using unit_id 0 for a slave address.

* Bump version to 2.2.0

Fix pymodbus-dev#366 Update failures in sql context

Update Changelog

Fix major minor version in example codes

* Fix pymodbus-dev#371 pymodbus repl on python3

* 1. Fix tornado async serial client `TypeError` while processing incoming packet.
2. Fix asyncio examples.
3. Minor update in factory.py, now server logs prints received request instead of only function cod

* [fix v3] poprawa sprawdzania timeout

* Release candidate for pymodbus 2.2.0

*  Fix pymodbus-dev#377 when invalid port is supplied and minor updates in logging

* pymodbus-dev#368 adds broadcast support for sync client and server

Adds broadcast_enable parameter to client and server, default value is False. When true it will treat unit_id 0 as broadcast and execute requests on all server slave contexts and not send a response and on the client side will send the request and not try to receive a response.

* pymodbus-dev#368 Fixes minor bug in broadcast support code

* Fixed erronous CRC handling

If the CRC recieved is not correct in my case my slave got caught in a deadlock, not taking any new requests. This addition fixed that.

* Update Changelog

* Fix test coverage

* Fix pymodbus-dev#387 Transactions failing on 2.2.0rc2.

* Task Cancellation and CRC Errors

Alternate solution for pymodbus-dev#356 and pymodbus-dev#360.

Changes the RTU to make the transaction ID as the unit ID instead of an ever incrementing number.

Previously this transaction ID was always 0 on the receiving end but was the unique transaction ID on sending.

As such the FIFO buffer made the most sense. By tying it to the unit ID, we can recover from failure modes such as: -
- Asyncio task cancellations (eg. timeouts) pymodbus-dev#360
- Skipped responses from slaves. (hangs on master pymodbus-dev#360)
- CRC Errors pymodbus-dev#356
- Busy response

* Cherry pick commit from PR pymodbus-dev#367 , Update changelog , bump version to 2.2.0rc4

* pymodbus-dev#389 Support passing all serial port parameters to asynchronous server

* Fix BinaryPayloadDecoder and Builder wrt to coils

* Misc updates, bump version to 2.2.0

* ReportSlaveIdResponse now tries to get slave id based on server identity for pymodbus servers

* Update missing bcrypt requirement for testing

* Fix docs (pymodbus-dev#407)

* Fix document generation

* Formatting updates in Changelog
  • Loading branch information
dhoomakethu authored Apr 19, 2019
1 parent 2ef91e9 commit 31c1650
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 13 deletions.
21 changes: 12 additions & 9 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
Version 2.2.0
-----------------------------------------------------------
**NOTE: Supports python 3.7, async client is now moved to pymodbus/client/asychronous**
```
from pymodbus.client.asynchronous import ModbusTcpClient
```


.. code-block:: python
from pymodbus.client.asynchronous import ModbusTcpClient
* Support Python 3.7
* Fix to task cancellations and CRC errors for async serial clients.
Expand All @@ -25,13 +28,13 @@ from pymodbus.client.asynchronous import ModbusTcpClient
* Fix regression introduced in 2.2.0rc2 (Modbus sync client transaction failing)
* Minor update in factory.py, now server logs prints received request instead of only function code

```
# Now
DEBUG:pymodbus.factory:Factory Request[ReadInputRegistersRequest: 4]
# Before
DEBUG:pymodbus.factory:Factory Request[4]
.. code-block:: bash
# Now
# DEBUG:pymodbus.factory:Factory Request[ReadInputRegistersRequest: 4]
# Before
# DEBUG:pymodbus.factory:Factory Request[4]
```
Version 2.1.0
Expand Down
10 changes: 6 additions & 4 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,19 @@
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = ['sphinx.ext.autodoc', 'm2r', 'recommonmark']

#extensions = ['sphinx.ext.autodoc', 'm2r', 'recommonmark']
extensions = ['sphinx.ext.autodoc', 'm2r']

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']

# The suffix(es) of source filenames.
# You can specify multiple suffix as a list of string:
#
source_parsers = {
'.md': CommonMarkParser,
}
#source_parsers = {
# '.md': CommonMarkParser,
#}

source_suffix = ['.rst', '.md']
# source_suffix = '.rst'
Expand Down

0 comments on commit 31c1650

Please sign in to comment.