On second thought, I feel you're doing something wrong when trying to use buffering in order to ensure message integrity. The serial line is just a bit pipe - if you want it to transfer "packets", you need to implement that packetizing yourselves (like framing, headers, counting bytes you want against bytes you have, ...). Especially on an emulator that uses an emulated hardware like an USB-to serial through a foreign operating system, there's simply way too much buffering involved on various levels (SMSQ/E, QPC, Windows, the adapter,...) you can't even control.martyn_hill wrote: For the QLUB project, I appear to need to extend the SERial buffer beyond the (old) default of 81 bytes to ensure messages are not split when transmitted via the virtual COM/USB port to the microcontroller and the SER_BUFF procedure seems to achieve this nicely when running my SBASIC test 'wrapper.'
Tobias