PDA

View Full Version : serial port cable that goes to v2



articSS
October 23rd, 2008, 08:47 AM
does any one have a diagarm to make the serial cable for the v2 with the 9 pin serial port to the 6 pin phone jack looking connector. hope i am explaining correctly.thanks

GMPX
October 23rd, 2008, 09:24 AM
You should have got one with your V2. It would be easier (and cheaper) to order one through one of our resellers, we don't try to make money on spare cables, it more to cover costs and provide a replacement service.

Cheers,
Ross

joecar
October 23rd, 2008, 09:44 AM
Cable wiring diagram (for LC-1): FlashScan-to-LC-1-Serial-Cable-Diagram (http://forum.efilive.com/showthread.php?t=8115)

Your V2 came with a DB9 serial cable...
Your wideband came with a DB9 serial cable...
You need a null-modem adapter (orange item in pic below)... [it has to be a null-modem adapter and not just a gender bender].


To enable serial AFR in the V2, see here: Tutorial-FlashScan-V2-Serial-Wideband-Logging (http://forum.efilive.com/showthread.php?8858-Tutorial-FlashScan-V2-Serial-Wideband-Logging)


You also have to remember to plug the null terminator plug (blank 2.5mm stereo plug) into the LC-1's SERIAL IN cable.


This is the null-modem adapter: http://www.sfcable.com/cable/p/30D1-C1-S.html <-- less than $5 shipped

http://forum.efilive.com/attachment.php?attachmentid=4046&d=1224114427

articSS
October 23rd, 2008, 10:04 AM
i cannot find my db9 cable but i bought a 6 pin jack and a DB9 female to RJ11. will this work?

articSS
October 23rd, 2008, 12:04 PM
i found my cable. now can i connect it with a null modem adapter and cut the end off a serial cable and connect to the fjo wires?

mr.prick
October 23rd, 2008, 01:02 PM
____RJ12______
1 = Tx Data
2 = Rx Data
5 = Ground

joecar
October 23rd, 2008, 01:24 PM
If you can identify Tx, Rx, Gnd, then you wire them as shown in post #6 and you don't need the null-modem adapter.

If it doesn't work, swap Tx and Rx.

articSS
October 23rd, 2008, 02:07 PM
thx i will try tommorrow

Redline Motorsports
November 27th, 2009, 04:52 PM
The AFM1500 pins are as noted;

pin #1= Rx
pin #2=Tx
pin #3=Grnd

According to the AFM1500 manual;

DB9 Female (to PC)
Terminal Number
#2 (Rx) to pin #1 of module (male)
#3 (Tx) to pin #2 of module (male)
#5 (Gnd) to pin #6 of module (male)


I assume "to module" is the AFM1500 box and the "to PC" is the feed heading to the V2??

Trying to reason through the null modem conversion. Ughh!

Howard

mr.prick
November 27th, 2009, 05:27 PM
Are you trying to bypass a Null Modem? :hihi:

RS232 serial cables pinout (http://www.lammertbies.nl/comm/cable/RS-232.html)

joecar
November 27th, 2009, 08:06 PM
Howard,

Look at this diagram (for the LC-1), the null modem connects 2 to 3 in both directions...

i.e. the null modem adapter connects Tx->Rx in both directions.

Redline Motorsports
November 28th, 2009, 04:33 PM
Howard,

Look at this diagram (for the LC-1), the null modem connects 2 to 3 in both directions...

i.e. the null modem adapter connects Tx->Rx in both directions.

Joe,

I see that but I am not seeing that the ECM unit uses the same pins as the LC-1. What am I missing??

What is the purpose of a null modem? Isn't it critical that Tx go to Tx or is it Tx to Rx and Rx to Tx.....respectfully....

I just want to make sure I'm wired correct before I try and get this trace captured.

Thanks

Howard

joecar
November 28th, 2009, 04:53 PM
Howard,

The transmit circuit (Tx) of one device must drive the receive circuit (Rx) of the other device...

If you can connect each of the wideband and/or FSV2 directly to a PC,
then you need to cross the Rx and Tx signals when connecting wideband and FSV2 to each other.

Sorry, I had some stupid typos in my post, I corrected them, reread post #12


Sorry I couldn't call earlier enough today, we had my in-laws over and they stayed very late...

Joe

Redline Motorsports
November 28th, 2009, 05:05 PM
Hey Joe,

No problem...holiday weekend I can understand!

If you can take a look at page 16 of that AFM1500 manual. It notes the pin configuration. However it looks correct to match the pins going to the PC but not correct leaving the module. Before I order some RS-232 ends and hot wire my own conversion harness I want to confirm I it needs to be done. Would think that serial RS-232 would be the same standard.

Man this is stumping me!

HT

joecar
November 28th, 2009, 05:33 PM
Summarizing from mr.prick's link (that's a very good link, thanks):

There are two types of serial equipment:
- DTE (data terminal equipment) e.g. computers, printers.
- DCE (data communications equipment) e.g. modems, wideband, FlashScanV2.

DCE devices can connect directly to DTE devices without Tx/Rx crossover.

Tx is the device's serial output (on which it sends out serial data).
Rx is the device's serial input (on which it receives in serial data).

Wideband and V2 are both DCE (transmit = Rx, receive = Tx)...
so somewhere in between them this has to be done (this is what the null modem adapter does, crosses Rx and Tx):
wb.Rx ---> V2.Tx
wb.Tx <--- V2.Rx

(see post #19 below)

See the attached diagram (I added some labels).

joecar
November 28th, 2009, 05:40 PM
...
If you can take a look at page 16 of that AFM1500 manual. It notes the pin configuration. However it looks correct to match the pins going to the PC but not correct leaving the module. Before I order some RS-232 ends and hot wire my own conversion harness I want to confirm I it needs to be done. Would think that serial RS-232 would be the same standard.
...
Howard,

Does the AFM connect directly to a PC using the AFM DB9 cable...? If it does, then the AFM is DCE.

FSV2 is DCE.

So to connect two DCE devices, Tx/Rx crossover is required (i.e. this is what the null-modem adapter does).

Redline Motorsports
November 28th, 2009, 05:41 PM
Howard,

Does the AFM connect directly to a PC via the DB9 cable...?

It came with a cable that is to tie in with other ECM modules. If I understand the pin config from them it appears that must have some proprietary system for it to work.

If I just get the;

Tx > RX
Rx > Tx
Grnd=Grnd

That should be it....correct? If that is the case I don't think the null modem works. Now I just want to confirm I understand which pins on the ECM box are what. You already posted the EFIL serial cable so this is the last link.

joecar
November 28th, 2009, 05:52 PM
RS232 is a standard, but what makes it confusing is that the Rx and Tx signals are mis-named on one of DTE or DCE (I'm not sure which one).

I'm not sure what ECM have done exactly.

joecar
November 28th, 2009, 07:15 PM
More info:
http://www.bb-elec.com/tech_articles/FAQ_rs232_connections_work.asp
http://digital.ni.com/public.nsf/allkb/1EE0DD8AF67922FA86256F720071DECF


Edit: on that website, on all instances of DCE connector, it shows: Tx receives data, Rx transmits data.

On that page, scroll down to "Modem to Modem Cable" / "DCE to DCE"...


See this pic, look at pins #2 and #3, look at the directions of the red and green arrows:
20010

On DCE devices: Tx receives data, Rx transmits data.

Confusing to say the least... :D

joecar
November 29th, 2009, 09:06 AM
Howard,

Try this:
- connect the AFM to your PC's serial port using the null-modem adapter,
- go Start->All Programs->Accessories->Communications->Hyper Terminal,
- enter any name (AFM),
- click OK,
- enter any area code and phone number (111 2223333),
- set Connect Using to COM1 (or whatever your PC's COM port is),
- click OK,
- set 38400 baud, 8 Data Bits, Parity None, 1 Stop bit, Flow Control None (from the AFM manual),
- click OK,
- now you should be in the terminal window...

In the terminal window you should see stuff being printed... if not then remove the null-modem adapter.

If it still doesn't print, shutdown HyperTerm and restart it, this time specify the other COM port (e.g. COM3), and try again with and without the null-modem adapter.

Redline Motorsports
November 29th, 2009, 03:53 PM
Howard,

Try this:
- connect the AFM to your PC's serial port using the null-modem adapter,
- go Start->All Programs->Accessories->Communications->Hyper Terminal,
- enter any name (AFM),
- click OK,
- enter any area code and phone number (111 2223333),
- set Connect Using to COM1 (or whatever your PC's COM port is),
- click OK,
- set 38400 baud, 8 Data Bits, Parity None, 1 Stop bit, Flow Control None (from the AFM manual),
- click OK,
- now you should be in the terminal window...

In the terminal window you should see stuff being printed... if not then remove the null-modem adapter.

If it still doesn't print, shutdown HyperTerm and restart it, this time specify the other COM port (e.g. COM3), and try again with and without the null-modem adapter.

I assume this is to see if the two devices are at least communicating with or without the null modem? Once we see communication from the AFM to the PC we can then hook up to the V2 via the RJ12.

Hopefully after that we can get the trace done and move on!

I'll try this tomorrow if its this straight up.

Thanks Joe

joecar
June 30th, 2010, 06:10 PM
BTW: Howard @ Redline Motorsports did get serial AFR/Lambda working with his AFM1500 wideband:

showthread.php?12641-Add-the-ECM-AFM1500-to-the-serial-WB-list (http://forum.efilive.com/showthread.php?12641-Add-the-ECM-AFM1500-to-the-serial-WB-list)!

joecar
October 3rd, 2013, 05:52 AM
More info on null modem cables:

http://www.bb-elec.com/tech_articles/FAQ_rs232_connections_work.asp
http://digital.ni.com/public.nsf/allkb/1EE0DD8AF67922FA86256F720071DECF

Tinbender59
August 18th, 2014, 02:36 PM
Here is a quickie paint of my LC-2 to V2 serial cable connections. port 1 in Molex to port 1 in RJ12 ect, ect hope this helps

SEE ALSO
https://forum.efilive.com/showthread.php?23169-LC-2-Digital-Wideband-anyone-try-it-out&p=209449#post209449

joecar
August 19th, 2014, 11:07 AM
Tinbender, you mean LC-2...?

Tinbender59
August 19th, 2014, 11:43 AM
Yes. Yes. I R Smart!!! Lol

joecar
August 19th, 2014, 11:57 AM
Ok, I corrected it.

:)