want to use a usb cable instead of a serial cable?

Forum for discussing how to install MicroSquirt(TM), choose and troubleshoot sensors, wiring, and communications for MicroSquirt (TM) and MicroSquirt Module(TM).
Forum rules
Read the manual to see if your question is answered there before posting. If you have questions about MS1/Extra or MS2/Extra or other non-B&G code configuration or tuning, please post them at http://www.msextra.com The full forum rules are here: Forum Rules, be sure to read them all regularly.
Post Reply
nissan300sx
MegaSquirt Newbie
Posts: 6
Joined: Tue May 09, 2006 11:03 pm
Location: stockton,iowa

want to use a usb cable instead of a serial cable?

Post by nissan300sx »

here we can talk about using usb cables instead of serial cables. its not terribly difficult i think. my honda ecu uses the same max323 adapter that the megasquirt has integrated on the board. i also use a motorola phone usb cable on the same exact honda ecu. its a little different setting up the com ports on your pc or laptop but i'll explain it a little more if anyone is interested
mrbell
MegaSquirt Newbie
Posts: 34
Joined: Thu Aug 25, 2005 12:24 pm

Post by mrbell »

I'm a bit confused as to what you are trying to do. It sounds like you're wanting to use a USB-serial adapter, which you should be able to just do, but you still need the Max232 and serial cable.
Optionally, you could build a USB-serial chip into the ECU, but it certainly seems easier(and possibly cheaper in the long run) just to use the usb-serial dongle.
If you want to use direct USB-USB communication, you'll have to put a USB controller chip into the ECU, which is fine, but USB doesn't really work like a regular serial connection. You'll have to reengineer the communcations layer on both sides...
nissan300sx
MegaSquirt Newbie
Posts: 6
Joined: Tue May 09, 2006 11:03 pm
Location: stockton,iowa

Post by nissan300sx »

im saying that instead of using the serial cable and the max232. you can connect a certain motorola phone cable directly to the rx/tx/gnd. the cable has a chip built in to it. you download the proper drivers, which i will find and post, and it will set up the motorola usb cable as a com port which you can then select as the port you are going to tune with. does this sound any better? im trying hard to make sense but im not exactly a technical super guru. i just understand whats going on in the ecu's i have tested and i am just saying i want to test it on a megasquirt, and if anyone is interested they can try it too.
mrbell
MegaSquirt Newbie
Posts: 34
Joined: Thu Aug 25, 2005 12:24 pm

Post by mrbell »

If the USB cable shows up as a com port on the computer, then I am 99% certain that the phone has a MAX232 or equivalent in it and the cable is a USB-serial adapter. The cable or the phone could have both bits. This wouldn't gain you anything over having a standard USB-serial adapter(which can be bought at any store that carries computer peripherals), except a smaller plug. But that can be remedied in many other ways.
A better solution, having no requirements of a special cable and using all commodity hardware and standard software interfaces, would be to put a USB controller and socket onto the MS and talk direct USB.
Mk1rocco
MegaSquirt Newbie
Posts: 30
Joined: Mon May 17, 2004 7:16 pm

Post by Mk1rocco »

Have a look at THIS internal USB adapter for Megasquirt sold by DIYAutotune. It'd be a bit more difficult to adapter to Microsquirt but only because Microsquirt's SMT.
nissan300sx
MegaSquirt Newbie
Posts: 6
Joined: Tue May 09, 2006 11:03 pm
Location: stockton,iowa

Post by nissan300sx »

no, its not a serial adapter because the original tx/rx signals arent even communicating like a serial connectiion until they go through the max 232, yes the prolific chip inside the usb cable is kinda like a serial/usb adapter except you just connect rx/tx/gnd on the MS board directly to the cable just like the DIYAutotune adapter. yes i have seen diyautotune's adapter but my cable only cost $10 where i live. its just a cheap alternative for people who dont have serial ports on their computers. the reason the usb cable comes up as a com port is so that it can communicate with the MS. it wouldnt automatically configure an MS ecu because the MS doesnt work like that. maybe some day there would be memory space on the MS for alternate fuel and timing maps to select from. that would be where the MS could be recognized as a storage drive and the fuel maps could just be copied to the MS memory.
The Benz Master
MegaSquirt Newbie
Posts: 1
Joined: Wed May 30, 2007 7:51 pm
Location: Berthierville, Canada

Post by The Benz Master »

I was just thinking, with the now low price of the SD memory cards or simply the usb drives, it would be a cool thing to have on the megasquirt.. I dont know about faisability tho, i'm not an electronic expert.
Bruce Bowling
Site Admin
Posts: 285
Joined: Mon Feb 16, 2004 4:25 pm
Location: Baltimore, MD

Post by Bruce Bowling »

Mk1rocco wrote:Have a look at THIS internal USB adapter for Megasquirt sold by DIYAutotune. It'd be a bit more difficult to adapter to Microsquirt but only because Microsquirt's SMT.
The reason why uS is not USB was the connector. Right now we have a nice ampseal with the board conformal-coated. The serial Rxd and Txd coe out of the ampseal. With USB it is best to maintain cable impedance so running the signals thru the ampseal is not a great idea. This would then mean a USB connector somewhere. Trying to locate a sealed USB connector became pretty expensive. And with converter cables being so readily available (for example I can get a Prolific USB-serial adapter on Ebay for under $10.00) having uS using serial instead of USB is not a real impediment.

Having said that, notice on the uS there is a 4-pin space for a header, neat the ampseal on the top. This has +5V, Gnd, Txd, and Rxd (rs-232 levels). This can be used for a daughtercard arrangement with a USB converter chip. We are targeting this potentially for wireless comms.

- Bruce
MegaScott
MegaSquirt Guru
Posts: 149
Joined: Mon Jun 14, 2004 8:35 am
Location: Seattle, Washington USA
Contact:

Post by MegaScott »

Bruce Bowling wrote:We are targeting this potentially for wireless comms.
- Bruce
Cool!

All we need then is a Java tuning App that can interface to the Mega/Microsquirt bluetooth signal for display on the user's phone or PDA.... 8)
Post Reply