{ "info": { "author": "GISCE-TI, S.L.", "author_email": "devel@gisce.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 1 - Planning", "License :: OSI Approved :: GNU Affero General Public License v3", "Topic :: Communications :: Telephony" ], "description": "Moxa Physical layer\n===================\n\nPhysical layer for using a `Moxa devices `_\nfor `IEC870REE library `_\n\n\nUsing:\n\n.. code-block:: python\n\n from iec870ree_moxa import Moxa\n from iec870ree.ip import Ip\n from iec870ree.protocol import LinkLayer, AppLayer\n import iec870ree.protocol\n import datetime\n\n ip_layer = iec870ree.ip.Ip(('127.0.0.1', 40001))\n physical_layer = Moxa('PHONENUMBER', ip_layer)\n link_layer = iec870ree.protocol.LinkLayer(10345, 1)\n link_layer.initialize(physical_layer)\n app_layer = iec870ree.protocol.AppLayer()\n app_layer.initialize(link_layer)\n physical_layer.connect()\n link_layer.link_state_request()\n link_layer.remote_link_reposition()\n logging.info(\"before authentication\")\n resp = app_layer.authenticate(1)\n logging.info(\"CLIENTE authenticate response {}\".format(resp))\n logging.info(\"before read\")\n\n start_date = datetime.datetime(2018, 4, 1, 0, 0)\n end_date = datetime.datetime(2018, 4, 2, 1, 0)\n\n for resp in app_layer.read_integrated_totals(start_date, end_date):\n logging.info(\"read response {}\".format(resp))\n physical_layer.disconnect()\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://www.gisce.net", "keywords": "REE electric meters IEC 870-5-102", "license": "AGPL3", "maintainer": "", "maintainer_email": "", "name": "iec870ree_moxa", "package_url": "https://pypi.org/project/iec870ree_moxa/", "platform": "", "project_url": "https://pypi.org/project/iec870ree_moxa/", "project_urls": { "Homepage": "http://www.gisce.net" }, "release_url": "https://pypi.org/project/iec870ree_moxa/0.2.2/", "requires_dist": null, "requires_python": "", "summary": "Physical layer for using a Moxa devices with IEC870REE library", "version": "0.2.2" }, "last_serial": 5138550, "releases": { "0.2.0": [ { "comment_text": "", "digests": { "md5": "5dff5b570ee6961a57a58a2555049349", "sha256": "547d354a4abba7d901870c329a99ac1f5d91e32061f5f879069b534741d8a85f" }, "downloads": -1, "filename": "iec870ree_moxa-0.2.0.tar.gz", "has_sig": false, "md5_digest": "5dff5b570ee6961a57a58a2555049349", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2906, "upload_time": "2019-02-12T08:36:19", "url": "https://files.pythonhosted.org/packages/a2/bb/3d418ba28ae6b389a7740b6647cccbbf02bc94f74efa8fbe6ae338503b8d/iec870ree_moxa-0.2.0.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "b07fc0327c53fc60a0d157b2da395ca4", "sha256": "7d414a0c01fa83777393a51944b693ed8320b50db4d0a4e4e492e889ed850151" }, "downloads": -1, "filename": "iec870ree_moxa-0.2.2.tar.gz", "has_sig": false, "md5_digest": "b07fc0327c53fc60a0d157b2da395ca4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3007, "upload_time": "2019-04-13T16:33:24", "url": "https://files.pythonhosted.org/packages/ac/0b/c60a5aee66e6611f057260a01585c853f30220dfee59f5ce5f47922954c1/iec870ree_moxa-0.2.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b07fc0327c53fc60a0d157b2da395ca4", "sha256": "7d414a0c01fa83777393a51944b693ed8320b50db4d0a4e4e492e889ed850151" }, "downloads": -1, "filename": "iec870ree_moxa-0.2.2.tar.gz", "has_sig": false, "md5_digest": "b07fc0327c53fc60a0d157b2da395ca4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3007, "upload_time": "2019-04-13T16:33:24", "url": "https://files.pythonhosted.org/packages/ac/0b/c60a5aee66e6611f057260a01585c853f30220dfee59f5ce5f47922954c1/iec870ree_moxa-0.2.2.tar.gz" } ] }