Serial data transfer speeds FTDI vs RS232
CarlosFandango
Posts: 67
Dear All,
I have been working on an application with the Prop (actually the uOLED-96-Prop) and up until now I've been using a simple RS232 serial interface - the 3-transistor circuit detailed on the Parallax site. Part of my application requires that I can upload files via serial to the micro SD on the uOLED; I wrote a fairly simple routine for doing this with checksum support and over the RS232 link this transfers at about 32k bits/sec using a serial speed of 57k/sec. With overheads etc., I guess this is quite reasonable.
However, since I have to distribute this application and most computers do not have RS232 ports these days, I today implemented a USB serial cable using the FTDI chip. Using the drivers from the FTDI site, my transfer speeds have now dropped to a mere 7kbits/sec (the serial port comms speed remains unchanged at 57k). Uploading revised firmware from Proptool, however, seems to take about the same amount of time as it did before - there has been no impact there.
Thus I am somewhat confused; I wondered if anyone has experienced such slowdowns using FTDI chips or drivers, and if so, whether a solution was found? I've checked all system / port settings etc., but can't find anything amiss anywhere. I continue in the meantime to try and improve my transfer speeds...
thanking you
-CF
I have been working on an application with the Prop (actually the uOLED-96-Prop) and up until now I've been using a simple RS232 serial interface - the 3-transistor circuit detailed on the Parallax site. Part of my application requires that I can upload files via serial to the micro SD on the uOLED; I wrote a fairly simple routine for doing this with checksum support and over the RS232 link this transfers at about 32k bits/sec using a serial speed of 57k/sec. With overheads etc., I guess this is quite reasonable.
However, since I have to distribute this application and most computers do not have RS232 ports these days, I today implemented a USB serial cable using the FTDI chip. Using the drivers from the FTDI site, my transfer speeds have now dropped to a mere 7kbits/sec (the serial port comms speed remains unchanged at 57k). Uploading revised firmware from Proptool, however, seems to take about the same amount of time as it did before - there has been no impact there.
Thus I am somewhat confused; I wondered if anyone has experienced such slowdowns using FTDI chips or drivers, and if so, whether a solution was found? I've checked all system / port settings etc., but can't find anything amiss anywhere. I continue in the meantime to try and improve my transfer speeds...
thanking you
-CF
Comments
I can't run at 115K it seems, there's not enough time (in SPIN anyway) to get around everything without dropping data. Programming the prop works fine at this speed, it's just my file transfer routine I'm talking about here. Having said that I'm just about to move to a 10MHz version of the uOLED (earlier ones that I've been working with are 8MHz) and that gives me top speed on the prop which I haven't seen before. I wondered why they used an 8MHz crystal on the early devices, probably just an oversight on their part!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering
Check the settings for the FTDI adapter in your Windows Control Panel. You may have the latency set to a high value. If so, change it to 1, and see if your throughput improves.
-Phil
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
'Just a few PropSTICK Kit bare PCBs left!
-CF
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering
Sorry, how are you wiring the schematic ? Have you some picture of it assembly ?
I guess you're using the correct USB cable from FTDI to PC...really?
I´ve never have problems, neither working at 115Kbps. (homemade adapter).
How long is the USB cable that you're using ?
PS: Me imagino que no estaras usando el adaptador cerca de el puerto USB y luego llevando la señal RS232 por un cable largo hacia el propeller ...no?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Regards.
Alberto.