Hello All again! On Mar 11, 2014, at 12:27 PM, Archer, Garry wrote:
Hello All! This is my first posting to [email protected]<mailto:[email protected]>! Now my second! <snip> This time, if the "frames" are greater than 56 bytes they appear to be broken up into 56 byte "chunks" received as such by the LIS, which is a problem. The only differences between the TCP/IP communication and the serial communication are: a) The test apps slightly differ. One makes a TCP socket connection with the LIS (no data problems) and the other makes a Serial Communications connection (data problems) b) The NETRS232_1 StarTech device. I have debugged (a) and so far cannot determine what the problems are. I contacted StarTech tech support and we have eliminated their device as a problem. <snip> To answer my own question, I think it is (b). I tried a really simple test... I connected the StarTech 'RS232 Serial over IP Ethernet Device Server' to a PC and configured it and Microsoft's HyperTerminal app to connect to my Laboratory Information System (which uses Mina) on our Ethernet network. I created one text file with a "frame" of 20 bytes and another text file with a "frame" of 70 bytes. I transferred one file at a time. The 20-byte frame was received in one 20-byte message. The 70-byte frame was received in two separate 55-byte and 15-byte messages. Therefore this message break-up is occurring with and without my test Mina app using the org.apache.mina.transport.serial package (SerialConnector, SerialSessionConfig and SerialAddress). The common factor being the StarTech device. I do not have any such problems using Mina for TCP/IP socket connections between two Mina-enabled apps. According to StarTech they claim there should be no problem sending data longer than 55 bytes (you would think it could handle a lot more than that!), so I'm not sure what the problem is and in any case, this should not be an issue to resolve on this email list. I responded to my own posting to thank anyone who actually read my original post :-) and most especially if you were actually trying to find a solution for me! For now, I think I'm OK. Thank you so much! Garry Archer Systems Programmer Department of Pathology Yale School of Medicine
