The MP3car.com Store The MP3car.com Store    

Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Hardware Development

Reply
 
LinkBack Thread Tools Display Modes
Old 02-27-2006, 06:41 PM   #241
Variable Bitrate
 
Join Date: Apr 2005
Location: Belgium
Posts: 325
More about logs

I reformated the "dumps13", captured when opening A and B in the spying circuit, and confirm that the HU should reply with an acknowledge when questioned with a frame such as :

- 3Dh 00h 03h 11h 60h 06h 49h

It's also interesting to see that when the CDC receives no ACK, it retries 2 times the same frame without incrementing the id (so 3 identical frames in a row), then waits for 1 second and tries 3 times with the next id, and so on until id = 09, then it falls back to 00h. No idea why...
Attached Files
File Type: zip dumps13+xls.zip (32.0 KB, 111 views)

Last edited by Vicne; 02-27-2006 at 07:13 PM.
Vicne is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 02-27-2006, 06:50 PM   #242
Ale
Newbie
 
Join Date: Feb 2006
Location: Italy
Posts: 42
Quote: Originally Posted by Vicne
- Tried with a pull up to the Head Unit's 12V (12.25V actually) : nothing

Are you sure that this pullup can supply almost 12V at pin 14? what value have you tried?
Ale is offline   Reply With Quote
Old 02-27-2006, 07:11 PM   #243
Variable Bitrate
 
Join Date: Apr 2005
Location: Belgium
Posts: 325
STOP
I had typos in my code ! Start of frame is 3Dh, not D3h !!!
Vicne is offline   Reply With Quote
Old 02-27-2006, 07:25 PM   #244
Variable Bitrate
 
Join Date: Apr 2005
Location: Belgium
Posts: 325
Belgian Champagne

Ladies and gentlemen, we're getting very close !

Once I send correct frames, I AM GETTING ACKNOWLEDGES BACK ! :-)

See capture below (Acknowledges come as soon as I turn the HU on), along with fixed code :-).

I sent both BOOTING and PLAYING and both are getting acknowledged. Well, that's not sufficient yet for the HU to allow me to switch source, but it's now just a question of emulating startup sequence I think.

For the circuit, I left the transistor in open collector configuration, with no divider on the base (once again, less components works better :-) )

So to finish this historic day here's a picture of my setup (PC, interface, hacked M/F blue mini-iso connector and Belgian Champagne :-) )

Cheers !
Attached Images
 
Attached Files
File Type: zip TLCDCEmu.zip (80.0 KB, 103 views)

Last edited by Vicne; 02-27-2006 at 07:33 PM.
Vicne is offline   Reply With Quote
Old 02-27-2006, 07:37 PM   #245
Variable Bitrate
 
Join Date: Apr 2005
Location: Belgium
Posts: 325
Quote: Originally Posted by Ale
Are you sure that this pullup can supply almost 12V at pin 14? what value have you tried?

The pull-up still was 4K7 but it seems it's not needed.
I think voltage measurement of 5.7V when putting this resistor to ground shows that there most probably is some internal pull-up and we can safely leave an open collector, right ?

For the sake of completeness, here's the circuit I'm using. Now finally I think more people (without a CDC) can enter the game :-)

Note : having re-read the MAX3232 Data Sheet this afternoon, it seems I should replace the three 0.1uF capacitors at pins 2, 6 and between 4 and 5 by 0.47uF ones as my power supply is 5V and not 3V (see table 2, page 9)

Thanks again for your insightful input, as well as pippolippi's.
Attached Images
 

Last edited by Vicne; 02-27-2006 at 07:51 PM.
Vicne is offline   Reply With Quote
Old 02-28-2006, 05:47 AM   #246
Constant Bitrate
 
Join Date: Feb 2006
Posts: 113
Is the max232 really necessary when going from the HU to the PC?
I know that you probably are using it because you already have it, but IIRC you made previous tests with only the 10k resistor.
I'm asking because if the max232 is not needed from the HU to the PC I'm thinking to replace the transistor and the max232 with an optocoupler and a diode (since the optocoupler wouldn't stand more than 5v of reverse voltage).
Code:
----------------------------- GND------ 1--|---- |------------|--6 | | | | | \---/ \ | ------ | | \ / \ | | / C | | | --- \ \| | |/ | | | | \ -- --| ---|--5 HU RX 1N4148 | | \| B |\ | TX ---|<- 2--|---- -- | V E | | --------|--4 HU GND 3--|--NC | ----------------------------- CNY17

Note the apparently reversed connection of the optocoupler: the transistor will be open with a positive TX (hence a 12V via the internal pull-up of the HU) and closed with a negative TX (hence 0V to the HU).
Edit: of course a resistor is needed in series with the optocoupler's led in order not to fry it. Around 2K should do.

Last edited by pippolippi; 02-28-2006 at 05:54 AM.
pippolippi is offline   Reply With Quote
Old 02-28-2006, 06:48 AM   #247
Variable Bitrate
 
Join Date: Apr 2005
Location: Belgium
Posts: 325
Quote: Originally Posted by pippolippi
Is the max232 really necessary when going from the HU to the PC?
I know that you probably are using it because you already have it, but IIRC you made previous tests with only the 10k resistor.

Yes, it worked with a simple 10K resistor only.

Honestly, I'm using it not only because I have it but also because I'm feeling more comfortable being in the spec than in the "undefined area that should work". I know that most PCs nowadays are probably similar to mine and present the same characteristics, but what if not ? It's not the 5K input impedance that I doubt of (it is defined in the spec), but more the threshold supposedly around 1.5V. What if people use exotic serial ports (USB>serial / PDA / ...) with other characteristics ? The [-3V ; 3V] zone is "undefined" according to the RS232 spec, so I prefer to remain out of it.

I wouldn't say that if it implied an expensive specific component, but a MAX3232 (or MAX232) costs around 2 EUR and can be obtained as free sample from Maxim within a few days, so I "won't afford the economy" (if you see what I mean). Simpler yet, the MAX233 has internal capacitors. It's a bit more expensive but cabling is reduced to almost nothing.
I prefer not to have people asking us why their circuit doesn't work and have to imagine all possibilities, including exotic serial ports. It must work :-)

But of course, if you want to use simple resistors in your specific case, no problem...
Quote:
I'm asking because if the max232 is not needed from the HU to the PC I'm thinking to replace the transistor and the max232 with an optocoupler and a diode (since the optocoupler wouldn't stand more than 5v of reverse voltage).
Note the apparently reversed connection of the optocoupler: the transistor will be open with a positive TX (hence a 12V via the internal pull-up of the HU) and closed with a negative TX (hence 0V to the HU).
Edit: of course a resistor is needed in series with the optocoupler's led in order not to fry it. Around 2K should do.

Mmh, I'm not used to optocouplers but why not. Now let me guess... you do have a CNY17 in stock, don't you ? :-). Well, I'm probably not the best to comment on that solution, but from a newbie point of view, this doesn't seem incredibly simpler than using the MAX I think...

(Nice ascii art by the way :-) ).

Tell us if you get results, it's always good to have alternative solutions.
Vicne is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 02-28-2006, 07:50 AM   #248
Constant Bitrate
 
Join Date: Feb 2006
Posts: 113
Quote: Originally Posted by Vicne
Mmh, I'm not used to optocouplers but why not. Now let me guess... you do have a CNY17 in stock, don't you ? :-)

No, actually I have an unused max232 hanging around with capacitors and everything already connected, and maybe even a couple of npn transistors.
OTOH revising various optocoupler circuits online maybe they're not suitable for these speeds without a lot of extra components.
pippolippi is offline   Reply With Quote
Old 02-28-2006, 08:02 AM   #249
Constant Bitrate
 
Join Date: Feb 2006
Posts: 113
BTW, the datasheet for the max232 says that input voltages for T_IN have to be between -0.3V and 6V
pippolippi is offline   Reply With Quote
Old 02-28-2006, 08:14 AM   #250
Variable Bitrate
 
Join Date: Apr 2005
Location: Belgium
Posts: 325
Quote: Originally Posted by pippolippi
BTW, the datasheet for the max232 says that input voltages for T_IN have to be between -0.3V and 6V

Yes...
And they are, as T1IN (pin11) is linked to R2OUT (pin 9) which is TTL level (0-5V) and T2IN is tied to GND to avoid leaving it floating.

I don't see the problem (if any).
Vicne is offline   Reply With Quote
Old 02-28-2006, 08:40 AM   #251
Constant Bitrate
 
Join Date: Feb 2006
Posts: 113
Quote: Originally Posted by Vicne
I don't see the problem (if any).

I was confused
pippolippi is offline   Reply With Quote
Old 02-28-2006, 09:44 AM   #252
Variable Bitrate
 
Join Date: Apr 2005
Location: Belgium
Posts: 325
Quote: Originally Posted by pippolippi
I was confused

No problem. We probably all need some sleep :-)

Well, if you have components to build a circuit similar to mine, I'd advise that you do that first as it's now known to work. That would confirm :
- that you didn't fry your HU
- that your software is working
- that the pinout and wiring are correct

Then why not go the "10K" way for Rx, and if it's still ok, fiddle with the Tx to see if you can make something simpler/cheaper/smaller...

For my part, I'll work on the software to improve the finite state machine and mimic the CDC's bootup sequence.
Vicne is offline   Reply With Quote
Old 02-28-2006, 10:41 AM   #253
Variable Bitrate
 
slimmegane's Avatar
 
Join Date: Feb 2005
Location: Italy/Lecce
Posts: 230
Quote: Originally Posted by Vicne
For the sake of completeness, here's the circuit I'm using. Now finally I think more people (without a CDC) can enter the game :-)


I'm ready very best work! Now I have only 1 question: Where I can find a female connector to connect to HU ???

Thanks very much to all for contribute to Renault and MP3 car forum!

Thanks!
__________________
--------------------------------
ITALIANI: DISPONIBILI MODULI OEM GPS:

http://www.mp3car.com/vbulletin/show...214#post639214
--------------------------------
slimmegane is offline   Reply With Quote
Old 02-28-2006, 11:40 AM   #254
Variable Bitrate
 
Join Date: Apr 2005
Location: Belgium
Posts: 325
Quote: Originally Posted by slimmegane
Now I have only 1 question: Where I can find a female connector to connect to HU ???

As I said, I have found (and tested) two ways of getting one :
- full Blaupunkt extender (useful for me to get both M and F plugs) for 16 EUR in a car audio store (Blaupunkt ref 7 607 621 154).
- eBay : The female connector (+ contacts) costs 5 EUR (+4 EUR S/H for Belgium) at http://stores.ebay.de/ADAPTERSHOP (search on "blau"). Others sell it under the name "mini-iso" but some don't include the contacts.
Vicne is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 02-28-2006, 01:27 PM   #255
Newbie
 
Join Date: Feb 2006
Location: Athens
Posts: 2
connections-please help

Hello,
My car is a Renault Clio 1.4 8V (October 1999) and I have a Renault radio cassette player (Philips) with these connections
Name:  a.JPG
Views: 1125
Size:  7.9 KB

I bought a radio cd player (model DC 278/62B) with these connections

Name:  b.JPG
Views: 1057
Size:  6.9 KB
I tried to connect the cd player but I couldn’t connect the screen connector from my car to new radio cd

Does anyone know if I can connect the cd player to my car, and how ?
Please help.
nisianp is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off


All times are GMT -5. The time now is 02:38 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics