libftdi Archives

Subject: Re: data corruption at lower latency

From: mav <splash.maverick@xxxxxxxxx>
To: Jim Paris <jim@xxxxxxxx>
Cc: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Fri, 31 May 2013 14:54:45 -0400
Not yet, testing on a PC is my next plan. The hardware may not be
providing required processing power, but so far I can't conclude so.
It may get clarified by executing the test on a PC setup.

The modem communicates well if FTDI chip and its corresponding USB
chain is bypassed. When FTDI and USB are brought in, the serial lines
sporadically gets 2 unwanted bytes which corrupts the data stream. The
two erroneous bytes are always printed as 2` which if mapped to the
FTDI  Status Bytes will translate to [0011 0010 0110 0000]; this
indicates THRE, BI and OE bits are set.

The same 2 bytes are also seen on the second FTDI chip which is left
to run at the chip's default latency (16ms) and is running slower
@19200 baud (the first line is @115200 baud). I suspect the erroneous
bytes are coming from the underlying USB libraries, and I am still
looking for ways to confirm this.

thanks,
mav

On Fri, May 31, 2013 at 11:26 AM, Jim Paris <jim@xxxxxxxx> wrote:
> Did you also try on a pc?  Your hardware might have problems.
>
> -jim
>
> mav wrote:
>> Here are the different combinations I tried. Data corruption occurs on all.
>>
>> ------
>> Set_A:
>> ------
>> libftdi-0.20.tar.gz (Released 2012_03_19)
>> libusb-1.0.9.tar.bz2 (Released 2012_04_20)
>> libusb-compat-0.1.4.tar.bz2 (Released 2012_04_24)
>>
>> Result: Data Corruption.
>>
>> ------
>> Set_B:
>> ------
>> libftdi1-1.0.tar.bz2 (Released 2013_01_29)
>> libusb-1.0.16-rc10.tar.bz2 (Released 2013_05_06)
>> libconfuse-2.6.tar.gz (Released 2007_12_29)
>>
>> Result: Underlying system does not support netlink sockets, which
>> breaks the compilation of libusb-1.0.16-rc10. The "--disable-udev" was
>> used with ./configure as udev is not supported.
>>
>> ------
>> Set_C:
>> ------
>> libftdi1-1.0.tar.bz2 (Released 2013_01_29)
>> libusb-1.0.9.tar.bz2 (Released 2012_04_20)
>> libusb-compat-0.1.4.tar.bz2 (Released 2012_04_24)
>>
>> Result: Data Corruption.
>>
>> ------
>> Set_D:
>> ------
>> libftdi1-1.0.tar.bz2 (Released 2013_01_29)
>> libusb-1.0.9.tar.bz2 (Released 2012_04_20)
>> libusb-compat-0.1.5.tar.bz2 (Released 2013_05_20)
>>
>> Result: Data Corruption.
>>
>> thanks,
>> mav
>>
>> --
>> libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
>> To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx

--
libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx   

Current Thread