libftdi Archives

Subject: Data loss while ftdi_read_data() from FT232RL

From: Venkatesh Shukla <venkatesh.shukla.eee11@xxxxxxxxxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Fri, 23 May 2014 16:19:45 +0530
Hello guys

Sorry for bugging you. But I am facing a problem while using libftdi.

I am trying to read data from a divecomputer Heinrichs Weikamp OSTC3.
It has FT232RL for interfacing.

I am using libftdi to achieve that.
The steps to read the data are

 1. Initialise the device
 2. Send INIT byte (0xBB) to the device.
 3. The device responds with an echo of the command (0xBB).
 4. The device then sends a READY byte (0x4D). The device is now ready
for the next step.
 5. Send the HEADER (0x61) byte to the device.
 6. In response to this, it first sends an echo (0x61) back to the device.
 7. Then it sends the device headers. This is the data I need. It
should be of 65536 bytes. But I am reading only around 65446 bytes. It
is a serious error.

I am new to libftdi and ftdi chips in general. What am I missing? How
can the above stated problem be resolved?

I am attaching my complete code for the data import.

I have asked this question on Stack overflow as well :
http://stackoverflow.com/questions/23825324/data-loss-while-ftdi-read-data-from-ft232rl
Please help me resolve this issue or point to suitable resources that
could help me.

Sincerely

--

Venkatesh Shukla

Senior
Indian Institute of Technology
Banaras Hindu University
Varanasi
India

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

Current Thread