I am receiving "01 03 02 00 23 f9 9d" via serial COM port in RTU mode, but readSerial gets me "01 03 02 20 20 20 20". [I converted the recieved string character by character like this: buf = readserial(h); ch(i) = ascii(part(buf,i:i)). Might be ugly...]. I copied the readserial function and removed ascii conversion in last line. This solved the problem for me now. Maybe there should be a function like readserial in RTU mode.
I am receiving "01 03 02 00 23 f9 9d" via serial COM port in RTU mode, but readSerial gets me "01 03 02 20 20 20 20". [I converted the recieved string character by character like this: buf = readserial(h); ch(i) = ascii(part(buf,i:i)). Might be ugly...]. I copied the readserial function and removed ascii conversion in last line. This solved the problem for me now. Maybe there should be a function like readserial in RTU mode.