Giter Site home page Giter Site logo

digitaltwinconsortium / ua-cloudtwin Goto Github PK

View Code? Open in Web Editor NEW
19.0 19.0 8.0 1.9 MB

A cloud-based Digital Twin Definition Language (DTDL) adapter for OPC UA data.

License: MIT License

C# 16.84% Dockerfile 0.04% HTML 0.60% CSS 1.90% JavaScript 80.62%

ua-cloudtwin's People

Contributors

barnstee avatar waywardhayward avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ua-cloudtwin's Issues

Index out of range in updateAssetTelemetry in the ADTClient

updateTwinData.AppendReplace("/OPCUANodeId", parts[1] + parts[3]);

When running locally the ADTClient gets an index out of range error on line 264. After inspecting the array, it seems that you have written the code for 1-based indexed arrays.

Are my assumption correct ? And if so, is there a particular reason for this ?

If not, is there anything wrong with the telemetryName that is passed into the function:
"opc.tcp://111.111.11.111:1111_11111111_somename;sensor-name;i=11111"

No metadata message for {publisherID}:{dataSetWriterId} received yet!

Hi,
We are working on a Twin for a factory with OPC UA devices, the data is flowing through a VM with IoT Edge and a OPC UA publisher to the IoT-Hub->UA-CloudTwin->ADT. We are getting the following information when we are running UA-CloudTwin:
"No metadata message for {publisherID}:{dataSetWriterId} received yet!" and the digital twins does not contain the metadata necessary to create relations and hierarchy.

The publisher looks like this with but with more nodes, different names and IP as well.

{ "EndpointUrl": "opc.tcp://111.111.11.111", "DataSetWriterGroup": "rh", "DataSetWriterId": 3, "OpcNodes": [ { "Id": "ns=1;s=/codesys/volatile/pdp/Multivac/R530/Advance", "HeartbeatIntervalTimespan": "00:01:00", "OpcSamplingInterval": 2000, "OpcPublishingInterval": 5000, "DataSetFieldId": "R530-Advance", "DisplayName": "R530-Advance" } }

In azure the message looks something like this:

[ { "MessageId": "4690", "MessageType": "ua-data", "PublisherId": "opc.tcp://111.111.11.111:rh", "DataSetWriterGroup": "rh", "Messages": [ { "DataSetWriterId": "3", "SequenceNumber": 4690, "MetaDataVersion": { "MajorVersion": 1, "MinorVersion": 0 }, "Timestamp": "2022-11-29T06:20:26.2187Z", "Payload": { "R530-Advance": { "Value": false, "SourceTimestamp": "2022-11-29T06:14:32.09145Z", "ServerTimestamp": "2022-11-29T06:14:32.3252Z" } } } ] } ]

Would it be possible to provide a valid example of a payload containing message data and metadata necessary to create a small hierarchy?
For example a factory with two machines with two sensors.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.