From nobody Mon Apr 17 13:52:45 2023 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Q0T5n4mqxz45wWX for ; Mon, 17 Apr 2023 13:53:01 +0000 (UTC) (envelope-from david.robertsson@gmail.com) Received: from mail-pg1-x52c.google.com (mail-pg1-x52c.google.com [IPv6:2607:f8b0:4864:20::52c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q0T5m15pNz44cv for ; Mon, 17 Apr 2023 13:53:00 +0000 (UTC) (envelope-from david.robertsson@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20221208 header.b=VjaIvB+8; spf=pass (mx1.freebsd.org: domain of david.robertsson@gmail.com designates 2607:f8b0:4864:20::52c as permitted sender) smtp.mailfrom=david.robertsson@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-pg1-x52c.google.com with SMTP id g70so346484pgc.9 for ; Mon, 17 Apr 2023 06:53:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1681739576; x=1684331576; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=r4wK2sOsqOCVWXAWjsa9+FHg8jfnmXAyRAflj7E/M/k=; b=VjaIvB+8zoPvckkSu3axR9z54eaLuZgsHGn7F0mPezHcb1u94oiG7h2e/kVBUcLXmL TpfVwjhhxrWVXzbjA76UujgHbxxXNGy1F3MDUXIFmlvZMVxi4yuPfTsAvQlS3LNxxYBs wG1kpNo/11notY3S3+OMbkiP5Q+voA6JoPrYDg/wRQ27A1jthLBEsCe+xk4SpkwqqO57 u0xqO8t071DWh48OZ+63qKwRkFPzWNOsafPZJskbpJ+i/4bECkorInIGvPEWO5J18Kaw GTUnFEZmL/hCzklrFkQYRmhwjJeN86qTINWxyTcoGYk8DA4yncoeuiWLQlxTuAVmRSvA 1mpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681739576; x=1684331576; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=r4wK2sOsqOCVWXAWjsa9+FHg8jfnmXAyRAflj7E/M/k=; b=S+X4+8Z0vFzB44Gahz5u0gPFXccI+Qi8h5K2CLAUrXLzOeVcOWT1JvjwDNeSTAv+C7 jyWi90p4wPThn7Sez4Il9u/OahD+XYFWVmLmRfYzsgTO+a7uF3KAGvaVW4FTsOn/0Xyv Z/5n9hjLv1zk1J9oR/tCpHv3baIy9XGtaeHYCsAAtjVX/9dhTHrHTmlByLcEc9oYrI1M 9+kHZC2qzuKJ2sGaYvMbStmcSLYWIgHaNIdgEcx83AJa0ubMW1QBn2/Nq9fKYhBJodl5 AeFo34W4JYdhsqK9RXeP1UBHTikSI9IGa9mRwUr1ci9rdVtqcAfTF2e5CpJ/xjKX4EJ3 dfUQ== X-Gm-Message-State: AAQBX9erO5N4S/B63EUnFF1bxKGYqCGq3gF2/t9OawD5A3xqEOiDdGY7 nEY0W0VDDJMF5DBE+/npi1A0crCeA81THMI9uMOg0yHk X-Google-Smtp-Source: AKy350Z+qkaB0thP53tH6CpIjpxcSy1FdCSAMkYVaOiXlV/H3X2xQWTObogEYQ2AyJhXSCi1k0gePdJJC5vkUk8fCcI= X-Received: by 2002:a65:670f:0:b0:513:90eb:a37c with SMTP id u15-20020a65670f000000b0051390eba37cmr3235060pgf.11.1681739576104; Mon, 17 Apr 2023 06:52:56 -0700 (PDT) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 From: David Robertsson Date: Mon, 17 Apr 2023 15:52:45 +0200 Message-ID: Subject: Current status of the openPOWERLINK idea? To: freebsd-hackers@freebsd.org Content-Type: multipart/alternative; boundary="0000000000000a706505f988826a" X-Spamd-Result: default: False [-2.99 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.993]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20221208]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::52c:from]; FREEMAIL_FROM(0.00)[gmail.com]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; DKIM_TRACE(0.00)[gmail.com:+]; MID_RHS_MATCH_FROMTLD(0.00)[]; TO_DN_NONE(0.00)[]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; TAGGED_FROM(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4Q0T5m15pNz44cv X-Spamd-Bar: -- X-ThisMailContainsUnwantedMimeParts: N --0000000000000a706505f988826a Content-Type: text/plain; charset="UTF-8" Noticed openPowerlink was added to the ideas page, is there someone out there already working on this? Otherwise this would be something that is aligned with my personal interests to work on. Not sure what the best path forward is. The OpenPowerlink "stack" today has two options as for Linux (afaik). 1. Userspace daemon with the help of LibPcap. 2. kernel driver that unloads the driver from a network card and then uses it for communication with powerlink gear. I have been using OpenPowerlink myself since 2014 in a Linux environment, and I'm not so sure the option 2 is desired. To build the code, it assumes that you know what gear it is you want to communicate with. So from a list of gear that the user has "setup" you then import that list into openConfigurator to generate a mnobd.cdc and a xap.h file. This is then used to broadcast the binary to all the powerlink devices on the network. The xap.h file contains a struct describing the devices - for example in which order the digital input & output modules are connected to every brain module (control node). One idea I have; is to try to make a port of the userspace daemon or perhaps try to make a standalone lib that can be used in any project that aims to run a powerlink control / master node on FreeBSD. What do you all think? Best regards David --0000000000000a706505f988826a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Noticed openPowerlink was added to the ideas page, is ther= e someone out there already working on this?

Otherwise this would be= something that is aligned with my personal interests to work on.

No= t sure what the best path forward is.

The OpenPowerlink "stack&= quot; today has two options as for Linux (afaik).

1. Userspace daemo= n with the help of LibPcap.
2. kernel driver that unloads the driver fro= m a network=C2=A0card and then uses it for communication with powerlink gea= r.

I have been using OpenPowerlink myself since 2014 in a Linux envi= ronment, and I'm not so sure the option 2 is desired.

To build t= he code, it assumes that you know what gear it is you want to communicate w= ith.
So from a list of gear that the user has "setup" you then= import that list into openConfigurator to generate a mnobd.cdc=C2=A0and a = xap.h file. This is then used to broadcast the binary to all the powerlink = devices on the network.=C2=A0The xap.h file contains a struct=C2=A0describi= ng the=C2=A0devices - for example in which order the digital input & ou= tput modules are connected to every brain module (control node).

One= idea I have; is to try to make a port of the userspace daemon or perhaps t= ry to make a standalone lib that can be used in any project that aims to ru= n a powerlink control / master node on FreeBSD.

What do you all thin= k?
Best regards
David


--0000000000000a706505f988826a--