{"id":18382423,"url":"https://github.com/ntd/opcua-primer","last_synced_at":"2025-04-06T23:31:40.767Z","repository":{"id":136638173,"uuid":"580314849","full_name":"ntd/opcua-primer","owner":"ntd","description":"Sample OPC-UA server based on a model design XML","archived":false,"fork":false,"pushed_at":"2022-12-20T10:35:03.000Z","size":195,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-22T09:02:08.693Z","etag":null,"topics":["linux","modeldesign","opc","opc-ua","opcua","open62541","server","ua-modelcompiler"],"latest_commit_sha":null,"homepage":"","language":"Makefile","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/ntd.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}},"created_at":"2022-12-20T08:59:39.000Z","updated_at":"2023-12-07T09:09:28.000Z","dependencies_parsed_at":"2024-01-25T19:14:34.140Z","dependency_job_id":null,"html_url":"https://github.com/ntd/opcua-primer","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/ntd%2Fopcua-primer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntd%2Fopcua-primer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntd%2Fopcua-primer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ntd%2Fopcua-primer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ntd","download_url":"https://codeload.github.com/ntd/opcua-primer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247569123,"owners_count":20959758,"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":["linux","modeldesign","opc","opc-ua","opcua","open62541","server","ua-modelcompiler"],"created_at":"2024-11-06T01:05:37.255Z","updated_at":"2025-04-06T23:31:35.756Z","avatar_url":"https://github.com/ntd.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"It seems the sanest way (from a human perspective) of modelling an OPC-UA\nserver is to create a (relatively) simple XML file describing data and\nrelations (the [\"model design\"](http://opcfoundation.org/UA/ModelDesign.xsd)\nformat), convert it into another more machine-oriented XML file (the\n[\"NodeSet2\"](http://opcfoundation.org/UA/2011/03/UANodeSet.xsd) format) and\nthen generate from it the C code to be linked against other server code.\n\nThe conversion from model design to NodeSet2 is performed by\n[UA-ModelCompiler](https://github.com/OPCFoundation/UA-ModelCompiler), a tool\nofficially endorsed by the OPC foundation, while the generation of the C code\nfrom NodeSet2 is performed by `nodeset_compiler.py`, a Python script provided\nby the awesome [Open62541](https://github.com/open62541/open62541) project.\n\nWhile `nodeset_compiler.py`, apart from being included in PATH, does not\nrequire any particular processing, the `UA-ModelCompiler` is strongly geared\ntowards Windows/DotNet and it is in general quite unpleasant to work with.\nIn other words, compiling model designs on GNU/Linux systems is a nightmare.\n\nThe only documentation I found is the\n[OPC-UA information model tutorial](https://opcua.rocks/from-modelling-to-execution-opc-ua-information-model-tutorial/),\nwhich provides a strong foundation for understanding the whole process but the\ncommands reported there for converting the model design simply do not work on\nmy system (ArchLinux current).\n\nAfter a lot of trials and errors, I came up with a solution based on `docker`\nthat does not require building and installing `UA-ModelCompiler` natively.\nSee the `Makefile` for the gory details.\n\nThe sample model design used here is an adaptation of the work done by\n_Industry40tv_ on its [YouTube tutorial](https://youtu.be/gxA7SDNLHgc): check\nit out for a really good introduction.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fntd%2Fopcua-primer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fntd%2Fopcua-primer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fntd%2Fopcua-primer/lists"}