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

Pymodbus v2.2.0 #406

Merged
merged 23 commits into from
Apr 18, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
fbbf69e
Rebase to dev3.7
dices Sep 28, 2018
b8c968c
Adding 3.7 to travis configuration
dices Sep 22, 2018
38f1dc1
Updated documentation to resolve warnings introduced with the longer …
dices Sep 23, 2018
e40c78d
Fixed reference to deprecated asynchronous
dices Sep 28, 2018
44668d9
Merge pull request #2 from dices/Py37
dices Sep 28, 2018
e0829bd
Adding gmp disable to fix pypy build issues
dices Sep 28, 2018
06627b8
Adding gmp disable to fix pypy build issues
dices Sep 28, 2018
e11bff7
Removing travis python 3.7 configuration
dices Oct 2, 2018
0fce5b5
Adding asserts for Payload Endianness
EricDuminil Oct 8, 2018
3838f5f
Fixing example of Payload. Same Endianness for builder and decoder.
EricDuminil Oct 8, 2018
826a76c
Merge pull request #350 from EricDuminil/master
dhoomakethu Oct 9, 2018
13adf0a
Fix Sql db slave context validate and get methods - #139
dhoomakethu Oct 9, 2018
cd1cb1c
Merge branch 'dev3.7' of https://github.com/riptideio/pymodbus into d…
dices Oct 10, 2018
05afbb0
Merge pull request #351 from riptideio/#139-SqlDb-Context
dhoomakethu Oct 15, 2018
d00a8cd
#353 - debugging, Add debug logs to check size of avaialble data in r…
dhoomakethu Oct 16, 2018
e85057a
#353 Provide an option to disable inter char timeouts
dhoomakethu Oct 17, 2018
c0a2359
#353 Bump version, update changelog
dhoomakethu Oct 18, 2018
aef3e0a
Merge pull request #355 from riptideio/#353-Error-Reading-Registers
dhoomakethu Oct 23, 2018
e09fed7
Merge pull request #346 from dices/dev3.7
dhoomakethu Oct 23, 2018
b3281fe
Merge pull request #362 from riptideio/dev3.7
dhoomakethu Jan 12, 2019
7e1c728
check self.socket (#354)
mpf82 Jan 14, 2019
d14318f
Fix typo (#378)
kimhanse Jan 26, 2019
9ff42d1
Pymodbus 2.2.0 (#375)
dhoomakethu Apr 18, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[run]
omit =
pymodbus/repl/*
pymodbus/repl/*
pymodbus/internal/*
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ matrix:
python: "3.5"
- os: linux
python: "3.6"
# - os: linux
# python: "3.7"
- os: osx
osx_image: xcode8.3
language: generic
Expand Down
40 changes: 40 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,39 @@
Version 2.2.0
-----------------------------------------------------------
**NOTE: Supports python 3.7, async client is now moved to pymodbus/client/asychronous**
```
from pymodbus.client.asynchronous import ModbusTcpClient
```

* Support Python 3.7
* Fix to task cancellations and CRC errors for async serial clients.
* Fix passing serial settings to asynchronous serial server.
* Fix `AttributeError` when setting `interCharTimeout` for serial clients.
* Provide an option to disable inter char timeouts with Modbus RTU.
* Add support to register custom requests in clients and server instances.
* Fix read timeout calculation in ModbusTCP.
* Fix SQLDbcontext always returning InvalidAddress error.
* Fix SQLDbcontext update failure
* Fix Binary payload example for endianess.
* Fix BinaryPayloadDecoder.to_coils and BinaryPayloadBuilder.fromCoils methods.
* Fix tornado async serial client `TypeError` while processing incoming packet.
* Fix erroneous CRC handling in Modbus RTU framer.
* Support broadcasting in Modbus Client and Servers (sync).
* Fix asyncio examples.
* Improved logging in Modbus Server .
* ReportSlaveIdRequest would fetch information from Device identity instead of hardcoded `Pymodbus`.
* 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]

```


Version 2.1.0
-----------------------------------------------------------
* Fix Issues with Serial client where in partial data was read when the response size is unknown.
Expand Down Expand Up @@ -49,10 +85,14 @@ Version 1.5.1

res = client.read_holding_registers(...)
if not res.isError():

# proceed

else:
# handle error or raise

"""

* Add examples for MEI read device information request

Version 1.5.0
Expand Down
5 changes: 3 additions & 2 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
# 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', 'recommonmark']
extensions = ['sphinx.ext.autodoc', 'm2r', 'recommonmark']

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
Expand Down Expand Up @@ -112,7 +112,8 @@
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
html_static_path = ['_static']
# html_static_path = ['_static']
html_static_path = []

# Custom sidebar templates, must be a dictionary that maps document names
# to template names.
Expand Down
8 changes: 0 additions & 8 deletions doc/source/library/pymodbus.client.async.asyncio.rst

This file was deleted.

36 changes: 0 additions & 36 deletions doc/source/library/pymodbus.client.async.factory.rst

This file was deleted.

55 changes: 0 additions & 55 deletions doc/source/library/pymodbus.client.async.rst

This file was deleted.

8 changes: 0 additions & 8 deletions doc/source/library/pymodbus.client.async.schedulers.rst

This file was deleted.

8 changes: 0 additions & 8 deletions doc/source/library/pymodbus.client.async.tornado.rst

This file was deleted.

8 changes: 0 additions & 8 deletions doc/source/library/pymodbus.client.async.twisted.rst

This file was deleted.

8 changes: 8 additions & 0 deletions doc/source/library/pymodbus.client.asynchronous.asyncio.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
pymodbus\.client\.asynchronous\.asyncio package
===============================================

.. automodule:: pymodbus.client.asynchronous.asyncio
:members:
:undoc-members:
:show-inheritance:

36 changes: 36 additions & 0 deletions doc/source/library/pymodbus.client.asynchronous.factory.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
pymodbus\.client\.asynchronous\.factory package
===============================================

.. automodule:: pymodbus.client.asynchronous.factory
:members:
:undoc-members:
:show-inheritance:

Submodules
----------

pymodbus\.client\.asynchronous\.factory\.serial module
------------------------------------------------------

.. automodule:: pymodbus.client.asynchronous.factory.serial
:members:
:undoc-members:
:show-inheritance:

pymodbus\.client\.asynchronous\.factory\.tcp module
---------------------------------------------------

.. automodule:: pymodbus.client.asynchronous.factory.tcp
:members:
:undoc-members:
:show-inheritance:

pymodbus\.client\.asynchronous\.factory\.udp module
---------------------------------------------------

.. automodule:: pymodbus.client.asynchronous.factory.udp
:members:
:undoc-members:
:show-inheritance:


55 changes: 55 additions & 0 deletions doc/source/library/pymodbus.client.asynchronous.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
pymodbus\.client\.asynchronous package
======================================

.. automodule:: pymodbus.client.asynchronous
:members:
:undoc-members:
:show-inheritance:

Subpackages
-----------

.. toctree::

pymodbus.client.asynchronous.asyncio
pymodbus.client.asynchronous.factory
pymodbus.client.asynchronous.schedulers
pymodbus.client.asynchronous.tornado
pymodbus.client.asynchronous.twisted

Submodules
----------

pymodbus\.client\.asynchronous\.serial module
---------------------------------------------

.. automodule:: pymodbus.client.asynchronous.serial
:members:
:undoc-members:
:show-inheritance:

pymodbus\.client\.asynchronous\.tcp module
------------------------------------------

.. automodule:: pymodbus.client.asynchronous.tcp
:members:
:undoc-members:
:show-inheritance:

pymodbus\.client\.asynchronous\.thread module
---------------------------------------------

.. automodule:: pymodbus.client.asynchronous.thread
:members:
:undoc-members:
:show-inheritance:

pymodbus\.client\.asynchronous\.udp module
------------------------------------------

.. automodule:: pymodbus.client.asynchronous.udp
:members:
:undoc-members:
:show-inheritance:


Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
pymodbus\.client\.asynchronous\.schedulers package
==================================================

.. automodule:: pymodbus.client.asynchronous.schedulers
:members:
:undoc-members:
:show-inheritance:

8 changes: 8 additions & 0 deletions doc/source/library/pymodbus.client.asynchronous.tornado.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
pymodbus\.client\.asynchronous\.tornado package
===============================================

.. automodule:: pymodbus.client.asynchronous.tornado
:members:
:undoc-members:
:show-inheritance:

8 changes: 8 additions & 0 deletions doc/source/library/pymodbus.client.asynchronous.twisted.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
pymodbus\.client\.asynchronous\.twisted package
===============================================

.. automodule:: pymodbus.client.asynchronous.twisted
:members:
:undoc-members:
:show-inheritance:

2 changes: 1 addition & 1 deletion doc/source/library/pymodbus.client.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Subpackages

.. toctree::

pymodbus.client.async
pymodbus.client.asynchronous

Submodules
----------
Expand Down
6 changes: 3 additions & 3 deletions doc/source/library/pymodbus.server.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ pymodbus\.server package
Submodules
----------

pymodbus\.server\.async module
------------------------------
pymodbus\.server\.asynchronous module
-------------------------------------

.. automodule:: pymodbus.server.async
.. automodule:: pymodbus.server.asynchronous
:members:
:undoc-members:
:show-inheritance:
Expand Down
10 changes: 5 additions & 5 deletions examples/common/async_asyncio_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
import asyncio
import logging
# ----------------------------------------------------------------------- #
# Import the required async client
# Import the required asynchronous client
# ----------------------------------------------------------------------- #
from pymodbus.client.async.tcp import AsyncModbusTCPClient as ModbusClient
# from pymodbus.client.async.udp import (
from pymodbus.client.asynchronous.tcp import AsyncModbusTCPClient as ModbusClient
# from pymodbus.client.asynchronous.udp import (
# AsyncModbusUDPClient as ModbusClient)
from pymodbus.client.async import schedulers
from pymodbus.client.asynchronous import schedulers

else:
import sys
Expand Down Expand Up @@ -68,7 +68,7 @@ async def start_async_test(client):
# are not known to these tests. Furthermore, some use the same memory
# blocks for the two sets, so a change to one is a change to the other.
# Keep both of these cases in mind when testing as the following will
# _only_ pass with the supplied async modbus server (script supplied).
# _only_ pass with the supplied asynchronous modbus server (script supplied).
# ----------------------------------------------------------------------- #
log.debug("Write to a Coil and read back")
rq = await client.write_coil(0, True, unit=UNIT)
Expand Down
Loading