Vitat's homepage
26 Apr 2024, 10:18 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: 21.03.08 Произведено обновление сайта/Site was updated
 
  Home Forum Help Search Login Register  

  Show Posts
Pages: [1]
1  General / MP3 / Re: Hex in zip file and hex from compile? 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?

2  General / MP3 / Re: Hex in zip file and hex from compile? 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? Confused
3  General / MP3 / Re: Hex in zip file and hex from compile? 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

4  General / MP3 / Re: Hex in zip file and hex from compile? 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
5  General / MP3 / Hex in zip file and hex from compile? 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 Surprised

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? Confused

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 Question
6  General / MP3 / Re: Complile problems on: 14 Oct 2005, 12:48
Doh!, Had the wrong WinAvr version installed. Now compiling fine.

The problem I have now is that after installing IPbus_v5_MD the HU show the device as External (which is fine) but just sits there flashing TOC READ at me.
I really want to use some of the features of this version such as:

FUNC -> enter to functions mode and choises function
UP or DOWN => fastforward on tracks with 1 track step, this function allows at fast browsing on tracks to see their names (only in MD mode)
etc..

I am using the emulator to control a PC if this makes any diffrence.

Also what is "Stupid mode"?

Cheers
7  General / MP3 / Complile problems on: 11 Oct 2005, 20:25
Hi,

When I tyr to compile the source I get the following error

C:\testmd\MD\IPbus_v5_MD>make
-------- begin --------
avr-gcc -c -mmcu=atmega8 -I. -g -Os -funsigned-char -funsigned-bitfields -fpack-
struct -fshort-enums -Wall -Wstrict-prototypes -Wa,-ahlms=link.lst link.c -o lin
k.o
link.c:2:23: avr/timer.h: No such file or directory
link.c: In function `read_message':
link.c:72: warning: implicit declaration of function `cbi'
link.c:74: warning: implicit declaration of function `timer0_source'
link.c:74: error: `CK64' undeclared (first use in this function)
link.c:74: error: (Each undeclared identifier is reported only once
link.c:74: error: for each function it appears in.)
link.c:75: warning: implicit declaration of function `timer0_start'
link.c:76: warning: implicit declaration of function `inb'
link.c:78: warning: implicit declaration of function `inp'
link.c:132: warning: implicit declaration of function `sbi'
link.c: In function `read_byte':
link.c:150: error: `CK64' undeclared (first use in this function)
link.c: In function `read_byte_wo_parity':
link.c:195: error: `CK64' undeclared (first use in this function)
link.c: In function `send_acknowledge':
link.c:227: error: `CK64' undeclared (first use in this function)
link.c: In function `send_message':
link.c:249: error: `CK64' undeclared (first use in this function)
link.c: In function `read_acknowledge':
link.c:404: error: `CK64' undeclared (first use in this function)
make: *** [link.o] Error 1


It cannot find avr/timer.h! and I  cannot find it under C:\WinAVR\avr\include\avr

Please help!!!
8  General / MP3 / 1->6 Quick access keys on: 25 Jul 2005, 13:38
Do you know the case codes for the 1-to-6 quick access codes?
Also
If case 0x30 is Key command from Head Unit na d case 0x50 is Head Unit Ask for CD Text what is case 0x40?

i.e

case 0x??:
   UART_SendByte ('1');   // Quick key 1
   break;

Cheers
   Chris
9  General / MP3 / Re: Displaying text on HU on: 06 Mar 2005, 01:08
so thats
Cxx
dxxxxxxxxxxxxxxxxxxx
txxxxxxxxxxxxxxxxxxx
p

Cheers, I'll give that a try when I get to work on monday. Failling that i'll have to risk it on my new HU.

   Chris
10  General / MP3 / Displaying text on HU on: 05 Mar 2005, 13:43
Well I've finally got round to putting all the bits together and hooked the HU and emulator up to a PC and everything seems to be great!
The PC is resciving S,s,P,pN,n etc and I can update the DISK/TRACK and Min/Sec via the C and c commands, the only problem is that I cannot get the HU to display text sent via the dxxxxxxxxxxxxxxxxxxx command. I know the HU has recived the data because I altered the code to send a # after it recives th 19th char but when I press Display on the HU the read out is blank. I have tryed sending the text in both ascii and hex with no succsess. The HU I am testing it on is quite old (KEH-P4530R), does it need a particular function (such as CD-TEXT) to display the data? I know it displayed the 7 Char Disk name I configured when it was connected to the cd-changer.

Am I missing something obvous? any suggestions would be great! Confused


Cheers
     Chris
11  General / MP3 / Properties of ASENBUS on: 11 Dec 2004, 19:22
Cheers!

Does this mean that ASENBUS goes low when you select radio etc?
if not, does the HU send a stop signal to the CDMC?
12  General / MP3 / Properties of ASENBUS on: 09 Dec 2004, 20:16
Hi,

I was wondering if anybody can explane when and how ASENBUS becomes active and what its perpose is?

From looking at the code it seams to be active low! but I think I must be mistaken. Does it go high the moment the HU is switched on or only when the CDMC is selected.

Cheers
     Chris
Pages: [1]

TinyPortal v1.0.5 beta 1© Bloc

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!