From: Wimberger D. <die...@td...> - 2001-11-03 16:03:36
|
Hi Kelvin, Sorry for submerging the last days, but things have been going up and down a little bit. Allthough it was pretty busy I have manged to come up with a Modbus ASCII Implementation that fits with my oo design. However, I think you were right that it is much better to receive a complete frame, so I am now doing that and wrapping the frame into a ByteArrayInputStream for reading with the Message classes. I have also done a LRC, it would be good to have some results to test against..it is much simpler then the version you created, and it gives the same results but anyway, maybe there is some official way to test this. Another point I did not have the time to figure out are the specifications for the serial communication. As each cycle is a Transaction (Request by Master, Response by addressed Client) there must be some mechanism that repeats frames if there is no answer from any client (timeout??) or to notify the master that a frame is corrupt etc.=20 Any clue about this so far? If you are still interested, I can make the package accessible to you again (when I am done with clean ups). I was also thinking about how we are going to proceed, because I am not exactly sure if you feel confident with=20 my whole design. I also think that for the TINI it is probably too heavy weight, it runs, but I would not dare to let it do so without some optimizations. Specifically I am thinking of an ObjectPool (which is not always the best thing to do, but in this case it could be). Let me know what you think, Dieter |