{"id":19533774,"url":"https://github.com/embox/embox_project_modbus_iocontrol","last_synced_at":"2026-01-05T21:15:03.028Z","repository":{"id":93073044,"uuid":"341938526","full_name":"embox/embox_project_modbus_iocontrol","owner":"embox","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-22T13:11:16.000Z","size":188,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":12,"default_branch":"main","last_synced_at":"2025-01-28T20:06:05.805Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/embox.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-24T15:07:44.000Z","updated_at":"2024-05-22T13:11:20.000Z","dependencies_parsed_at":"2024-05-22T14:43:52.215Z","dependency_job_id":null,"html_url":"https://github.com/embox/embox_project_modbus_iocontrol","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/embox%2Fembox_project_modbus_iocontrol","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/embox%2Fembox_project_modbus_iocontrol/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/embox%2Fembox_project_modbus_iocontrol/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/embox%2Fembox_project_modbus_iocontrol/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/embox","download_url":"https://codeload.github.com/embox/embox_project_modbus_iocontrol/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245111928,"owners_count":20562511,"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":[],"created_at":"2024-11-11T02:09:55.875Z","updated_at":"2026-01-05T21:15:02.946Z","avatar_url":"https://github.com/embox.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# embox_project_modbus_iocontrol\n\nembox_project_modbus_iocontrol is an Embox external project. It demonstrates how to libmodbus work in Embox. There are several target to run this demo:\n* Standalong on Linux host\n* In Embox on ARM QEMU\n* In Embox on STM32F4-discovery\n\nLEDs are emulated On QEMU and on host. The real on-board LEDs are used on STM32f4-Discovery.\n\nTo build on host (client and server) you need follow:\n* Move to 'modbus/host_cmds' folder\n* Build with 'make'\n\nRun an emulation on the host:\n* Build client and server\n* Move to 'modbus/emulate' folder\n* Run server './led-server'\n* To run web-site you can go to 'modbus/http_admin' and run built-in python http server `python3 -m http.server --cgi -d .` Then you can check the LEDs states on a browser.\n* To run the modbus client. Go to 'modbus/emulate' and run './led-client -a 127.0.0.1 set 78' to set up led 78 to high state or './led-client -a 127.0.0.1 clr 78' to low state\n\nRun an emulation on the ARM QEMU:\n* Build the modbus client\n* Setup the project as external in Embox `make ext_conf EXT_PROJECT_PATH=\u003cpath to root folder of this repo\u003e`. For example `make ext_conf EXT_PROJECT_PATH=~/git/embox_project_modbus_iocontrol`\n* Configure Embox `make confload-ext_project/modbus/arm_qemu`\n* Build Embox `make`\n* Run Embox `./scripts/qemu/auto_qemu`\n* To run the modbus client. Go to 'modbus/emulate' and run './led-client -a 10.0.2.16 set 78' to set up led 78 to high state or './led-client -a 10.0.2.16 clr 78' to low state\n* Additionally you can check state in your browser if visit page with 10.0.2.16 address\n\nRun on a STM32F4-discovery board\n* Build the modbus client\n* Setup the project as external in Embox `make ext_conf EXT_PROJECT_PATH=\u003cpath to root folder of this repo\u003e`. For example `make ext_conf EXT_PROJECT_PATH=~/git/embox_project_modbus_iocontrol`\n* Configure Embox `make confload-ext_project/modbus/stm32f4_discovery_demo`\n* Setup you network settings in 'conf/start_script.inc' file\n* Build Embox `make`\n* Upload image on the board\n* To run the modbus client. Go to 'modbus/emulate' and run './led-client -a \"board IP\" set 3' to set up led 3 to high state or './led-client -a \"board IP\" clr 3' to low state\n* Additionally you can check state in your browser if visit page with \"board IP\" address\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fembox%2Fembox_project_modbus_iocontrol","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fembox%2Fembox_project_modbus_iocontrol","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fembox%2Fembox_project_modbus_iocontrol/lists"}