Missing last byte from Serial ReadAll

That’s interesting, I always thought SOL meant Situation Overly Labyrinthine. :slight_smile:

A simple test, as I eluded to previously, would be to test the software with a machine that has a built in “natural” serial port.
That method would prove, or at worst, give a good indication if it was a software or hardware issue.

If a physical device will not power up, first you check if the power outlet switch is on, if so, then you check if the cable is getting power (via a multi-meter, and/or swap it with another cable to be sure). You work backwards along the chain until you find the fault.

It might also be worth checking if its a legit Prolific serial adaptor:

https://www.trishtech.com/2018/02/how-to-check-if-prolific-usb-to-uart-adapter-is-fake/

That may well be true Julian, but nothing would be better than testing on a machine that has a legitimate serial port.

If that works, then you are in a position to postulate on issues regarding the serial to usb adapter.

Totally agree

If I was me, then that’s the way I would approach it first.

Guys ,

I understand what you say, and I agree. If there was any way to make a test with a PC with a real serial port, that would be my first choice.

The USB-serial adapter is old and I can bet does not have an original prolific chipset.

Untill now I’ve been using the following workaround : I am reading the serial port with RealTerm and capturing data to a text file and reading that file with a timer from my xojo app. RealTerm is quite powerful and can even be controlled thru ActiveX automation. Unfortunately I don’t have the resources (and it’s not my work) to go on site and start troubleshooting their hardware. I will try to do it eventually but for now I’m set. It’s a pity, though that with this hardware, RealTerm gets the data well and Xojo doesn’t.

Thanks a lot for your thoughts, ideas and suggestions.
R

That workaround RealTerm/Xojo/ActiveX seems like the hard way.

I’m not saying that I have the solution, but surely a few of those steps can be eliminated.

I’m coming into this late but I ran into this problem a long time ago and blogged about it.

https://www.bkeeneybriefs.com/2010/07/serial-control-in-windows-vista7-doesnt-work-properly/
https://www.bkeeneybriefs.com/2010/07/serial-control-in-windows-7-part-deux/

For me as soon as I upgraded the drivers it worked well. The other solution, which the client did, was upgrade to premium USB to Serial converters and they’ve never had a problem since.

Just wanted to add that after changing the hardware adapter Xojo serial seems to be working ok.

I’d say it’s fixed.

Good to see that you solved it Roman.

Bob is a truly righteous dude :slight_smile: