GATEWAY: Serial Gateway is Not Responding



  • Hi everyone,
    My OS is Windows7 64 bit.
    When I run the Serial Gateway I get the message below:

    GATEWAY: Trying to connect...
    GATEWAY: Connected to port COM3 at 115200 bits/s
    GATEWAY: Trying to communicate...
    GATEWAY: Gateway is not responding.
    GATEWAY: Gateway is not responding.
    GATEWAY: Gateway is not responding.

    How to fix the problem?
    Thanks for help...


  • Contest Winner

    Hello @fahrettine,

    It looks like the image you've posted doesn't show on the forum. Can you please add this message in some form. People won't be able to help you without it.


  • Mod

    Selecting the error message and copying the text (as opposed to taking a screen shot) will be even more useful, since that makes the text searchable which can help others looking for help.



  • Hi guys,
    I couldn't resolve the problem yet... Any idea?
    Thanks...



  • If you open Arduino IDE, select COM3 and then open Serial Monitor, what do you see?



  • On Arduino Serial Monitor I get the result below. It seems OK...

    0;0;3;0;9;gateway started, id=0, parent=0, distance=0
    0;0;3;0;14;Gateway startup complete.

    When I run the MyNodes clicking on the "web.cmd" everything looks OK. I see the message below:

    Welcome to MyNodes.NET.
    Please configure the system in the web interface.

    Hosting environment: Production
    Now listening on: http://localhost:1312
    Application started. Press Ctrl+C to shut down.

    When I open the web interface and choose "Serial Gateway" and "Select" I get the messages below. Any idea about the problem? Could be the drivers? I use Arduino 1.6.5. Thanks for your help...

    fail: Microsoft.AspNet.Diagnostics.ExceptionHandlerMiddleware[0]
    An unhandled exception has occurred: Error -4081 ECANCELED operation canceled
    Microsoft.AspNet.Server.Kestrel.Networking.UvException: Error -4081 ECANCELED operation canceled
    konum: System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    konum: System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    konum: Microsoft.AspNet.Server.Kestrel.Http.SocketOutput.Microsoft.AspNet.Server.Kestrel.Http.ISocketOutput.Write(ArraySegment1 buffer, Boolean immediate) konum: Microsoft.AspNet.Server.Kestrel.Http.Frame.WriteChunked(ArraySegment1 data)
    konum: Microsoft.AspNet.Server.Kestrel.Http.Frame.Write(ArraySegment1 data) konum: Microsoft.AspNet.Server.Kestrel.Http.FrameResponseStream.Write(Byte[] buffer, Int32 offset, Int32 count) konum: Microsoft.AspNet.Mvc.HttpResponseStreamWriter.FlushInternal(Boolean flushStream, Boolean flushEncoder) konum: Microsoft.AspNet.Mvc.HttpResponseStreamWriter.Dispose(Boolean disposing) konum: System.IO.TextWriter.Dispose() konum: Microsoft.AspNet.Mvc.ViewFeatures.ViewExecutor.<ExecuteAsync>d__14.MoveNext() --- Özel durumun oluşturulduğu önceki konumdan başlayan yığın izlemesinin sonu --- konum: System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) konum: System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) konum: Microsoft.AspNet.Mvc.ViewResult.<ExecuteResultAsync>d__24.MoveNext() --- Özel durumun oluşturulduğu önceki konumdan başlayan yığın izlemesinin sonu --- konum: System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) konum: System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) konum: Microsoft.AspNet.Mvc.Controllers.FilterActionInvoker.<InvokeResultAsync>d__56.MoveNext() --- Özel durumun oluşturulduğu önceki konumdan başlayan yığın izlemesinin sonu --- konum: System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) konum: System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) konum: System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) konum: Microsoft.AspNet.Mvc.Controllers.FilterActionInvoker.<InvokeResultFilterAsync>d__55.MoveNext() --- Özel durumun oluşturulduğu önceki konumdan başlayan yığın izlemesinin sonu --- konum: Microsoft.AspNet.Mvc.Controllers.FilterActionInvoker.<InvokeAllResultFiltersAsync>d__54.MoveNext() --- Özel durumun oluşturulduğu önceki konumdan başlayan yığın izlemesinin sonu --- konum: System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) konum: System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) konum: System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) konum: Microsoft.AspNet.Mvc.Controllers.FilterActionInvoker.<InvokeResourceFilterAsync>d__49.MoveNext() --- Özel durumun oluşturulduğu önceki konumdan başlayan yığın izlemesinin sonu --- konum: Microsoft.AspNet.Mvc.Controllers.FilterActionInvoker.<InvokeAsync>d__44.MoveNext() --- Özel durumun oluşturulduğu önceki konumdan başlayan yığın izlemesinin sonu --- konum: System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) konum: System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) konum: Microsoft.AspNet.Mvc.Infrastructure.MvcRouteHandler.<RouteAsync>d__6.MoveNext() --- Özel durumun oluşturulduğu önceki konumdan başlayan yığın izlemesinin sonu --- konum: System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) konum: System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) konum: Microsoft.AspNet.Routing.Template.TemplateRoute.<RouteAsync>d__27.MoveNext() --- Özel durumun oluşturulduğu önceki konumdan başlayan yığın izlemesinin sonu --- konum: System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) konum: System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) konum: Microsoft.AspNet.Routing.RouteCollection.<RouteAsync>d__9.MoveNext() --- Özel durumun oluşturulduğu önceki konumdan başlayan yığın izlemesinin sonu --- konum: System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) konum: System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) konum: Microsoft.AspNet.Builder.RouterMiddleware.<Invoke>d__4.MoveNext() --- Özel durumun oluşturulduğu önceki konumdan başlayan yığın izlemesinin sonu --- konum: System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) konum: System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) konum: Microsoft.AspNet.Authentication.AuthenticationMiddleware1.<Invoke>d__18.MoveNext()
    --- Özel durumun oluşturulduğu önceki konumdan başlayan yığın izlemesinin sonu ---
    konum: Microsoft.AspNet.Authentication.AuthenticationMiddleware1.<Invoke>d__18.MoveNext() --- Özel durumun oluşturulduğu önceki konumdan başlayan yığın izlemesinin sonu --- konum: System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) konum: System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) konum: MyNodes.WebController.Startup.<<Configure>b__9_1>d.MoveNext() C:\Users\fahrettin\Desktop\MyNodes\approot\src\WebController\Startup.cs içinde: satır 166 --- Özel durumun oluşturulduğu önceki konumdan başlayan yığın izlemesinin sonu --- konum: System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) konum: System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) konum: Microsoft.AspNet.Diagnostics.StatusCodePagesMiddleware.<Invoke>d__3.MoveNext() --- Özel durumun oluşturulduğu önceki konumdan başlayan yığın izlemesinin sonu --- konum: System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) konum: System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) konum: Microsoft.AspNet.IISPlatformHandler.IISPlatformHandlerMiddleware.<Invoke>d__8.MoveNext() --- Özel durumun oluşturulduğu önceki konumdan başlayan yığın izlemesinin sonu --- konum: System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) konum: System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) konum: Microsoft.AspNet.Builder.Extensions.MapMiddleware.<Invoke>d__3.MoveNext() --- Özel durumun oluşturulduğu önceki konumdan başlayan yığın izlemesinin sonu --- konum: System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) konum: System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) konum: Microsoft.AspNet.Diagnostics.ExceptionHandlerMiddleware.<Invoke>d__6.MoveNext() fail: Microsoft.AspNet.Server.Kestrel[13] An unhandled exception was thrown by the application. Microsoft.AspNet.Server.Kestrel.Networking.UvException: Error -4081 ECANCELED operation canceled konum: System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) konum: System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) konum: Microsoft.AspNet.Server.Kestrel.Http.SocketOutput.Microsoft.AspNet.Server.Kestrel.Http.ISocketOutput.Write(ArraySegment1 buffer, Boolean immediate)
    konum: Microsoft.AspNet.Server.Kestrel.Http.Frame.WriteChunked(ArraySegment1 data) konum: Microsoft.AspNet.Server.Kestrel.Http.Frame.Write(ArraySegment1 data)
    konum: Microsoft.AspNet.Server.Kestrel.Http.FrameResponseStream.Write(Byte[] buffer, Int32 offset, Int32 count)
    konum: Microsoft.AspNet.Mvc.HttpResponseStreamWriter.FlushInternal(Boolean flushStream, Boolean flushEncoder)
    konum: Microsoft.AspNet.Mvc.HttpResponseStreamWriter.Dispose(Boolean disposing)
    konum: System.IO.TextWriter.Dispose()
    konum: Microsoft.AspNet.Mvc.ViewFeatures.ViewExecutor.<ExecuteAsync>d__14.MoveNext()
    --- Özel durumun oluşturulduğu önceki konumdan başlayan yığın izlemesinin sonu ---
    konum: System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    konum: System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    konum: Microsoft.AspNet.Mvc.ViewResult.<ExecuteResultAsync>d__24.MoveNext()
    --- Özel durumun oluşturulduğu önceki konumdan başlayan yığın izlemesinin sonu ---
    konum: System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    konum: System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    konum: Microsoft.AspNet.Mvc.Controllers.FilterActionInvoker.<InvokeResultAsync>d__56.MoveNext()
    --- Özel durumun oluşturulduğu önceki konumdan başlayan yığın izlemesinin sonu ---
    konum: System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    konum: System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    konum: System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
    konum: Microsoft.AspNet.Mvc.Controllers.FilterActionInvoker.<InvokeResultFilterAsync>d__55.MoveNext()
    --- Özel durumun oluşturulduğu önceki konumdan başlayan yığın izlemesinin sonu ---
    konum: Microsoft.AspNet.Mvc.Controllers.FilterActionInvoker.<InvokeAllResultFiltersAsync>d__54.MoveNext()
    --- Özel durumun oluşturulduğu önceki konumdan başlayan yığın izlemesinin sonu ---
    konum: System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    konum: System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    konum: System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
    konum: Microsoft.AspNet.Mvc.Controllers.FilterActionInvoker.<InvokeResourceFilterAsync>d__49.MoveNext()
    --- Özel durumun oluşturulduğu önceki konumdan başlayan yığın izlemesinin sonu ---
    konum: Microsoft.AspNet.Mvc.Controllers.FilterActionInvoker.<InvokeAsync>d__44.MoveNext()
    --- Özel durumun oluşturulduğu önceki konumdan başlayan yığın izlemesinin sonu ---
    konum: System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    konum: System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    konum: Microsoft.AspNet.Mvc.Infrastructure.MvcRouteHandler.<RouteAsync>d__6.MoveNext()
    --- Özel durumun oluşturulduğu önceki konumdan başlayan yığın izlemesinin sonu ---
    konum: System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    konum: System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    konum: Microsoft.AspNet.Routing.Template.TemplateRoute.<RouteAsync>d__27.MoveNext()
    --- Özel durumun oluşturulduğu önceki konumdan başlayan yığın izlemesinin sonu ---
    konum: System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    konum: System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    konum: Microsoft.AspNet.Routing.RouteCollection.<RouteAsync>d__9.MoveNext()
    --- Özel durumun oluşturulduğu önceki konumdan başlayan yığın izlemesinin sonu ---
    konum: System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    konum: System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    konum: Microsoft.AspNet.Builder.RouterMiddleware.<Invoke>d__4.MoveNext()
    --- Özel durumun oluşturulduğu önceki konumdan başlayan yığın izlemesinin sonu ---
    konum: System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    konum: System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    konum: Microsoft.AspNet.Authentication.AuthenticationMiddleware1.<Invoke>d__18.MoveNext() --- Özel durumun oluşturulduğu önceki konumdan başlayan yığın izlemesinin sonu --- konum: Microsoft.AspNet.Authentication.AuthenticationMiddleware1.<Invoke>d__18.MoveNext()
    --- Özel durumun oluşturulduğu önceki konumdan başlayan yığın izlemesinin sonu ---
    konum: System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    konum: System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    konum: MyNodes.WebController.Startup.<<Configure>b__9_1>d.MoveNext() C:\Users\fahrettin\Desktop\MyNodes\approot\src\WebController\Startup.cs içinde: satır 166
    --- Özel durumun oluşturulduğu önceki konumdan başlayan yığın izlemesinin sonu ---
    konum: System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    konum: System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    konum: Microsoft.AspNet.Diagnostics.StatusCodePagesMiddleware.<Invoke>d__3.MoveNext()
    --- Özel durumun oluşturulduğu önceki konumdan başlayan yığın izlemesinin sonu ---
    konum: System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    konum: System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    konum: Microsoft.AspNet.IISPlatformHandler.IISPlatformHandlerMiddleware.<Invoke>d__8.MoveNext()
    --- Özel durumun oluşturulduğu önceki konumdan başlayan yığın izlemesinin sonu ---
    konum: System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    konum: System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    konum: Microsoft.AspNet.Builder.Extensions.MapMiddleware.<Invoke>d__3.MoveNext()
    --- Özel durumun oluşturulduğu önceki konumdan başlayan yığın izlemesinin sonu ---
    konum: System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    konum: System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    konum: Microsoft.AspNet.Diagnostics.ExceptionHandlerMiddleware.<Invoke>d__6.MoveNext()
    --- Özel durumun oluşturulduğu önceki konumdan başlayan yığın izlemesinin sonu ---
    konum: Microsoft.AspNet.Diagnostics.ExceptionHandlerMiddleware.<Invoke>d__6.MoveNext()
    --- Özel durumun oluşturulduğu önceki konumdan başlayan yığın izlemesinin sonu ---
    konum: System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    konum: System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    konum: Microsoft.AspNet.Hosting.Internal.RequestServicesContainerMiddleware.<Invoke>d__3.MoveNext()
    --- Özel durumun oluşturulduğu önceki konumdan başlayan yığın izlemesinin sonu ---
    konum: System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    konum: System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    konum: Microsoft.AspNet.Hosting.Internal.HostingEngine.<>c__DisplayClass32_0.<<Start>b__0>d.MoveNext()
    --- Özel durumun oluşturulduğu önceki konumdan başlayan yığın izlemesinin sonu ---
    konum: System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    konum: System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    konum: Microsoft.AspNet.Server.Kestrel.Http.Frame.<RequestProcessingAsync>d__79.MoveNext()
    16.09.2016 20:37:07: SYSTEM: Connecting to database...
    16.09.2016 20:37:08: SYSTEM: Database connected.
    16.09.2016 20:37:40: SYSTEM: Connecting to gateway...
    16.09.2016 20:37:41: GATEWAY: Trying to connect...
    16.09.2016 20:37:41: GATEWAY: Connected to port COM3 at 115200 bits/s.
    16.09.2016 20:37:41: GATEWAY: Trying to communicate...
    16.09.2016 20:37:46: GATEWAY: Gateway is not responding.
    16.09.2016 20:37:51: GATEWAY: Gateway is not responding.
    16.09.2016 20:37:56: GATEWAY: Gateway is not responding.
    16.09.2016 20:38:01: GATEWAY: Gateway is not responding.
    16.09.2016 20:38:06: GATEWAY: Gateway is not responding.
    16.09.2016 20:38:11: GATEWAY: Gateway is not responding.
    16.09.2016 20:38:16: GATEWAY: Gateway is not responding.
    16.09.2016 20:38:21: GATEWAY: Gateway is not responding.
    16.09.2016 20:38:26: GATEWAY: Gateway is not responding.
    16.09.2016 20:38:31: GATEWAY: Gateway is not responding.
    16.09.2016 20:38:40: GATEWAY: Gateway is not responding.
    1
    ---------------Bu after starting the web interface the result is same:


Log in to reply
 

Suggested Topics

22
Online

11.4k
Users

11.1k
Topics

112.7k
Posts