{ "info": { "author": "Gabriele Favalessa", "author_email": "favalex@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Console", "Intended Audience :: End Users/Desktop", "License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Topic :: Utilities" ], "description": "=========\nmodbus\n=========\n\n---------------------------------------------\nAccess Modbus devices from the command line\n---------------------------------------------\n\n:Author: favalex@gmail.com\n:Date: 2017-06-04\n:Copyright: MPL 2.0\n:Version: 0.1\n:Manual section: 1\n\nSYNOPSIS\n========\n\n modbus [-h] [-r REGISTERS] [-s SLAVE_ID] [-b BAUD] [-p STOP_BITS] [-v] device access [access ...]\n\nDESCRIPTION\n===========\n\nmodbus allows reading and writing registers of Modbus devices from the command line.\n\nIt can talk to both TCP and RTU (i.e. serial) devices and can encode and decode\ntypes larger than 16 bits (e.g. floats) into Modbus 16 bits registers.\n\nRegister definitions (consisting of a register address and its type) can be\nprovided directly on the command line or loaded from a file and referred by\nsymbolic name, for convenience.\n\nmodbus is implemented in python on top of the protocol implementation provided\nby the umodbus python library.\n\nOPTIONS\n=======\n\ndevice\n ``/dev/ttyXXX`` for serial devices, or ``hostname[:port]`` for TCP devices\n\naccess\n One or more read or write operations. See ACCESS SYNTAX below.\n\n-r FILE, --registers=FILE Read registers definitions from FILE.\n-v, --verbose Print on screen the bytes transferred on the wire.\n-b BAUD, --baud=BAUD Set the baud rate for serial connections.\n-p BITS, --stop-bits=BITS Set the number of stop bits for serial connections.\n-h, --help Show this help message and exit.\n\nACCESS SYNTAX\n=============\n\n[MODBUS_TYPE@]ADDRESS[/BINARY_TYPE][=VALUE]\n\nMODBUS_TYPE = h|i|c|d\n The modbus type, one of\n\n ===== ================ ======= =========\n code name size writable\n ===== ================ ======= =========\n ``h`` holding register 16 bits yes\n ``i`` input register 16 bits no\n ``c`` coil 1 bit yes\n ``d`` discrete input 1 bit no\n ===== ================ ======= =========\n\nADDRESS = \n 0-based register address\n\nBINARY_TYPE = \n Any format description accepted by the python standard ``pack`` module. Some common formats are:\n\n ===== ====\n code type\n ===== ====\n ``h`` 16 bits signed integer\n ``H`` 16 bits unsigned integer\n ``i`` 32 bits signed integer\n ``I`` 32 bits unsigned integer\n ``f`` 32 bits IEEE 754 float\n ===== ====\n\n The default byte order is big-endian, use a ``<`` prefix in the format to specify little-endian.\n\nVALUE = \n The value to be written to the register. If not present, the register will be read instead.\n\nEXAMPLES\n========\n\n==================== ====\n``h@39/I`` read the 32-bits unsigned integer stored in holding registers at addresses 39 and 40\n``39/I`` same as above (h is the default modbus type)\n``39/I=42`` write the integer 42 to that register\n``SOME_REGISTER=42`` same as above, provided the registers file contains the definition ``SOME_REGISTER h@39/I``\n``39/I=0xcafe`` the value can be specified in hexadecimal\n``c@5`` read coil at address 5\n``h@24/f=6.78`` write a floating point value to holding registers at addresses 24 and 25\n``i@1/6B`` read six unsigned bytes stored in input registers at addresses 1, 2 and 3\n==================== ====\n\nREGISTERS FILE SYNTAX\n=====================\n\nA ``#`` starts a comment.\n\nEach line contains a symbolic name followed by the register definition, separated by spaces.\n\nSEE ALSO\n========\n\n* `modbus `__\n* `umodbus `__\n* `pack format `__\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/favalex/modbus-cli", "keywords": "", "license": "MPL 2.0", "maintainer": "", "maintainer_email": "", "name": "modbus_cli", "package_url": "https://pypi.org/project/modbus_cli/", "platform": "", "project_url": "https://pypi.org/project/modbus_cli/", "project_urls": { "Homepage": "http://github.com/favalex/modbus-cli" }, "release_url": "https://pypi.org/project/modbus_cli/0.1.3/", "requires_dist": null, "requires_python": "", "summary": "Command line tool to access Modbus devices", "version": "0.1.3" }, "last_serial": 5006192, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "bc4b7a5c4714a5a405c925cbf08fb0f2", "sha256": "cb6fd55ff1ba0a1942cca3c94b6eaf4c5c6921afd2492d80d76a09ed75910316" }, "downloads": -1, "filename": "modbus_cli-0.1.0.tar.gz", "has_sig": false, "md5_digest": "bc4b7a5c4714a5a405c925cbf08fb0f2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5702, "upload_time": "2017-06-04T17:00:45", "url": "https://files.pythonhosted.org/packages/46/e5/8c22d0284577c4fa9f01897008616096360da8108d7a462b39d17bc244a9/modbus_cli-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "f42c5c331617fe013077bacae709cf28", "sha256": "900cb127d0e6281754caeb8993c5a76c15d25a8bfa8cd1e3c9c3f12dad637af8" }, "downloads": -1, "filename": "modbus_cli-0.1.1.tar.gz", "has_sig": false, "md5_digest": "f42c5c331617fe013077bacae709cf28", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5798, "upload_time": "2017-09-01T15:04:12", "url": "https://files.pythonhosted.org/packages/11/53/097f321a9fc36bf7f6558b489effb37c936f781a216d066376e4714d48af/modbus_cli-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "affebaf0f99ac97fdd93fb7d1b1da4e0", "sha256": "def738ab395a1aaf55b775780bcdddc9b467751ac891807f5d10bef2001f28e4" }, "downloads": -1, "filename": "modbus_cli-0.1.2.tar.gz", "has_sig": false, "md5_digest": "affebaf0f99ac97fdd93fb7d1b1da4e0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5802, "upload_time": "2017-09-06T06:22:55", "url": "https://files.pythonhosted.org/packages/d1/ec/0a04c59e9407f84b2b4f84fca87a13ccb6ea325e5def214be9117494479c/modbus_cli-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "6e67f5bf1fbd6d1c474a8dec7b4b3d66", "sha256": "a76d974e746eefa6e5bd05dbc4456bac4bef298e9669afa8c8fea15701280922" }, "downloads": -1, "filename": "modbus_cli-0.1.3.tar.gz", "has_sig": false, "md5_digest": "6e67f5bf1fbd6d1c474a8dec7b4b3d66", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5840, "upload_time": "2017-10-07T07:54:27", "url": "https://files.pythonhosted.org/packages/f6/29/e63dd500391268b8ae88b9128a751ec60ea8e0e85419c20cf704b74c6729/modbus_cli-0.1.3.tar.gz" } ], "0.1.4rc0": [ { "comment_text": "", "digests": { "md5": "786720fe481448e843caf7076c1089d3", "sha256": "84b368bbfa7abe1d37e62b7ca6fe0058da40b803ae35820b701339a4efe73e22" }, "downloads": -1, "filename": "modbus_cli-0.1.4rc0.tar.gz", "has_sig": false, "md5_digest": "786720fe481448e843caf7076c1089d3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10302, "upload_time": "2018-04-12T16:11:54", "url": "https://files.pythonhosted.org/packages/a1/c4/c5500dc4e006dd5bc8e1f48e676d5159c1465e56bf2daabb9cbb743a31d2/modbus_cli-0.1.4rc0.tar.gz" } ], "0.1.4rc1": [ { "comment_text": "", "digests": { "md5": "4e73699ee58687a036fe95d372e823bc", "sha256": "e0b39ca6dcbfa96d7552a499d3f0d2f7b0c11f00fedda989ff53be7049c74fe6" }, "downloads": -1, "filename": "modbus_cli-0.1.4rc1.tar.gz", "has_sig": false, "md5_digest": "4e73699ee58687a036fe95d372e823bc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11642, "upload_time": "2019-03-30T06:22:05", "url": "https://files.pythonhosted.org/packages/c3/f2/be303cccb3c52e862d9587bd579c76958025d4a70ad78add99d9b22b4437/modbus_cli-0.1.4rc1.tar.gz" } ], "0.1.4rc2": [ { "comment_text": "", "digests": { "md5": "593e22ae0fb201a3ea1a25627990de8b", "sha256": "a2671330d3725a7e1e8abcd58f10881fffea0e22fa6c9158f6ad777be468514e" }, "downloads": -1, "filename": "modbus_cli-0.1.4rc2.tar.gz", "has_sig": false, "md5_digest": "593e22ae0fb201a3ea1a25627990de8b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11645, "upload_time": "2019-03-30T06:28:22", "url": "https://files.pythonhosted.org/packages/b4/ff/4059496077965ab0266a7fb14819dc33a73c818238b08e53e49d72041df4/modbus_cli-0.1.4rc2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6e67f5bf1fbd6d1c474a8dec7b4b3d66", "sha256": "a76d974e746eefa6e5bd05dbc4456bac4bef298e9669afa8c8fea15701280922" }, "downloads": -1, "filename": "modbus_cli-0.1.3.tar.gz", "has_sig": false, "md5_digest": "6e67f5bf1fbd6d1c474a8dec7b4b3d66", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5840, "upload_time": "2017-10-07T07:54:27", "url": "https://files.pythonhosted.org/packages/f6/29/e63dd500391268b8ae88b9128a751ec60ea8e0e85419c20cf704b74c6729/modbus_cli-0.1.3.tar.gz" } ] }