Coder Social home page Coder Social logo

Comments (24)

awcullen avatar awcullen commented on May 23, 2024

Yes I have.
The config file I used is:

opc-config.json.txt

When the Robot1 device is connected, it will look like this:
robot1 device
You can make a dashboard like this:
robot1 dashboard

from opc-ua-samples.

Savoyyang avatar Savoyyang commented on May 23, 2024

I use losthost:8080 and The official account Tenant , so what's your tb-gateway.yml configuration?

from opc-ua-samples.

awcullen avatar awcullen commented on May 23, 2024

Heres my yml file.
tb-gateway.yml.txt

Please see instructions about setting the accessToken that is correct for your installation.

Please note that while the Web interface is at localhost:8080, the MQTT socket is localhost:1883. The gateway connects to the MQTT socket.

from opc-ua-samples.

Savoyyang avatar Savoyyang commented on May 23, 2024

opc-config.json.txt

tb-gateway.yml.txt

I follow this instructions but failed,After the configuration isWindows:
net stop tb-gateway
net start tb-gateway

image

image

from opc-ua-samples.

awcullen avatar awcullen commented on May 23, 2024

I don't see any errors.
Are all the services and RobotServer on one computer?
Could you share the file:
\tb-gateway\logs\tb-gateway.log

from opc-ua-samples.

Savoyyang avatar Savoyyang commented on May 23, 2024

Of course, services and RobotServer on one computer

tb-gateway.wrapper.log.txt

from opc-ua-samples.

awcullen avatar awcullen commented on May 23, 2024

Is there a tb-gateway.log ?

Maybe its time for a reboot :)

from opc-ua-samples.

tejasklodha avatar tejasklodha commented on May 23, 2024

from opc-ua-samples.

Savoyyang avatar Savoyyang commented on May 23, 2024

there is a file tb-gateway.log.
I am reboot,but still can't connect.
I think I should use other computer and try it again.
thanks.

from opc-ua-samples.

awcullen avatar awcullen commented on May 23, 2024

Please share with us the tb-gateway.log

from opc-ua-samples.

Savoyyang avatar Savoyyang commented on May 23, 2024

Under the path just have tb-gateway.wrapper.log.
image

from opc-ua-samples.

awcullen avatar awcullen commented on May 23, 2024

Okay, then could you open a cmd window (run as administrator).

cd c:\tb-gateway
uninstall.bat
install.bat
net start tb-gateway

look for a \logs\tb-gateway.log

from opc-ua-samples.

Savoyyang avatar Savoyyang commented on May 23, 2024

2017-07-09 02:05:35,908 [main] WARN o.t.g.service.MqttGatewayService - Failed to connect to Thingsboard!
org.eclipse.paho.client.mqttv3.MqttException: 已断开连接
at org.eclipse.paho.client.mqttv3.internal.CommsReceiver.run(CommsReceiver.java:164)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.EOFException: null
at java.io.DataInputStream.readByte(Unknown Source)
at org.eclipse.paho.client.mqttv3.internal.wire.MqttInputStream.readMqttWireMessage(MqttInputStream.java:92)
at org.eclipse.paho.client.mqttv3.internal.CommsReceiver.run(CommsReceiver.java:116)
... 1 common frames omitted
2017-07-09 02:05:40,110 [main] WARN o.t.g.service.MqttGatewayService - Failed to connect to Thingsboard!
org.eclipse.paho.client.mqttv3.MqttException: 已断开连接
at org.eclipse.paho.client.mqttv3.internal.CommsReceiver.run(CommsReceiver.java:164)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.EOFException: null
at java.io.DataInputStream.readByte(Unknown Source)
at org.eclipse.paho.client.mqttv3.internal.wire.MqttInputStream.readMqttWireMessage(MqttInputStream.java:92)
at org.eclipse.paho.client.mqttv3.internal.CommsReceiver.run(CommsReceiver.java:116)
... 1 common frames omitted

from opc-ua-samples.

awcullen avatar awcullen commented on May 23, 2024

net start thingsboard

from opc-ua-samples.

Savoyyang avatar Savoyyang commented on May 23, 2024

2017-07-09 02:10:18,973 [main] INFO o.t.gateway.GatewayApplication - Starting GatewayApplication v1.2.0 on DESKTOP-1JD0SQ9 with PID 5412 (C:\Users\Downloads\tb-gateway-windows-1.2\tb-gateway\lib\tb-gateway.jar started by DESKTOP-1JD0SQ9$ in C:\Users\Downloads\tb-gateway-windows-1.2\tb-gateway\conf)
2017-07-09 02:10:18,979 [main] INFO o.t.gateway.GatewayApplication - No active profile set, falling back to default profiles: default
2017-07-09 02:10:19,194 [main] INFO o.s.b.c.e.AnnotationConfigEmbeddedWebApplicationContext - Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@6adca536: startup date [Sun Jul 09 02:10:19 CST 2017]; root of context hierarchy
2017-07-09 02:10:19,290 [background-preinit] INFO o.h.validator.internal.util.Version - HV000001: Hibernate Validator 5.2.4.Final
2017-07-09 02:10:22,922 [main] INFO o.s.b.c.e.t.TomcatEmbeddedServletContainer - Tomcat initialized with port(s): 9090 (http)
2017-07-09 02:10:22,949 [main] INFO o.a.catalina.core.StandardService - Starting service Tomcat
2017-07-09 02:10:22,951 [main] INFO o.a.catalina.core.StandardEngine - Starting Servlet Engine: Apache Tomcat/8.5.6
2017-07-09 02:10:23,655 [localhost-startStop-1] INFO o.a.c.c.C.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
2017-07-09 02:10:23,659 [localhost-startStop-1] INFO o.s.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 4469 ms
2017-07-09 02:10:23,900 [localhost-startStop-1] INFO o.s.b.w.s.ServletRegistrationBean - Mapping servlet: 'dispatcherServlet' to [/]
2017-07-09 02:10:23,913 [localhost-startStop-1] INFO o.s.b.w.s.FilterRegistrationBean - Mapping filter: 'characterEncodingFilter' to: [/]
2017-07-09 02:10:23,914 [localhost-startStop-1] INFO o.s.b.w.s.FilterRegistrationBean - Mapping filter: 'hiddenHttpMethodFilter' to: [/
]
2017-07-09 02:10:23,921 [localhost-startStop-1] INFO o.s.b.w.s.FilterRegistrationBean - Mapping filter: 'httpPutFormContentFilter' to: [/]
2017-07-09 02:10:23,921 [localhost-startStop-1] INFO o.s.b.w.s.FilterRegistrationBean - Mapping filter: 'requestContextFilter' to: [/
]
2017-07-09 02:10:24,318 [main] INFO o.t.g.s.c.TbPersistenceConfiguration - Initializing file persistence using directory: storage
2017-07-09 02:10:25,916 [main] WARN o.t.g.service.MqttGatewayService - Failed to connect to Thingsboard!
org.eclipse.paho.client.mqttv3.MqttException: 已断开连接
at org.eclipse.paho.client.mqttv3.internal.CommsReceiver.run(CommsReceiver.java:164)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.EOFException: null
at java.io.DataInputStream.readByte(Unknown Source)
at org.eclipse.paho.client.mqttv3.internal.wire.MqttInputStream.readMqttWireMessage(MqttInputStream.java:92)
at org.eclipse.paho.client.mqttv3.internal.CommsReceiver.run(CommsReceiver.java:116)
... 1 common frames omitted
2017-07-09 02:10:26,603 [pool-1-thread-1] INFO o.t.g.s.update.DefaultUpdateService - New version 1.2.1 is available!

2017-07-09 02:12:20,135 [main] WARN o.t.g.service.MqttGatewayService - Failed to connect to Thingsboard!
org.eclipse.paho.client.mqttv3.MqttException: 已断开连接
at org.eclipse.paho.client.mqttv3.internal.CommsReceiver.run(CommsReceiver.java:164)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.EOFException: null
at java.io.DataInputStream.readByte(Unknown Source)
at org.eclipse.paho.client.mqttv3.internal.wire.MqttInputStream.readMqttWireMessage(MqttInputStream.java:92)
at org.eclipse.paho.client.mqttv3.internal.CommsReceiver.run(CommsReceiver.java:116)
... 1 common frames omitted
2017-07-09 02:12:24,158 [main] WARN o.t.g.service.MqttGatewayService - Failed to connect to Thingsboard!
org.eclipse.paho.client.mqttv3.MqttException: 已断开连接
at org.eclipse.paho.client.mqttv3.internal.CommsReceiver.run(CommsReceiver.java:164)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.EOFException: null
at java.io.DataInputStream.readByte(Unknown Source)
at org.eclipse.paho.client.mqttv3.internal.wire.MqttInputStream.readMqttWireMessage(MqttInputStream.java:92)
at org.eclipse.paho.client.mqttv3.internal.CommsReceiver.run(CommsReceiver.java:116)
... 1 common frames omitted

from opc-ua-samples.

awcullen avatar awcullen commented on May 23, 2024

Wow. Lets go back to the instructions here.

Make a new device named 'Gateway'
Check the IsGateway box.
Copy the AccessToken.

open \tb-gateway\conf\tb-gateway.yml
paste the accessToken.
save

net stop tb-gateway
net start tb-gateway

from opc-ua-samples.

Savoyyang avatar Savoyyang commented on May 23, 2024

1

from opc-ua-samples.

Savoyyang avatar Savoyyang commented on May 23, 2024

feel so bad ,still failed to connect to Thingsboard.

from opc-ua-samples.

awcullen avatar awcullen commented on May 23, 2024

Please share new tb-gateway.yml
and tb-gateway.log

from opc-ua-samples.

Savoyyang avatar Savoyyang commented on May 23, 2024

2017-07-09 02:58:38,387 [main] INFO o.t.gateway.GatewayApplication - Starting GatewayApplication v1.2.0 on DESKTOP-1JD0SQ9 with PID 4244 (C:\Users\Ү˳أ\Downloads\tb-gateway-windows-1.2\tb-gateway\lib\tb-gateway.jar started by DESKTOP-1JD0SQ9$ in C:\Users\Ү˳أ\Downloads\tb-gateway-windows-1.2\tb-gateway\conf)
2017-07-09 02:58:38,398 [main] INFO o.t.gateway.GatewayApplication - No active profile set, falling back to default profiles: default
2017-07-09 02:58:38,659 [main] INFO o.s.b.c.e.AnnotationConfigEmbeddedWebApplicationContext - Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@6adca536: startup date [Sun Jul 09 02:58:38 CST 2017]; root of context hierarchy
2017-07-09 02:58:38,817 [background-preinit] INFO o.h.validator.internal.util.Version - HV000001: Hibernate Validator 5.2.4.Final
2017-07-09 02:58:42,227 [main] INFO o.s.b.c.e.t.TomcatEmbeddedServletContainer - Tomcat initialized with port(s): 9090 (http)
2017-07-09 02:58:42,253 [main] INFO o.a.catalina.core.StandardService - Starting service Tomcat
2017-07-09 02:58:42,262 [main] INFO o.a.catalina.core.StandardEngine - Starting Servlet Engine: Apache Tomcat/8.5.6
2017-07-09 02:58:42,685 [localhost-startStop-1] INFO o.a.c.c.C.[Tomcat].[localhost].[/] - Initializing Spring embedded WebApplicationContext
2017-07-09 02:58:42,690 [localhost-startStop-1] INFO o.s.web.context.ContextLoader - Root WebApplicationContext: initialization completed in 4031 ms
2017-07-09 02:58:43,053 [localhost-startStop-1] INFO o.s.b.w.s.ServletRegistrationBean - Mapping servlet: 'dispatcherServlet' to [/]
2017-07-09 02:58:43,122 [localhost-startStop-1] INFO o.s.b.w.s.FilterRegistrationBean - Mapping filter: 'characterEncodingFilter' to: [/]
2017-07-09 02:58:43,123 [localhost-startStop-1] INFO o.s.b.w.s.FilterRegistrationBean - Mapping filter: 'hiddenHttpMethodFilter' to: [/
]
2017-07-09 02:58:43,130 [localhost-startStop-1] INFO o.s.b.w.s.FilterRegistrationBean - Mapping filter: 'httpPutFormContentFilter' to: [/]
2017-07-09 02:58:43,130 [localhost-startStop-1] INFO o.s.b.w.s.FilterRegistrationBean - Mapping filter: 'requestContextFilter' to: [/
]
2017-07-09 02:58:43,551 [main] INFO o.t.g.s.c.TbPersistenceConfiguration - Initializing file persistence using directory: storage
2017-07-09 02:58:44,963 [main] WARN o.t.g.service.MqttGatewayService - Failed to connect to Thingsboard!
org.eclipse.paho.client.mqttv3.MqttException: ӑ׏ߪlޓ
at org.eclipse.paho.client.mqttv3.internal.CommsReceiver.run(CommsReceiver.java:164)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.EOFException: null
at java.io.DataInputStream.readByte(Unknown Source)
at org.eclipse.paho.client.mqttv3.internal.wire.MqttInputStream.readMqttWireMessage(MqttInputStream.java:92)
at org.eclipse.paho.client.mqttv3.internal.CommsReceiver.run(CommsReceiver.java:116)
... 1 common frames omitted

from opc-ua-samples.

Savoyyang avatar Savoyyang commented on May 23, 2024

tb-gateway.yml.txt

from opc-ua-samples.

awcullen avatar awcullen commented on May 23, 2024

I don't know the differences, but there is a newer release of tb-gateway.
v 1.2.1 is available here: releases

from opc-ua-samples.

Savoyyang avatar Savoyyang commented on May 23, 2024

I found my mistake, the new version and old version conflict, so I uninstall the old version, install the new version,it success.I need to be more careful!
thank you very much!

from opc-ua-samples.

awcullen avatar awcullen commented on May 23, 2024

Now you are an Expert!

from opc-ua-samples.

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.