Vitat's homepage

General => MP3 => Topic started by: Chris on 14 Nov 2005, 14:43



Title: Hex in zip file and hex from compile?
Post by: Chris on 14 Nov 2005, 14:43
Hi,

When I use the hex fire that comes with IPBus v4.0 the emulator gives a nice output:

SnBPBNBpBnBPBFB :o

however, if I run a simple make on the code and use the new hex file I get.

SCD 10 10 06 00 34 02 40 02                           
CD 10 10 06 00 23 01 00 83 41 00 02                                   
CD 61 10 06 01 20 02 16 01 99 01 00 00 01 00 01 01 00 00 C0 48                                                             
CD 00 10       
CD 00 10       
PCD 11 10 06 00 24 02 30 A9
CD 10 10 06 00 23 01 00 83 41 00 11
BCD 11 10 06 00 20 11 30 00
nCD 11 10 06 00 24 11 30 26
CD 10 10 06 00 23 01 00 83 41 00 03
BCD 11 10 06 00 20 03 30 00
 CD Error
CD 00 10
PCD 11 10 06 00 24 03 30 A9
CD 10 10 06 00 23 01 00 83 41 00 11
CD 00 10
BCD 11 10 06 00 20 11 30 00
nCD 11 10 06 00 24 11 30 26
CD 10 10 06 00 23 01 00 83 41 00 03
BCD 11 10 06 00 20 03 30 00
pCD 11 10 06 00 24 03 30 27
BCD 11 10 06 00 20 03 30 00
CD 00 10
CD 00 10
FCD 11 10 06 00 24 03 30 28
CD 10 10 06 00 23 01 00 83 41 00 05
BCD 11 10 06 00 20 05 30 00
CD 00 10

How do I get rid of all this extra data? :?

Cheers
  Chris


PS ..can I get the emulator to send a diffrent char if one of the six number keys is pressed? i.e the ones you would use to select a CD (1->6)  on the MD :?:


Title: Re: Hex in zip file and hex from compile?
Post by: Chris on 15 Nov 2005, 15:09
forget it. I figured it out by moving to v5.

Also to anyone else interested the 1->6 key can be accessed by adding

case 0xC0:
   switch (Message[8])
   {                     
      case 0x10:
         UART_SendByte ('1');   // F1
         break;
      case 0x20:
         UART_SendByte ('2');   // F2
         break;

       etc


   }
break;


to the //*** Key command from Head Unit section


Title: Re: Hex in zip file and hex from compile?
Post by: Vitat on 15 Nov 2005, 16:09
forget it.
:-)


Title: Re: Hex in zip file and hex from compile?
Post by: Chris on 17 Nov 2005, 19:08
I'm getting there now. The HU is talking to the PC and visa versa.

Is there any way to reduce the amount to time the "M1 DISC XX" stays on screen when you change disks/Albums?

Also if you change Disk title/Song Title in the middle of playing a track, does the HU update the screen?

Cheers
    Chris



Title: Re: Hex in zip file and hex from compile?
Post by: andrethomas on 17 Nov 2005, 19:33
I havent tried this, but it should work as the HU is only acting on what the emulator is sending. So if it sends new information it will update - no matter what sound is comming from the PC.

What's your setup? :)


Title: Re: Hex in zip file and hex from compile?
Post by: Vitat on 17 Nov 2005, 22:18
Is there any way to reduce the amount to time the "M1 DISC XX" stays on screen when you change disks/Albums?
No way. This pause making HU, not the emulator.

Also if you change Disk title/Song Title in the middle of playing a track, does the HU update the screen?
No. Hu asked titles only after Track or Song is changed.


Title: Re: Hex in zip file and hex from compile?
Post by: Chris on 18 Nov 2005, 16:38
Can I just run through the order that I need to send comamnds to the HU when diffrent things happen.

DISK CHANGE

seek
d xx..xxx 0
t xx..xx 0
Cdt
cms
play

TRACK CHANGE

t xx..xx 0
Cdt
cms
play

TIME
cms

Is that right? :?


Title: Re: Hex in zip file and hex from compile?
Post by: Vitat on 18 Nov 2005, 19:08
Nothing understanded.


Title: Re: Hex in zip file and hex from compile?
Post by: Chris on 18 Nov 2005, 19:45
Sorry,

when I am changing Disk/Album the disk name/number and track name/number change and the time changes. Which order should I send the new information to the HU? Also when do I need to send the seek and play commands to the HU?

When the Track changes only the track name/number changes to do I still need to send a seek command? do I need to send the play command aswell?

When the seconds count up do I only need to send the new minutes and seconds or do I need to send the play command aswell?



Title: Re: Hex in zip file and hex from compile?
Post by: Vitat on 23 Nov 2005, 19:29
when I am changing Disk/Album the disk name/number and track name/number change and the time changes. Which order should I send the new information to the HU? Also when do I need to send the seek and play commands to the HU?
When the Track changes only the track name/number changes to do I still need to send a seek command? do I need to send the play command aswell?
If I remeber...  You can only send new disk/track number only without seek and play commands.

When the seconds count up do I only need to send the new minutes and seconds or do I need to send the play command aswell?
Only min and sec.