Re: Serial port Connection

2020-06-30 Thread Christofer Dutz
Hi Niclas, Now your're borrowing my reasoning to use PLC4X over OPC UA to argument for Serial communication ... I like it ;-) Yeah, I know that industrial hardware tends to be run a tad longer than a typical IPhone ... and I agree ... we need to get serial in shape. I did notice with the Firmata

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 Christofer Dutz
Hi all, and thank you Niclas for your very detailed post. Indeed I think you made me realize something I didn't realize till now: You can connect multiple devices to a serial Interface. For me, from the first zero-modem-cable I welded to play command and conquer against a friend, serial interfa

Re: Serial port Connection

2020-06-29 Thread Cesar Garcia
Hi Niclas, You are right on all points. I have not tested the Modbus serial driver, but I am very interested that it works on Multidrop connections. Version 0.7.0 is based on Mspec, so a proposal could be: 1. Modify the PLCField to include the UID of the device within the frame from the address

Re: Serial port Connection

2020-06-29 Thread Niclas Hedhman
Ok, let's dissect this... 1. There are many devices connected to a serial ModBus port. 2. ModBus (and every other serial protocol I have dealt with) are not "connection" oriented, but packets, most of the time very small. The "connection" metaphor in PLC4X for non-TCP comms is actually quite poor

Re: Serial port Connection

2020-06-29 Thread Christofer Dutz
Hi all, sorry for joining in the party late ... but hopefully not too late. Regarding making the serial port part of the connection string ... I have to admit that right now I couldn't imagine how to not have it in there and not over-complicate things for the users. Yes, if you create a connect

Re: Serial port Connection

2020-06-25 Thread Julian Feinauer
Hey, yes, its in the module scraper or plc-scraper. Its easily configurable by yaml, json or programmatically. Julian Am 25.06.20, 10:30 schrieb "Niclas Hedhman" : Thanks Another question; is there any "loop" system that just continuously reads until I tell it to stop? On

Re: Serial port Connection

2020-06-25 Thread Niclas Hedhman
Thanks Another question; is there any "loop" system that just continuously reads until I tell it to stop? On Thu, Jun 25, 2020, 15:16 Julian Feinauer wrote: > Hi Nic, > > I have to dig in a bit later to give you good answers but AFAIR the > connection can be left open and configuration shou

Re: Serial port Connection

2020-06-25 Thread Julian Feinauer
Hi Nic, I have to dig in a bit later to give you good answers but AFAIR the connection can be left 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 "Nicla

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? (Pers