EmbDev.net

Forum: µC & Digital Electronics OPEL MID TID VDO CDR2005 WITH ARDUINO


Author: Bruno Murari (Guest)
Posted on:
Attached files:

Rate this post
0 useful
not useful
Hi folks!

I have an VDO CDR2005 radio from my Astra G/H (here in Brazil it's 
called Vectra C... by the way) and I want to communicate with this radio 
using my arduino uno r3 using SCL, SDA and MRQ like you I do with my 
MID/TID.

I cannot find a library or an example that shows how CDR2005 
communication works because everyone wants to send data/string to 
MID/TID but nobody needs to retrieve data from the radio like radio 
station.

Can someone tell me how can I read data from CDR2005 using Arduino?

: Moved by Moderator
Author: Danish Belal (danishbelal)
Posted on:

Rate this post
0 useful
not useful
I wouldnt assume Multi-Master Capability.

I'm a bit confused, that this Car Equipment features an I2C Bus, 
though.

Author: Bruno Murari (bmurari)
Posted on:
Attached files:

Rate this post
0 useful
not useful
Danish B. wrote:
> I wouldnt assume Multi-Master Capability.
>
> I'm a bit confused, that this Car Equipment features an I2C Bus,
> though.

Hi Danish,

I assume thats a I2C bus because this radio CDR2005 communicates to an 
MID (board computer) and when I did a Web search I found many kinds of 
sending data to that MID using this modified I2C (SDA, SCL, MRQ). So I 
assumed that's a I2C modified type...

See the code below of the communication to send data from an Arduino to 
an MID (I also attached the original code .ino, .cpp, .h to this post):

***********************************************************

#include "TID12_10.h"

TID MyTid(7,5,6); //D5->SCL, D6->MRQ, D7->SDA


void setup() {
MyTid.space1_init(0,0); //(first position,last position) (i. e. just the 
first digit)
MyTid.space2_init(1,9); //use digit 2 to 10
MyTid.clear_space(1);
MyTid.clear_space(2);
}

void loop() {
char first[2];
first[0] = 64; //define a symbol, here @, for more symbols see attached 
picture, thanks to Georg (Gorgeous188)
first[1] = ' '; // space for blinking
first[2] = '\0'; // null character termination

MyTid.display_message(first,1,1); // (speed,position)
MyTid.display_message("This is a test...",4,2);
}

***********************************************************

Do You have any idea of how can I receive data from this type of 
communication (SDA, SCL, MRQ)? This radio only send data using this type 
of comm and I need to read this data using an Arduino.

I already linked this radio using an Arduino UNO R3 but the Arduino 
shows nothing connected to the I2C bus when I perform an address scan.

Thanks again!

Author: Uwe (Guest)
Posted on:

Rate this post
1 useful
not useful
It seems you're looking for I2C slave mode.

See examples e.g here:
https://www.arduino.cc/en/Tutorial/MasterWriter
http://dsscircuits.com/articles/arduino-i2c-slave-guide

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.