{ "info": { "author": "Jumper Team", "author_email": "info@jumper.io", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Embedded Systems" ], "description": "# HCI Protocol\nThis is a Python package for parsing and building HCI packets.\n\nHCI (Host Controller Interface) is the protocol used for communications between a BT/BLE controller (i.e. USB dongle) and a host computer such as a RPi.\nCurrently **only part of the protocol is implemented in this package** \n\n## Usage Examples\n1. Hci Sniffer (Linux only): `python -m hci_protocol.hci_sniffer --hci 0`\n2. Building a packet:\n ```python\n from hci_protocol import hci_functions\n hci_functions.create_le_connection_comlete_packet(peer_address='AA:BB:CC:DD:EE:FF', connection_handle=70)\n # ==> '\\x04>\\x13\\x01\\x00F\\x00\\x00\\x01\\xff\\xee\\xdd\\xcc\\xbb\\xaa8\\x00\\x00\\x00*\\x00\\x00'\n ```\n \n3. Parsing a packet:\n ```python\n from hci_protocol.hci_protocol import HciPacket\n print HciPacket.parse('\\x04>\\x13\\x01\\x00F\\x00\\x00\\x01\\xff\\xee\\xdd\\xcc\\xbb\\xaa8\\x00\\x00\\x00*\\x00\\x00')\n # ==>\n # Container:\n # type = EVENT_PACKET (total 12)\n # payload = Container:\n # event = LE_META_EVENT (total 13)\n # length = 19\n # payload = Container:\n # subevent = LE_CONNECTION_COMPLETED (total 23)\n # payload = Container:\n # status = 0\n # handle = 70\n # role = 0\n # peer_bdaddr_type = 1\n # peer_bdaddr = aa:bb:cc:dd:ee:ff (total 17)\n # interval = 56\n # latency = 0\n # supervision_timeout = 42\n # master_clock_accuracy = 0\n ```\n \n## Contribute\nThis package is in a preliminary stage and there is still a lot of work to do. Feel free to fork and submit your pull requests.\n\nFor more information about the HCI protocol, check out the [Blutooth Core Specifications](https://www.bluetooth.org/DocMan/handlers/DownloadDoc.ashx?doc_id=421043&_ga=2.29692863.121228451.1498147116-1432843607.1484151012)\n", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/Jumperr-labs/hci-protocol/archive/0.0.5.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Jumperr-labs/hci-protocol", "keywords": "ble", "license": "Apache 2.0", "maintainer": "", "maintainer_email": "", "name": "hci-protocol", "package_url": "https://pypi.org/project/hci-protocol/", "platform": "", "project_url": "https://pypi.org/project/hci-protocol/", "project_urls": { "Download": "https://github.com/Jumperr-labs/hci-protocol/archive/0.0.5.tar.gz", "Homepage": "https://github.com/Jumperr-labs/hci-protocol" }, "release_url": "https://pypi.org/project/hci-protocol/0.0.5/", "requires_dist": null, "requires_python": "", "summary": "HCI Packet Parser", "version": "0.0.5" }, "last_serial": 3000984, "releases": { "0.0.2": [ { "comment_text": "", "digests": { "md5": "e99ac4b222742be71531e23e883edaab", "sha256": "071fe967237205ba7d272587ebc24997b37d96344c90d7bb04c8f42c7feeae66" }, "downloads": -1, "filename": "hci-protocol-0.0.2.tar.gz", "has_sig": false, "md5_digest": "e99ac4b222742be71531e23e883edaab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2426, "upload_time": "2017-06-22T16:10:20", "url": "https://files.pythonhosted.org/packages/52/96/b839a39900a347c269a1cb61c86bbc14b07e1c40dfaf0a529362fab89fd3/hci-protocol-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "79390a2b4dbd2daa5cfda8afd47d51d5", "sha256": "c9029480cd9a9753cd8561d35ab07dcf83d9464cf4c5f3ceef53eb31b3c0093a" }, "downloads": -1, "filename": "hci-protocol-0.0.3.tar.gz", "has_sig": false, "md5_digest": "79390a2b4dbd2daa5cfda8afd47d51d5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2798, "upload_time": "2017-06-22T16:31:28", "url": "https://files.pythonhosted.org/packages/3c/8f/baa1109ec6c900dd0faf6d2544926af49929a7ee79c3a49475bf06daf797/hci-protocol-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "81c6b6db1480e5f6daa10981fbbda6d8", "sha256": "76576747e4096a965f3cc072a6453c0808d043c193cc2d6bb2121ea5afa4ad99" }, "downloads": -1, "filename": "hci-protocol-0.0.4.tar.gz", "has_sig": false, "md5_digest": "81c6b6db1480e5f6daa10981fbbda6d8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11388, "upload_time": "2017-06-22T16:38:36", "url": "https://files.pythonhosted.org/packages/50/be/f2edbf76848d20fb4f416dca52f7b7a565a937125253c1f741871a047b8e/hci-protocol-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "6393108e1fa90910e143fd9c2acc5277", "sha256": "99498e7c9c6b5dd18c7a9a9bd3145f3922bfc123aadc38a68943a981b91d4489" }, "downloads": -1, "filename": "hci-protocol-0.0.5.tar.gz", "has_sig": false, "md5_digest": "6393108e1fa90910e143fd9c2acc5277", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11824, "upload_time": "2017-07-05T12:16:23", "url": "https://files.pythonhosted.org/packages/aa/a1/8e6ecbb4f3e0db4bc941b18d5c19fa90817f87e9db0d98dca0e33e2f3d44/hci-protocol-0.0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6393108e1fa90910e143fd9c2acc5277", "sha256": "99498e7c9c6b5dd18c7a9a9bd3145f3922bfc123aadc38a68943a981b91d4489" }, "downloads": -1, "filename": "hci-protocol-0.0.5.tar.gz", "has_sig": false, "md5_digest": "6393108e1fa90910e143fd9c2acc5277", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11824, "upload_time": "2017-07-05T12:16:23", "url": "https://files.pythonhosted.org/packages/aa/a1/8e6ecbb4f3e0db4bc941b18d5c19fa90817f87e9db0d98dca0e33e2f3d44/hci-protocol-0.0.5.tar.gz" } ] }