{ "info": { "author": "ucan", "author_email": "ucandevices@mail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# LIN Python lib\n\nLibrary is under development API will change\n\n## Features\n\n- LIN frame transmission / reception\n- LDF signals encoding / decoding (only signal and frames currently working, schedule table parsing not implemented, max signal size is 1 byte)\n- Works on windows, linux, mac. Supported hardware , [uCAN LIN USB CONVERTER](https://ucandevices.github.io/ulc.html)\n\n## Installation\n\n```python\npip install ucanlintools\n```\n\n## Example usage\n\nTo load ldf\n\n```python\nfrom ucanlintools.LDF_parser import parseLDF\nldf = parseLDF(\"D:\\\\ldfe.ldf\") \nmessage = ldf.get_message_by_name('FRAME_A')\nprint(message.signals)\n```\n\nTo decode/ encode frame\n\n```python\naaa = message.encode({'SIGNAL_A': 1})\nbbb = b'\\x00\\x00\\x00\\x00\\x00\\x00'\nmessage.decode(bbb)\n```\n\nTo setup LIN USB Converter\n\n```python\n\nlin = ucanlintools.LUC('COM7')\nlin.set_frame_rx_handler(rx_any)\nlin.set_new_frame_rx_handler(rx_new_data)\n\nlin.openAsMaster()\n\nlin.addReceptionFrameToTable(52,8)\nlin.addReceptionFrameToTable(54,8)\nlin.enable()\n\n```\n\nExample data reception handler\n\n```python\n\ndef rx_new_data(f):\n global message\n print (hex(f.id) + \": \" +(f.data.hex()))\n if (message.id == f.id):\n message.decode(f.data)\n print(message.diff_str())\n```\n\n## For more info see\n\nhttps://ucandevices.github.io", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/uCAN-LIN/LinUSBConverter", "keywords": "LIN,LDF,LUC,uCAN,parser", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "ucanlintools", "package_url": "https://pypi.org/project/ucanlintools/", "platform": "", "project_url": "https://pypi.org/project/ucanlintools/", "project_urls": { "Documentation": "https://ucandevices.github.io/", "Homepage": "https://github.com/uCAN-LIN/LinUSBConverter", "Source Code": "https://github.com/uCAN-LIN/LinUSBConverter/tree/master/python_lib" }, "release_url": "https://pypi.org/project/ucanlintools/0.0.9/", "requires_dist": null, "requires_python": "", "summary": "Local Interconnect Network (LIN) support for python", "version": "0.0.9" }, "last_serial": 5225356, "releases": { "0.0.5": [ { "comment_text": "", "digests": { "md5": "d3c9c03fcef2c521a451e15696a1c2da", "sha256": "5a469970416258b70d852226c7cce27a0d7062a0b6bcaa0218ef8d46d8100097" }, "downloads": -1, "filename": "ucanlintools-0.0.5.tar.gz", "has_sig": false, "md5_digest": "d3c9c03fcef2c521a451e15696a1c2da", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7760, "upload_time": "2019-04-30T10:38:59", "url": "https://files.pythonhosted.org/packages/fe/f6/e5a2b3ce513b7d145f7d5a68005df4dc7ddb4ee55fe25845e14e3bf5d045/ucanlintools-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "8990b73f4d3bda956bc49b2f0f05a3f2", "sha256": "8ffc5553586e6d13d6996c495c78e7ccebdfe8b198b9190e4a5e712065878358" }, "downloads": -1, "filename": "ucanlintools-0.0.6.tar.gz", "has_sig": false, "md5_digest": "8990b73f4d3bda956bc49b2f0f05a3f2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7771, "upload_time": "2019-04-30T10:49:18", "url": "https://files.pythonhosted.org/packages/8c/e8/734b9313f2f9ff34ba28d7b5c8e3f0e8a338d1050badf20b57b2f6a4fd82/ucanlintools-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "6b62c5dff5bfd60aec9f783aeec8e1f6", "sha256": "bcc3d85d91603d8c63811410b03fc90bcb8653c684994375820d7bca4e134f09" }, "downloads": -1, "filename": "ucanlintools-0.0.7.tar.gz", "has_sig": false, "md5_digest": "6b62c5dff5bfd60aec9f783aeec8e1f6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8623, "upload_time": "2019-05-02T11:34:36", "url": "https://files.pythonhosted.org/packages/41/f5/3c418dd2665aeebc34e110180bf5feb352cb13ad7077ae71be35281c0386/ucanlintools-0.0.7.tar.gz" } ], "0.0.8": [ { "comment_text": "", "digests": { "md5": "bcb22dba5965194236ceaea4904f580b", "sha256": "b245d8729870be9741d8d222fdfd6bbebac43d8284e8ab4a51d85e8efea02dcf" }, "downloads": -1, "filename": "ucanlintools-0.0.8.tar.gz", "has_sig": false, "md5_digest": "bcb22dba5965194236ceaea4904f580b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8675, "upload_time": "2019-05-04T10:41:54", "url": "https://files.pythonhosted.org/packages/31/11/53fb675f512fc214f505f8b22a6c96e5e4388e0150548c1cc86b6420d083/ucanlintools-0.0.8.tar.gz" } ], "0.0.9": [ { "comment_text": "", "digests": { "md5": "88a58157e032647df722fe7294250e33", "sha256": "061c2f398a63f195399292f9f4bd6b73831d956d32833af6ac5dd0cdf41be498" }, "downloads": -1, "filename": "ucanlintools-0.0.9.tar.gz", "has_sig": false, "md5_digest": "88a58157e032647df722fe7294250e33", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7993, "upload_time": "2019-05-04T11:20:25", "url": "https://files.pythonhosted.org/packages/85/05/340051629d12aeb5549ccbe08a57dd002a414e55f3f80a22425c268f1a9e/ucanlintools-0.0.9.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "88a58157e032647df722fe7294250e33", "sha256": "061c2f398a63f195399292f9f4bd6b73831d956d32833af6ac5dd0cdf41be498" }, "downloads": -1, "filename": "ucanlintools-0.0.9.tar.gz", "has_sig": false, "md5_digest": "88a58157e032647df722fe7294250e33", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7993, "upload_time": "2019-05-04T11:20:25", "url": "https://files.pythonhosted.org/packages/85/05/340051629d12aeb5549ccbe08a57dd002a414e55f3f80a22425c268f1a9e/ucanlintools-0.0.9.tar.gz" } ] }