ecoa-tools / edt

ECOA Design Tool to graphically edit ECOA models
MIT License
6 stars 1 forks source link

Unclear attribute values #3

Open NFTESG opened 1 month ago

NFTESG commented 1 month ago

Hello, and thank you for your work. I am trying to design a simple demo based on the 'PingPong_simple' example, which uses different machines to run on, connected through Ethernet, or local interface. What i have done (Step 5-Integration)

WARNING |platform link 'LCPL_TH_ESG' uses an unknown protocol 'THALES_UDP'
ERROR   |PF link 'LCPL_TH_ESG' has no binding

or

The LogicalComputingPlatformLink LCPL1 is missing attributes, the following attributes must be filled : id, from, to, latencyMicroSeconds, throughputMegaBytesPerSecond and either both TransportBinding attributes are filled or none

or

ERROR   |File '/ecoa/workspace/export/PingPong_cpp_simple/Steps/5-Integration/a_parameter' does not exist
ERROR   |PF link 'LCPL1' has no binding

What do i need to specify here? Is there an extended example available, which already uses network? Thank you in advance, G.D.

NFTESG commented 4 weeks ago

Ok found it. The Transport Binding Parameter needs to be the filename based on the name of "UDP bindings". But another error, which i don't get fixed: When checking a project with 'exvt', i get this error message:

(.py_WS) root@xeon:/ecoa/workspace$> ecoa-ldp -k ecoa-exvt -o /ecoa/workspace/OUT/ -p export/PingPong_cpp_simple/Steps/PingPong_cpp_simple.project.xml
...
End with :
 - 0 critical messages
 - 0 error messages
 - 0 warning messages
Unexpected error: <class 'TypeError'>   int() argument must be a string, a bytes-like object or a real number, not 'NoneType'
NFTESG commented 3 weeks ago

Addition: The project exported is a modified version of the PingPong_cpp_simple Example. G.Dutka - ESG

NFTESG commented 1 week ago

Found the reason for above error. The attribute 'faultHandlerNotificationMaxNumber' does not seem to get generated for the second node for some reason (5/deployment.xml).

When adding it manually, the verification with ecoa-exvt succeeds, but the generation of a multi-node architecture fails with 'ERROR |fail to generate file 'multi-nodes.py' mandatory with multi nodes'

Documentation mentions that there needs bo be a file nodes_deployment.xml in order to create the .py-file named above: https://github.com/ecoa-tools/as6-genplatform/blob/main/ecoa-ldp/docs/source/usage.rst#running-multi-nodes-example

Could that be done automatically, by the tooling?