Re: Anyone here experience with Emerson DeltaV communication?

2018-06-11 Thread Niclas Hedhman
nformation and eventually give me the one or the other useful hint. > > But for now … done enough hex-dump-reading for today … > > #ifdef PLC > #define PLC = Plenty of Lovely Craftbeer > #endif > > Have a nice weekend :-) > > Chris > -- Niclas Hedhman, Software Developer http://polygene.apache.org - New Energy for Java

Master ? Slave? Both?

2017-12-30 Thread Niclas Hedhman
llows a OO-style of C programming that not everyone appreciate. Cheers -- Niclas Hedhman, Software Developer http://polygene.apache.org - New Energy for Java

Re: Master ? Slave? Both?

2017-12-31 Thread Niclas Hedhman
reviously made a C library for ModBus (from > spec), and > I could see if it is worth dusting off and contribute. Is it of > interest, > or? It might not be complete, and I recall it follows a OO-style of C > programming that not everyone appreciate. > > > Cheer

Serialport comms?

2018-02-12 Thread Niclas Hedhman
investigate that one... * Our own implementation from scratch, which kind of belongs in Apache APR, at least the C/native part. Cheers -- Niclas Hedhman, Software Developer http://polygene.apache.org - New Energy for Java

Re: Is Junit5 the way to go?

2018-02-10 Thread Niclas Hedhman
The difference between Junit4 and Junit5 are relatively minor from a user's perspective. The real difference is when creating Runners for special need systems, such as Spring So, going with JUnit4 for now is not a bad thing... But, it seems that there is some legacy that should be scrapped,

Re: Is Junit5 the way to go?

2018-02-11 Thread Niclas Hedhman
t; Hi Nicolas, > > While I was at it, I press everything to junit 4 and migrated all junit > Assert statements with assertj assertions. Do you have any opinion to these > two options? Hamcrest vs. AssertJ? > > Chris > > Outlook for Android<https://aka.ms/ghei36> herunterl

Re: Batch reads with JPA like annotation magic?

2018-02-19 Thread Niclas Hedhman
> The connection could be extended to look a (configurable) property > file. A property property () would then use this property map in the > connection to get the real address string for the given property - hereby > keeping the full portability. > > > > Maybe it would be better to have two separate property annotations: > one for property-based and one for hard-coded address strings. > > > > The benefit would be that we then could simplify the integrations to > frameworks like Edgent as we could create sources and sinks based on the > POJO type. > > > > What do you think? > > > > Chris > > > > -- Niclas Hedhman, Software Developer http://polygene.apache.org - New Energy for Java

Re: Making your first release

2018-08-28 Thread Niclas Hedhman
> for 250+ days. "Release early and release often” should be the guideline > to follow. What is holding up this project making it first release? > Remember a first release doesn’t have to be perfect and each release just > needs to be better than the last. > > > > Thanks, > > Justin > > > -- Niclas Hedhman, Software Developer http://polygene.apache.org - New Energy for Java

Re: Creating a Kafka Stream connector for PLC4X?

2018-03-12 Thread Niclas Hedhman
gt; talk he introduced Kafka Streams and to me it sounded like a „Clustered > Edgent“. > > My second thought was: would it not be cool to implement such a Kafka > Stream Connector? > > Anyone here got the knowhow to do that? Shouldn’t be that difficult. > > Chris > -- N

Re: Creating a Kafka Stream connector for PLC4X?

2018-03-13 Thread Niclas Hedhman
ly most used setup is actually using PLC4X for PLC > communication and using Edgents Kafka Connector to publish to Kafka. > > A Kafka Connect adapter would allow to directly connect it to Kafka. > > Chris > > > Am 13.03.18, 00:02 schrieb "hedh...@gmail.com im Auftrag von

Re: Creating a Kafka Stream connector for PLC4X?

2018-03-23 Thread Niclas Hedhman
the number of hands (my own included) to help out, which requires that the people with the vision and understanding of the details, need to work more on documentation and less on exotic integration. I think it is the most urgent issue in this project. Cheers Niclas On Thu, Mar 22, 2018 at 5:5

Re: [DRAFT] March Podling Report PLC4X

2018-04-03 Thread Niclas Hedhman
d. > So far, the new participants have shown great willingness and success in > adopting the Apache Way. > However, we still need to continue: > the on-boarding > increasing the diversity of the team > Also, will we need to decide and establish all the processes involved in >

Re: [DRAFT] March Podling Report PLC4X

2018-04-04 Thread Niclas Hedhman
of the mentors > please add the report for me (I think this has to be a mentor) > > Chris > > Outlook for Android<https://aka.ms/ghei36> herunterladen > > > From: hedh...@gmail.com <hedh...@gmail.com> on behalf of Niclas Hedhman

Re: Creating a Kafka Stream connector for PLC4X?

2018-03-22 Thread Niclas Hedhman
implied but not sure) rather than programming. More next week. Niclas On Wed, Mar 21, 2018 at 5:19 PM, Niclas Hedhman <nic...@hedhman.org> wrote: > > Alright... So to repeat (and I think you get this much)... Kafka is in > principle very simple; Put any byte array into a topi

Re: Creating a Kafka Stream connector for PLC4X?

2018-03-21 Thread Niclas Hedhman
icipant wouldn't increase company diversity) > > Chris > > > Am 13.03.18, 16:41 schrieb "hedh...@gmail.com im Auftrag von Niclas > Hedhman" <hedh...@gmail.com im Auftrag von nic...@hedhman.org>: > > Sorry, don't know what that is or what it really is,

Re: Batch reads with JPA like annotation magic?

2018-03-05 Thread Niclas Hedhman
simple as possible, but as extendable as possible. > > So I'm always open for new ideas ( > > Chris > > > > Am 20.02.18, 03:32 schrieb "hedh...@gmail.com im Auftrag von Niclas > Hedhman" <hedh...@gmail.com im Auftrag von nic...@hedhman.org>: > > Being the

Re: Batch reads with JPA like annotation magic?

2018-03-06 Thread Niclas Hedhman
What do you (all) think? > > Chris > > > > > Am 06.03.18, 07:24 schrieb "hedh...@gmail.com im Auftrag von Niclas > Hedhman" <hedh...@gmail.com im Auftrag von nic...@hedhman.org>: > > Polygene is highly opinionated, for better and worse. Minim

Re: [WARNING] Please don't commit anything to `master` effective immediately

2018-11-18 Thread Niclas Hedhman
ger > merging the latest release version back to master after a successful > release. > > Commits to master will cause a lot of problems from now on. > > Chris > -- Niclas Hedhman, Software Developer http://polygene.apache.org - New Energy for Java

Re: Exciting news for Apache comimtters

2019-05-31 Thread Niclas Hedhman
> To the full toolbox. So now you could also use CLion for C++ and the > Python IDE free of charge. > > If you’re interested, give me a ping and I’ll try to find out what you > have to do to get that offer. > > Chris > -- Niclas Hedhman, Software Developer http://polygene.apache.org - New Energy for Java

Re: [DriverGen] Major refactoring and great improvements

2019-05-29 Thread Niclas Hedhman
put modules contain everything needed to generate the output > * My implementation of a language-template-java uses > freemarker to generate output, but others could simply use other techniques > > So far I have a pojo template that will generate the POJO classes > for the types in th

Re: [ANNOUNCE] Björn Höper joins PLC4X PMC

2019-05-13 Thread Niclas Hedhman
on > board! > > Julian (on behalf of the PLC4X PMC) > -- Niclas Hedhman, Software Developer http://polygene.apache.org - New Energy for Java

Re: [generation] Another approach to generated drivers

2019-04-29 Thread Niclas Hedhman
nd decision. In fact, both approaches should > be equally powerful, so one could be able to translate one to the other and > vice versa, in theory. > I consider it highly important to have a good and easy way to develop and > maintain drivers as this is the crucial thing for

Re: [DISCUSS] Rename CRUNCH to something different

2019-09-08 Thread Niclas Hedhman
we should call it as PLC4X > subproject. > > Any ideas or suggestions? > > Julian > -- Niclas Hedhman, Software Developer http://polygene.apache.org - New Energy for Java

Re: Usage of Netty - JSerialcom-Bridge

2019-08-07 Thread Niclas Hedhman
> What do you think? > The best way, if he agrees, would be to have him sign an ICLA and we could > simply take the code as is and refactor it perhaps a bit and adapt it to > newer versions. > > Otherwise, I think it will be hard to use this lib and we would need to > come up with an alternative. > > Julian > -- Niclas Hedhman, Software Developer http://polygene.apache.org - New Energy for Java

Re: Simpifying the profiles?

2019-10-15 Thread Niclas Hedhman
be left > without guidance when building only “plc4cpp” for example … so we would > have the big check in the root and multiple partial checks in the > sub-directories. > > > I personally would prefer the version 1), but let’s discuss this. > > Perhaps you have other ideas … I would be happy to hear and discuss them. > > Chris > > > > -- Niclas Hedhman, Software Developer http://polygene.apache.org - New Energy for Java

Re: [REFACTORING] Self-Describing Driver Parameters

2019-10-23 Thread Niclas Hedhman
If I am not mistaken, the annotations in Camel are used in runtime as well, and the additional description is a "small extra", compared to no annotations with at the start. That said; annotations were added with multiple purposes, and one explicit such purpose was for documentation purposes, I

Re: PLC4X and OSGi

2019-10-13 Thread Niclas Hedhman
As a former OSGi-buff, I think I need to provide a little bit guidance/translation here What Julian is talking about is how bundles are constructed according to OSGi, i.e. more stuff in META-INF/MANIFEST.MF, and there is tooling support to ensure this is done correctly, such as a Maven

Re: [DISCUSS] Guideline for "professional support" Mentioning on Homepage

2020-01-27 Thread Niclas Hedhman
My two cents; you could recommend that companies that has commercial support to use a unique name on their offering/landing page that gets picked up by search engines and let the general public know what that word is... When I personally am looking for this for project Foo, then "foo -site:

Re: [DISCUSS] Guideline for "professional support" Mentioning on Homepage

2020-01-27 Thread Niclas Hedhman
and your suggestion. > > Chris > > > > Am 27.01.20, 10:01 schrieb "Niclas Hedhman" : > > My two cents; you could recommend that companies that has commercial > support to use a unique name on their offering/landing page that gets > picked up by sear

Re: SPI Module - OSGi Bundle

2020-04-07 Thread Niclas Hedhman
Schneider > wrote: > > > >> The code in plc4x directly uses the class (not a String of the > name). This > > > >> is good. Normally such a class reference should work fine. > > > >> > > > >> Can you show your code as a complete exa

Re: Big and littleendian fields in one mspec

2020-04-12 Thread Niclas Hedhman
For us who were around and shaping the protocols in the 1980s, and people before us (and before standards like RS-232), a lot of the "specifications" came out of "observation of implementation we managed to get to work", rather than "implement this spec". A lot was due to extreme memory

Re: SPI Module - OSGi Bundle

2020-04-07 Thread Niclas Hedhman
gt; Christian > > >> > > >> > > >> Am Fr., 3. Apr. 2020 um 09:58 Uhr schrieb Julian Feinauer < > > >> j.feina...@pragmaticminds.de>: > > >> > > >>> I am off with my knowledge. > > >>> You could ask th

Re: SPI Module - OSGi Bundle

2020-03-31 Thread Niclas Hedhman
It happens that OSGi classloading result in the wrong NCDFE and that one of the classes "used" (i.e. return type, parameter, throws, extends, implements) in the reported class is not visible by the classloader. And occasionally, it is a "diamond problem", i.e. that the Constraints (IIRC, see

Re: SPI Module - OSGi Bundle

2020-05-04 Thread Niclas Hedhman
; >>>>> > > >>>>> > > >>>>>org.apache.felix > > >>>>>maven-bundle-plugin > > >>>>>4.2.1 > > >>>>>

Re: [Introduction] Christofer Dutz

2020-05-05 Thread Niclas Hedhman
On Tue, May 5, 2020 at 7:23 PM Christofer Dutz wrote: > Being an IT guy living near Frankfurt (Germany) there is almost no chance > to not work for Banks and Insurance companies. So I guess I’ve been working > for about 12 different Banks and Insurance companies in the last 15 years. > I always

Re: SPI Module - OSGi Bundle

2020-05-05 Thread Niclas Hedhman
river > directly when you need it. > > In theory, there is no such thing as a DriverManager in OSGi but only a > PlcDriver with the capability ("plc4x-protocol": "s7") or something. > > > > I did it witht he driver maanger mostly fort he ease as first app

Re: SPI Module - OSGi Bundle

2020-05-05 Thread Niclas Hedhman
Also, just in case, a custom activator is ever required, it can be overridden easily without breaking the over all design On Tue, May 5, 2020 at 6:27 PM Niclas Hedhman wrote: > Yes, that's what I mean, because that is what you have inside the loop, so > it should work. > > On Tue,

Re: SPI Module - OSGi Bundle

2020-05-05 Thread Niclas Hedhman
iver would call it and declare the service itself? > > Le mar. 5 mai 2020 à 05:25, Niclas Hedhman a écrit : > > > What you are doing is not particularly OSGi-y... The expected way to do > > this is to have each bundle register their PlcDriver or Transport to the > > OSGi service

Re: SPI Module - OSGi Bundle

2020-05-06 Thread Niclas Hedhman
e Robinet wrote: > Hi all, > So concretely what changes should be done so that a Driver/Transport > declares itself his service? Beside the changes in the manifest? > Etienne > On 2020/05/06 01:26:42, Niclas Hedhman wrote: > > Łukasz, > > > > the reason I say it

Re: SPI Module - OSGi Bundle

2020-05-07 Thread Niclas Hedhman
e classes) to another place. > It is > > necessary to avoid creation of implementation dependency. And > that's > > what is in fact, promoted by shared activator class. > > > > Best, > > Łukasz > >

Re: SPI Module - OSGi Bundle

2020-05-08 Thread Niclas Hedhman
separate module. > > Chris > ________ > Von: Niclas Hedhman > Gesendet: Freitag, 8. Mai 2020 05:12 > An: dev@plc4x.apache.org > Betreff: Re: SPI Module - OSGi Bundle > > Both approaches are independent of OSGi framework implementations, which is > part of the beauty of OSGi. >

Re: SPI Module - OSGi Bundle

2020-05-08 Thread Niclas Hedhman
ANIFEST? > Etienne > > Le ven. 8 mai 2020 à 09:55, Niclas Hedhman a écrit : > > > As mentioned elsewhere, the generic activators could go in a separate > > bundle for OSGi use only. That applies to both this approach and Lukasz' > > one. > > > > // N

Re: Serial port Connection

2020-06-29 Thread Niclas Hedhman
entation on the connection-pool as I > just recently had to find out how to use it myself ;-) > > Chris > > > Am 25.06.20, 11:41 schrieb "Julian Feinauer" < > j.feina...@pragmaticminds.de>: > > Hey, > > yes, its in the module scraper or plc-

Re: Serial port Connection

2020-06-30 Thread Niclas Hedhman
On Tue, Jun 30, 2020 at 2:31 PM Christofer Dutz wrote: > But can we assume that only one protocol is handled over one serial > interface? So not multiple Modbus devices sharing with multiple S5 devices > ... > So, I have never seen anyone trying multiple protocols on the same port, so that is a

Re: [jira] [Created] (PLC4X-214) [Modbus] Holding register addresses have an offset of 1 (Not reading the correct address)

2020-07-14 Thread Niclas Hedhman
What is ModbusPAL? The 1-offset in Modbus has caused a lot of confusion over the years. On Tue, Jul 14, 2020 at 11:03 PM Christofer Dutz wrote: > Sorry for the noise ... > > this was a false positive ... the driver was doing things correctly. > It seems the ModbusPAL was just off by one ;-) >

Re: [jira] [Created] (PLC4X-214) [Modbus] Holding register addresses have an offset of 1 (Not reading the correct address)

2020-07-15 Thread Niclas Hedhman
ns, so ModbusPAL was one of the > very few solutions that were pure-java. > > Don't quite understand what the thing with the offset is however ... > should be easy to fix ... I mean if I say address 42 in PLC4X, Wireshark > says 42, but in Modbus Pal I think it has to be 43 ... don't

Re: [jira] [Created] (PLC4X-214) [Modbus] Holding register addresses have an offset of 1 (Not reading the correct address)

2020-07-15 Thread Niclas Hedhman
o if you enter an "holding-register:42" address it tries to read the > register number 43 in ModbusPAL. > > I guess as we are reading an "address" we are correct and probably as > ModusPAL says register number, that might be correct too? > > Chris > >

Re: [jira] [Created] (PLC4X-214) [Modbus] Holding register addresses have an offset of 1 (Not reading the correct address)

2020-07-15 Thread Niclas Hedhman
that he wants "Register X" > and not "The Register Y references" (which seems to be one less) ... I > might even swing my vote in favor to using register numbers instead of > addresses. > > But then I ask myself: How can I address register 0 in ModbusPal

Re: [jira] [Created] (PLC4X-214) [Modbus] Holding register addresses have an offset of 1 (Not reading the correct address)

2020-07-15 Thread Niclas Hedhman
ges. > > It does seem as if the industry tends to wrap some aspects in software > bubble-wrap ... we gotta find out what's below. > > Chris > > > Am 15.07.20, 15:23 schrieb "Niclas Hedhman" : > > It is a common format in equipment documentation. I am curre

Serial port Connection

2020-06-24 Thread Niclas Hedhman
Hi, IIUIC, the connection string for Serial Modbus would be something like; modbus:serial:/dev/ttyS0?unit-identifier=7 assuming I want to communicate with device with address 7. That would mean that I have one connection per device I talk to over a single serial port. Is that correct?

Re: Serial port Connection

2020-06-25 Thread Niclas Hedhman
open and configuration should be as you wrote it. > I also did some tests with it but that was some months ago... > > Hope to have some more information later. > > Julian > > Am 25.06.20, 05:58 schrieb "Niclas Hedhman" : > > Hi, > IIUIC, t

Re: [jira] [Created] (PLC4X-214) [Modbus] Holding register addresses have an offset of 1 (Not reading the correct address)

2020-07-16 Thread Niclas Hedhman
select which function codes > you want to use for each device to try and work around this. > > For Modbus TCP, some servers won't allow more than a certain number of > connections at any one time. Sometimes this number is 1. It can be very > annoying to troubleshoot. > > K

Re: [jira] [Created] (PLC4X-214) [Modbus] Holding register addresses have an offset of 1 (Not reading the correct address)

2020-07-16 Thread Niclas Hedhman
it), full floats and double, if the encoding is somewhat standard > (which I assume it's not) > > Chris > ________ > Von: Niclas Hedhman > Gesendet: Donnerstag, 16. Juli 2020 08:33 > An: dev@plc4x.apache.org > Betreff: Re: [jira] [Created] (PLC4X-214) [Mod

[jira] [Created] (PLC4X-205) Incorrect shutdown sequence on error

2020-06-24 Thread Niclas Hedhman (Jira)
Niclas Hedhman created PLC4X-205: Summary: Incorrect shutdown sequence on error Key: PLC4X-205 URL: https://issues.apache.org/jira/browse/PLC4X-205 Project: Apache PLC4X Issue Type: Bug