02-25-2019 05:15 PM
I am trying to read data transmitted by a device across a serial port. When I collect the data with PuTTY it contains escape codes and ascii strings. But when I try to collect the same data with ComRd() or ComRdTerm(), only the escape codes are collected and the ascii strings seem to vanish. Any idea why?
02-26-2019 03:37 AM
The first thing that comes me in mind is a mistake of mine from several years ago: I thought what was coming from serial port as C strings, but because there were several binary zeroes embedded (the terminator for C strings) so I missed all the chars already present in the buffer following the first binary zero.
Looking at the real buffer content in the IDE took few seconds.