连接Dots Gateway.exe问题 - 在Windows 8.1上运行 [英] Connect The Dots Gateway.exe Issues - Running on Windows 8.1

查看:103
本文介绍了连接Dots Gateway.exe问题 - 在Windows 8.1上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Connectthedots.io示例,并在我的Windows 8.1计算机上运行gateway.exe程序。我使用声音计示例中的代码设置了一个虚设备(https://github.com/MSOpenTech/connectthedots/blob/master/Devices/GatewayConnectedDevices/BtUSB_2_BtUART_Example/BtUSB_2_BtUART_Example.py),
虽然替换了从生成的随机值(random.randint)读取USB。

I am attempting to use the Connectthedots.io example, and am running the gateway.exe program on my windows 8.1 machine. I have set up a dummy device using the code from the sound meter example (https://github.com/MSOpenTech/connectthedots/blob/master/Devices/GatewayConnectedDevices/BtUSB_2_BtUART_Example/BtUSB_2_BtUART_Example.py), although replacing the reads from the USB with a random value generated (random.randint).

我运行gateway.exe,然后运行虚拟传感器python脚本。虚拟传感器脚本表示它已连接到套接字并将JSON数据发送到套接字。网关无法识别它,并在日志文件中提供此错误。

I run the gateway.exe, and then I run the dummy sensor python script after. The dummy sensor script says that it has connected to the socket and is sending the JSON data to the socket. The gateway does not recognize it, and is giving this errors in the logfile.

2015-06-03 10:55:16.8137错误错误on lock:{" ClassName":" System.AggregateException"," Message":""发生了一个或多个错误。","数据":null,"InnerException":{" NativeErrorCode": 11001,"ClassName":"System.Net.Sockets.SocketException","Message":"No
这样的主机是已知的","数据":null,"InnerException":null, " HELPURL":空," StackTraceString":"  在System.Net.Dns.GetAddrInfo(字符串名称)\ r \ n  在System.Net.Dns.InternalGetHostByName(String
hostName,Boolean includeIPv6)\\ nn  在System.Net.Dns.GetHostEntry(String hostNameOrAddress)\ r \ n  在Amqp.TcpTransport。< ConnectAsync> d__5.MoveNext()"," RemoteStackTraceString":null," RemoteStackIndex":0," ExceptionMethod":" 8'\
GetAddrInfo \ nSystem,
Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089\\\
System.Net.Dns\\\
System.Net.IPHostEntry GetAddrInfo(System.String)"," HResult": - 2147467259," Source":" ;系统"," WatsonBuckets"日期null}," HELPURL":空," StackTraceString":"&NBSP;&NBSP;
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)\ r \ n   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout,CancellationToken cancellationToken)\\\\ n  在System.Threading.Tasks.Task.Wait()\\ nn   Amqp.TcpTransport.Connect上的
(连接连接,地址,布尔值noVerification)\\ n  在Amqp.Connection.Connect(SaslProfile saslProfile,Open open)\\ n  在Amqp.Connection..ctor(地址,SaslProfile saslProfile,打开
打开,OnOpened onOpened)\\\\ n   at Amqp.Connection..ctor(地址)\\ n  在Microsoft的.ConnectTheDots.Gateway.AMQPSender`1.ReliableSender.EstablishSender()in c:\\Users\\Cameron \\Desktop \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ Gateways\\GatewayService \\ Gateway \\Utils\\ MessageSender \\AMQPSender.cs:line
129","RemoteStackTraceString":null," RemoteStackIndex":0 ,"ExceptionMethod":" 8'\
ThrowIfExceptional\\\
mscorlib,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089\\\
System.Threading.Tasks.Task\\\
Void ThrowIfExceptional(Boolean)","的HResult": - 2146233088,"来源":" mscorlib程序"," WatsonBuckets":空," InnerExceptions":[{" NativeErrorCode":11001,"的ClassName":"的System.Net.Sockets。 SocketException"," Message":" No
此类主机已知","数据":null,"InnerException":null," Hel的pURL":空," StackTraceString":"&NBSP;&NBSP;在System.Net.Dns.GetAddrInfo(字符串名称)\ r \ n  在System.Net.Dns.InternalGetHostByName(String
hostName,Boolean includeIPv6)\\ nn  在System.Net.Dns.GetHostEntry(String hostNameOrAddress)\ r \ n  在Amqp.TcpTransport。< ConnectAsync> d__5.MoveNext()"," RemoteStackTraceString":null," RemoteStackIndex":0," ExceptionMethod":" 8'\
GetAddrInfo \ nSystem,
Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089\\\
System.Net.Dns\\\
System.Net.IPHostEntry GetAddrInfo(System.String)"," HResult": - 2147467259," Source":" ; System"," WatsonBuckets":null}]}
$
2015-06-03 10:55:16.8414 ERROR sendObject引用上的异常未设置为对象的实例。

2015-06-03 10:55:16.8999 ERROR锁定错误:{" ClassName":" System.AggregateException"," Message":"发生了一个或多个错误。","数据" ;:null,"InnerException":{" NativeErrorCode":11001," ClassName":" System.Net.Sockets.SocketException"," Message":" No
this host is known" ,"数据":空," InnerExc主器件接收":空," HELPURL":空," StackTraceString":"&NBSP;&NBSP;在System.Net.Dns.GetAddrInfo(字符串名称)\ r \ n  在System.Net.Dns.InternalGetHostByName(String
hostName,Boolean includeIPv6)\\ nn  在System.Net.Dns.GetHostEntry(String hostNameOrAddress)\ r \ n  在Amqp.TcpTransport。< ConnectAsync> d__5.MoveNext()"," RemoteStackTraceString":null," RemoteStackIndex":0," ExceptionMethod":" 8'\
GetAddrInfo \ nSystem,
Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089\\\
System.Net.Dns\\\
System.Net.IPHostEntry GetAddrInfo(System.String)"," HResult": - 2147467259," Source":" ;系统"," WatsonBuckets"日期null}," HELPURL":空," StackTraceString":"&NBSP;&NBSP;
at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)\ r \ n   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout,CancellationToken cancellationToken)\\\\ n  在System.Threading.Tasks.Task.Wait()\\ nn   Amqp.TcpTransport.Connect上的
(连接连接,地址,布尔值noVerification)\\ n  在Amqp.Connection.Connect(SaslProfile saslProfile,Open open)\\ n  在Amqp.Connection..ctor(地址,SaslProfile saslProfile,打开
打开,OnOpened onOpened)\\\\ n   at Amqp.Connection..ctor(地址)\\ n  在Microsoft的.ConnectTheDots.Gateway.AMQPSender`1.ReliableSender.EstablishSender()in c:\\Users\\Cameron \\Desktop \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ Gateways\\GatewayService \\ Gateway \\Utils\\ MessageSender \\AMQPSender.cs:line
129","RemoteStackTraceString":null," RemoteStackIndex":0 ,"ExceptionMethod":" 8'\
ThrowIfExceptional\\\
mscorlib,Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089\\\
System.Threading.Tasks.Task\\\
Void ThrowIfExceptional(Boolean)","的HResult": - 2146233088,"来源":" mscorlib程序"," WatsonBuckets":空," InnerExceptions":[{" NativeErrorCode":11001,"的ClassName":"的System.Net.Sockets。 SocketException"," Message":" No
此类主机已知","数据":null,"InnerException":null," Hel的pURL":空," StackTraceString":"&NBSP;&NBSP;在System.Net.Dns.GetAddrInfo(字符串名称)\ r \ n  在System.Net.Dns.InternalGetHostByName(String
hostName,Boolean includeIPv6)\\ nn  在System.Net.Dns.GetHostEntry(String hostNameOrAddress)\ r \ n  在Amqp.TcpTransport。< ConnectAsync> d__5.MoveNext()"," RemoteStackTraceString":null," RemoteStackIndex":0," ExceptionMethod":" 8'\
GetAddrInfo \ nSystem,
Version = 4.0.0.0,Culture = neutral,PublicKeyToken = b77a5c561934e089\\\
System.Net.Dns\\\
System.Net.IPHostEntry GetAddrInfo(System.String)"," HResult": - 2147467259," Source":" ; System"," WatsonBuckets":null}]}
$
2015-06-03 10:55:16.9280错误对sendObject引用的异常未设置为对象的实例。

2015-06-03 10:55:16.9553错误任务中的异常:   在Microsoft的.ConnectTheDots.Gateway.AMQPSender`1.SendAmqpMessage(消息m)在c:\ Users \Cameron \Desktop\connectthedots-master \Devices \ Gateways\GatewayService \ Gateway \ Utils \ MessageSender\AMQPSender.cs:行
355

  在Microsoft.ConnectTheDots.Gateway.AMQPSender`1。< PrepareAndSend> b__0(消息m)在c:\ Users \Cameron \Desktop\connectthedots-master \Devices \ Gateways\GatewayService \ Gateway \\ \\ Utils\MessageSender \AMQPSender.cs:第324行

  在Microsoft的.ConnectTheDots.Common.SafeAction`1.SafeInvoke(TParam obj)中的c:\ Users\Cameron \Desktop\connectthedots-master \Devices \ Gateways\GatewayService \ Common \ SafeAction.cs :line 48

2015-06-03 10:55:16.9553 ERROR任务中的消息:对象引用未设置为对象的实例。

2015-06-03 10:55:16.8137 ERROR Error on lock: {"ClassName":"System.AggregateException","Message":"One or more errors occurred.","Data":null,"InnerException":{"NativeErrorCode":11001,"ClassName":"System.Net.Sockets.SocketException","Message":"No such host is known","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":"   at System.Net.Dns.GetAddrInfo(String name)\r\n   at System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6)\r\n   at System.Net.Dns.GetHostEntry(String hostNameOrAddress)\r\n   at Amqp.TcpTransport.<ConnectAsync>d__5.MoveNext()","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":"8\nGetAddrInfo\nSystem, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\nSystem.Net.Dns\nSystem.Net.IPHostEntry GetAddrInfo(System.String)","HResult":-2147467259,"Source":"System","WatsonBuckets":null},"HelpURL":null,"StackTraceString":"   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)\r\n   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)\r\n   at System.Threading.Tasks.Task.Wait()\r\n   at Amqp.TcpTransport.Connect(Connection connection, Address address, Boolean noVerification)\r\n   at Amqp.Connection.Connect(SaslProfile saslProfile, Open open)\r\n   at Amqp.Connection..ctor(Address address, SaslProfile saslProfile, Open open, OnOpened onOpened)\r\n   at Amqp.Connection..ctor(Address address)\r\n   at Microsoft.ConnectTheDots.Gateway.AMQPSender`1.ReliableSender.EstablishSender() in c:\\Users\\Cameron\\Desktop\\connectthedots-master\\Devices\\Gateways\\GatewayService\\Gateway\\Utils\\MessageSender\\AMQPSender.cs:line 129","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":"8\nThrowIfExceptional\nmscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\nSystem.Threading.Tasks.Task\nVoid ThrowIfExceptional(Boolean)","HResult":-2146233088,"Source":"mscorlib","WatsonBuckets":null,"InnerExceptions":[{"NativeErrorCode":11001,"ClassName":"System.Net.Sockets.SocketException","Message":"No such host is known","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":"   at System.Net.Dns.GetAddrInfo(String name)\r\n   at System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6)\r\n   at System.Net.Dns.GetHostEntry(String hostNameOrAddress)\r\n   at Amqp.TcpTransport.<ConnectAsync>d__5.MoveNext()","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":"8\nGetAddrInfo\nSystem, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\nSystem.Net.Dns\nSystem.Net.IPHostEntry GetAddrInfo(System.String)","HResult":-2147467259,"Source":"System","WatsonBuckets":null}]}
2015-06-03 10:55:16.8414 ERROR Exception on sendObject reference not set to an instance of an object.
2015-06-03 10:55:16.8999 ERROR Error on lock: {"ClassName":"System.AggregateException","Message":"One or more errors occurred.","Data":null,"InnerException":{"NativeErrorCode":11001,"ClassName":"System.Net.Sockets.SocketException","Message":"No such host is known","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":"   at System.Net.Dns.GetAddrInfo(String name)\r\n   at System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6)\r\n   at System.Net.Dns.GetHostEntry(String hostNameOrAddress)\r\n   at Amqp.TcpTransport.<ConnectAsync>d__5.MoveNext()","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":"8\nGetAddrInfo\nSystem, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\nSystem.Net.Dns\nSystem.Net.IPHostEntry GetAddrInfo(System.String)","HResult":-2147467259,"Source":"System","WatsonBuckets":null},"HelpURL":null,"StackTraceString":"   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)\r\n   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)\r\n   at System.Threading.Tasks.Task.Wait()\r\n   at Amqp.TcpTransport.Connect(Connection connection, Address address, Boolean noVerification)\r\n   at Amqp.Connection.Connect(SaslProfile saslProfile, Open open)\r\n   at Amqp.Connection..ctor(Address address, SaslProfile saslProfile, Open open, OnOpened onOpened)\r\n   at Amqp.Connection..ctor(Address address)\r\n   at Microsoft.ConnectTheDots.Gateway.AMQPSender`1.ReliableSender.EstablishSender() in c:\\Users\\Cameron\\Desktop\\connectthedots-master\\Devices\\Gateways\\GatewayService\\Gateway\\Utils\\MessageSender\\AMQPSender.cs:line 129","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":"8\nThrowIfExceptional\nmscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\nSystem.Threading.Tasks.Task\nVoid ThrowIfExceptional(Boolean)","HResult":-2146233088,"Source":"mscorlib","WatsonBuckets":null,"InnerExceptions":[{"NativeErrorCode":11001,"ClassName":"System.Net.Sockets.SocketException","Message":"No such host is known","Data":null,"InnerException":null,"HelpURL":null,"StackTraceString":"   at System.Net.Dns.GetAddrInfo(String name)\r\n   at System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6)\r\n   at System.Net.Dns.GetHostEntry(String hostNameOrAddress)\r\n   at Amqp.TcpTransport.<ConnectAsync>d__5.MoveNext()","RemoteStackTraceString":null,"RemoteStackIndex":0,"ExceptionMethod":"8\nGetAddrInfo\nSystem, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089\nSystem.Net.Dns\nSystem.Net.IPHostEntry GetAddrInfo(System.String)","HResult":-2147467259,"Source":"System","WatsonBuckets":null}]}
2015-06-03 10:55:16.9280 ERROR Exception on sendObject reference not set to an instance of an object.
2015-06-03 10:55:16.9553 ERROR Exception in task:    at Microsoft.ConnectTheDots.Gateway.AMQPSender`1.SendAmqpMessage(Message m) in c:\Users\Cameron\Desktop\connectthedots-master\Devices\Gateways\GatewayService\Gateway\Utils\MessageSender\AMQPSender.cs:line 355
   at Microsoft.ConnectTheDots.Gateway.AMQPSender`1.<PrepareAndSend>b__0(Message m) in c:\Users\Cameron\Desktop\connectthedots-master\Devices\Gateways\GatewayService\Gateway\Utils\MessageSender\AMQPSender.cs:line 324
   at Microsoft.ConnectTheDots.Common.SafeAction`1.SafeInvoke(TParam obj) in c:\Users\Cameron\Desktop\connectthedots-master\Devices\Gateways\GatewayService\Common\SafeAction.cs:line 48
2015-06-03 10:55:16.9553 ERROR Message in task: Object reference not set to an instance of an object.

任何人都知道为什么这不起作用?是因为窗户有些不兼容吗?因为我没有修改C#网关代码。

Anybody have any clue as to why this is not working? Is it due to some incompatibility on windows? Because I have not modified the C# gateway code whatsoever.

谢谢

推荐答案

如果没有深入理解此代码,很明显您的日志显示主机未找到错误。这由错误代码11001和消息"没有这样的主机是已知的"表示。

Without getting too deeply into understanding this code it is apparent that your log is showing a host not found error. This is indicated by both the error code 11001 and the message "no such host is known".

你可能比我更熟悉这个代码,你知道它是否试图按名称打开一个主机的套接字?

You are likely more familiar with this code than I so do you know if it is trying to open a socket to a host by name?

您是否已将调试器附加到gateway.exe?我会在这个文件中放一个断点:$ b​​ $ b
AMQPSender.cs
 在第117行的EstablishSender某处。

Have you attached a debugger to the gateway.exe? I would be putting a breakpoint in this file: AMQPSender.cs somewhere in EstablishSender at line 117.


这篇关于连接Dots Gateway.exe问题 - 在Windows 8.1上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆