Skip to main content

JSON-RPC proxy for talking Modbus over RTU and TCP.

Project description

.. image::
.. image::
.. image::


Tolk exposes a JSON-RPC API to talk Modbus over RTU or TCP and is written in
Python. The source can be found on GitHub_. Documentation is available at
`Read the Docs`_.

Below you can find sample code how to start Tolk listening at a Unix Domain
Socket for JSON-RPC request. Tolk will delegate the requests via the
:class:`Dispatcher` to the :class:`modbus_tk.modbus_tcp.TcpMaster` which in
turn will request a Modbus slave at `localhost:502`.

.. code:: python

from modbus_tk.modbus_tcp import TcpMaster
from SocketServer import UnixStreamServer

from tolk import Dispatcher, Handler

# The TcpMaster will fire requests to a Modbus slave at localhost:502.
modbus_master = TcpMaster('localhost', 502)
dispatcher = Dispatcher(modbus_master)

server = UnixStreamServer('/tmp/tolk.sock', Handler)
server.dispatcher = dispatcher



This software is licensed under `Mozilla Public License`_. © 2015
`Advanced Climate Systems`_.

.. External References:
.. _Advanced Climate Systems:
.. _GitHub:
.. scripts/
.. _Mozilla Public License: LICENSE
.. _pytest:
.. scripts/
.. scripts/
.. _Read the Docs:

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for Tolk, version 0.2.1
Filename, size File type Python version Upload date Hashes
Filename, size Tolk-0.2.1-py2-none-any.whl (11.2 kB) File type Wheel Python version 2.7 Upload date Hashes View hashes
Filename, size Tolk-0.2.1.tar.gz (6.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page