Code Monkey home page Code Monkey logo

Comments (7)

mp-loki avatar mp-loki commented on May 17, 2024

can you provide your tb-gayeway.yml? Is remoteConfiguration true or false ?

from thingsboard-gateway.

quirosaur avatar quirosaur commented on May 17, 2024

i have tried with both. when true and configured following example , the error is:

tb-gateway.log

and here is the tb-gateway.yml

tb-gateway.yml.txt

from thingsboard-gateway.

mp-loki avatar mp-loki commented on May 17, 2024

Hi @quirosaur ! Thank you for reporting this issue. I found that the resource files that are provided in the package are not accurate. As a workaround you have to do two things:

  1. in opc-onfig.json change "keyPassword": "secret"
  2. in opc-onfig.json add "host": <YOUR_HOST>, at the same level as "port" property.

If there are any other issues with the certificate, you can re-generate it as described here
Meanwhile I will update the release archives

from thingsboard-gateway.

BIT-masterpy avatar BIT-masterpy commented on May 17, 2024

Have you solved the problem? @quirosaur

from thingsboard-gateway.

quirosaur avatar quirosaur commented on May 17, 2024

Hi, i tried the solutions, keystore is not apparently problem anymore but opc-ua connection problem persists. here are the logs and config:
opc-config.json.txt
without_opc_tcp_header_tb-gateway.log
with_opc_tcp_header_tb-gateway.log

in "host", should i use ip as "opc.tcp//xxx.xxx.xxx.xxx" or just bare ip?

anyways, i tried both, neither worked.

from thingsboard-gateway.

mp-loki avatar mp-loki commented on May 17, 2024

No, you don't need the "opc.tcp" part, the tb-gateway will add it by itself.
So what happens is that the gateway connects to "opc.tcp://:/", gets the list of endpoints and iterates over them to find the one that matches the security policy.

It looks like that the port 4840 that you are trying to connect to is a local discovery port (by default) in Prosys OPC-UA server, and you have to connect to UA TCP port, which is 53530 by default.
I don't have a working Prosys OPC-UA server, so I was unable to check if the assumption is correct or not

from thingsboard-gateway.

quirosaur avatar quirosaur commented on May 17, 2024

I'm sorry, i accidentally gave wrong name of opc-ua server. It's codesys server.

anyhow, i apparently managed to get connection to opcua. in raspberry pi /etc/CODESYSControl.cfg i added

[CmpOPCUA]
NetworkAdapter=eth0
NetworkPort=4840

this was done in remoteconfig = false, because apparently opcua extension is broken in web GUI.
tb-gateway.log

@mp-loki thank you for help! 👍

from thingsboard-gateway.

Related Issues (20)

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.