Comments (24)
Yes I have.
The config file I used is:
When the Robot1 device is connected, it will look like this:
You can make a dashboard like this:
from opc-ua-samples.
I use losthost:8080 and The official account Tenant , so what's your tb-gateway.yml configuration?
from opc-ua-samples.
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.
I follow this instructions but failed,After the configuration isWindows:
net stop tb-gateway
net start tb-gateway
from opc-ua-samples.
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.
Of course, services and RobotServer on one computer
from opc-ua-samples.
Is there a tb-gateway.log ?
Maybe its time for a reboot :)
from opc-ua-samples.
from opc-ua-samples.
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.
Please share with us the tb-gateway.log
from opc-ua-samples.
Under the path just have tb-gateway.wrapper.log.
from opc-ua-samples.
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.
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.
net start thingsboard
from opc-ua-samples.
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.
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.
from opc-ua-samples.
feel so bad ,still failed to connect to Thingsboard.
from opc-ua-samples.
Please share new tb-gateway.yml
and tb-gateway.log
from opc-ua-samples.
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.
from opc-ua-samples.
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.
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.
Now you are an Expert!
from opc-ua-samples.
Related Issues (20)
- UWP app rebuild issue in Visual Studio 2015 HOT 2
- Can we send live data dump to Sql Server from PLC HOT 4
- Timing at application startup HOT 1
- Fetch Live data from method HOT 15
- Server certificate rejected HOT 2
- How to make these parameter can modify HOT 4
- [RobotApp] XAML Designer crashing caused by AlarmConditionToStringConverter (VS2017) HOT 5
- OPC UA Example of website HOT 6
- OPC UA samples for opc-ua client 2.0.0* prerelease HOT 8
- Get node id, node name (tag name) in data change notification HOT 4
- Get the nodeid corresponding to Tag name and vice versa HOT 6
- Keep checking if the opc server is connected HOT 1
- Node monitoring reliability HOT 4
- Unable to connect to RobotServer using ConsoleApp due to Certificate issue HOT 4
- How does the initial reconnect work? HOT 1
- Workstation.RobotApp Exception in Windows.UI.Xaml.dll code 0xc000027b HOT 1
- Why does this throw "LocalPrivateKey is null" HOT 2
- Wpf on .NET 5 HOT 1
- Workstation.RobotServer with MonitoringMode.Sampling
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opc-ua-samples.