Was steht denn bei dir in connectorParameters drin?
Ankündigung
Einklappen
Keine Ankündigung bisher.
falcon sdk 6.0.2 und knx secure (IP Tunnel): User login failed
Einklappen
X
-
Zitat von Klaus Gütter Beitrag anzeigenWas steht denn bei dir in connectorParameters drin?Code:10:52:49,328 INFO DotnetCoreConsoleSample.Program IpTunnelingConnectorParameters for Interface 1 (from discovery): { "IndividualAddress": null, "FallbackToAnyIndividualAddress": false, "Type": 1, "HostAddress": "192.168.1.235", "SerialNumber": {}, "MacAddress": {}, "IpPort": 3671, "ProtocolType": 2, "UseNat": true, "SupportsSecurity": true, "IsSecure": false, "UserId": 1, "UserPasswordHash": { "Length": 16 }, "DeviceAuthenticationCodeHash": null, "Name": "SCN-IP100.03 IP Router with Se", "AutoReconnect": false } 10:52:49,339 INFO DotnetCoreConsoleSample.Program IpTunnelingConnectorParameters for Interface 2 (from discovery): { "IndividualAddress": { "AreaAddress": 1, "LineAddress": 1, "DeviceAddress": 1, "FullAddress": 4353, "SubnetAddress": 4352 }, "FallbackToAnyIndividualAddress": false, "Type": 1, "HostAddress": "192.168.1.235", "SerialNumber": {}, "MacAddress": {}, "IpPort": 3671, "ProtocolType": 2, "UseNat": true, "SupportsSecurity": true, "IsSecure": false, "UserId": 1, "UserPasswordHash": { "Length": 16 }, "DeviceAuthenticationCodeHash": null, "Name": "SCN-IP100.03 IP Router with Se", "AutoReconnect": false } 10:52:49,343 INFO DotnetCoreConsoleSample.Program IpTunnelingConnectorParameters for Interface 3 (from discovery): { "IndividualAddress": { "AreaAddress": 1, "LineAddress": 1, "DeviceAddress": 2, "FullAddress": 4354, "SubnetAddress": 4352 }, "FallbackToAnyIndividualAddress": false, "Type": 1, "HostAddress": "192.168.1.235", "SerialNumber": {}, "MacAddress": {}, "IpPort": 3671, "ProtocolType": 2, "UseNat": true, "SupportsSecurity": true, "IsSecure": false, "UserId": 1, "UserPasswordHash": { "Length": 16 }, "DeviceAuthenticationCodeHash": null, "Name": "SCN-IP100.03 IP Router with Se", "AutoReconnect": false } 10:52:49,347 INFO DotnetCoreConsoleSample.Program IpTunnelingConnectorParameters for Interface 4 (from discovery): { "IndividualAddress": { "AreaAddress": 1, "LineAddress": 1, "DeviceAddress": 3, "FullAddress": 4355, "SubnetAddress": 4352 }, "FallbackToAnyIndividualAddress": false, "Type": 1, "HostAddress": "192.168.1.235", "SerialNumber": {}, "MacAddress": {}, "IpPort": 3671, "ProtocolType": 2, "UseNat": true, "SupportsSecurity": true, "IsSecure": false, "UserId": 1, "UserPasswordHash": { "Length": 16 }, "DeviceAuthenticationCodeHash": null, "Name": "SCN-IP100.03 IP Router with Se", "AutoReconnect": false } 10:52:49,362 INFO DotnetCoreConsoleSample.Program IpTunnelingConnectorParameters for Interface 5 (from discovery): { "IndividualAddress": { "AreaAddress": 1, "LineAddress": 1, "DeviceAddress": 4, "FullAddress": 4356, "SubnetAddress": 4352 }, "FallbackToAnyIndividualAddress": false, "Type": 1, "HostAddress": "192.168.1.235", "SerialNumber": {}, "MacAddress": {}, "IpPort": 3671, "ProtocolType": 2, "UseNat": true, "SupportsSecurity": true, "IsSecure": false, "UserId": 1, "UserPasswordHash": { "Length": 16 }, "DeviceAuthenticationCodeHash": null, "Name": "SCN-IP100.03 IP Router with Se", "AutoReconnect": false } 1: SCN-IP100.03 IP Router with Se 192.168.1.235 2: SCN-IP100.03 IP Router with Se 192.168.1.235 (1.1.1) 3: SCN-IP100.03 IP Router with Se 192.168.1.235 (1.1.2) 4: SCN-IP100.03 IP Router with Se 192.168.1.235 (1.1.3) 5: SCN-IP100.03 IP Router with Se 192.168.1.235 (1.1.4)
Kommentar
-
Das hier verwundert mich etwas... vielleicht aber auch einfach nur ein Json Serialization Problem, muss ich mir noch genauer anschauen.
Code:11:14:00,316 INFO Program IpDeviceDiscoveryResult 1: SCN-IP100.03 IP Router with Se >>> ConnectionString: Type=IpTunneling;HostAddress=192.168.1.235;SerialN umber=0083:7740012D;MacAddress=CC1BE080802E;Protoc olType=Tcp;UseNat=True;Name="SCN-IP100.03 IP Router with Se" 11:14:00,353 INFO Program IpDeviceDiscoveryResult 1 supports IP Tunneling, show IpTunnelingConnectorParameters: { "IndividualAddress": null, "FallbackToAnyIndividualAddress": false, "Type": 1, "HostAddress": "192.168.1.235", "SerialNumber": {}, "MacAddress": {}, "IpPort": 3671, "ProtocolType": 2, "UseNat": true, "SupportsSecurity": true, "IsSecure": false, "RequiresSecurity": true, "UserId": 1, "UserPasswordHash": { "Length": 16 }, "DeviceAuthenticationCodeHash": null, "Name": "SCN-IP100.03 IP Router with Se", "AutoReconnect": false, "PromiscuousMode": false }
Wenn ich mir dazu den ConnectionString anschaue bekomme ich eine MAC Adresse und eine Seriennummer.
Code:string connectionString = ip.ToConnectionString();
Code:IpTunnelingConnectorParameters connectorParameter = IpTunnelingConnectorParameters.FromDiscovery(ip);
Code:IpTunnelingConnectorParameters x = ConnectorParameters.FromConnectionString(connectionString, password) as IpTunnelingConnectorParameters;
Wie wird denn das Matching zwischen Connection (ConnectorParameters) und keyring file gemacht? IndividualAddress?Zuletzt geändert von naym; 14.01.2023, 14:58.
Kommentar
-
Wenn du eine sichere Tunneling-Verbindung aufbauen willst, musst in den Connector-Parametern, vor dem Laden der Keyring-Datei die IndividualAddress gesetzt sein; sonst weiß der Falcon ja nicht, welches Passwort er nehmen soll. Also nimm nicht gerade die erste gemeldete Schnittstelle (bei der diese Info fehlt).
- Likes 1
Kommentar
-
Zitat von Klaus Gütter Beitrag anzeigenWenn du eine sichere Tunneling-Verbindung aufbauen willst, musst in den Connector-Parametern, vor dem Laden der Keyring-Datei die IndividualAddress gesetzt sein; sonst weiß der Falcon ja nicht, welches Passwort er nehmen soll. Also nimm nicht gerade die erste gemeldete Schnittstelle (bei der diese Info fehlt).
Ich habe jetzt die Connection mit IndividualAddress 1.1.1 genommen.
Und es hat sich was geändert... und jetzt schickt er das SECURE_WRAPPER request (s.u.) auch selbständig mit UserId=3
Code:[14:24:49 INF] Found 1 IP devices which support Tunneling v1 [14:24:49 DBG] mc:224.0.23.12 (closed) client closed, exiting [14:24:49 INF] Found 5 interfaces/connections for all discovered IP devices with Tunneling v1 support: [14:24:49 INF] ->> SCN-IP100.03 IP Router with Se 192.168.1.235 UserId:1 [14:24:49 INF] ->> SCN-IP100.03 IP Router with Se 192.168.1.235 UserId:1 (1.1.1) [14:24:49 INF] ->> SCN-IP100.03 IP Router with Se 192.168.1.235 UserId:1 (1.1.2) [14:24:49 INF] ->> SCN-IP100.03 IP Router with Se 192.168.1.235 UserId:1 (1.1.3) [14:24:49 INF] ->> SCN-IP100.03 IP Router with Se 192.168.1.235 UserId:1 (1.1.4) [14:24:49 INF] Load KNX keyring: allInterfaces.knxkeys. [B][14:24:50 INF] Found matching security information in keyring: YES![/B] ...
Mit dem Bus kann ich mich aber leider nach wie vor nicht verbinden.
Code:[14:30:14 DBG] Send(tcp:[::ffff:192.168.1.235]:3671): SECURE_WRAPPER ssid=0001 seq=000000000000 ser=00FA:F388DA8E tag=0000 inner=SESSION_AUTHENTICATE [B]UserId=03[/B] Mac=5D28091B6E4E4BAFD14DC17E56153977 isAuth=True [14:30:14 DBG] tcp:[::ffff:192.168.1.235]:3671 EndRead: 06100950002E000100000000000100837740012D000008113A 97026993C6B5BEBF7F6D4DFBB698CA7330A0348A10 [14:30:14 DBG] Receive(tcp:[::ffff:192.168.1.235]:3671): SECURE_WRAPPER ssid=0001 seq=000000000001 ser=0083:7740012D tag=0000 inner=null isAuth=False [14:30:14 DBG] received SECURE_WRAPPER ssid=0001 seq=000000000001 ser=0083:7740012D tag=0000 inner=SESSION_STATUS Status=STATUS_AUTHENTICATION_FAILED isAuth=True from [::ffff:192.168.1.235]:3671 [B][14:30:14 INF] Received SESSION_STATUS of secure session 0x1: STATUS_AUTHENTICATION_FAILED[/B] [14:30:14 DBG] tcp:null client closed, exiting [14:30:14 FTL] Unable to connect to the KNX bus. Knx.Falcon.KnxIpUnicastConnectorException: User login failed at au.a(IpDeviceDiscoveryResult A_0, CancellationToken A_1) at au.a(ap A_0, IpUnicastConnectorParameters A_1, IpDeviceDiscoveryResult A_2, ServiceFamily A_3, Func`4 A_4, hs A_5, CancellationToken A_6) at i2.a(IpTunnelingConnectorParameters A_0, ConnectorMode A_1, ap A_2, IpDeviceDiscoveryResult A_3, TimeSpan A_4, TimeSpan A_5, TimeSpan A_6, TimeSpan A_7, CancellationToken A_8, Func`4 A_9, hs A_10) at i2.a(IpTunnelingConnectorParameters A_0, ConnectorMode A_1, CancellationToken A_2, hs A_3) at i2.a(IpTunnelingConnectorParameters A_0, ConnectorMode A_1, CancellationToken A_2, hs A_3) at h8.a(ConnectorParameters A_0, ConnectorMode A_1, CancellationToken A_2, hs A_3) at h8.b(ConnectorParameters A_0, ConnectorMode A_1, CancellationToken A_2, hs A_3) at d.a(ConnectorMode A_0, CancellationToken A_1) at Worker.ExecuteAsync(CancellationToken stoppingToken) in D:\ws\knx.data.worker\Worker.cs:line 32
Kommentar
-
Zitat von Klaus Gütter Beitrag anzeigenWenn das Keyring-File definitiv aus dem selben Projektstand stammt, mit dem die IP-Schnittstelle geladen wurde und du dich beim Keyring-Passwort definitiv nicht vertan hast, weiß ich auch nicht weiter.Zitat von meti Beitrag anzeigenSiehe erste Antwort dieses Threads 😉
Mit der ETS geht es halt... vielleicht muss ich mal schauen ob ich da nicht über eine geeignete log4net Konfiguration noch ein paar Infos aus der ETS heraus bekomme.
Zitat von meti Beitrag anzeigenHast du eine andere Schnittstelle mit der dus probieren kannst? Wenn nicht, kannst du deinen Code sharen - ich kanns ja mal mit ner anderen versuchen wenn ichs zum Laufen bringe... 😬
Leider nein, kein anderes Interface zur Hand. Wäre super wenn Du es probieren könntest. Dann muss ich es aber noch bisschen (konfigurierbarer/interaktiver) umbauen (EDIT: oder du nennst mir keyring filename, keyring passwd und die individual address der connection die ich verwenden soll)Zuletzt geändert von naym; 15.01.2023, 16:59.
Kommentar
-
Zitat von Klaus Gütter Beitrag anzeigenWäre noch interessant, ob du zum Programmieren und Keyring-Export die aktuelle ETS 6.0.6 benutzt hast
Kommentar
-
Genau.
Auszug aus dem ETS 5 log.. da ist natürlich noch das alte Falcon SDK verbaut... I can see hex everywhere.
Hier rufe ich gerade das "Bus" Tab in der ETS auf. Interessant ist auf jeden Fall der Fehler am Ende!
Code:DEBUG Knx.Falcon.KnxIp.MulticastCommunication - Start MulticastCommunication on 192.168.1.253:0 -> IsLinux: False DEBUG Knx.Falcon.KnxIp.MulticastCommunication - Started Multicast 224.0.23.12 (local: 192.168.1.253:53304); joined 224.0.23.12 DEBUG Falcon.KnxIp.Discovery.DiscoveryClient - Discovery: Send alc: $06 $10 $02 $0B $00 $16 $08 $01 $C0 $A8 $01 $FD $D0 $38 $08 $04 $01 $02 $08 $06 $07 $00 targetAddress: 224.0.23.12 targetPort: 3671 DEBUG Knx.Falcon.KnxIp.MulticastCommunication - Send(Multicast 224.0.23.12 (local: 192.168.1.253:53304)): 06 10 02 0b 00 16 08 01 c0 a8 01 fd d0 38 08 04 01 02 08 06 07 00 DEBUG Falcon.KnxIp.Discovery.DiscoveryClient - Discovery: Send alc: $06 $10 $02 $01 $00 $0E $08 $01 $C0 $A8 $01 $FD $D0 $38 targetAddress: 224.0.23.12 targetPort: 3671 DEBUG Knx.Falcon.KnxIp.MulticastCommunication - Send(Multicast 224.0.23.12 (local: 192.168.1.253:53304)): 06 10 02 01 00 0e 08 01 c0 a8 01 fd d0 38 DEBUG Knx.Falcon.KnxIp.MulticastCommunication - Multicast 224.0.23.12 (local: 192.168.1.253:53304) EndReceive: 06 10 02 0c 00 a8 08 01 c0 a8 01 eb 0e 57 36 01 02 00 11 00 00 00 00 83 77 40 01 2d e0 00 17 0c cc 1b e0 80 80 2e 53 43 4e 2d 49 50 31 30 30 2e 30 33 20 49 50 20 52 6f 75 74 65 72 20 77 69 74 68 20 53 65 0e 02 02 02 03 02 04 02 05 02 07 02 09 01 08 08 00 00 00 f0 09 1a 10 03 c0 a8 b2 02 ff ff ff 00 c0 a8 b2 01 01 04 14 04 c0 a8 01 eb ff ff ff 00 c0 a8 01 01 00 00 00 00 04 00 0c 05 11 00 11 01 11 02 11 03 11 04 0a 06 03 01 04 01 05 01 06 5f 14 07 00 f0 11 01 00 00 11 02 00 00 11 03 00 00 11 04 00 00 DEBUG Falcon.KnxIp.Discovery.DiscoveryClient - Discovery: Received bytes $06, $10, $02, $0c, $00, $a8, $08, $01, $c0, $a8, $01, $eb, $0e, $57, $36, $01, $02, $00, $11, $00, $00, $00, $00, $83, $77, $40, $01, $2d, $e0, $00, $17, $0c, $cc, $1b, $e0, $80, $80, $2e, $53, $43, $4e, $2d, $49, $50, $31, $30, $30, $2e, $30, $33, $20, $49, $50, $20, $52, $6f, $75, $74, $65, $72, $20, $77, $69, $74, $68, $20, $53, $65, $0e, $02, $02, $02, $03, $02, $04, $02, $05, $02, $07, $02, $09, $01, $08, $08, $00, $00, $00, $f0, $09, $1a, $10, $03, $c0, $a8, $b2, $02, $ff, $ff, $ff, $00, $c0, $a8, $b2, $01, $01, $04, $14, $04, $c0, $a8, $01, $eb, $ff, $ff, $ff, $00, $c0, $a8, $01, $01, $00, $00, $00, $00, $04, $00, $0c, $05, $11, $00, $11, $01, $11, $02, $11, $03, $11, $04, $0a, $06, $03, $01, $04, $01, $05, $01, $06, $5f, $14, $07, $00, $f0, $11, $01, $00, $00, $11, $02, $00, $00, $11, $03, $00, $00, $11, $04, $00, $00 DEBUG Knx.Falcon.IpTelegramFactory - Source: 192.168.1.235:3671 DEBUG Knx.Falcon.IpTelegramFactory - CreateTelegram: 0x06 0x10 0x02 0x0c 0x00 0xa8 0x08 0x01 0xc0 0xa8 0x01 0xeb 0x0e 0x57 0x36 0x01 0x02 0x00 0x11 0x00 0x00 0x00 0x00 0x83 0x77 0x40 0x01 0x2d 0xe0 0x00 0x17 0x0c 0xcc 0x1b 0xe0 0x80 0x80 0x2e 0x53 0x43 0x4e 0x2d 0x49 0x50 0x31 0x30 0x30 0x2e 0x30 0x33 0x20 0x49 0x50 0x20 0x52 0x6f 0x75 0x74 0x65 0x72 0x20 0x77 0x69 0x74 0x68 0x20 0x53 0x65 0x0e 0x02 0x02 0x02 0x03 0x02 0x04 0x02 0x05 0x02 0x07 0x02 0x09 0x01 0x08 0x08 0x00 0x00 0x00 0xf0 0x09 0x1a 0x10 0x03 0xc0 0xa8 0xb2 0x02 0xff 0xff 0xff 0x00 0xc0 0xa8 0xb2 0x01 0x01 0x04 0x14 0x04 0xc0 0xa8 0x01 0xeb 0xff 0xff 0xff 0x00 0xc0 0xa8 0x01 0x01 0x00 0x00 0x00 0x00 0x04 0x00 0x0c 0x05 0x11 0x00 0x11 0x01 0x11 0x02 0x11 0x03 0x11 0x04 0x0a 0x06 0x03 0x01 0x04 0x01 0x05 0x01 0x06 0x5f 0x14 0x07 0x00 0xf0 0x11 0x01 0x00 0x00 0x11 0x02 0x00 0x00 0x11 0x03 0x00 0x00 0x11 0x04 0x00 0x00 DEBUG Falcon.KnxIp.Discovery.DiscoveryClient - Discovery: Received frame ald: $06 $10 $02 $0C $00 $A8 $08 $01 $C0 $A8 $01 $EB $0E $57 $36 $01 $02 $00 $11 $00 $00 $00 $00 $83 $77 $40 $01 $2D $E0 $00 $17 $0C $CC $1B $E0 $80 $80 $2E $53 $43 $4E $2D $49 $50 $31 $30 $30 $2E $30 $33 $20 $49 $50 $20 $52 $6F $75 $74 $65 $72 $20 $77 $69 $74 $68 $20 $53 $65 $0E $02 $02 $02 $03 $02 $04 $02 $05 $02 $07 $02 $09 $01 $08 $08 $00 $00 $00 $F0 $09 $1A $10 $03 $C0 $A8 $B2 $02 $FF $FF $FF $00 $C0 $A8 $B2 $01 $01 $04 $14 $04 $C0 $A8 $01 $EB $FF $FF $FF $00 $C0 $A8 $01 $01 $00 $00 $00 $00 $04 $00 $0C $05 $11 $00 $11 $01 $11 $02 $11 $03 $11 $04 $0A $06 $03 $01 $04 $01 $05 $01 $06 $5F $14 $07 $00 $F0 $11 $01 $00 $00 $11 $02 $00 $00 $11 $03 $00 $00 $11 $04 $00 $00 DEBUG ViewModel.Application.Dashboard.BusPanel.Connectio nHandling.Discovery - discovered KNX/IP routing device SCN-IP100.03 IP Router with Se (192.168.1.235/1.1.0) DEBUG ViewModel.Application.Dashboard.BusPanel.Connectio nHandling.Discovery - discovered KNX/IP tunneling device SCN-IP100.03 IP Router with Se (192.168.1.235/1.1.0) DEBUG Knx.Falcon.KnxIp.MulticastCommunication - Multicast 224.0.23.12 (local: 192.168.1.253:53304) EndReceive: 06 10 02 02 00 50 08 01 c0 a8 01 eb 0e 57 36 01 02 00 11 00 00 00 00 83 77 40 01 2d e0 00 17 0c cc 1b e0 80 80 2e 53 43 4e 2d 49 50 31 30 30 2e 30 33 20 49 50 20 52 6f 75 74 65 72 20 77 69 74 68 20 53 65 0c 02 02 02 03 02 04 02 05 02 07 02 DEBUG Falcon.KnxIp.Discovery.DiscoveryClient - Discovery: Received bytes $06, $10, $02, $02, $00, $50, $08, $01, $c0, $a8, $01, $eb, $0e, $57, $36, $01, $02, $00, $11, $00, $00, $00, $00, $83, $77, $40, $01, $2d, $e0, $00, $17, $0c, $cc, $1b, $e0, $80, $80, $2e, $53, $43, $4e, $2d, $49, $50, $31, $30, $30, $2e, $30, $33, $20, $49, $50, $20, $52, $6f, $75, $74, $65, $72, $20, $77, $69, $74, $68, $20, $53, $65, $0c, $02, $02, $02, $03, $02, $04, $02, $05, $02, $07, $02 DEBUG Knx.Falcon.IpTelegramFactory - Source: 192.168.1.235:3671 DEBUG Knx.Falcon.IpTelegramFactory - CreateTelegram: 0x06 0x10 0x02 0x02 0x00 0x50 0x08 0x01 0xc0 0xa8 0x01 0xeb 0x0e 0x57 0x36 0x01 0x02 0x00 0x11 0x00 0x00 0x00 0x00 0x83 0x77 0x40 0x01 0x2d 0xe0 0x00 0x17 0x0c 0xcc 0x1b 0xe0 0x80 0x80 0x2e 0x53 0x43 0x4e 0x2d 0x49 0x50 0x31 0x30 0x30 0x2e 0x30 0x33 0x20 0x49 0x50 0x20 0x52 0x6f 0x75 0x74 0x65 0x72 0x20 0x77 0x69 0x74 0x68 0x20 0x53 0x65 0x0c 0x02 0x02 0x02 0x03 0x02 0x04 0x02 0x05 0x02 0x07 0x02 DEBUG Falcon.KnxIp.Discovery.DiscoveryClient - Discovery: Received frame ald: $06 $10 $02 $02 $00 $50 $08 $01 $C0 $A8 $01 $EB $0E $57 $36 $01 $02 $00 $11 $00 $00 $00 $00 $83 $77 $40 $01 $2D $E0 $00 $17 $0C $CC $1B $E0 $80 $80 $2E $53 $43 $4E $2D $49 $50 $31 $30 $30 $2E $30 $33 $20 $49 $50 $20 $52 $6F $75 $74 $65 $72 $20 $77 $69 $74 $68 $20 $53 $65 $0C $02 $02 $02 $03 $02 $04 $02 $05 $02 $07 $02 INFO Knx.Falcon.Bus - opening connector KnxIpTunneling with params Type=KnxIpTunneling;Secure=True;HostAddress=192.16 8.1.235;Name="SCN-IP100.03 IP Router with Se" in mode LinkLayer DEBUG Knx.Falcon.ConnectionManager - could not find 'Con-ID: KnxIpTunneling, Type=KnxIpTunneling;Secure=True;HostAddress=192.16 8.1.235;Name="SCN-IP100.03 IP Router with Se" (Ch=0)' in currently 0 connection INFO Knx.Falcon.ConnectionManager - New connection Con-ID: KnxIpTunneling, Type=KnxIpTunneling;Secure=True;HostAddress=192.16 8.1.235;Name="SCN-IP100.03 IP Router with Se" (Ch=0) (Type=KnxIpTunneling;Secure=True;HostAddress=192.1 68.1.235;Name="SCN-IP100.03 IP Router with Se") INFO Falcon.TunnelingBusConnector - Connect bus connector to Type=KnxIpTunneling;Secure=True;HostAddress=192.16 8.1.235;Name="SCN-IP100.03 IP Router with Se", type Tunneling, useNat False, mode LinkLayer DEBUG Knx.Falcon.KnxIp.UdpUnicastCommunication - Connect(192.168.1.235:3671) DEBUG Falcon.TunnelingBusConnector - sending request DescriptionRequest: controlEndpoint=Ipv4Udp 0.0.0.0:0 to 192.168.1.235:3671 DEBUG Knx.Falcon.KnxIp.UdpUnicastCommunication - Send(192.168.1.235:3671): 06 10 02 03 00 0e 08 01 00 00 00 00 00 00 DEBUG Knx.Falcon.KnxIp.UdpUnicastCommunication - 192.168.1.235:3671 EndReceive: 06 10 02 04 00 48 36 01 02 00 11 00 00 00 00 83 77 40 01 2d e0 00 17 0c cc 1b e0 80 80 2e 53 43 4e 2d 49 50 31 30 30 2e 30 33 20 49 50 20 52 6f 75 74 65 72 20 77 69 74 68 20 53 65 0c 02 02 02 03 02 04 02 05 02 07 02 DEBUG Knx.Falcon.IpTelegramFactory - Source: 192.168.1.235:3671 DEBUG Knx.Falcon.IpTelegramFactory - CreateTelegram: 0x06 0x10 0x02 0x04 0x00 0x48 0x36 0x01 0x02 0x00 0x11 0x00 0x00 0x00 0x00 0x83 0x77 0x40 0x01 0x2d 0xe0 0x00 0x17 0x0c 0xcc 0x1b 0xe0 0x80 0x80 0x2e 0x53 0x43 0x4e 0x2d 0x49 0x50 0x31 0x30 0x30 0x2e 0x30 0x33 0x20 0x49 0x50 0x20 0x52 0x6f 0x75 0x74 0x65 0x72 0x20 0x77 0x69 0x74 0x68 0x20 0x53 0x65 0x0c 0x02 0x02 0x02 0x03 0x02 0x04 0x02 0x05 0x02 0x07 0x02 DEBUG Knx.Falcon.MessageFrameReceiver - received DescriptionResponse: DeviceInfo=knxMediumCode=TP1 deviceStatus=0 individualAddress=1.1.0 projectInstallationIdentifier=0 serialNumber=0083:7740012D multicastAddress=224.0.23.12 macAddress=CC1BE080802E deviceFriendlyName=SCN-IP100.03 IP Router with Se, SupportedServiceFamilies=Core(v2), DeviceMgmt(v2), Tunneling(v2), Routing(v2), RemoteConfiguration(v2) from 192.168.1.235:3671 DEBUG Falcon.TunnelingBusConnector - received response DescriptionResponse: DeviceInfo=knxMediumCode=TP1 deviceStatus=0 individualAddress=1.1.0 projectInstallationIdentifier=0 serialNumber=0083:7740012D multicastAddress=224.0.23.12 macAddress=CC1BE080802E deviceFriendlyName=SCN-IP100.03 IP Router with Se, SupportedServiceFamilies=Core(v2), DeviceMgmt(v2), Tunneling(v2), Routing(v2), RemoteConfiguration(v2) on client 192.168.1.235:3671 DEBUG Knx.Falcon.KnxIp.UdpUnicastCommunication - Disconnect(192.168.1.235:3671) DEBUG Knx.Falcon.KnxIp.UdpUnicastCommunication - null client closed, exiting DEBUG Knx.Falcon.KnxIp.TcpUnicastCommunication - 192.168.1.235:3671 EndRead: 06 10 09 52 00 38 00 01 45 f6 bf ef 52 c6 39 c6 fd 9b e4 e1 72 61 6c 97 52 8f a5 91 7f 24 36 9c f5 d9 14 00 27 79 d7 69 24 e8 9c 27 b2 c0 29 f7 16 cb d3 16 18 79 77 e3 DEBUG Knx.Falcon.IpTelegramFactory - Source: 192.168.1.235:3671 DEBUG Knx.Falcon.IpTelegramFactory - CreateTelegram: 0x06 0x10 0x09 0x52 0x00 0x38 0x00 0x01 0x45 0xf6 0xbf 0xef 0x52 0xc6 0x39 0xc6 0xfd 0x9b 0xe4 0xe1 0x72 0x61 0x6c 0x97 0x52 0x8f 0xa5 0x91 0x7f 0x24 0x36 0x9c 0xf5 0xd9 0x14 0x00 0x27 0x79 0xd7 0x69 0x24 0xe8 0x9c 0x27 0xb2 0xc0 0x29 0xf7 0x16 0xcb 0xd3 0x16 0x18 0x79 0x77 0xe3 DEBUG Knx.Falcon.MessageFrameReceiver - received SessionResponse: ssid=0001 publicKey=45 f6 bf ef 52 c6 39 c6 fd 9b e4 e1 72 61 6c 97 52 8f a5 91 7f 24 36 9c f5 d9 14 00 27 79 d7 69 mac=24 e8 9c 27 b2 c0 29 f7 16 cb d3 16 18 79 77 e3 from 192.168.1.235:3671 WARN Falcon.TunnelingBusConnector - Secure session 0x1: Do not check MAC of received SESSION_RESPONSE because no device authentication code available. DEBUG Knx.Falcon.KnxIp.TcpUnicastCommunication - 192.168.1.235:3671 EndRead: 06 10 09 50 00 2e 00 01 00 00 00 00 00 01 00 83 77 40 01 2d 00 00 77 6b 7a c3 cf 16 b9 dc 38 b8 e1 de 89 97 12 01 cf 62 92 18 b7 ee a3 7c DEBUG Knx.Falcon.IpTelegramFactory - Source: 192.168.1.235:3671 DEBUG Knx.Falcon.IpTelegramFactory - CreateTelegram: 0x06 0x10 0x09 0x50 0x00 0x2e 0x00 0x01 0x00 0x00 0x00 0x00 0x00 0x01 0x00 0x83 0x77 0x40 0x01 0x2d 0x00 0x00 0x77 0x6b 0x7a 0xc3 0xcf 0x16 0xb9 0xdc 0x38 0xb8 0xe1 0xde 0x89 0x97 0x12 0x01 0xcf 0x62 0x92 0x18 0xb7 0xee 0xa3 0x7c DEBUG Knx.Falcon.IpTelegramFactory - Source: 192.168.1.235:3671 DEBUG Knx.Falcon.IpTelegramFactory - CreateTelegram: 0x06 0x10 0x09 0x54 0x00 0x08 0x01 0x00 > DEBUG Knx.Falcon.MessageFrameReceiver - received SessionStatus: status=01 (STATUS_AUTHENTICATION_FAILED) from 192.168.1.235:3671 > INFO Falcon.TunnelingBusConnector - Received SESSION_STATUS of secure session 0x1: STATUS_AUTHENTICATION_FAILED INFO Falcon.TunnelingBusConnector - DisconnectLocalDevice INFO Falcon.TunnelingBusConnector - Disconnect TunnelingBusConnector bus connector from Type=KnxIpTunneling;Secure=True;HostAddress=192.16 8.1.235;Name="SCN-IP100.03 IP Router with Se" DEBUG Knx.Falcon.KnxIp.TcpUnicastCommunication - null client closed, exiting INFO Knx.Falcon.ConnectionManager - Release connector 'Type=KnxIpTunneling;Secure=True;HostAddress=192.1 68.1.235;Name="SCN-IP100.03 IP Router with Se"'; new ref count=0. INFO Knx.Falcon.ConnectionManager - ...Finally released connector 'Type=KnxIpTunneling;Secure=True;HostAddress=192.1 68.1.235;Name="SCN-IP100.03 IP Router with Se"'. > ERROR Knx.Falcon.Bus - Knx.Bus.Common.Exceptions.ConnectorException: User login failed. bei ail.a(ag2 A_0, CancellationToken A_1, ah8 A_2) bei ail.a(ConnectorMode A_0, ag2 A_1, CancellationToken A_2) bei ail.d.c(CancellationToken A_0) bei af9.c.c() bei System.Threading.Tasks.Task.Execute() --- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde --- bei System.Runtime.ExceptionServices.ExceptionDispatch Info.Throw() bei af9.a(ag2 A_0, Action`1 A_1, Action`1 A_2) bei ail.a(ConnectionTypes A_0, ConnectorMode A_1, Action`1 A_2) bei ail.hj(ConnectorMode A_0) bei Knx.Falcon.Bus.a(ConnectorMode A_0, Boolean& A_1)
Das hört sich doch irgendwie nach einer sehr bekannten Fehlermeldung an.
--> Und die ETS fordert mich zu diesem Zeitpunkt auf das Inbetriebnahme Passwort einzugeben. Danach verbindet sich die ETS mit dem Bus.
Ich versuche mal mir ein anderes Interface auszuleihen, dann weiß ich wenigstens ob ich das als Fehlerursache ausschließen kann oder nicht.
Kommentar
-
Falls sonst noch wer irgendwann mal in dieses Problem läuft... es liegt wie zuvor schon von meti beschrieben am ungültig erzeugten keyring der MDT SCN-IP 100.03 Applikation.
Ich habe MDT meine Erkenntnisse mitgeteilt und warte auf Rückmeldung.
Temporärer Workaround: Im exportierten keyring alle UserIds um 1 dekrementieren. Also so dass nachher UserId 2 bis 5 im keyring steht anstatt 3 bis 6.
Danach muss man die Signaturprüfung für das Keyring file natürlich deaktivieren.
Code:// load security data from keyring if (preferredConnection.SupportsSecurity && !string.IsNullOrEmpty(_options.PathToKeyRingFile) && !string.IsNullOrEmpty(_options.PasswordToKeyRingFi le)) { _logger.LogInformation("Load KNX keyring: {filePath}.", _options.PathToKeyRingFile); using SecureString secureString = new SecureString(); foreach (char c in _options.PasswordToKeyRingFile) secureString.AppendChar(c); bool configurationFound = await preferredConnection.LoadSecurityDataAsync(File.Ope nRead(_options.PathToKeyRingFile), secureString, doNotValidateSignature: true); _logger.LogInformation("Found matching security information in keyring: {configurationFound}", configurationFound ? "YES!" : "NO :("); }
Großes Danke an meti, der sich mit xknx in KNX IP Secure vergraben zu haben scheint und die wesentlichen Erkenntnisse schon 1 Jahr früher hatte ;-)
- Likes 1
Kommentar
Kommentar