{"id":19785392,"url":"https://github.com/michaelfeil/iot_gateway_modbus","last_synced_at":"2025-04-30T23:30:31.824Z","repository":{"id":39832384,"uuid":"257024799","full_name":"michaelfeil/iot_gateway_modbus","owner":"michaelfeil","description":"A MQTT Gateway connecting Modbus RTU and Google IoT Core","archived":false,"fork":false,"pushed_at":"2022-08-02T11:41:11.000Z","size":797,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-03-05T15:29:51.573Z","etag":null,"topics":["google-iot","modbus-gateway","modbus-rtu","mqtt-bridge","raspberry-pi"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/michaelfeil.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-19T14:46:47.000Z","updated_at":"2022-04-16T11:40:36.000Z","dependencies_parsed_at":"2022-08-19T18:20:26.918Z","dependency_job_id":null,"html_url":"https://github.com/michaelfeil/iot_gateway_modbus","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelfeil%2Fiot_gateway_modbus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelfeil%2Fiot_gateway_modbus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelfeil%2Fiot_gateway_modbus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelfeil%2Fiot_gateway_modbus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michaelfeil","download_url":"https://codeload.github.com/michaelfeil/iot_gateway_modbus/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224225081,"owners_count":17276436,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["google-iot","modbus-gateway","modbus-rtu","mqtt-bridge","raspberry-pi"],"created_at":"2024-11-12T06:14:31.720Z","updated_at":"2024-11-12T06:14:32.306Z","avatar_url":"https://github.com/michaelfeil.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IoT_Gateway_Modbus: A MQTT Gateway connecting Modbus RTU with MQTT Bridge of Google IoT Core\n\nNote:\nThis repository was an exploration with EcoPhi and Engineers without Borders Karlsruhe. Futher investigations are continoued elsewhere, this repository is discontinued.\n\n## Scope of this solution:\nThis software is a user-solution of an \"IoT Gateway\" for Modbus RTU. \n\nThe intitial reason for starting this solution was the need for a Gateway for Solar Microgrids.\nA monitoring system for microgrids can help NGOs and companies e.g. in Eastern Africa, to prove project success and also improves predictive and reliable maintainance. \nUsing a small embedded Linux/Windows computer, e.g. a Raspberry PI, low-cost Modbus RTU sensors can be read and a cost-effective monitoring solution is possible. \n\n## As provided this solution offers:\n- Cloud: Google IoT Core\n\t- deploying and changing Modbus configuration from the GCP.\n\t- Reliable connection using Python Paho MQTT Client\n\t- low data footprint in GSM szenarios: compression of multiple sensor measurements using gzip  \n\n- Modbus: Modbus RTU: RS232, RS485 via USB interface.\n\t- read sensor values from 5-10 Modbus RTU Slaves per second\n\t- schedule individual indivdual for each sensor and slave\n\n- Cloud: Google IoT Core\n\t- deploying and changing Modbus configuration from the GCP.\n\t- Connection using Paho MQTT Client\n\t- low data usage: compression using gzip and multiple sensor measurement at once\n\n- Modbus: Modbus RTU: RS232, RS485 over USB.\n\t- read 5-10 Modbus RTU Slaves per Second\n\t- schedule indivdual for every sensor\n\t- handling of all modbus\n\n## Documentation Software:\n- For the software documentation and installation see: [README_gateway_software.md](/src/README_gateway_software.md) \n- For additional instructions for the installation on a Raspberry Pi, follow [01_installation_raspberry_pi.md.](/implementation_raspberry_pi/01_installation_raspberry_pi.md) \n\n ### Related software:\n - other clouds platforms: this module is designed for the GCP and Google IoT Core, however would also work with other MQTT Bridges.\n For Azure IoT Edge, a [Modbus Gateway](https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/iot-edge/deploy-modbus-gateway.md)  module exists, [AWS Greengrass](https://docs.aws.amazon.com/greengrass/latest/developerguide/modbus-protocol-adapter-connector.html)\n    \n ### About:\n Required Python 3.7.7 libaries that are not included and must be installed separatley with the [requirements.txt](/src/requirements.txt):\n- \"schema\" is licensed under MIT Licence; available [here](https://pypi.org/project/schema/)  \n- \"PyJWT\"  MIT Licence, 2015 Jose Padilla; available [here](https://pypi.org/project/PyJWT/)   \n- \"paho-mqtt\"  is licensed under Eclipse Public License v1.0 / Eclipse Distribution License 1.0 ; available [here](https://pypi.org/project/paho-mqtt/)   \n- \"Modbus Test Kit\" is licensed under LGPL Licence; available [here](https://pypi.org/project/modbus_tk/)   \n- \"pyserial\"  is licensed under BSD-3-Clause (BSD Licence); available [here](https://pypi.org/project/pyserial/)   \n\nThis code example works with google IoT Core and other MQTT Briges. However, this code it not affiated with products of Google or Google Cloud.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelfeil%2Fiot_gateway_modbus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaelfeil%2Fiot_gateway_modbus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelfeil%2Fiot_gateway_modbus/lists"}