From: Proctor, K. <Kel...@al...> - 2001-10-26 02:38:54
|
Dieter, I'm sorry I don't fully understand what you mean by 'pack up "all-in-one".' For creating a TCP<->serial Modbus gateway I think the sort of architecture where the transport objects deal in full frames would be best. This then allows a relatively simple class to be created for this. If we assume for the example (and it would be likely) that the master is on the TCP end then we have a class that just continually reads a frame from the TCP end, sends it out the serial end, reads a frame back in the serial end (with a timeout) and then sends that back along the TCP end and repeats. With the 'whole frames' architecture I'm in favour of this would be a very simple application to write really. (It's one of the reasons I like that architecture, but I still like being able to use streams up high as you did.) Cheers, Kelvin > -----Original Message----- > From: Dieter Wimberger [SMTP:wi...@oe...] > Sent: Friday, October 26, 2001 1:06 > To: jmo...@li... > Subject: [jModbus-devel] A question > > Kelvin, > > I have got an important question. I took a more in depth look into serial > communication matters, and I wonder if it makes sense to pack up > "all-in-one". > > A bridge between serial cabling and ethernet is one specific case where it > is necessary, but the question is if it is not possible to come up with > another construct that solves the same problem. Specifically if it isn't > much better to decouple such a construct due to cycling etc. and have the > serial and the ethernet side running in seperate processes. > > I just want to propose this question, because we had a lot of discussions > on issues that would have been more clear with only one specific flavor in > mind. > Also we are at the right decision point, as we just started looking more > in depth into serial communication. > As a matter of fact there might be not enough share in behaviour and > handling to keep a medium path that considers and satisfies design, > resource and behaviour issues. > > What do you think? > > Regards, > Dieter > > PS: I do not want to express that it is impossible, I just like cross > thinking and taking steps back and considering if what is done is really a > good thing to do. > > > > > _______________________________________________ > jModbus-devel mailing list > jMo...@li... > https://lists.sourceforge.net/lists/listinfo/jmodbus-devel Alcoa World Alumina Australia is a trading name of Alcoa of Australia Limited, ACN 004 879 298 |