+ Post New Thread
Results 1 to 1 of 1
- 10th February 2011, 01:15 #1
- Join Date
- Feb 2011
- 0 / 0
Need help with ftdi rs232 reading data, broken buffer data
hi everyone, i'm programming with Delphi and i've been use Ftdi rs232 to receive data from a pic, but when i read the data i have problems because the buffer brokes the line of code
i'm using this procedure to read the data
i, cont: integer;
resp : string;
cont := Read_USB_Device_Buffer($100);
resp := '';
for i := 0 to (cont - 1) do
resp := resp + Chr(FT_In_Buffer[i]);
memlog.SelAttributes.Color := clYellow;
the data came like this sometimes
'01 02 03 04
05 06 07'
when should came like this
'01 02 03 04 05 06 07'
if someone helpme i'll be very happy
ps: sorry with the bad english.
- 10th February 2011, 01:15