I like what Richard is saying. Flow control i[/i] is a must for some devices.
Regarding the usb to serial adapter, that may be an issue as well. I guess you could always try it on an older computer that has a real physical RS232 port and therefore eliminate that as the problem (easy for me to say).
I had a bit of spare time at work today (don’t tell the boss :)) to read up on the PABX/PBX system and from what I gathered, the data is delivered in chunks, and therefore requires some sort of handshaking to determine the beginning and end of it, and when to receive/send the data.
The fact that HyperTerminal/RealTerm showed and received data is perhaps by happenstance. I mean, those programs would have auto functions that look for a valid connection by throwing out various handshaking codes (questions):
ie. Are you there?.. Yes!, I’m here… Fine, send me the data… Not a problem, here it is… Hang on, hang on, I don’t think I got all that… Well, how would you know what you got, unless I told you?.. anyway, that’s your problem… Hang on a sec, I didn’t know but I’ve heard about CTS, DTR/RTS, XON/XOFF, but who the hell do you think you are?.. Oh shutup!!.. No, You shutup!!,… yes I will… and so will I . . . . . .
None of that would account for “packages” or “chunks”, and therefore you would receive some data, but not all of it, as you have already described above.
Therefore in Xojo you have to build in the correct functions yourself, ie. customise the code to suit your particular needs. Although Xojo seems like “higher” level programming, you can also access lower level functions if you need to. Far beyond my level of understanding, but they are there :).
I’m positive you’ll sort it out - and we’ll all learn something too.