You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@plc4x.apache.org by Mehta Vineet <V....@ruhlamat.de> on 2021/04/19 08:18:09 UTC

PLC4x integration for Profinet

I came across Apache PLC4x while researching for a way to read sensor data over Profinet. How far along is the integration? Any idea when it will be made available?

Mit freundlichen Grüßen / With best regards

Vineet Mehta
Praktikant

ruhlamat GmbH
Sonnenacker 2, 99834 Gerstungen OT Marksuhl
phone:

+49 (0)36925 929-

V.Mehta@ruhlamat.de<ma...@ruhlamat.de>

fax:

+49 (0)36925 929-501

http://www.ruhlamat.de


[https://www.ruhlamat.com/sites/all/themes/ruhlamat/logo1.png]

[GF/Management: Thomas Mack, Karl Mack] - [Amtsgericht Jena/Local Court Jena: HRB 401145]
[Firmensitz/Registered Office: Marksuhl] - [Ust-ID Nr.: DE 150382006]



Re: PLC4x integration for Profinet

Posted by Łukasz Dywicki <lu...@code-house.org>.
Kudos should go primarily to Adrian who cleaned up mspec, tested it
against real hardware and added missing parts. My role was limited to
assistance in few places.

Looking forward to work with him and others on next steps.

Best,
Łukasz

On 19.04.2021 19:56, Lukas Ott wrote:
> +1 Lukasz you are awesome!
> 
> Am Mo., 19. Apr. 2021 um 19:33 Uhr schrieb Łukasz Dywicki <
> luke@code-house.org>:
> 
>> I've pushed few additional changes to features/profinet2 branch.
>>
>> Now it is possible to interact through PLC4X api. At least for
>> identification calls.
>> Sample client code:
>> https://gist.github.com/splatch/f1554f0775b2b20df072f51a98ad280b
>>
>> Best,
>> Łukasz
>>
>> On 19.04.2021 11:34, Łukasz Dywicki wrote:
>>> Hey Mehta,
>>> Our progress on profinet so far is limited just to one section - namely
>> DCP.
>>> Adrian Lazar (in CC) and I work together in two places:
>>> https://github.com/Adito5393/plc4x/tree/feature/profinet2-setConfigs/
>>> https://github.com/apache/plc4x/tree/feature/profinet2
>>>
>>> So far we been able to cover tagged/untaged frames, DCP broadcasts, DCP
>>> answers. Next things include implementation of actual protocol
>>> logic/structure mapping and attempt to interact with DCP GET/SET calls.
>>> I plan to work on first parts of logic this week.
>>> Please be aware that profinet protocol currently java only and rely on
>>> pcap4j transport which is quite slow. It is listening at very top of
>>> operating system network stack hence its not intended for control
>>> scenarios. Libpcap is also known of having some issues with Windows
>>> which Adrian tried to address.
>>>
>>> Feel free to attach your sample PCAPs/GSDML here:
>>> https://issues.apache.org/jira/browse/PLC4X-8
>>> We won't be able to build full profinet stack anytime soon but we'll
>>> definitely be able to do data acquisition. Any help is welcome.
>>>
>>> Kind regards,
>>> Łukasz
>>>
>>>
>>> On 19.04.2021 10:18, Mehta Vineet wrote:
>>>>
>>>> I came across Apache PLC4x while researching for a way to read sensor
>> data over Profinet. How far along is the integration? Any idea when it will
>> be made available?
>>>>
>>>> Mit freundlichen Grüßen / With best regards
>>>>
>>>> Vineet Mehta
>>>> Praktikant
>>>>
>>>> ruhlamat GmbH
>>>> Sonnenacker 2, 99834 Gerstungen OT Marksuhl
>>>> phone:
>>>>
>>>> +49 (0)36925 929-
>>>>
>>>> V.Mehta@ruhlamat.de<ma...@ruhlamat.de>
>>>>
>>>> fax:
>>>>
>>>> +49 (0)36925 929-501
>>>>
>>>> http://www.ruhlamat.de
>>>>
>>>>
>>>> [https://www.ruhlamat.com/sites/all/themes/ruhlamat/logo1.png]
>>>>
>>>> [GF/Management: Thomas Mack, Karl Mack] - [Amtsgericht Jena/Local Court
>> Jena: HRB 401145]
>>>> [Firmensitz/Registered Office: Marksuhl] - [Ust-ID Nr.: DE 150382006]
>>>>
>>>>
>>>>
>>
> 

Re: PLC4x integration for Profinet

Posted by Lukas Ott <ot...@gmail.com>.
+1 Lukasz you are awesome!

Am Mo., 19. Apr. 2021 um 19:33 Uhr schrieb Łukasz Dywicki <
luke@code-house.org>:

> I've pushed few additional changes to features/profinet2 branch.
>
> Now it is possible to interact through PLC4X api. At least for
> identification calls.
> Sample client code:
> https://gist.github.com/splatch/f1554f0775b2b20df072f51a98ad280b
>
> Best,
> Łukasz
>
> On 19.04.2021 11:34, Łukasz Dywicki wrote:
> > Hey Mehta,
> > Our progress on profinet so far is limited just to one section - namely
> DCP.
> > Adrian Lazar (in CC) and I work together in two places:
> > https://github.com/Adito5393/plc4x/tree/feature/profinet2-setConfigs/
> > https://github.com/apache/plc4x/tree/feature/profinet2
> >
> > So far we been able to cover tagged/untaged frames, DCP broadcasts, DCP
> > answers. Next things include implementation of actual protocol
> > logic/structure mapping and attempt to interact with DCP GET/SET calls.
> > I plan to work on first parts of logic this week.
> > Please be aware that profinet protocol currently java only and rely on
> > pcap4j transport which is quite slow. It is listening at very top of
> > operating system network stack hence its not intended for control
> > scenarios. Libpcap is also known of having some issues with Windows
> > which Adrian tried to address.
> >
> > Feel free to attach your sample PCAPs/GSDML here:
> > https://issues.apache.org/jira/browse/PLC4X-8
> > We won't be able to build full profinet stack anytime soon but we'll
> > definitely be able to do data acquisition. Any help is welcome.
> >
> > Kind regards,
> > Łukasz
> >
> >
> > On 19.04.2021 10:18, Mehta Vineet wrote:
> >>
> >> I came across Apache PLC4x while researching for a way to read sensor
> data over Profinet. How far along is the integration? Any idea when it will
> be made available?
> >>
> >> Mit freundlichen Grüßen / With best regards
> >>
> >> Vineet Mehta
> >> Praktikant
> >>
> >> ruhlamat GmbH
> >> Sonnenacker 2, 99834 Gerstungen OT Marksuhl
> >> phone:
> >>
> >> +49 (0)36925 929-
> >>
> >> V.Mehta@ruhlamat.de<ma...@ruhlamat.de>
> >>
> >> fax:
> >>
> >> +49 (0)36925 929-501
> >>
> >> http://www.ruhlamat.de
> >>
> >>
> >> [https://www.ruhlamat.com/sites/all/themes/ruhlamat/logo1.png]
> >>
> >> [GF/Management: Thomas Mack, Karl Mack] - [Amtsgericht Jena/Local Court
> Jena: HRB 401145]
> >> [Firmensitz/Registered Office: Marksuhl] - [Ust-ID Nr.: DE 150382006]
> >>
> >>
> >>
>

Re: PLC4x integration for Profinet

Posted by Łukasz Dywicki <lu...@code-house.org>.
I've pushed few additional changes to features/profinet2 branch.

Now it is possible to interact through PLC4X api. At least for
identification calls.
Sample client code:
https://gist.github.com/splatch/f1554f0775b2b20df072f51a98ad280b

Best,
Łukasz

On 19.04.2021 11:34, Łukasz Dywicki wrote:
> Hey Mehta,
> Our progress on profinet so far is limited just to one section - namely DCP.
> Adrian Lazar (in CC) and I work together in two places:
> https://github.com/Adito5393/plc4x/tree/feature/profinet2-setConfigs/
> https://github.com/apache/plc4x/tree/feature/profinet2
> 
> So far we been able to cover tagged/untaged frames, DCP broadcasts, DCP
> answers. Next things include implementation of actual protocol
> logic/structure mapping and attempt to interact with DCP GET/SET calls.
> I plan to work on first parts of logic this week.
> Please be aware that profinet protocol currently java only and rely on
> pcap4j transport which is quite slow. It is listening at very top of
> operating system network stack hence its not intended for control
> scenarios. Libpcap is also known of having some issues with Windows
> which Adrian tried to address.
> 
> Feel free to attach your sample PCAPs/GSDML here:
> https://issues.apache.org/jira/browse/PLC4X-8
> We won't be able to build full profinet stack anytime soon but we'll
> definitely be able to do data acquisition. Any help is welcome.
> 
> Kind regards,
> Łukasz
> 
> 
> On 19.04.2021 10:18, Mehta Vineet wrote:
>>
>> I came across Apache PLC4x while researching for a way to read sensor data over Profinet. How far along is the integration? Any idea when it will be made available?
>>
>> Mit freundlichen Grüßen / With best regards
>>
>> Vineet Mehta
>> Praktikant
>>
>> ruhlamat GmbH
>> Sonnenacker 2, 99834 Gerstungen OT Marksuhl
>> phone:
>>
>> +49 (0)36925 929-
>>
>> V.Mehta@ruhlamat.de<ma...@ruhlamat.de>
>>
>> fax:
>>
>> +49 (0)36925 929-501
>>
>> http://www.ruhlamat.de
>>
>>
>> [https://www.ruhlamat.com/sites/all/themes/ruhlamat/logo1.png]
>>
>> [GF/Management: Thomas Mack, Karl Mack] - [Amtsgericht Jena/Local Court Jena: HRB 401145]
>> [Firmensitz/Registered Office: Marksuhl] - [Ust-ID Nr.: DE 150382006]
>>
>>
>>

Re: PLC4x integration for Profinet

Posted by Łukasz Dywicki <lu...@code-house.org>.
Hey Mehta,
Our progress on profinet so far is limited just to one section - namely DCP.
Adrian Lazar (in CC) and I work together in two places:
https://github.com/Adito5393/plc4x/tree/feature/profinet2-setConfigs/
https://github.com/apache/plc4x/tree/feature/profinet2

So far we been able to cover tagged/untaged frames, DCP broadcasts, DCP
answers. Next things include implementation of actual protocol
logic/structure mapping and attempt to interact with DCP GET/SET calls.
I plan to work on first parts of logic this week.
Please be aware that profinet protocol currently java only and rely on
pcap4j transport which is quite slow. It is listening at very top of
operating system network stack hence its not intended for control
scenarios. Libpcap is also known of having some issues with Windows
which Adrian tried to address.

Feel free to attach your sample PCAPs/GSDML here:
https://issues.apache.org/jira/browse/PLC4X-8
We won't be able to build full profinet stack anytime soon but we'll
definitely be able to do data acquisition. Any help is welcome.

Kind regards,
Łukasz


On 19.04.2021 10:18, Mehta Vineet wrote:
> 
> I came across Apache PLC4x while researching for a way to read sensor data over Profinet. How far along is the integration? Any idea when it will be made available?
> 
> Mit freundlichen Grüßen / With best regards
> 
> Vineet Mehta
> Praktikant
> 
> ruhlamat GmbH
> Sonnenacker 2, 99834 Gerstungen OT Marksuhl
> phone:
> 
> +49 (0)36925 929-
> 
> V.Mehta@ruhlamat.de<ma...@ruhlamat.de>
> 
> fax:
> 
> +49 (0)36925 929-501
> 
> http://www.ruhlamat.de
> 
> 
> [https://www.ruhlamat.com/sites/all/themes/ruhlamat/logo1.png]
> 
> [GF/Management: Thomas Mack, Karl Mack] - [Amtsgericht Jena/Local Court Jena: HRB 401145]
> [Firmensitz/Registered Office: Marksuhl] - [Ust-ID Nr.: DE 150382006]
> 
> 
>