From dev-return-1500-archive-asf-public=cust-asf.ponee.io@plc4x.apache.org Thu Feb 7 13:03:36 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id ED309180600 for ; Thu, 7 Feb 2019 14:03:35 +0100 (CET) Received: (qmail 52657 invoked by uid 500); 7 Feb 2019 13:03:35 -0000 Mailing-List: contact dev-help@plc4x.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@plc4x.apache.org Delivered-To: mailing list dev@plc4x.apache.org Received: (qmail 52645 invoked by uid 99); 7 Feb 2019 13:03:34 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Feb 2019 13:03:34 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id D4B2518078A for ; Thu, 7 Feb 2019 13:03:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.058 X-Spam-Level: ** X-Spam-Status: No, score=2.058 tagged_above=-999 required=6.31 tests=[DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, KAM_SHORT=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_FILL_THIS_FORM_SHORT=0.01] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=hotmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 6QgNqOVvJgjB for ; Thu, 7 Feb 2019 13:03:31 +0000 (UTC) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-oln040092066026.outbound.protection.outlook.com [40.92.66.26]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 38F5660FAA for ; Thu, 7 Feb 2019 13:03:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kaoD7E/hWh31oiNeKlj2D5eS0Nil6/XVwtaZAoPYaPY=; b=tFjjDtH2C9CEnG4E5vUQ9mZGbhgSlf4ZZvLEl6IFtqPS4a3MWh05paXucoSQUyHTVLZCexqxCiDwXqPqFVw8xFZKD4dUxuYZsrOx49bcBLx9FBwW8vc29gEMkG+WAwRBcj6ejI5TnoSp61SwA/CsRMnBbYB0D+BUEI7PgAhSEmWA38mkPx+n9ueAznsNEIRqOMw8VEHZgx3Rn4OgnxtEsDBlbjeqXd8utD+pl5ScbR1OP0BH1RDV0I1Ul5/j2epolGUXNmux5bQypmg+L4PAAO15l62awNngTzfwBB/lH0XAvPVzbEqVr1ffrAdIJZpUyX+Yc9K9k2+4Dp16G/u4KA== Received: from DB5EUR01FT042.eop-EUR01.prod.protection.outlook.com (10.152.4.51) by DB5EUR01HT086.eop-EUR01.prod.protection.outlook.com (10.152.5.125) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1580.10; Thu, 7 Feb 2019 13:03:22 +0000 Received: from AM4PR1001MB1219.EURPRD10.PROD.OUTLOOK.COM (10.152.4.59) by DB5EUR01FT042.mail.protection.outlook.com (10.152.5.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1580.10 via Frontend Transport; Thu, 7 Feb 2019 13:03:22 +0000 Received: from AM4PR1001MB1219.EURPRD10.PROD.OUTLOOK.COM ([fe80::5176:7b77:75c0:5d64]) by AM4PR1001MB1219.EURPRD10.PROD.OUTLOOK.COM ([fe80::5176:7b77:75c0:5d64%4]) with mapi id 15.20.1601.016; Thu, 7 Feb 2019 13:03:22 +0000 From: Jens Maier To: "dev@plc4x.apache.org" Subject: AW: [DISCUSS] Adding a "ping" method to the API? Thread-Topic: [DISCUSS] Adding a "ping" method to the API? Thread-Index: AQHUvgcivs/z5+fwEki6MTaGnxsvwKXUOdKggAARVpA= Date: Thu, 7 Feb 2019 13:03:22 +0000 Message-ID: References: ,<2F674AF1D7CD6E4A8EED8B73EE0C335DFAE225@ISB-01.isb-fn.local> In-Reply-To: <2F674AF1D7CD6E4A8EED8B73EE0C335DFAE225@ISB-01.isb-fn.local> Accept-Language: de-DE, en-US Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: x-incomingtopheadermarker: OriginalChecksum:31F39CA3B61D10A9062809C40578CE3B4F9104B0B67DFD5BC77CF6023065AC90;UpperCasedChecksum:0BE6592968C7031730F967AD6C26519CFC7677FC218B14B7854DE02F263158B0;SizeAsReceived:7059;Count:45 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [W7eK8r2GWoZ4ip/MimKRSmpLC7P5VVKYsrORVy09hwk=] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;DB5EUR01HT086;6:G+yRisVCkwUmRiUqoYqamVm6P7oNYp4h/U/9DXa3W2Sm8Ujo0tJkmamsjpEjuUmS6zOd3ZlPJ1PXCuxL+H9TwsLS7BUSmy1Lmxk3iXhKB3RUKB5oJS9uKMEUULI+ceoHzm6HByGUzO7bozDaF7Or2pNqInb3qxcdZnGqLHoUzQL01eZJGR+KkgpGCpPs9yF+2A+H1Xq3zmXeT2+EcVceKEU7JX9cCFkWFHKQVy+kpmDQUL/gTOpFF5e0VJCkEbZ2i5Yrm5U6TXib8pjbRS5OkT8kqAJRCyVQdquJ8ztWZIKaz+kpMHAYfvi7WGmfiMAoZLlNXpBkubXgrFM1UWHYTddeXRY+Ajjmkpri2iKFeSOhiJFwdMq67KbsEnwZu3Z5OKf95dhis1kLXRR9UrX8I2xNcDfVFILmWvThm7oorU7mSmJkXd+OPAa52DB3AYT3h3myaQCs3RHeaSNilZkKCQ==;5:cUxGlEXS4Ib3rpOgp79wLVbEnOS/Oo4Jtl4witiCdXiFQNS7DUeDC5ojsHt2Ruejsw64kwvay6ZaFEGwHlr36vdjjZ+KuKgtXBy2d/u1wsEgl2a7gNbEz2rv+RhuHcUHlnDPoZBOLYejjrNG/H1hjdegS1oG4ysYHK/dlFQZxItmfWfBRKF2n/kk+I0/XFR02MALOI2os8fNF5iVHWmBLA==;7:BdPJ3r0GgjkZoJiaOuFdXCitun8jRXnyceWWEkui5LOlr0a/DdlFcRebCzBuUG/2i3riupjWxnKffeE5yjo4zN70AskfrJVCiLoyCuygIQJ/Kqr1YYAvLidsFBZ1iFSmxyI7kiSWRoMVsqayrLHOKQ== x-incomingheadercount: 45 x-eopattributedmessage: 0 x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(20181119070)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031322404)(2017031323274)(2017031324274)(1601125500)(1603101475)(1701031045);SRVR:DB5EUR01HT086; x-ms-traffictypediagnostic: DB5EUR01HT086: x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(4566010)(82015058);SRVR:DB5EUR01HT086;BCL:0;PCL:0;RULEID:;SRVR:DB5EUR01HT086; x-microsoft-antispam-message-info: H9lLQ+98yTAvqt1zvsF3lDG5gkkEFwavHbsBvYZZMCh+hYjAS21trhSkBvQkkM/m Content-Type: multipart/alternative; boundary="_000_AM4PR1001MB1219AC14AD80A09598C50DB6C5680AM4PR1001MB1219_" MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 24fd1209-d934-423e-a578-ee886993c07f X-MS-Exchange-CrossTenant-Network-Message-Id: b8a36174-4a1d-4a60-e79e-08d68cfca3da X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 24fd1209-d934-423e-a578-ee886993c07f X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Feb 2019 13:03:22.7372 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5EUR01HT086 --_000_AM4PR1001MB1219AC14AD80A09598C50DB6C5680AM4PR1001MB1219_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Hi all, maybe there is no need for a ping. At the development of our driver we also= got sometimes disconnects without any real issue. At the same issue our dr= iver makes a complete disconnect at time out and by a configurable retry co= unter. After about 5 secs of no communication resume or overrun the counter, the d= river signals Connection Error and answer each reading request with 0 to ge= t no empty values. We also slow down the communication by Delay, when there was a error and sl= owly speed up to max. With this, we can unplug the cable for undetermined time and at the plug in= , the driver continues with the communication. If this is interesting, i can post some VB6 code. Jens Von Outlook gesendet. ________________________________ Von: Markus Sommer Gesendet: Donnerstag, 7. Februar 2019 11:50 An: dev@plc4x.apache.org Betreff: AW: [DISCUSS] Adding a "ping" method to the API? +1 from myside. It's good idea to search for PLCs or to realize an automatic configuration = of the communication.... Mit freundlichen Gr=FC=DFen Markus Sommer Gesch=E4ftsf=FChrer isb innovative software businesses GmbH Otto-Lilienthal-Stra=DFe 2 D 88046 Friedrichshafen Tel +49 (0) 7541 3834-14 Fax +49 (0) 7541 3834-20 Mobil +49 (0) 171 537 8437 Mail to sommer@isb-fn.de http://www.isb-fn.de Gesch=E4ftsf=FChrer: Markus Sommer, Thomas Zeler Registergericht: Amtsgericht Ulm HRB-Nr. 631624 Important Note: This e-mail and any attachments are confidential, may conta= in trade secrets and may well also be legally privileged or otherwise prote= cted from disclosure. If you have received it in error, you are on notice o= f its status. Please notify us immediately by reply e-mail and then delete = this e-mail and any attachment from your system. If you are not the intende= d recipient please understand that you must not copy this e-mail or any att= achments or disclose the contents to any other person. Thank you. -----Urspr=FCngliche Nachricht----- Von: Christofer Dutz Gesendet: Mittwoch, 6. Februar 2019 11:32 An: dev@plc4x.apache.org Betreff: [DISCUSS] Adding a "ping" method to the API? Hi all, Having had the same problem several times now, I think we might consider so= lving this =85 I=92ve had the problem that potential customers say things like =93We commu= nicate via S7=94 =85 well the thing is they have an S7, but that doesn=92t = mean the communication is done in the native S7 protocol. It could be: * Profinet * S7Pluss (New TIA Version of the protocol) * Modbus * OPC-UA So what I would like to do, is to add a =93ping=94 method to the connection= , that would allow to try connecting to a given PLC. With this we could wri= te code that for example tries all supported protocols for a given IP addre= ss and reports which ones are enabled. We could also write a PLC scanner that pings an IP range and tries pinging = the different protocols for each responsive IP address =85 this would be a = huge help for people using PLC4X applications in the field =85 What do you think? We sort of would need to define =93ping=94 operations for each connection t= ype (Like the =93SELECT 1=94 SQL query in JDBC and JPA). Chris --_000_AM4PR1001MB1219AC14AD80A09598C50DB6C5680AM4PR1001MB1219_--