Serial adapter success and failure stories, post here!

Aaron Barnes' wxPython based FreeEMS tuning tool. No longer maintained and out of date with the protocol requirements.
Post Reply
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Serial adapter success and failure stories, post here!

Post by Fred »

I'll kick this off...

&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&

Dick Smith USB -> Serial adapter XH8290 with linux lsusb result :

Code: Select all

Bus 001 Device 012: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
Results of loading latest firmware with this is :

Code: Select all

FLASH write: image size <53316 B> time <13.66 s> rate <3903 B/s>
Firmware load was successful!
Slow!!

Additionally, the load sometimes dies with strange errors before it starts, not an issue really, but could be indicative of other things.

&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&

Maplin/Nikkai Computers USB -> Serial adapter ZP43W with linux lsusb result :

Code: Select all

Bus 001 Device 003: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
Result from loading latest firmware with this is :

Code: Select all

FLASH write: image size <53316 B> time <7.71 s> rate <6915 B/s>
Firmware load was successful!
Nearly twice as fast as the dickies one... glad that bug cropped up and made me go and buy another...

&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&

Hopefully as my and Aaron's code mature together we will get to know that they are both reliable and be able to firmly point the finger at hardware issues. Of course it will purely be a speed thing as checksumming etc guarantees reliable comms if they make it through at all.

Post your stories of serial trouble and success with Linux and Windows on FreeEMS or MS or any other serial device that gives it a good work out.

My call right now : PL2303 >> FT232

Your thoughts?

Fred.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
jbelanger
LQFP144 - On Top Of The Game
Posts: 387
Joined: Sat Feb 23, 2008 8:58 pm
Contact:

Re: Serial adapter success and failure stories, post here!

Post by jbelanger »

Try playing with the buffer size for both adapters. I'm almost sure this will have a major impact. Since there is not hardware handshaking, using the smallest buffers should help.

Jean
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Serial adapter success and failure stories, post here!

Post by Fred »

How does one "play with the buffer size" of these things?

Fred.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
jbelanger
LQFP144 - On Top Of The Game
Posts: 387
Joined: Sat Feb 23, 2008 8:58 pm
Contact:

Re: Serial adapter success and failure stories, post here!

Post by jbelanger »

In Windows, you do it in the device manager in the advanced settings of the port properties. On Linux, I have no idea. I can only imagine that there is some equivalent.

Jean
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Serial adapter success and failure stories, post here!

Post by Fred »

I can't find anything with my mediocre google skills for linux. I suspect the driver to kernel interface is different on linux and perhaps it isn't configurable because it doesn't need to be. I know that ethernet is approximately twice as slow on a win box as a lin box with all else equal. win just sucks in so many ways :-)

7kB/s is pretty decent considering the wait time for erase of each block etc. I never suspected that 4 was to slow as 12 or so is theoretical max with no pauses. The same adapter shows full speed with cutecom and applications, just loading through it with hcs12mem seems to be slower than on the other device.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
Post Reply