CA-42 cable -> Serial

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware
Goto page 1, 2, 3  Next
Author Message
Apokrif
DD-WRT User


Joined: 22 Aug 2007
Posts: 58

PostPosted: Tue Feb 22, 2011 6:25 pm    Post subject: CA-42 cable -> Serial Reply with quote
Guys,
Just got my CA-42 cable to use as JTAG
Before I stripe it, one quick question:
If I connect CA-42 cable to USB port without any phone connected to it, does it suppose to show up as COM port in device manager?
I tried, but see nothing – no any unrecognized devices or new com ports Sad
Sponsor
barryware
DD-WRT Guru


Joined: 26 Jan 2008
Posts: 10264
Location: N41 55.327 W88 03.986

PostPosted: Tue Feb 22, 2011 6:48 pm    Post subject: Re: CA-42 cable -> JTAG Reply with quote
Apokrif wrote:
Guys,
Just got my CA-42 cable to use as JTAG
Before I stripe it, one quick question:
If I connect CA-42 cable to USB port without any phone connected to it, does it suppose to show up as COM port in device manager?
I tried, but see nothing – no any unrecognized devices or new com ports Sad


On a windows machine, yes.. it should show up as a comm port once the drivers are installed. Depending on what version of windows you are running, the drivers should be installed prior to plugging it in.

So there is no mis-understandings.. Serial is very different than jtag. you will us the ca-42 as a serial connection, not a jtag connection.

They will be two different ports on the router assuming the router has jtag to begin with.

_________________
1 x BEFW11S4 Smile
Serial RULZ!

I'm a PC Razz
Apokrif
DD-WRT User


Joined: 22 Aug 2007
Posts: 58

PostPosted: Tue Feb 22, 2011 7:25 pm    Post subject: Re: CA-42 cable -> JTAG Reply with quote
barryware wrote:
Apokrif wrote:
Guys,
Just got my CA-42 cable to use as JTAG
Before I stripe it, one quick question:
If I connect CA-42 cable to USB port without any phone connected to it, does it suppose to show up as COM port in device manager?
I tried, but see nothing – no any unrecognized devices or new com ports Sad

Right, depending on drivers installed or not, it has to show up as some sort of device connected to USB Hub (in device manager).
I got nothing on 3 different computers - means the cable is defective. Sad
PetervdM
DD-WRT User


Joined: 11 Jun 2009
Posts: 208
Location: EU

PostPosted: Tue Feb 22, 2011 8:36 pm    Post subject: Reply with quote
not necessarily. the other day i bought a couple of ca-42 cables, "genuine nokia, sure ... Smile that got their power from the phone connector instead of the USB plug. so they were only visible in windows when the phone was connected.
luckily my wrt610nv1 has a 3v3 pad next to rx, tx and gnd, so that was no problem.....

_________________
DD-WRT v24-sp2 build 17084M big
E4200 cfe 2010.09.20.0
wl0: ch1 tx 71mW WPA2 personal mixed AES
wl1: ch52 40Mhz tx 27mW WPA2 personal AES
wrt610n v1 cfe 4.175.64.16/7 retired
Apokrif
DD-WRT User


Joined: 22 Aug 2007
Posts: 58

PostPosted: Wed Feb 23, 2011 3:02 am    Post subject: Reply with quote
PetervdM wrote:
not necessarily. the other day i bought a couple of ca-42 cables, "genuine nokia, sure ... Smile that got their power from the phone connector instead of the USB plug. so they were only visible in windows when the phone was connected.
luckily my wrt610nv1 has a 3v3 pad next to rx, tx and gnd, so that was no problem.....

PetervdM,
Thanks for the tip, I don't have any nokia phone at all.
I guess, I need to find out what power + ground pins are and use AA batteries to power it up.
Don't want to strip until make sure it works!
Peabody
DD-WRT Guru


Joined: 28 Dec 2009
Posts: 1514

PostPosted: Wed Feb 23, 2011 3:12 am    Post subject: Reply with quote
I wouldn't be sticking any batteries to it to power it up. There is plenty of good information on that in the serial recovery wiki, with links to threads that discuss wires etc on that ca42 unit.
_________________
I fix "shortcuts". If you don't have time to read thoroughly, I don't have time to re-type what you missed.
Apokrif
DD-WRT User


Joined: 22 Aug 2007
Posts: 58

PostPosted: Wed Feb 23, 2011 3:38 am    Post subject: Reply with quote
Guys,
Need a little help again,
My CA-42 has following pins
http://pinouts.ru/CellularPhones-Nokia/nokia_pop_pinout.shtml

3 ACI Accessory Control Interface (short with pin 2 for handsfree recognition)
4 V Out / VDD+ Connected to pin 3 in DKU-2 usb data cable / For Hansfree (ex. HS-23): microchip power supply
5 USB Vbus Also act as USB power detection? Should be connected to USB pin 1 in usb data cable. (USB Vcc +5V)
6 FBus Rx/USB D+ USB exists only in some models*. Should be connected to USB pin 3 in usb data cable. (USB DATA+)
7 FBus Tx/USB D- USB exists only in some models*. Should be connected to USB pin 2 in usb data cable. (USB DATA-)
8 GND Data GND (USB GND)

I assume, CA-42 get power from V Out / VDD+, but I cannot find what voltage level should be there.
I guess, it’s less than +5V, otherwise they will get from USB Vbus, right?
So I need to measure voltage between #8 & #5.
If it’s 5V - use a resistor ~200 Ohm (?) between #5 & #4 and check is COM port shows up.
If not - use 2 AA between #8 & #4 and check again.
Could somebody check if these steps make sense, please?
Apokrif
DD-WRT User


Joined: 22 Aug 2007
Posts: 58

PostPosted: Wed Feb 23, 2011 3:39 am    Post subject: Reply with quote
Peabody wrote:
I wouldn't be sticking any batteries to it to power it up. There is plenty of good information on that in the serial recovery wiki, with links to threads that discuss wires etc on that ca42 unit.

Peabody,
Ok... Checking now..
Apokrif
DD-WRT User


Joined: 22 Aug 2007
Posts: 58

PostPosted: Wed Feb 23, 2011 4:10 am    Post subject: Reply with quote
Peabody,
http://www.dd-wrt.com/wiki/index.php/Serial_Recovery
Refers to only one thread:
Serial Thread in the Broadcom Forum: http://www.dd-wrt.com/phpBB2/viewtopic.php?t=56739

I found:
Barryware. LOM are talking about # of wires – obviously no way to find out without striping…
3 wires:
Orange = GND
Blue = Rx
Red = Tx

Obviously, with 3 wire CA-42 getting power from USB
I can only guess it’s same with 5 wires…

Peabody Wed Apr 14, 2010 12:07 am
Yes. If the router is using a 3.3v power and the new version only supports 5v, that matters. It matters a lot. You actually don't want to put 5v into a 3.3v system. It will fry it, which is worse than bricking it.

Not clear is it router who needs 3.3v power
or
Router does supply 3.3v power to [CA-42] device?
I guess, it’s the former, so it’s not relevant to my original question…

Can find no references how to power up CA-42 cable…
Neither has how to find how many wires are there without striping it…
I guess, I’m complete idiot, could you point me out where this information is, please?
Apokrif
DD-WRT User


Joined: 22 Aug 2007
Posts: 58

PostPosted: Wed Feb 23, 2011 5:44 am    Post subject: Reply with quote
Ok... Indeed, found relevant info in wiki
http://buffalo.nas-central.org/index.php/Use_a_Nokia_Serial_Cable_on_an_ARM9_Linkstation

>pin 4 (sticks out a bit further)+3.3v this is used to power the transceiver on the DKU-5 cable I have (red), but not the CA-42
I guess, mine CA-42 need same +3.3v - going to try tomorrow with 2 AA batts.
PetervdM
DD-WRT User


Joined: 11 Jun 2009
Posts: 208
Location: EU

PostPosted: Wed Feb 23, 2011 6:00 am    Post subject: Reply with quote
i checked my notes, and yes, you have to connect pin 4 to a 3v3 source. 2 AA or AAA batteries would do. but maybe your router has a 3V3 pad near tx and rx, like my wrt610n v1 has.
_________________
DD-WRT v24-sp2 build 17084M big
E4200 cfe 2010.09.20.0
wl0: ch1 tx 71mW WPA2 personal mixed AES
wl1: ch52 40Mhz tx 27mW WPA2 personal AES
wrt610n v1 cfe 4.175.64.16/7 retired
Peabody
DD-WRT Guru


Joined: 28 Dec 2009
Posts: 1514

PostPosted: Wed Feb 23, 2011 6:11 am    Post subject: Reply with quote
From the wiki:

Quote:
You need a level shifting 3.3v TTL adapter. You can get Nokia CA-42 cables online for about 3.00 and cut the phone end off. Then you have to figure out what each wire does.You need only grd, tx and rx connected properly for the serial interface to work.

Here is what redhawk0 did: I cut the connector end off and found 3 wires. Blue, Red, and Orange.

Using an Ohm meter I determined that my Orange Wire is Ground.

Then using the "guess" method, I found the Blue wire gets connected to the router's Rx line and the Red wire gets connected to the router's Tx line.

When I plugged it into my XP rig...the cable was not recognized and no drivers found during the PnP process.

I downloaded a utility determining the attached hardware (UVCViewer) http://www.users.on.net/~fzabkar/USB_IDs/UVCView.x86.exe

Then downloaded the Prolific Driver from here http://www.prolific.com.tw/support/files/%5CIO%20Cable%5CPL-2303%5CDrivers%20-%20Generic%5CWindows%5Callinone%5CPL2303_Prolific_DriverInstaller_v130.zip

So...

Orange = GND Blue = Rx Red = Tx

Once loaded and connected...my laptop sees the unit attached to COM8....configured Putty....and all is well.

LOM stated:

No there is no fixed standard for the colours of the wires and obviously not on the number of wires either. My first CA-42 had 3 wires and the ones I bought later had 5, the picture in my post above is from one of those.You can carefully remove the plastic molding of the phone connector and see where each wire is going and find out which colour the respective signals are on. Schematic of the Nokia phone connector here: http://www.hardwarebook.info/Pop-Port

strfr stated: The "level shifting 3.3v TTL adapter" is must, you can't connect router straight to standard RS232 serial interface. Learned after hours of trying.. ;] Cheap CA-42 is all right, even the chinese clone with ARK3116 chip thus you will not find proper driver for Win7 64bit system. Windows XP mode is the solutions in such a case.

_________________
I fix "shortcuts". If you don't have time to read thoroughly, I don't have time to re-type what you missed.
Apokrif
DD-WRT User


Joined: 22 Aug 2007
Posts: 58

PostPosted: Wed Feb 23, 2011 7:19 pm    Post subject: Reply with quote
Guys,
From the very beginning of this thread, all I want to do is to make sure the cable is not defective without cutting/breaking/striping/etc., so I can return/exchange it.

PetervdM wrote:
i checked my notes, and yes, you have to connect pin 4 to a 3v3 source. 2 AA or AAA batteries would do. but maybe your router has a 3V3 pad near tx and rx, like my wrt610n v1 has.

Yep, that’s exactly what I want to try.
Could you also post your CA-42 PID/VID from device manager, if you have cable handy still?

Peabody wrote:
From the wiki:
Quote:
You need a level shifting 3.3v TTL adapter. You can get Nokia CA-42 cables online for about 3.00 and cut the phone end off. Then you have to figure out what each wire does. You need only grd, tx and rx connected properly for the serial interface to work.

Basically DD-WRT wiki explaining about cables getting power from USB port.
They do show up in device manager once connected.
The problems discussed are about finding correct drivers and identifying correct wires.

[Strfr] "level shifting 3.3v TTL adapter" is about changing RS232 12v Rx/Tx into 3.3v TTL.

There were no references about TTL adapter/cable not using USB 5v, but required 3.3v from external source (phone end).

Or I manage not to see it somehow.
I’m really thankful to PetervdM, who pointed it out.
I thought I have a defective cable.

And the most helpful wiki is the one I posted above:
http://buffalo.nas-central.org/index.php/Use_a_Nokia_Serial_Cable_on_an_ARM9_Linkstation

The cables I bought were of two different designs, this may well vary from manufacturer to manufacturer.

The RS232 transceiver is powered from the USB port, you only need to connect ground, data transmit, and data receive to the linkstation (this was my CA-42 cable, and had 3 wires).

The RS232 transceiver is powered from the phone/Linkstation, as well as txd, rxd, and gnd, you also need to connect power (3.3v) to the linkstation board (this was my DKU-5 cable, and had 5 wires - an additional wire was used to signal what sort of cable was plugged into the phone (I think), and can be safely left disconnected).


May be we should add it to DD-WRT wiki too?

Not relevant to this thread, but for completeness: "what is the 5th wire for":
the an additional wire was used to signal what sort of cable was plugged into the phone (I think), and can be safely left disconnected).
is pin #5 - USB Vbus Also act as USB power detection?
It’s Vbus probably, it’s purpose explained here:
http://www.cypress.com/?id=4&rID=32813


I do have blue "genuine nokia" CA-42.
I think PetervdM has very same one.

I not feeling well right now, probably get flu or something.
Will post results with 2 AA as soon as I feel better.
PetervdM
DD-WRT User


Joined: 11 Jun 2009
Posts: 208
Location: EU

PostPosted: Thu Feb 24, 2011 6:17 am    Post subject: Reply with quote
my "genuine" nokia CA-42 cable has VID&0421_PID&0802 and is instanteously recognized by nokia pc-suite as a CA-42 cable.
i bought a few of them for only €5.90 each s&h included. they have 5 colored wires + blank & shielding:
GROUND -> BLACK pin 8
RX -> BLUE pin 6
TX -> WHITE pin 7
VCC -> RED pin 4
i didn't connect yellow ( pin 3 ), blank and shielding.
i dissected one connector completely, and verified all connections. pin 3 will have meaning for a nokia phone, but not for our purposes

i put genuine between quotes, because i believe it is a 100% cheap chinese clone cable. i thought it was a defective cable too, until i connected it to a phone and discovered that this particular cable needed power from the phone. electronically that isn't bad. the voltage of the connected equipment is now always in balance with the level of the tx and rx levelshifter, so no danger of frying these ports.

i know people who also bought CA-42 cables in order to duplicate an other cable of me ( to my central heating boiler ) who also had to power the cable from the equipment instead of the usb connector, and they bought their cable from an other source and it looked different.

if your goal now is to determine whether your cable is defective, you can either find someone with a nokia phone, or apply 3V3 to pin 4 and ground to pin 8 ( in my cable they are protruding ) and look whether your cable becomes visible in devicemanager, or return it and buy a cheap one on the internet.

_________________
DD-WRT v24-sp2 build 17084M big
E4200 cfe 2010.09.20.0
wl0: ch1 tx 71mW WPA2 personal mixed AES
wl1: ch52 40Mhz tx 27mW WPA2 personal AES
wrt610n v1 cfe 4.175.64.16/7 retired
Apokrif
DD-WRT User


Joined: 22 Aug 2007
Posts: 58

PostPosted: Fri Feb 25, 2011 3:46 am    Post subject: Reply with quote
I’ve tested my cable with 2 AA, opened forum to post results...
And here we go: PeterM wrote already exactly what I was to about to post.
My cable is 100% the same
Once powered up is showed as 2 devices

1. Nokia Ca-42 USB Phone parent
USB\vid_0421&pid_0802&rev_0100

2. Nokia Ca-42 USB modem
nmwcd\vid_0421&pid_0802&rev_0100&cdc_modem

Driver provider Nokia
Driver date May, 2 2008
Driver version 6.86.14.22
Driver signer Microsoft Windows Hardware Compatibility Publisher

I asked seller to replace cable already - guess I’m going to keep them both.
So if anybody in continental US need a cable ASAP I have a spare (I paid 4$ + shipping ;-)


PetervdM wrote:
electronically that isn't bad. the voltage of the connected equipment is now always in balance with the level of the tx and rx levelshifter, so no danger of frying these ports.

Agree, but a little inconvenient still...
Interesting to know what voltage range this cable supports.
It might be whatever power is applied 5v or 3.3v - that’s what we get back on tx/rx for a device, right?

Anyway, thanks a lot to everybody for invaluable help and to PeterM especially!

To Peabody:
Could you update dd-wrt serial recovery wiki to include info that some cables do need external power, please?
Might be enough to include reference this site – it’s very detailed instructions.
http://buffalo.nas-central.org/index.php/Use_a_Nokia_Serial_Cable_on_an_ARM9_Linkstation
I guess, I can do it myself, but don’t want to mess it up by mistake...
Goto page 1, 2, 3  Next Display posts from previous:    Page 1 of 3
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum