Re: [DISCUSS] Having a in-person community meetup?

2023-01-10 Thread Niclas Hedhman
On 2023-01-10 14:33, Christofer Dutz wrote: So please speak up … who would be interested to come? And who would need assistance and if yes: from where you would be coming. Depending on dates, I am interested to attend. I probably fly from Copenhagen. Niclas

Re: Modbus addresses offset by 1?

2023-01-07 Thread Niclas Hedhman
I am not sure what you are asking; But Modbus documentation addresses are (in my experience) always offset by 1, which I think goes back to the 1970s when we weren't yet sure whether numbers started at 0 or at 1, and number ranges were a scarce resource so we wouldn't sacrifice one for

Re: [PROPOSAL] Implement a Java GUI application for browsing PLCs with PLC4X

2022-06-24 Thread Niclas Hedhman
On 2022-06-23 14:36, Christofer Dutz wrote: I agree that if we use NetBeans it’s definitiely “eating our own (Apache) dogfood” … and yes it’s quite well established. Probably you can create Standalone Applications with Netbeans similar to how you can do that with Eclipse. However, do I imagine,

Re: [DISCUSS] Is a page like this ok?

2022-06-15 Thread Niclas Hedhman
I would double-check with Brand Management... On 2022-06-15 13:43, Christofer Dutz wrote: Hi all, I just recently was in need of a good profiler and EJ-Technologies were kind enough to send me a site-license for the Apache PLC4X project. Usually they require a no "nofollow" link back to

Re: [DISCUSS] Rename "modbus" to "modbus-tcp"?

2022-03-09 Thread Niclas Hedhman
On 2022-03-09 17:07, Christofer Dutz wrote: Hi Lukas, I think that Modbus+ is a completely different thing. Seems to be related to routing of Modbus traffic ... haven't looked too deep at it. I think it was an attempt to modernize Modbus for the 21st century, but I have not seen any devices

Re: Thomas ... you still around?

2022-02-13 Thread Niclas Hedhman
On 2022-02-12 21:03, Christofer Dutz wrote: In the end my final goal would be to have plc4c running in a mynewt application, which is running on some super-low-power STM32 devices. One of my development boards has a LoRaWan interface, so in the end I'd love to send requests to the device and

Re: [DISCUSS] What should the "Connection Pool" be named?

2022-01-21 Thread Niclas Hedhman
Here is how I would create the abstraction; There are "physical connections" from the PLC4X to zero, one or more devices, and a single connection is held to each device. Then we need a solution where different threads can access each such physical connection in an ordered/shared manner. So,

Re: More possible problems with connection pools

2022-01-21 Thread Niclas Hedhman
On 2022-01-21 10:12, Christofer Dutz wrote: I think the very special problem we have here is the limitation of the number of concurrent connections PLCs usually provide ... my S7 1200 allows 3 concurrent connections. My KNX gateway (which is one of the better models allowing multiple concurrent

Re: More possible problems with connection pools

2022-01-21 Thread Niclas Hedhman
On 2022-01-21 09:19, Christofer Dutz wrote: So instead of having the subscriber having to keep the connection to keep the subscription alive, I would opt for adding subscriptions to the connection and keeping them valid, even after the connection is returned to the pool. Yes, this causes

Re: Modbus choosing the correct write function

2021-10-07 Thread Niclas Hedhman
On 2021-10-07 23:33, Łukasz Dywicki wrote: As far I know Murphy's law we will then find devices which require write multiple even for single register. ;-) I can confirm that I have come across that too, and pretty sure it applies to both reads and writes. One could argue that such devices are

Re: Modbus RTU

2021-08-16 Thread Niclas Hedhman
On 2021-08-16 00:16, Ben Hutcheson wrote: Niclas, For floating point and large integers, this is already supported, where we serialized/parse multiple modbus registers to the different data types. You should be able to use something like 40001:REAL as the Address field. Excellent! Niclas

Re: Modbus RTU

2021-08-15 Thread Niclas Hedhman
On 2021-08-15 22:40, Łukasz Dywicki wrote: Then each driver flavor of modbus (rtu, ascii, tcp) would simply need to wrap and unwrap structures coming from an transport. I have come across a lot of Modbus over the years, but I can't recall seeing the ascii variant since the 1980s or early

Re: AW: ModBus set slaveId...

2021-08-12 Thread Niclas Hedhman
On 2021-08-12 17:56, Christofer Dutz wrote: Those tasks are always my favorites :-) Helping people without having to do anything ;-) A long time ago, a church bell in a French village was out of tune and they sent for a bell master to come and fix it. And sure enough an old man came, they

Re: Anyone feel in need of something to do during the holiday-lockdown?

2020-12-25 Thread Niclas Hedhman
Warning; The example in JetBrains documentation is far too simplistic to actually tackle a "real" grammar, and the documentation beyond that is really sparse and one is mostly alone in trying to figure things out. I have a non-completed example of that; Pony Language plugin, and I basically gave

Re: AW: [DRAFT] Borad Report

2020-12-02 Thread Niclas Hedhman
Perhaps I can give insight to how (at least) this Board member view reports; 1. Whether or not there is life in the project, a. that stuff happens on dev@ mailing list b. releases are progressing "normally" (can vary from quarterly to every other year) 2. Ensure that there is no friction

Re: [DISCUSS] How about changing the way we act on "backward compatability"?

2020-11-20 Thread Niclas Hedhman
Everyone knows that 0.x == "unstable interfaces" and those willing to use 0.x (like me) do expect "hassle" when moving on to 1.0 and beyond. The 0.x to 1.x transition is extra unique as there are typically a lot less users than a 1.x to 2.x incompatibility jump. So, my recommendation is; Tackle

Cost of Exceptions [was: chrisdutz commented on a change in pull request #192: Refactor Field Handler Classes]

2020-10-06 Thread Niclas Hedhman
On Tue, Oct 6, 2020 at 9:33 AM GitBox wrote: >One thing I've learnt recently, is that exceptions are extremely > expensive, as creating the stack trace is expensive. is this code that is > likely to produce any of "InstantiationException | IllegalAccessException | >

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

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-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

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
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
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-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: 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: 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-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

[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

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: 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: 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-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-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-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: [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
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-04 Thread Niclas Hedhman
; >>>>> > > >>>>> > > >>>>>org.apache.felix > > >>>>>maven-bundle-plugin > > >>>>>4.2.1 > > >>>>>

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
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: 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: [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: [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: [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: 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: 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] 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: 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: [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: 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: 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

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: [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: 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: 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: 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-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: 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-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

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-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: 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: 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

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