Hi Team ,

I tried  in widows machine connected to AB 5/30 PLC ......looks like serial
issue ....its says error selecting channel or something goes to infinite
loop

while I am able to send commands via doc lite

Why its happening ? has any body really made it work or deployed in
production?Why doesn't PLC4X gives logging output like what command it
generated

I was really hoping to use it in production , I guess might be faster to go
through AB df 1 doc and write my own small  driver

 @Migrated 1 channel(s) to the new
Selector.ethod:io.netty.channel.nio.NioEventLoop.rebuildSelector0(NioEventLoop.java:430)ine06:06:46
WARN  [io.ne.ch.ni.NioEventLoop]] (nioEventLoopGroup-2-1) Selector.select()
returned prematurely 512 times in a row; rebuilding Selector
org.apache.plc4x.java.transport.serial.SerialPollingSelector@54ef7945.
 @Selector.select() returned prematurely 512 times in a row; rebuilding
Selector
org.apache.plc4x.java.transport.serial.SerialPollingSelector@54ef7945.ethod:io.netty.channel.nio.NioEventLoop.unexpectedSelectorWakeup(NioEventLoop.java:554)ine06:06:46
INFO  [io.ne.ch.ni.NioEventLoop]] (nioEventLoopGroup-2-1) Migrated 1
channel(s) to the new Selector.


On Fri, Mar 26, 2021 at 4:20 PM Gaurav P <[email protected]> wrote:

> Thanks Chris ,
> I was able to generate the sources,
>
>  right I don't have access to AB PLC, I want to see what commands its
> generating...how can I log or print it  , do I need to use stimulated in
> transport layer ?
>
>
> On Thu, Mar 25, 2021 at 12:19 PM Christofer Dutz <
> [email protected]> wrote:
>
>> Hi Gaurav,
>>
>> First of all, I think we're not distributing snapshots of the sandbox
>> modules. That's why you're not finding them.
>>
>> Second, you're running maven in the wrong directory.
>> sandbox/test-java-df1-driver/target/generated-sources/plc4x
>> Doesn't contain any maven Metadata. You have to run it in
>> sandbox/test-java-df1-driver
>> Or even better in the root.
>>
>> Please ein the following commands in the error of the checked out
>> directory :
>> mvn install -Pwith-sandbox
>>
>> Chris
>>
>> Holen Sie sich Outlook für Android<https://aka.ms/AAb9ysg>
>>
>> ________________________________
>> From: Gaurav P <[email protected]>
>> Sent: Thursday, March 25, 2021 1:22:08 AM
>> To: [email protected] <[email protected]>
>> Subject: Re: DF1 protocol ...cant find documentation
>>
>> besides generating sources as described in the previous email ....... I
>> also tried downloading the test driver generated from
>> https://github.com/apache/plc4x/tree/develop/sandbox/test-java-df1-driver
>> but the entire package is missing
>>  org.apache.plc4x.java.df1.readwrite.DF1Command; :-(
>>
>> I just want test and iterate dF1 driver ...today is my last day with plc
>> 5/30
>>
>> On Thu, Mar 25, 2021 at 5:43 AM Gaurav P <[email protected]> wrote:
>>
>> > Hi Chris /Team ,
>> >
>> > I downloaded the sources  did following
>> >
>> > 1. cd sandbox/test-java-df1-driver/target/generated-sources/plc4x/
>> > 2. mvn generate-sources
>> > gave following output
>> >
>> > [*WARNING*] Could not find
>> >
>> org.apache.plc4x:plc4x-build-utils-protocol-base-mspec:jar:0.9.0-SNAPSHOT:compile
>> > at null
>> >
>> > [*INFO*]
>> >
>> *------------------------------------------------------------------------*
>> >
>> > [*INFO*] *BUILD SUCCESS*
>> >
>> > [*INFO*]
>> >
>> *------------------------------------------------------------------------*
>> >
>> >
>> > I checked directory
>> sandbox/test-java-df1-driver/target/generated-sources/plc4x/
>> > couldn't find any new sources
>> >
>> >
>> > where is the source produced? and does the above really worked? has
>> > someone  generated before
>> >
>> >
>> >
>> > I just need valid sources to run /test, I have to leave the customer
>> today
>> > would lose access to hardware, I just need a working source to see what
>> > command is generated
>> >
>> >
>> > Regards,
>> >
>> > Gaurav
>> >
>> > On Fri, Mar 19, 2021 at 3:21 PM Christofer Dutz <
>> [email protected]>
>> > wrote:
>> >
>> >> Hi Gaurav,
>> >>
>> >> yeah ... Lukas you beat me to it :-)
>> >>
>> >> Yes .. in the "protocols" directories in the root of the PLC4X repo, we
>> >> have the protocol specifications. These are used for all driver
>> variants we
>> >> have or are working on (Currently there's code-generation for: Java,
>> Go, C,
>> >> C#) ... these specs define the datatypes and how to parse and serialize
>> >> messages for a given protocol. This is usually something near 90% of
>> the
>> >> work for implementing drivers. We have automated this.
>> >>
>> >> The sandbox/test-java-df1-driver is a concrete java implementation of
>> the
>> >> df1 protocol and therefore needs the generated code which it produces
>> from
>> >> the protocols/df1 module. As Lukas already pointed out the maven build
>> >> generates this code. And all generated code for Maven is usually
>> produced
>> >> in "target/generated-sources" (at least for maven built-java projects)
>> >>
>> >> Currently for C, Go and I think .Net we decided to check-in the
>> generated
>> >> code as we wanted to keep it simple for these folks and didn't want
>> them to
>> >> have to deal with Java- and Maven-based code-generation (But it would
>> have
>> >> been cleaner do also generate this code and it might change in the
>> future)
>> >>
>> >> Hope this provides some additional background.
>> >>
>> >>
>> >> Chris
>> >>
>> >>
>> >> -----Ursprüngliche Nachricht-----
>> >> Von: Łukasz Dywicki <[email protected]>
>> >> Gesendet: Freitag, 19. März 2021 00:58
>> >> An: [email protected]
>> >> Betreff: Re: DF1 protocol ...cant find documentation
>> >>
>> >> Hey Gaurav,
>> >> This package is generated. In order to get it in place you need to
>> build
>> >> project first. Once you do mvn generate-sources you will find new
>> directory:
>> >> sandbox/test-java-df1-driver/target/generated-sources/plc4x/
>> >>
>> >> Base for generator is mspec file:
>> >> protocols/df1/src/main/resources/protocols/df1/df1.mspec
>> >>
>> >> Best,
>> >> Łukasz
>> >>
>> >> On 18.03.2021 23:15, Gaurav P wrote:
>> >> > Thanks Chris, Do i need to generate driver from this  link ->
>> >> > https://github.com/apache/plc4x/tree/develop/protocols/df1   .. if
>> yes
>> >> how
>> >> > do I do that ?
>> >> >
>> >> > or I need to use
>> >> >
>> https://github.com/apache/plc4x/tree/develop/sandbox/test-java-df1-dri
>> >> > ver but in entire package org.apache.plc4x.java.df1.readwrite is
>> >> > missing
>> >> >
>> >> > I just need to  generate a command output   run via hyper doc or
>> >> > HyperTerminal to connected PLC to verify respose
>> >> >
>> >> >
>> >> >
>> >> > On Tue, Mar 16, 2021 at 6:26 PM Christofer Dutz
>> >> > <[email protected]>
>> >> > wrote:
>> >> >
>> >> >> Hi Gaurav,
>> >> >>
>> >> >> yes, the driver sources are there and the protocol sources, used for
>> >> >> code generation are here:
>> >> >> https://github.com/apache/plc4x/tree/develop/protocols/df1
>> >> >>
>> >> >> Just ask, if you need any help.
>> >> >>
>> >> >> Chris
>> >> >>
>> >> >>
>> >> >> -----Ursprüngliche Nachricht-----
>> >> >> Von: Gaurav P <[email protected]>
>> >> >> Gesendet: Dienstag, 16. März 2021 12:11
>> >> >> An: [email protected]
>> >> >> Betreff: Re: DF1 protocol ...cant find documentation
>> >> >>
>> >> >> Thanks Looks I would need to modify source DF1 driver  ... is the
>> >> >> latest source is at :
>> >> >>
>> https://github.com/apache/plc4x/tree/develop/sandbox/test-java-df1-dr
>> >> >> iver
>> >> >> ?
>> >> >> or somewhere else
>> >> >>
>> >> >> On Sun, Mar 14, 2021 at 5:09 PM Christofer Dutz
>> >> >> <[email protected]
>> >> >>>
>> >> >> wrote:
>> >> >>
>> >> >>> HI Gaurav,
>> >> >>>
>> >> >>> I would probably use a byte-array field, but no idea if the DF1
>> >> >>> driver supports that:
>> >> >>>
>> >> >>> Theoretically this would look like this:
>> >> >>>
>> >> >>> PlcReadRequest request = plcConnection.readRequestBuilder()
>> >> >>>         .addItem("N7:1", "5:USINT[12]")
>> >> >>>         .build();
>> >> >>>
>> >> >>> Hope that helps.
>> >> >>>
>> >> >>> Chris
>> >> >>>
>> >> >>>
>> >> >>> -----Ursprüngliche Nachricht-----
>> >> >>> Von: Gaurav P <[email protected]>
>> >> >>> Gesendet: Sonntag, 14. März 2021 03:21
>> >> >>> An: [email protected]
>> >> >>> Betreff: Re: DF1 protocol ...cant find documentation
>> >> >>>
>> >> >>> Hi Chris,
>> >> >>>
>> >> >>> Currently, for testing, I am creating a web service API that will
>> >> >>> use PLC4X to construct a command  and expects a command as hex
>> >> >>> string which can be used by native client to send command ?
>> >> >>> Code
>> >> >>>
>> >> >>> PlcReadRequest request = plcConnection.readRequestBuilder()
>> >> >>>         .addItem("N7:1", "5:INTEGER")
>> >> >>>         .build();
>> >> >>>
>> >> >>>
>> >> >>> How do I get a command which is constructed and send as hex like 10
>> >> >>> 02
>> >> >>> 08
>> >> >>> 09 06 00 02 04 03 10 03 E0  from the request builder ?
>> >> >>>
>> >> >>> Thanks and Regards ,
>> >> >>> Gaurav
>> >> >>>
>> >> >>>
>> >> >>> On Tue, Mar 9, 2021 at 5:57 PM Christofer Dutz
>> >> >>> <[email protected]>
>> >> >>> wrote:
>> >> >>>
>> >> >>>> Hi Gaurav,
>> >> >>>>
>> >> >>>> Generally, what you could do, it to create a custom transport
>> >> >>>> implementation.
>> >> >>>>
>> >> >>>> You could create one using the C lib and the Java Native
>> Interface.
>> >> >>>>
>> >> >>>> All drivers are intentionally built in a way that the actual
>> >> >>>> communication medium can be changed.
>> >> >>>>
>> >> >>>> Chris
>> >> >>>>
>> >> >>>>
>> >> >>>> -----Ursprüngliche Nachricht-----
>> >> >>>> Von: Gaurav P <[email protected]>
>> >> >>>> Gesendet: Dienstag, 9. März 2021 11:32
>> >> >>>> An: [email protected]
>> >> >>>> Betreff: Re: DF1 protocol ...cant find documentation
>> >> >>>>
>> >> >>>> Hi All ,
>> >> >>>>
>> >> >>>> I used python to send raw commands to plc it worked...as I have
>> >> >>>> custom
>> >> >>>> rs232 shield and manufacturer has provided libraries in c and
>> >> >>>> python ....its there anyway I  can get  df1 raw packets from plc4x
>> >> >>>> ..and call flask API I made in python ....post testing will write
>> a
>> >> >>>> jni wrapper rs232 shield
>> >> >>>>
>> >> >>>> On Fri, Feb 26, 2021 at 6:30 PM Stephen Snow <[email protected]>
>> >> wrote:
>> >> >>>>
>> >> >>>>> Hello,
>> >> >>>>> I am sorry I haven't gotten to ask my customer for the SLC500
>> >> >>>>> hardware so I couldn't test your code. I'll be at their location
>> >> >>>>> Monday of next week and will get it then if possible. Connecting
>> >> >>>>> directly to the frontport serial of a PLC5/25 would likely
>> require
>> >> >>>>> the use of a null modem cable (crossover). On a DB9 connector
>> this
>> >> >>>>> basically means connect 5 to 5  2 to 3 and 3 to 2 as viewed from
>> >> >>> cable's perspective.
>> >> >>>>> Since it's RS232C you are dealing with RxD and TxD and common
>> only.
>> >> >>>>>
>> >> >>>>> That port should be able to ramp up transmission rate to
>> something
>> >> >>>>> more reasonable than 2400 Baud, unless you don't mind waiting.
>> I'd
>> >> >>>>> at least go for 19.2k baud, but I was pretty sure it could handle
>> >> >>>>> up to 115.2kbaud which I believe a Rpi should be able to handle
>> >> >>>>> too. In any case, with serial transmission correct you should see
>> >> >>>>> continuous activiy on the indicator lights of the PLC serial port
>> >> >>>>> and inside the PLC system status words have indication of
>> >> >>>>> successful connection (ie physical is good, protocol is correct)
>> >> >>>>> from the PLC POV. I don't have my PLC info in front of me at this
>> >> >>>>> time but it is freely available from Rockwell Automations
>> website,
>> >> >>>>> I think they only require you create an account to be able to
>> >> >>>>> download their information usually, especially legacy controller
>> >> >> info.
>> >> >>>>>
>> >> >>>>> Good luck,
>> >> >>>>>
>> >> >>>>> Stephen
>> >> >>>>> On Fri, 2021-02-26 at 17:05 +0530, Gaurav P wrote:
>> >> >>>>>> Thanks All ....I finally got a chance to test ...created test
>> >> >>>>>> program but I am getting this error  , I have connected DF1
>> >> >>>>>> serial cable to RPI waveshare serial hat which has two serial
>> >> >>>>>> error ....PLC
>> >> >>>>>> 5 is running at baud rate of 2400 and its connected rpi on
>> >> >>>>>> /dev/ttySC1 ....am I getting below error of some hardware issue
>> >> >>>>>> ...how do specify baud rate and serial channel when I am
>> creating
>> >> >>>>>> connection ?
>> >> >>>>>>
>> >> >>>>>> error Error creating channel.
>> >> >>>>>>
>> >> >>>>>>
>> >> >>>>>> On Tue, Feb 23, 2021 at 1:30 PM Julian Feinauer <
>> >> >>>>>> [email protected]> wrote:
>> >> >>>>>>
>> >> >>>>>>> Hey,
>> >> >>>>>>>
>> >> >>>>>>> as far as I see your code looks good Gaurav, lets try it and
>> >> >>>>>>> then report :
>> >> >>>>>>> )
>> >> >>>>>>>
>> >> >>>>>>> Best
>> >> >>>>>>> Julian
>> >> >>>>>>>
>> >> >>>>>>> Von: Gaurav P <[email protected]>
>> >> >>>>>>> Datum: Samstag, 20. Februar 2021 um 19:14
>> >> >>>>>>> An: [email protected] <[email protected]>
>> >> >>>>>>> Betreff: Re: DF1 protocol ...cant find documentation Thanks
>> >> >>>>>>> Chris ... its working ...i added both entries in maven on
>> Monday
>> >> >>>>>>> when I have access to the hardware (AB PLC/5 30) I will test
>> and
>> >> >>>>>>> report back
>> >> >>>>>>>
>> >> >>>>>>> But for the test case, I am was thinking
>> >> >>>>>>>
>> >> >>>>>>>    1. Write a value to register like N71
>> >> >>>>>>>    2. Read from register  and confirm value  N71
>> >> >>>>>>>
>> >> >>>>>>> Kindly review the code below  for testing
>> >> >>>>>>>   try (PlcConnection plcConnection = new
>> >> >>>>>>> PlcDriverManager().getConnection("df1:serial:///ttySC1")) {
>> >> >>>>>>>
>> >> >>>>>>>          *   //I want write to register N71 , is below code ok
>> ?*
>> >> >>>>>>>             PlcReadRequest request =
>> >> >>>>>>> plcConnection.readRequestBuilder()
>> >> >>>>>>>                     .addItem("N71", "5:INTEGER")
>> >> >>>>>>>                     .build();
>> >> >>>>>>>
>> >> >>>>>>>             PlcReadResponse response =
>> >> >>>>>>> request.execute().get(100, TimeUnit.SECONDS);
>> >> >>>>>>>
>> >> >>>>>>> // Check if this connection support reading of data.
>> >> >>>>>>>             if (!plcConnection.getMetadata().canRead()) {
>> >> >>>>>>>                 System.out.println("This connection doesn't
>> >> >>>>>>> support reading.");
>> >> >>>>>>>                 return "This connection doesn't support
>> >> >> reading.";
>> >> >>>>>>>             }else {
>> >> >>>>>>> // TODO: get the actual read bytes from the response
>> >> >>>>>>>                 System.out.println(response);
>> >> >>>>>>>                 System.out.println("Response code was " +
>> >> >>>>>>> response.getResponseCode("erster"));
>> >> >>>>>>>
>> >> >>>>>>>                 System.out.println("Response I got was" +
>> >> >>>>>>> response.getAllIntegers("N71"));
>> >> >>>>>>>           *      //I want Read to register N71 , is below code
>> ok
>> >> >>>>>>> ?*
>> >> >>>>>>>                 return
>> >> >>>>>>> response.getAllIntegers("N71").iterator().next()+"";
>> >> >>>>>>>             }
>> >> >>>>>>>
>> >> >>>>>>>
>> >> >>>>>>>
>> >> >>>>>>>
>> >> >>>>>>> On Sat, Feb 20, 2021 at 10:52 PM Gaurav P <[email protected]>
>> wrote:
>> >> >>>>>>>
>> >> >>>>>>>> Hi Chirs ,
>> >> >>>>>>>> Thanks I had suspected the same thing
>> >> >>>>>>>>
>> >> >>>>>>>> I was able to make it work via adding an apache repository
>> >> >>>>>>>> (after I changed the maven snippet you  had given  from
>> >> >>>>>>>> pluginRepositories to repositories ) and DF1 guide <
>> >> >>>>>>>
>> >> >>>>>
>> https://docs.google.com/document/d/1FWmwJfXVD03MLtHVsJ0UizoA6D5KzU
>> >> >>>>> 9J
>> >> >>>>> G4
>> >> >>>>> VRD-lInGI/edit#
>> >> >>>>>>> <
>> >> >>>>>>>
>> >> >>>>>
>> https://docs.google.com/document/d/1FWmwJfXVD03MLtHVsJ0UizoA6D5KzU
>> >> >>>>> 9J
>> >> >>>>> G4
>> >> >>>>> VRD-lInGI/edit
>> >> >>>>>>>>>
>> >> >>>>>>>> (wip)
>> >> >>>>>>>>
>> >> >>>>>>>> <repositories>
>> >> >>>>>>>>   <repository>
>> >> >>>>>>>>     <id>apache-snapshots</id>
>> >> >>>>>>>>
>> >> >>>>>>>> <url>https://repository.apache.org/content/repositories/snap
>> >> >>>>>>>> sh
>> >> >>>>>>>> ot
>> >> >>>>>>>> s
>> >> >>>>>>> </url>
>> >> >>>>>>>>     <releases>
>> >> >>>>>>>>       <enabled>false</enabled>
>> >> >>>>>>>>     </releases>
>> >> >>>>>>>>     <snapshots>
>> >> >>>>>>>>       <enabled>true</enabled>
>> >> >>>>>>>>     </snapshots>
>> >> >>>>>>>>   </repository>
>> >> >>>>>>>> </repositories>
>> >> >>>>>>>>
>> >> >>>>>>>>
>> >> >>>>>>>> On Sat, Feb 20, 2021 at 10:07 PM Christofer Dutz <
>> >> >>>>>>>> [email protected]> wrote:
>> >> >>>>>>>>
>> >> >>>>>>>>> Hi,
>> >> >>>>>>>>>
>> >> >>>>>>>>> the solution was quite simple:
>> >> >>>>>>>>>
>> >> >>>>>>>>> First off all, we don't release stuff in the Sandbox. So
>> >> >>>>>>>>> there's no
>> >> >>>>>>> 0.8.0
>> >> >>>>>>>>> version.
>> >> >>>>>>>>> Secondly our SNAPSHOTS aren't available from Maven-Central.
>> >> >>>>>>>>> You need to add the Apache SNAPSHOT repo to your project.
>> >> >>>>>>>>>
>> >> >>>>>>>>> In order to do this, please add this to your pom.
>> >> >>>>>>>>>
>> >> >>>>>>>>>   <!-- Make Snapshots of Apache projects available -->
>> >> >>>>>>>>>   <repositories>
>> >> >>>>>>>>>     <repository>
>> >> >>>>>>>>>       <id>apache-snapshots</id>
>> >> >>>>>>>>>
>> >> >>>>>>>>> <url>https://repository.apache.org/content/repositories/sn
>> >> >>>>>>>>> ap
>> >> >>>>>>>>> sh
>> >> >>>>>>>>> ots
>> >> >>>>>>>>> </url>
>> >> >>>>>>>>>       <releases>
>> >> >>>>>>>>>         <enabled>false</enabled>
>> >> >>>>>>>>>       </releases>
>> >> >>>>>>>>>       <snapshots>
>> >> >>>>>>>>>         <enabled>true</enabled>
>> >> >>>>>>>>>       </snapshots>
>> >> >>>>>>>>>     </repository>
>> >> >>>>>>>>>   </repositories>
>> >> >>>>>>>>>
>> >> >>>>>>>>>   <!-- Make Snapshots of Apache plugins available -->
>> >> >>>>>>>>>   <pluginRepositories>
>> >> >>>>>>>>>     <pluginRepository>
>> >> >>>>>>>>>       <id>apache-snapshots</id>
>> >> >>>>>>>>>
>> >> >>>>>>>>> <url>https://repository.apache.org/content/repositories/sn
>> >> >>>>>>>>> ap
>> >> >>>>>>>>> sh
>> >> >>>>>>>>> ots
>> >> >>>>>>>>> </url>
>> >> >>>>>>>>>       <releases>
>> >> >>>>>>>>>         <enabled>false</enabled>
>> >> >>>>>>>>>       </releases>
>> >> >>>>>>>>>       <snapshots>
>> >> >>>>>>>>>         <enabled>true</enabled>
>> >> >>>>>>>>>       </snapshots>
>> >> >>>>>>>>>     </pluginRepository>
>> >> >>>>>>>>>   </pluginRepositories>
>> >> >>>>>>>>>
>> >> >>>>>>>>> That should help.
>> >> >>>>>>>>>
>> >> >>>>>>>>> Chris
>> >> >>>>>>>>>
>> >> >>>>>>>>>
>> >> >>>>>>>>> -----Ursprüngliche Nachricht-----
>> >> >>>>>>>>> Von: Christofer Dutz <[email protected]>
>> >> >>>>>>>>> Gesendet: Samstag, 20. Februar 2021 10:13
>> >> >>>>>>>>> An: [email protected]
>> >> >>>>>>>>> Betreff: Re: DF1 protocol ...cant find documentation
>> >> >>>>>>>>>
>> >> >>>>>>>>> I'll have a look why this is not available.
>> >> >>>>>>>>>
>> >> >>>>>>>>> Holen Sie sich Outlook für Android<https://aka.ms/ghei36>
>> >> >>>>>>>>>
>> >> >>>>>>>>> ________________________________
>> >> >>>>>>>>> From: Gaurav P <[email protected]>
>> >> >>>>>>>>> Sent: Saturday, February 20, 2021 6:19:38 AM
>> >> >>>>>>>>> To: [email protected] <[email protected]>
>> >> >>>>>>>>> Subject: Re: DF1 protocol ...cant find documentation
>> >> >>>>>>>>>
>> >> >>>>>>>>> Hi Chris ,
>> >> >>>>>>>>>
>> >> >>>>>>>>> I also  tried with 0.8 , but no luck<dependency>
>> >> >>>>>>>>>
>> >> >>>>>>>>>   <groupId>org.apache.plc4x.sandbox</groupId>
>> >> >>>>>>>>>   <artifactId>test-java-df1-driver</artifactId>
>> >> >>>>>>>>>   <version>0.8.0</version> </dependency>
>> >> >>>>>>>>>
>> >> >>>>>>>>>
>> >> >>>>>>>>> On Sat, Feb 20, 2021 at 7:15 AM Gaurav P <[email protected]>
>> >> >> wrote:
>> >> >>>>>>>>>
>> >> >>>>>>>>>> Hi Chris ,
>> >> >>>>>>>>>>
>> >> >>>>>>>>>> I am not able to maven dependency for df1 driver Cannot
>> >> >>>>>>>>>> resolve
>> >> >>>>>>>>>> org.apache.plc4x.sandbox:test-java-df1-driver:0.9.0-SNAPSH
>> >> >>>>>>>>>> OT
>> >> >>>>>>>>>>
>> >> >>>>>>>>>> is it not hosted in maven central?
>> >> >>>>>>>>>>
>> >> >>>>>>>>>> On Fri, Feb 19, 2021 at 6:58 PM Christofer Dutz
>> >> >>>>>>>>>> <[email protected]>
>> >> >>>>>>>>>> wrote:
>> >> >>>>>>>>>>
>> >> >>>>>>>>>>> Hi Gaurav,
>> >> >>>>>>>>>>>
>> >> >>>>>>>>>>> you haven't added a dependency to the driver, but to the
>> >> >>>>>>>>>>> protocol specificaton instead.
>> >> >>>>>>>>>>> This is something we use internally to generate the driver
>> >> >>>>>>>>>>> code in various languages. You need to add a dependency to
>> >> >>>>>>>>>>>
>> >> >>>>>>>>>>> <dependency>
>> >> >>>>>>>>>>>     <groupId>org.apache.plc4x.sandbox</groupId>
>> >> >>>>>>>>>>>     <artifactId>test-java-df1-driver</artifactId>
>> >> >>>>>>>>>>>     <version>0.9.0-SNAPSHOT</version> </dependency>
>> >> >>>>>>>>>>>
>> >> >>>>>>>>>>> Chris
>> >> >>>>>>>>>>>
>> >> >>>>>>>>>>> -----Ursprüngliche Nachricht-----
>> >> >>>>>>>>>>> Von: Gaurav P <[email protected]>
>> >> >>>>>>>>>>> Gesendet: Freitag, 19. Februar 2021 14:20
>> >> >>>>>>>>>>> An: [email protected]
>> >> >>>>>>>>>>> Betreff: Re: DF1 protocol ...cant find documentation
>> >> >>>>>>>>>>>
>> >> >>>>>>>>>>> Thanks Chris , Steven
>> >> >>>>>>>>>>>
>> >> >>>>>>>>>>> I tried the code below but I am getting following error
>> >> >>>>>>>>>>> *error Unable to find driver for protocol 'df1'*
>> >> >>>>>>>>>>>
>> >> >>>>>>>>>>> I checked in maven DF1 is added ...what can be the issue
>> >> >> ?
>> >> >>>>>>>>>>>
>> >> >>>>>>>>>>>
>> >> >>>>>>>>>>>
>> >> >>>>>>>>>>> try (PlcConnection plcConnection = new
>> >> >>>>>>>>>>>
>> >> >> PlcDriverManager().getConnection("df1:serial:///ttySC1")) {
>> >> >>>>>>>>>>>     PlcReadRequest request =
>> >> >>>>>>>>>>> plcConnection.readRequestBuilder()
>> >> >>>>>>>>>>>             .addItem("ind4", "5:INTEGER")
>> >> >>>>>>>>>>>             .build();
>> >> >>>>>>>>>>>
>> >> >>>>>>>>>>>
>> >> >>>>>>>>>>> <dependency>
>> >> >>>>>>>>>>>   <groupId>org.apache.plc4x</groupId>
>> >> >>>>>>>>>>>   <artifactId>plc4x-protocols-df1</artifactId>
>> >> >>>>>>>>>>>   <version>0.8.0</version> </dependency>
>> >> >>>>>>>>>>>
>> >> >>>>>>>>>>>
>> >> >>>>>>>>>>> On Fri, Feb 19, 2021 at 6:20 PM Christofer Dutz <
>> >> >>>>>>>>>>> [email protected]>
>> >> >>>>>>>>>>> wrote:
>> >> >>>>>>>>>>>
>> >> >>>>>>>>>>>> Hi Gaurav,
>> >> >>>>>>>>>>>>
>> >> >>>>>>>>>>>> that's generally just something used during development
>> ...
>> >> >>>>>>>>>>>> It wasn't intended to be used as a standalone application.
>> >> >>>>>>>>>>>> If you want to use it to experiment, you have to replace
>> >> >>>>>>>>>>>> the connection string (currently "df1:serial:///COM4" with
>> >> >>>>>>>>>>>> something for your case and then add/adjust the items
>> added
>> >> >>>>>>>>>>>> to the Read
>> >> >>>>>>>>> Request.
>> >> >>>>>>>>>>>>
>> >> >>>>>>>>>>>> Chris
>> >> >>>>>>>>>>>>
>> >> >>>>>>>>>>>>
>> >> >>>>>>>>>>>> -----Ursprüngliche Nachricht-----
>> >> >>>>>>>>>>>> Von: Gaurav P <[email protected]>
>> >> >>>>>>>>>>>> Gesendet: Freitag, 19. Februar 2021 13:16
>> >> >>>>>>>>>>>> An: [email protected]
>> >> >>>>>>>>>>>> Betreff: Re: DF1 protocol ...cant find documentation
>> >> >>>>>>>>>>>>
>> >> >>>>>>>>>>>> Hi Team /Lucas ...
>> >> >>>>>>>>>>>> Thanks  for comments ...
>> >> >>>>>>>>>>>>
>> >> >>>>>>>>>>>> Should I use this program to test to PLC 500
>> >> >>>>>>>>>>>>
>> >> >>>>>>>>>>>>
>> >> >>>>>>>>>>>>
>> >> >>>>>>>
>> https://github.com/apache/plc4x/blob/develop/sandbox/test-java-d
>> >> >>>>>>> f1-
>> >> >>>>>>>>>>>> dri
>> >> >>>>>>>>>>>> ver/src/test/java/org/apache/plc4x/protocol/df1/EndToE
>> >> >>>>>>>>>>>> ndT
>> >> >>>>>>>>>>>> est.java
>> >> >>>>>>>>>>>>
>> >> >>>>>>>>>>>>
>> >> >>>>>>>>>>>> Also how do I specify address ?
>> >> >>>>>>>>>>>>
>> >> >>>>>>>>>>>>  PlcReadRequest request =
>> >> >>>>>>>>>>>> plcConnection.readRequestBuilder()
>> >> >>>>>>>>>>>>
>> >> >>>>>>>>>>>>                 .addItem("hurz", "5:INTEGER") ->>>>*is
>> this
>> >> >>>>>>>>>>>> address of register ???*
>> >> >>>>>>>>>>>>
>> >> >>>>>>>>>>>>                 .build();
>> >> >>>>>>>>>>>>
>> >> >>>>>>>>>>>>
>> >> >>>>>>>>>>>> On Fri, Feb 19, 2021 at 5:12 PM Gaurav P <[email protected]>
>> >> >>>>>>>>>>>> wrote:
>> >> >>>>>>>>>>>>
>> >> >>>>>>>>>>>>> Hi Team,
>> >> >>>>>>>>>>>>>
>> >> >>>>>>>>>>>>> I followed the link which was shared by Lukas and Chris
>> >> >>>>>>>>>>>>> and managed to dish out the guide with sample code ,
>> which
>> >> >>>>>>>>>>>>> I would be testing AB PLC 500
>> >> >>>>>>>>>>>>>
>> >> >>>>>>>>>>>>> *
>> >> >>>>>>>
>> https://docs.google.com/document/d/1FWmwJfXVD03MLtHVsJ0UizoA6D5K
>> >> >>>>>>>>>>>>> zU9
>> >> >>>>>>>>>>>>> JG
>> >> >>>>>>>>>>>>> 4VRD-lInGI/edit?usp=sharing <
>> >> >>>>>>>
>> https://docs.google.com/document/d/1FWmwJfXVD03MLtHVsJ0UizoA6D5K
>> >> >>>>>>>>>>>>> zU9 JG 4VRD-lInGI/edit?usp=sharing>  * I have some
>> >> >>>>>>>>>>>>> questions in the above document (marked read), it would
>> be
>> >> >>>>>>>>>>>>> great if can get comments, a post that will compile and
>> >> >>>>>>>>>>>>> run in RPI connect to PLC
>> >> >>>>>>>>>>>>>
>> >> >>>>>>>>>>>>> Thanks
>> >> >>>>>>>>>>>>>
>> >> >>>>>>>>>>>>> On Fri, Feb 19, 2021 at 3:25 PM Stephen Snow
>> >> >>>>>>>>>>>>> <[email protected]>
>> >> >>>>>>>>>>> wrote:
>> >> >>>>>>>>>>>>>
>> >> >>>>>>>>>>>>>> I can get this tested on both serial and
>> >> >> ethernet/ip.
>> >> >>>>>>>>>>>>>> I also
>> >> >>>>>>>>>>>>>> have ther
>> >> >>>>>>>>>>>>>> DF1 protocol manual.
>> >> >>>>>>>>>>>>>>
>> >> >>>>>>>>>>>>>> Stephen
>> >> >>>>>>>>>>>>>> On Fri, 2021-02-19 at 15:22 +0530, Gaurav P wrote:
>> >> >>>>>>>>>>>>>>> Thanks Chris ... I have access to an ancient AB PLC
>> >> >>>>>>>>>>>>>>> 5/260  and
>> >> >>>>>>>>>>>>>>> will start testing and report back to you
>> .....transport
>> >> >>>>>>>>>>>>>>> link would be serial ...hope it wont be any issue
>> After
>> >> >>>>>>>>>>>>>>> I go through the docs , hope its not too complex , I
>> >> >>>>>>>>>>>>>>> maybe able to maintain and test driver
>> >> >>>>>>>>>>>>>>>
>> >> >>>>>>>>>>>>>>> On Fri, Feb 19, 2021 at 1:07 PM Christofer Dutz
>> >> >>>>>>>>>>>>>>> <[email protected]>
>> >> >>>>>>>>>>>>>>> wrote:
>> >> >>>>>>>>>>>>>>>
>> >> >>>>>>>>>>>>>>>> Hi Gaurav,
>> >> >>>>>>>>>>>>>>>>
>> >> >>>>>>>>>>>>>>>> also from my side, welcome :-)
>> >> >>>>>>>>>>>>>>>>
>> >> >>>>>>>>>>>>>>>> I think the DF1 was one of the first tob e created
>> with
>> >> >>>>>>>>>>>>>>>> the new code-generation framework.
>> >> >>>>>>>>>>>>>>>> However due to lack of hardware to test on, it's still
>> >> >>>>>>>>>>>>>>>> located in the "Sandbox" and got a "test" prefix on
>> it.
>> >> >>>>>>>>>>>>>>>>
>> >> >>>>>>>>>>>>>>>>     <dependency>
>> >> >>>>>>>>>>>>>>>>
>> >> >>>>>>>>>>>>>>>> <groupId>org.apache.plc4x.sandbox</groupId>
>> >> >>>>>>>>>>>>>>>>         <artifactId>test-java-df1- driver</artifactId>
>> >> >>>>>>>>>>>>>>>>         <version>0.9.0-SNAPSHOT</version>
>> >> >>>>>>>>>>>>>>>>     </dependency>
>> >> >>>>>>>>>>>>>>>>
>> >> >>>>>>>>>>>>>>>> Also I think it supports all features that were needed
>> >> >>>>>>>>>>>>>>>> by the folks that implemented it, but probably not
>> much
>> >> >>>>>>>>>>>>>>>> more
>> >> >>>>>>>>> than that.
>> >> >>>>>>>>>>>>>>>>
>> >> >>>>>>>>>>>>>>>> So please test it. If you need it to do more and
>> you've
>> >> >>>>>>>>>>>>>>>> got a device you can test it with, we'd be happy to
>> >> >>>>>>>>>>>>>>>> help you
>> >> >>>>>>> with
>> >> >>>>>>>>> that.
>> >> >>>>>>>>>>>>>>>>
>> >> >>>>>>>>>>>>>>>> Chris
>> >> >>>>>>>>>>>>>>>>
>> >> >>>>>>>>>>>>>>>>
>> >> >>>>>>>>>>>>>>>> -----Ursprüngliche Nachricht-----
>> >> >>>>>>>>>>>>>>>> Von: Lukas Ott <[email protected]>
>> >> >>>>>>>>>>>>>>>> Gesendet: Freitag, 19. Februar 2021 07:33
>> >> >>>>>>>>>>>>>>>> An: [email protected]
>> >> >>>>>>>>>>>>>>>> Betreff: Re: DF1 protocol ...cant find documentation
>> >> >>>>>>>>>>>>>>>>
>> >> >>>>>>>>>>>>>>>> Hi Gaurav,
>> >> >>>>>>>>>>>>>>>>
>> >> >>>>>>>>>>>>>>>> Welcome to the list :-),
>> >> >>>>>>>>>>>>>>>>
>> >> >>>>>>>>>>>>>>>> Yes it really is supported. Here you ll find some more
>> >> >>>>>>>>> details:
>> >> >>>>>>>>>>>>>>>>
>> >> >>>>>>> https://plc4x.apache.org/developers/code-gen/protocol/df1.ht
>> >> >>>>>>>>>>>>>>>> ml
>> >> >>>>>>>>>>>>>>>>
>> >> >>>>>>>>>>>>>>>> The best way to get started you can find here:
>> >> >>>>>>>>>>>>>>>>
>> >> >>>>> https://plc4x.apache.org/users/getting-started/plc4j.html
>> >> >>>>>>>>>>>>>>>> to understand more read here:
>> >> >>>>>>>>>>>>>>>>
>> >> >>>>>>> https://plc4x.apache.org/users/getting-started/general-conce
>> >> >>>>>>>>>>>>>>>> pts
>> >> >>>>>>>>>>>>>>>> .h
>> >> >>>>>>>>>>>>>>>> tml
>> >> >>>>>>>>>>>>>>>>
>> >> >>>>>>>>>>>>>>>> For release 0.6 you ll find the java code here:
>> >> >>>>>>>>>>>>>>>>
>> >> >>>>>>>>>>>>>>>>
>> >> >>>>>>>>>>>>>>
>> >> >>>>>>>
>> https://github.com/apache/plc4x/blob/rel/0.6/protocols/df1/src/m
>> >> >>>>>>>>>>>>>> ain /j
>> >> >>>>>>>>>>>>>> ava/org/apache/plc4x/protocol/df1/Df1Protocol.java
>> >> >>>>>>>>>>>>>>>>
>> >> >>>>>>>>>>>>>>>>
>> >> >>>>>>>>>>>>>>>> Example code you ll find here:
>> >> >>>>>>>>>>>>>>>>
>> >> >>>>> https://github.com/apache/plc4x/tree/develop/plc4j/examples
>> >> >>>>>>>>>>>>>>>>
>> >> >>>>>>>>>>>>>>>> Currently not sure if we ported DF1 to release
>> >> >>>>>>>>>>>>>>>> 0.8
>> >> >>>>>>>>>>>>>>>>
>> >> >>>>>>>>>>>>>>>> Cheers,
>> >> >>>>>>>>>>>>>>>> otluk
>> >> >>>>>>>>>>>>>>>>
>> >> >>>>>>>>>>>>>>>> Am Fr., 19. Feb. 2021 um 03:41 Uhr schrieb
>> >> >>>>>>>>>>>>>>>> Gaurav P <
>> >> >>>>>>>>>>> [email protected]>:
>> >> >>>>>>>>>>>>>>>>
>> >> >>>>>>>>>>>>>>>>> Hi Team ,
>> >> >>>>>>>>>>>>>>>>> I am new to PLC4x , trying to integrate with
>> >> >>>>>>>>>>>>>>>>> DF1 but cant find any documentation ....
>> >> >>>>>>>>>>>>>>>>>
>> >> >>>> https://plc4x.apache.org/users/protocols/df1.html
>> >> >>>>>>>>>>>>>>>>>
>> >> >>>>>>>>>>>>>>>>> is it really supported? if yes where can I
>> >> >>>>>>>>>>>>>>>>> get documentation and an example code
>> >> >>>>>>>>>>>>>>>>> --
>> >> >>>>>>>>>>>>>>>>> B*e * the *Ch*ange
>> >> >>>>>>>>>>>>>>>>>
>> >> >>>>>>>>>>>>>>>>
>> >> >>>>>>>>>>>>>>>
>> >> >>>>>>>>>>>>>>>
>> >> >>>>>>>>>>>>>>
>> >> >>>>>>>>>>>>>>
>> >> >>>>>>>>>>>>>>
>> >> >>>>>>>>>>>>>
>> >> >>>>>>>>>>>>> --
>> >> >>>>>>>>>>>>> B*e * the *Ch*ange
>> >> >>>>>>>>>>>>>
>> >> >>>>>>>>>>>>
>> >> >>>>>>>>>>>>
>> >> >>>>>>>>>>>> --
>> >> >>>>>>>>>>>> B*e * the *Ch*ange
>> >> >>>>>>>>>>>>
>> >> >>>>>>>>>>>
>> >> >>>>>>>>>>>
>> >> >>>>>>>>>>> --
>> >> >>>>>>>>>>> B*e * the *Ch*ange
>> >> >>>>>>>>>>>
>> >> >>>>>>>>>>
>> >> >>>>>>>>>>
>> >> >>>>>>>>>> --
>> >> >>>>>>>>>> B*e * the *Ch*ange
>> >> >>>>>>>>>>
>> >> >>>>>>>>>
>> >> >>>>>>>>>
>> >> >>>>>>>>> --
>> >> >>>>>>>>> B*e * the *Ch*ange
>> >> >>>>>>>>>
>> >> >>>>>>>>
>> >> >>>>>>>>
>> >> >>>>>>>> --
>> >> >>>>>>>> B*e * the *Ch*ange
>> >> >>>>>>>>
>> >> >>>>>>>
>> >> >>>>>>>
>> >> >>>>>>> --
>> >> >>>>>>> B*e * the *Ch*ange
>> >> >>>>>>>
>> >> >>>>>>
>> >> >>>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>>
>> >> >>>>
>> >> >>>> --
>> >> >>>> B*e * the *Ch*ange
>> >> >>>>
>> >> >>>
>> >> >>>
>> >> >>> --
>> >> >>> B*e * the *Ch*ange
>> >> >>>
>> >> >>
>> >> >>
>> >> >> --
>> >> >> B*e * the *Ch*ange
>> >> >>
>> >> >
>> >> >
>> >>
>> >
>> >
>> > --
>> > B*e * the *Ch*ange
>> >
>>
>>
>> --
>> B*e * the *Ch*ange
>>
>
>
> --
> B*e * the *Ch*ange
>


-- 
B*e * the *Ch*ange

Reply via email to