Coder Social home page Coder Social logo

Comments (4)

vapourismo avatar vapourismo commented on September 2, 2024

You need to provide a little bit more information than that.

Do you use a router or tunnel client?
Can you provide a more detailed example?
Have you brought this up with the ‘knx-virtual’ project?
Does ‘knx-virtual’ log any information before crashing?

I have not experienced any KNX device (or any software for that matter) crashing when used with this library.

from knx-go.

maarthala avatar maarthala commented on September 2, 2024

Thanks in advance. @vapourismo
Please let me know if you need any further information. I really appreciate your help.

Extra information:
I have setup HomeAssistant (https://www.home-assistant.io/) in IP 192.168.1.84 (Mac) and configured KNX Virtual. I am able to control the Switch without any issues.

I using Tunnel client
client, err := knx.NewGroupTunnel("192.168.1.21:3671", knx.DefaultTunnelConfig)

Can you provide a more detailed example?
Using KNX ETS i have setup a lamp and button with group "1/1/1". I am trying to control the switch using this package.
KNX Virtual installed in a separate windows box with IP 192.168.1.21.
Go/python code is running in mac with IP 192.168.1.84. They both are in the same network.

Have you brought this up with the ‘knx-virtual’ project?
Not yet. As this was working fine when used with Python and HomeAssistant.

Does ‘knx-virtual’ log any information before crashing?
No info before crashing but i found this in event log of windows.
Log Name: Application
Source: .NET Runtime
Date: 27/08/2020 12:05:49
Event ID: 1026
Task Category: None
Level: Error
Keywords: Classic
User: N/A
Computer: DESKTOP-8L3MTNC
Description:
Application: KNX Virtual.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Net.Sockets.SocketException
at System.Net.Sockets.Socket.Send(Byte[], Int32, Int32, System.Net.Sockets.SocketFlags)
at System.Net.Sockets.UdpClient.Send(Byte[], Int32, System.Net.IPEndPoint)
at KnxVirtualForm.MainForm.CoreService(Byte[])
at KnxVirtualForm.MainForm.ListenUdpClient(System.IAsyncResult)
at System.Net.LazyAsyncResult.Complete(IntPtr)
at System.Net.ContextAwareResult.CompleteCallback(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Net.ContextAwareResult.Complete(IntPtr)
at System.Net.LazyAsyncResult.ProtectedInvokeCallback(System.Object, IntPtr)
at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)
at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)

Event Xml:



1026
2
0
0x80000000000000

35913
Application
DESKTOP-8L3MTNC



Application: KNX Virtual.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.Net.Sockets.SocketException
at System.Net.Sockets.Socket.Send(Byte[], Int32, Int32, System.Net.Sockets.SocketFlags)
at System.Net.Sockets.UdpClient.Send(Byte[], Int32, System.Net.IPEndPoint)
at KnxVirtualForm.MainForm.CoreService(Byte[])
at KnxVirtualForm.MainForm.ListenUdpClient(System.IAsyncResult)
at System.Net.LazyAsyncResult.Complete(IntPtr)
at System.Net.ContextAwareResult.CompleteCallback(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Net.ContextAwareResult.Complete(IntPtr)
at System.Net.LazyAsyncResult.ProtectedInvokeCallback(System.Object, IntPtr)
at System.Net.Sockets.BaseOverlappedAsyncResult.CompletionPortCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)
at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32, UInt32, System.Threading.NativeOverlapped*)

from knx-go.

maarthala avatar maarthala commented on September 2, 2024

Here i am attaching Go code and ETS5 sample knx project as zip file.

knx.zip

from knx-go.

vapourismo avatar vapourismo commented on September 2, 2024

This seems like a KNX Virtual issue so far.

Can you provide network captures so we can look at the differences between xknx and this library?
Ideally something Wireshark-compatible.

from knx-go.

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.