Vitat's homepage

General => MP3 => Topic started by: Vitat on 27 Nov 2003, 22:30



Title: "Multi-CD" emulator - feedback report.
Post by: Vitat on 27 Nov 2003, 22:30
Please make a small feedback report if you build a working interface.

Report problems, your head unit type, yampp3 version.

Thank you!


Title: Re: "Multi-CD" emulator - feedback report.
Post by: loox- on 21 Dec 2003, 23:27
Quote from: Vitat
Please make a small feedback report if you build a working interface.

Report problems, your head unit type, yampp3 version.



has anybody successfully made everything work fine?
I'm particulary interested in the Multi-cd emu stuff:
is there any serious risk to damage the HU?
has anybody got it working with playn pc instead of a yammp3?
is there any ways to go round the 99 dirs/files per dir limitation?

thanks in advance, lx


Title: Re: "Multi-CD" emulator - feedback report.
Post by: Vitat on 25 Dec 2003, 13:33
Quote from: loox-
has anybody successfully made everything work fine?
I made and I know two men who made it too. ;)
Quote
I'm particulary interested in the Multi-cd emu stuff:
is there any serious risk to damage the HU?
You can damage the HU if you not right connect the ASENBUS. ASENBUS - 20mA maximum.
Quote
has anybody got it working with playn pc instead of a yammp3?
What kind of work with PC you mean? May be I can help?
Quote
is there any ways to go round the 99 dirs/files per dir limitation?
HU can display on screen 99 discs and 99 tracks maximum! Possible to make switch between first 99 discs and second 99 discs, maximum 12 pages.


Title: no sucess so far
Post by: mike on 25 Dec 2003, 23:10
hi

i tried to port the whole thing to a PIC18F452 but i didn't have any sucess so far
my problem is that i don't know anything about ATMEGA and AVRGCC so it's a hard piece of work to figure out what the orignal code is doing
but i will not give up until i got it working :)

cya
mike


Title: Re: no sucess so far
Post by: Vitat on 25 Dec 2003, 23:36
Quote from: mike
i don't know anything about ATMEGA and AVRGCC so it's a hard piece of work to figure out what the orignal code is doing
Do you want a step by step instructions for compile the code and upload it to ATMEGA?


Title: "Multi-CD" emulator - feedback report.
Post by: mike on 26 Dec 2003, 01:20
hi vitat

thx for the offer but i just want to understand what your code does :)

in the ipbus.c file there is a part which explains the timer values you use
based on a 7.3728 MHz clock but in your circuit diagram there is a 14.7456Mhz resonator
does the AVR divide the external frequency with 2 (i couldn't find anything in it's datasheet)?

another question:

in link.c you write
....
timer0_source(CK64);              //update every 1us
timer0_start();
while (INPUT_IS_SET)
{
T = inp(TCNT0);
if (T >= 50) goto err_exit;       // 200us max wait time
}
...

you assign a prescaler of 64 to timer0 which should increment it every 1us
so why is a timervalue of 50 equal to a 200us delay ?!?!

there is also a question that appeared when i watched the communication on the ipbus with a scope

after the first 27 bytes comes the first of 6 "spikes"
those spikes have the same hightime (about 26us)as a 0 in the normal comunication but in the first 20us the voltage level ist about 2 times higher than in the rest of the communication
did you find out what this spike is or does ?
does your code and hardware threat that spikes as normal bits  ?

thx4 your help
mike


Title: "Multi-CD" emulator - feedback report.
Post by: Vitat on 26 Dec 2003, 02:44
Quote from: mike
thx for the offer but i just want to understand what your code does :)
No problem. ;)
Quote
in the ipbus.c file there is a part which explains the timer values you use
based on a 7.3728 MHz clock but in your circuit diagram there is a 14.7456Mhz resonator
does the AVR divide the external frequency with 2 (i couldn't find anything in it's datasheet)?
:Tomato: My code is NOT very clean. I began making emulator on AT90S8515 - older ATMEL microcontroller. And it working at 7.3728 MHz maximum. This calculating for 7.3728 MHz. When I become use ATMega I am not correcting this little help.
Quote
another question:

in link.c you write
....
timer0_source(CK64);              //update every 1us
timer0_start();
while (INPUT_IS_SET)
{
T = inp(TCNT0);
if (T >= 50) goto err_exit;       // 200us max wait time
}
...

you assign a prescaler of 64 to timer0 which should increment it every 1us
so why is a timervalue of 50 equal to a 200us delay ?!?!
:oops: This comment I am not cleaning too. At 7.3728 MHz prescaler was = 8 (CK8) and timer updated every 1us. At 14.7456 MHz I use prescaler = 64 (CK64) and timer updating every 4us (14.7456 MHz / 64 ~ 23KHz ~ 4us).
Quote
there is also a question that appeared when i watched the communication on the ipbus with a scope

after the first 27 bytes comes the first of 6 "spikes"
those spikes have the same hightime (about 26us)as a 0 in the normal comunication but in the first 20us the voltage level ist about 2 times higher than in the rest of the communication
did you find out what this spike is or does ?
does your code and hardware threat that spikes as normal bits  ?
I am not sure what you mean. But I am sure that standart IP-Bus driver seeing voltage difference > 100mV as high level. And unimportant that difference = 100mV or 200mV.


Title: "Multi-CD" emulator - feedback report.
Post by: mike on 26 Dec 2003, 03:07
that clears up a few things thx  :idea:

i'll post some screenshots of those "spikes" as soon as i have a scope available
i guess a picture could help to explain what i mean

cya and thx
mike


Title: "Multi-CD" emulator - feedback report.
Post by: Vitat on 26 Dec 2003, 03:13
Quote from: mike
that clears up a few things thx  :idea:
8)  
Quote
i'll post some screenshots of those "spikes" as soon as i have a scope available
i guess a picture could help to explain what i mean
You can attach pictures to post now. I install this option into my forum. :D


Title: a few questions
Post by: mike on 29 Dec 2003, 01:46
hi vitat

i've built a working logger with a PIC18F452 that captures the communication between my HU(KEH-P6600R)  and the CDC(CDX-P24S) but logging is the only thing that seems to work
when i try to emulate the CDC nothing works

are BUS+ and BUS- the only wires that need to be connected to the emulator or is there anything else that needs to be done to get the bus going ?

your code is rather complex so i can't figure out the first steps after powerup that init the bus
what are the nessecary pieces of code to init the communication between the emulator and the HU ?

sorry for so many questions but it seems as if you where the only avaliable specialist for the IPBUS  ;)

thx
mike


Title: "Multi-CD" emulator - feedback report.
Post by: Vitat on 29 Dec 2003, 02:14
mike,
Quote
i've built a working logger with a PIC18F452
Congratulations! =D>
Quote
are BUS+ and BUS- the only wires that need to be connected to the emulator
Yes!
Quote
your code is rather complex so i can't figure out the first steps after powerup that init the bus
Code begining work from function[code:1]int main(void)[/code:1]
I think, your error in send(read)_acknowledge function.


Title: "Multi-CD" emulator - feedback report.
Post by: Vitat on 29 Dec 2003, 02:25
After transmiting byte, going "ucknowledge bit". Transmitter unit set line in high stage, only after that - receiver set line in high stage too! Transmitter send bit 20us/20us, receiver send bit 35us/5us and if look at scope - you see only 35us/5us bit. ;)


Title: "Multi-CD" emulator - feedback report.
Post by: mike on 29 Dec 2003, 02:42
hmm.. i guess your right it must be some timing problem i'll check that tomorrow for now i got to get some sleep :)

thx & cya
mike


Title: "Multi-CD" emulator - feedback report.
Post by: Vitat on 29 Dec 2003, 03:10
May be it can help you ;)


Title: finaly it works
Post by: mike on 08 Jan 2004, 18:07
hi

i finaly built a working emulator with a pic
your last post with the timing diagram realy helped vitali

i have one last question
if i want to connect more then one CDC or emulator to the HU i just need to give every device a different ID right ?
if yes, do you have other valid ID's or logfiles of a communication with more devices on the ipbus ?


thx alot
mike


Title: "Multi-CD" emulator - feedback report.
Post by: Vitat on 08 Jan 2004, 21:58
mike,
Quote
if i want to connect more then one CDC or emulator to the HU i just need to give every device a different ID right ?
No. You must have an adapter with microcontroller to connect more than one device.
I'll be working on it...


Title: "Multi-CD" emulator - feedback report.
Post by: Anonymous on 11 Jan 2004, 05:02
Hi!

I´ve built your adapter.
Programming the ATmega8 with yaap works.
Now my Question: Is there any way to test it before i connect it to my HU?
I´ve built it with the MAX202. Is it possible to see something on my terminal (PC) to know that at least the ATmega8 and the MAX202 are working?

Is it enough if I uncomment the following in constants.h ? If yes, what should i see?
[code:1]
#define LOG

#define ASENBUS_ENABLE
[/code:1]

Regrads,
Sebastian


Title: "Multi-CD" emulator - feedback report.
Post by: Anonymous on 11 Jan 2004, 12:23
hi

if u enabled LOG then you shouldt see the message "Start" followed by a carriage return and a line feed in hyperterminal right after powerup
You should't also see a "ON"or "OFF" when ASENBUS is switched on or offf

there will not be any other message in hyperterminal until a real communication between your HU and the emulator has been established

regards
mike


Title: "Multi-CD" emulator - feedback report.
Post by: sebastian on 11 Jan 2004, 15:22
hi!

just enabled LOG.
There is at first a "Start", if powered on. But at next there always comes "CD-Error". I think this is ok, because there is no HU connected.

Thanks to mike,

regrads,
Sebastian


Title: "Multi-CD" emulator - feedback report.
Post by: mike on 11 Jan 2004, 20:26
hi

atmega seems to work then
you are right this error only comes if an acknowledge error occurs during a send from the emulator to the HU  (or the HU is missing  :D)

regards
mike


Title: "Multi-CD" emulator - feedback report.
Post by: Vitat on 12 Jan 2004, 21:47
If you define ASENBUS_ENABLE - don't forget that ASEN_BUS can not connecting to the MEGA directly!
ASEN_BUS from HU have 12V level! You must using transistor! Looking to my old version of schematic of IP-Bus emu with ASENBUS transistor.
http://www.vitat.spb.ru/files/ip-bus/ip-bus_sch.gif


Title: "Multi-CD" emulator - feedback report.
Post by: sebastian on 26 Jan 2004, 23:38
hi,

now i´just connected my HU to the Emulator, but there also are only a "START" after power-on, and lots of "CD Error".

Could you please help me with this problem??

thanks,
Sebastian


Title: "Multi-CD" emulator - feedback report.
Post by: Vitat on 29 Jan 2004, 00:59
sebastian,
Common to ICQ. ;)


Title: "Multi-CD" emulator - feedback report.
Post by: kamil on 15 Feb 2004, 21:59
hi,
the emulator runs fine since one month ago in my car together with an selfmade MP3 player.
best regards


Title: "Multi-CD" emulator - feedback report.
Post by: Vitat on 16 Feb 2004, 01:26
kamil,
Thanks for feedback!
Photos? 8)


Title: "Multi-CD" emulator - feedback report.
Post by: kamil on 18 Feb 2004, 02:47
hi,

(http://pics.m-eit.de/test5.JPG)

left breadboardpcd is the emulator.
currently I´m using a Mega16, because mega8 is currently not availible for me.
i will try to import the emulatorsoftware in the player controller (mega128),
but currently i have some problems to understand the emulatorsoftware, because i just learning program atmel ( and  C ).
best regards


Title: "Multi-CD" emulator - feedback report.
Post by: Vitat on 20 Feb 2004, 02:47
kamil, Very nice!
This photo in your car? ;) How about any box?


Title: It's working !!!!!!
Post by: rlemon on 26 May 2004, 16:02
After many problems my emulator now working. In next week I put some photos of my project it's MP3 player mounted in Pioneer KEH-P7800R head unit.


Title: Re: It's working !!!!!!
Post by: Vitat on 26 May 2004, 16:13
Quote from: rlemon
After many problems my emulator now working. In next week I put some photos of my project it's MP3 player mounted in Pioneer KEH-P7800R head unit.
Congratulations!


Title: "Multi-CD" emulator - feedback report.
Post by: rlemon on 02 Jun 2004, 16:15
This is my "Minimum hardware MP3 Player".
ATMega162 (CPU :) )
VS1001k (mp3 decoder)
LM2575 (voltage regulator)
Photos:


Title: "Multi-CD" emulator - feedback report.
Post by: rlemon on 02 Jun 2004, 16:53
I can't attach photos :(


Title: "Multi-CD" emulator - feedback report.
Post by: Vitat on 03 Jun 2004, 16:16
rlemon's photos:


Title: "Multi-CD" emulator - feedback report.
Post by: rlemon on 03 Jun 2004, 16:24
It's ugly but working :)


Title: Re: "Multi-CD" emulator - feedback report.
Post by: Vitat on 03 Jun 2004, 16:48
Quote from: rlemon
It's ugly but working :)
Now, if dimension of an Image is bigger then 800x600, the Image will be displayed as a Link, rather than displaying it inlined.


Title: "Multi-CD" emulator - feedback report.
Post by: Jman on 05 Jun 2004, 10:48
I busy building the emulator to use with my Yampp3/usb.
My question is were the software changes  to the Yampp3/usb
extensive? or just serial out modifactions ? and are they listed.
I am busy converting my Yampp3/usb to use a color nokia screen with
software from MIS.
This allows usb upload of MP3's! and i would like to keep.

Many Thanks
Jman

PS
I have been looking for something like this for ages WELL DONE. :)


Title: "Multi-CD" emulator - feedback report.
Post by: kamus on 26 Jun 2004, 00:39
Just a silly question:

All the IP-BUS times are in MICROSECONDS, not in MILISECONDS. Is that is correct?
I saw some information about some timming in MILISECONDS, but I believe the firmware of IP-BUS emulator is in MICROSECONDS.

Thanx!

kamus


Title: "Multi-CD" emulator - feedback report.
Post by: Vitat on 26 Jun 2004, 13:55
kamus, microseconds!


Title: "Multi-CD" emulator - feedback report.
Post by: kamil f. on 24 Jul 2004, 15:57
hi,
here is my smaller version.  :)
but it´s not the last version.
the next step is to connect an USB2.0 chip for simply download files.
the second step will be an industrial PCB  :)
(http://pics.m-eit.de/HDDMP3/HDDMP3.1.JPG)


Title: "Multi-CD" emulator - feedback report.
Post by: dangerous on 04 Sep 2004, 10:35
rlemon: how does the HU handle having all the cd player components removed? Does it give any error codes or other problems ?

I am testing my emulator on a pioneer HU with broken CD section. I might build a player into it as you have.


Title: "Multi-CD" emulator - feedback report.
Post by: rlemon on 10 Oct 2004, 22:53
Quote from: dangerous
rlemon: how does the HU handle having all the cd player components removed? Does it give any error codes or other problems ?

I am testing my emulator on a pioneer HU with broken CD section. I might build a player into it as you have.


Hi
My Pioneer KEH-P7800R it's tape player, and after remove cassette mechanism doesn't give any errors.


Title: "Multi-CD" emulator - feedback report.
Post by: kingarus on 22 Nov 2004, 18:48
@rlemon

Did you connect a notebook hd to your device or I have a bad sight? I want to built a such device, is it "opensource" ?

[Edit]
Sorry I'm OT


Title: "Multi-CD" emulator - feedback report.
Post by: tristan1602 on 16 Dec 2004, 00:17
Mike

Did you ever get the Disk Changer Emulator working with the PIC properly to emulate a CD chnager
on the IP bus ??

If you did, have you released this PIC circuit and code on the Forum ??

If you haven't is it possible to get this mailed to me, PLease !!

I recently bought a KEH P-2035 Pioneer Deck and an external IP-Bus cable CDR B-10, but unfortunately, according to the Pioneer Australia this deck doesn't support AUX input via the CDR B-10 cable, so I believe that the only way that I can make this work is to "fool" the Head Unit into thinking it has a CD chnanger connected so that the RCA Line In is enabled. Or so is my theory, anyway !!!

Any help would be appreciated !!!