inscription
Ajouter une réponse
 

 Mot :   Pseudo :  
  Aller à la page :
 
 Page :  1  2  3  4  5  ..  16  17  18  19  20  21
Auteur
 Sujet :

CHERCHE spec de la messagerie VAN entre RD3 et Chargeur

Bas de page 
n°10716174
dwery   profil
Profil : Membre
Note : 0/4 pour 0 vote
Posté le 15-06-2005 à 20:36:09  answer
 
Publicité

Reprise du message précédent :

Piffo77 a écrit :

 
From what peugeot told me, Diag2000 talks to the HU and the CDC to activate the it.  
 
If the CDC was activated in the HU, I would have seen these CDC VAN packets on my experimental VAN. When I sniff the VAN in my car, the VAN tries to locate the CDC but I cannot detect these packets when I only use the radio and display indoors. I still suspect this configuration is placed in the display since it controls the radio.  
 




 
 The CDC is activated in the BSI. Probably some kind of configuration
 is stored in the display, but I don't know for sure.
 
--
 
 - alex.
 
 
 

n°10716255
dwery   profil
Profil : Membre
Note : 0/4 pour 0 vote
Posté le 15-06-2005 à 20:41:58  answer
 

lioelec a écrit :

 
Hi,
 
I have remove line and now a new error message appear :
 
------------------
van parser.pl 0.1
include :
exclude:
unknow type eval
-------------------------
Why?




 
 It's my fault, I've removed the type "eval" from van-parser
 because it always evaluate expressions with int and bcd types.
 
 If this is ok for the others, we can change all the eval
 in van-frames.txt to int or bcd, as appropriate.
 
 Meanwhile, you can do that in your own van-frames.txt
 
--
 
 - alex.
 
p.s.
 
  There are no shipping charges if you order PICs on buy.microchip.com
 before the 17. You will only pay the 5EUR handling fee. There's also a 10%  discount on development tools. If we decide to switch to the 18F2550 we should do it fast to save some money! let me know what you all think!
(anyway the sampling options is available, as always..)
 
p.s. 2
 
 Fariouche, regardin the total cd time in packet
 554. I was unable to find it in my logs. Is this confirmed?
 
p.s. 3
 
 This forum wont'allow me to post a message right after another,
 so i'm editing this one. Maybe we should use a real mailing list?
 
 
 


Message édité par dwery le 15-06-2005 à 23:46:14
n°10725249
dwery   profil
Profil : Membre
Note : 0/4 pour 0 vote
Posté le 16-06-2005 à 13:26:46  answer
 


 Hi everybody,
 
   I'm going to try the rev4 firmware in a few hours.
 
 I've noticed the hex for the F876 and the 876A is exactly
 the same..
 
--
 
 - alex.

mood
Publicité
Posté le 16-06-2005 à 13:26:46  profilanswer
 

n°10733912
fariouche   profil
Profil : Apprenti
Note : 0/4 pour 0 vote
Posté le 16-06-2005 à 21:42:39  answer
 

dwery a écrit :

 
 Fariouche, regardin the total cd time in packet
554. I was unable to find it in my logs. Is this confirmed?  




 
I'm not 100% sure yet, but I've tried with 2 audio CD and the total time seems ok.
I have a RD3 headunit (VDO).
 
Fariouche

n°10734188
Piffo77   profil
Profil : Apprenti
Note : 0/4 pour 0 vote
Posté le 16-06-2005 à 21:53:32  answer
 

I tried rev 4 and sampled the VAN for two trips of 30 minutes each. During the first capture which resulted in a 3.2 mb text file by the hyperterminal I found 4 rows with invalid data. The text line was partially overwritten with new ascii data. During the next trip (about 2.8 mb), I got one row with an invalid address (0xfff) and about 5-10 rows with partially overwritten data. The capturing stopped twice so I had to restart it with the "c" command.  
 
There are no counters in the rev 4 code to count missed packets and the problem with partially overwritten lines can be caused by the hyperterminal. I don't have any other software to verify this but rev 4 seems to work better than earlier versions.
 
The reason why the software stops capturing packers is also unknown.  
 
/Per

n°10734652
dwery   profil
Profil : Membre
Note : 0/4 pour 0 vote
Posté le 16-06-2005 à 22:14:26  answer
 


 Hi,
 
   can you post some logs so that I can update the parser?
 My Clarion RD3 show FF.
 
   I've also noticed that in lio's RB3 logs the source
 field is 30 or 31, while we used to see
 50 and 51.
 
--
 
 - alex.

mood
Publicité
Posté le 16-06-2005 à 22:14:26  profilanswer
 

n°10734980
dwery   profil
Profil : Membre
Note : 0/4 pour 0 vote
Posté le 16-06-2005 à 22:28:26  answer
 

Piffo77 a écrit :

 
I tried rev 4 and sampled the VAN for two trips of 30 minutes each. During the first capture which resulted in a 3.2 mb text file by the hyperterminal I found 4 rows with invalid data. The text line was partially overwritten with new ascii data. During the next trip (about 2.8 mb), I got one row with an invalid address (0xfff) and about 5-10 rows with partially overwritten data. The capturing stopped twice so I had to restart it with the "c" command.  
 
There are no counters in the rev 4 code to count missed packets and the problem with partially overwritten lines can be caused by the hyperterminal. I don't have any other software to verify this but rev 4 seems to work better than earlier versions.
 
The reason why the software stops capturing packers is also unknown.  
 




 
 Hi,
 
  I tried it today, rev4 rocks. I found some data about the a/c unit
 which I will post after a bit of re-organization. The IDENs are 4DC
 and 464.
 
  I'd appreciate to have your logs so I can maybe sort
 out the fuel and oil gauge and the oil and water temp.
 
--
 
 - alex.
 

n°10739810
fariouche   profil
Profil : Apprenti
Note : 0/4 pour 0 vote
Posté le 17-06-2005 à 11:56:59  answer
 

Piffo77 a écrit :

 
I tried rev 4 and sampled the VAN for two trips of 30 minutes each. During the first capture which resulted in a 3.2 mb text file by the hyperterminal I found 4 rows with invalid data. The text line was partially overwritten with new ascii data. During the next trip (about 2.8 mb), I got one row with an invalid address (0xfff) and about 5-10 rows with partially overwritten data. The capturing stopped twice so I had to restart it with the "c" command.  
 
There are no counters in the rev 4 code to count missed packets and the problem with partially overwritten lines can be caused by the hyperterminal. I don't have any other software to verify this but rev 4 seems to work better than earlier versions.
 
The reason why the software stops capturing packers is also unknown.  
 
/Per




 
Hi,
 
I'm using mtty, and it's the same problem.
It's also the same with virtualDash...
I will upload mtty in wiki...
 
My 554 packet is:
554 RA- 86D6001100000001177510FFFFFFFFFFFFFF86 A
 
The CD was 75min 10s long.
 
Fariouche

n°10739887
fariouche   profil
Profil : Apprenti
Note : 0/4 pour 0 vote
Posté le 17-06-2005 à 12:01:26  answer
 

You can download mtty at http://rt3wiki.free.fr/uploads/Us/Mtty
 
Oh, I just noticed that I forgot to put the file extention while uploading it.
It's a .rar file. Rename it to Mtty.rar.
 
Fariouche


Message édité par fariouche le 17-06-2005 à 12:03:35
n°10740348
dwery   profil
Profil : Membre
Note : 0/4 pour 0 vote
Posté le 17-06-2005 à 12:37:37  answer
 

fariouche a écrit :

 
Hi,
 
I'm using mtty, and it's the same problem.
It's also the same with virtualDash...
 
My 554 packet is:
554 RA- 86D6001100000001177510FFFFFFFFFFFFFF86 A
 
The CD was 75min 10s long.




 
 Hi,
 
  that means there are different RD3s in the wild...  
 
  I'm using
 
   cat /dev/tts/0 | ./van-parser.pl  
 :)
 
--
 
 - alex.
 
 

n°10746826
dwery   profil
Profil : Membre
Note : 0/4 pour 0 vote
Posté le 17-06-2005 à 19:37:54  answer
 


 Hi,
 
  regarding the CDC, I can confirm there are two models
 for the 206. Both of them are VAN capable but only
 one of them can be connected on the RD3 of multiplexed
 cars (2002-2005).
 
  Since the 307 is newer, I believe there's only one for
 her.
   
  I don't know of other cars.
 
  Do you all here have RD3 on a recent car?  
 
--
 
 - alex.

n°10754181
fariouche   profil
Profil : Apprenti
Note : 0/4 pour 0 vote
Posté le 18-06-2005 à 12:31:20  answer
 

Hi,
 
I think I know why we still have corrupted VAN packets.
 
-> When _VAN_rx read one byte, it check if there is a free buffer and store it if yes. If not, the byte is discarded.
-> At the same time, we are sending a packet through RS232. Once done, we have one more free buffer.
 
So, what happen if _VAN_rx read one more byte (says byte 5) and RS232 just finished sending? VAN_rx will begin to store VAN bytes, even in the middle of a VAN packet. byte 5 will then be stored... but it's not the begining of a VAN packet!
 
I think that we'll need just one more variable (that we can call discard_bytes).
1- This variable will be set to 1 if we begin to read a New VAN packet and no free buffer.  
2- Then VAN_rx will rely on this variable to discard bytes. (in stead of relying free_buffer variable)
3- At the same time, one more buffer is free.
4- Then, once we have a new VAN packet, we set discard_bytes to 1 or 0 depending on free_buffers again, And so on.
 
What do you think?
 
Bortesi just replyed to me and told me that it should work with my HU (even if it's not in the compatible list) -> If it's not working, I always have the option to return it to them.
They also told me that Diag2000 will be able to detect this adapter as a real CDC (so they will be able to activate the CDC with it)
 
 
For the new pic18C, I think that it's a good idea, but this will force piffo to redo all the timing calculations!
 
Alex, Did you see F00 packets? (you may have to start the engine for them to shows up)
 
Fariouche

n°10756002
dwery   profil
Profil : Membre
Note : 0/4 pour 0 vote
Posté le 18-06-2005 à 15:50:47  answer
 

fariouche a écrit :

 
 
 
Bortesi just replyed to me and told me that it should work with my HU (even if it's not in the compatible list) -> If it's not working, I always have the option to return it to them.
They also told me that Diag2000 will be able to detect this adapter as a real CDC (so they will be able to activate the CDC with it)




 
 Hi,
  if you want to save some moneys, I think i should be able to meet
 the guy with the CDC in the next 2/3 weeks.
 

Citation :


For the new pic18C, I think that it's a good idea, but this will force piffo to redo all the timing calculations!


 
 Well, not immediately.. 95% of the code could be ported as is, only
 a few instructions need to be replaced.
 
 In the future, we could maybe have to tap into VAN with different
 speeds (there are 3 VANs on a car, 2 at 125 and one at 65 if I remember  correct).
 
 Also while we can initially run the PIC18 at the same speed, we
 can later switch to 40/48MHz.. so we must find a way to do timing
 in a portable and reconfigurable way.
 
 If the platform I have described on the wiki will be created, we will
 be able to build a lot of things above it.. a CDC/iPod converter,
 a kind-of-BSI with enhanced functions, etc etc.
[/citation]
 

Citation :


Alex, Did you see F00 packets? (you may have to start the engine for them to shows up)


 
 No. i will pay attention to them on the next run, but I'm fairly
 sure I haven't seen them.
 
--
 
 - alex.
 

n°10768752
Piffo77   profil
Profil : Apprenti
Note : 0/4 pour 0 vote
Posté le 19-06-2005 à 22:01:58  answer
 

Hi
 
>think that we'll need just one more variable (that we can call discard_bytes).  
>1- This variable will be set to 1 if we begin to read a New VAN packet and no free buffer.  
>2- Then VAN_rx will rely on this variable to discard bytes. (in stead of relying free_buffer variable)  
>3- At the same time, one more buffer is free.  
>4- Then, once we have a new VAN packet, we set discard_bytes to 1 or 0 depending on free_buffers again, And so on.  
 
I have tried to locate the problems with overwritten packets but I haven't found it yet. When a new VAN packet is detected, the software will stay in the interrupt routine and receive the whole VAN packet before the control is back in the main program again. The number of free buffers are increased after the last byte in a buffer has been sent using RS232. Perhaps the RS232 buffer handling is faulty? I'm working on "Rev 5" now. Anyway, the log file was more than 110000 text lines long and there where only 5-10 rows with overwritten data (<0.1 %). The more serious problem are when capturing of packets is aborted. I suspect some parts of the software which can cause this behaviour.
 
The packets with address 0xF00 can be invalid. Since they occurs intermittent , it's hard to find out where they comes from.
 
I spent some time yesterday to capture A/C packets:
 
464 WA- 14 000000 08 A
 
The first byte: 0x00, 0x10, 0x11 or 0x14. 0x00 = A/C Off, 0x14 = Rear window heater on.
The last byte has something to do with the fan speed. 0x00 = 0ff, 0x13 = Max
 
4DC WA- C1 E0 1D 01D2 FFFF A
 
The first byte: 0x00 = Off, 0x01 = ?, 0x80 = A/C off (auto), 0xC0 = ? A/C starting up?, 0xC1 = A/C on (normal mode), 0xE1 = Rear window heater on (bit 5?).  
 
Next byte: 0xE0 = A/C on (and engine on), 0xFC = off (and engine off)
 
0x1D seems to have something with the fan speed to do.
 
01D2 is probably the temperature in the cupé.  
 
FFFF is unknown
 
The sun light sensor, the temperature setting and selection of where the air shall go (down/window etc) as not been located.  
 
The packet "8FC RA- 81xxxxxx81" is sent when starting up the engine. The xxxxxx is the hexadecimal value for how long the car has gone. 0x030D40 = 20000.0 km
 
This information needs to be verified and if it's correct, added to the Wiki.
 
I have an ICD2 and some PIC18F processors at home but I don't know if or when I have the time to convert the "VAN mon" software. Rewriting the software for different crystal frequences can be complicated since the timing is critical. Some limitations, for example 2 choices, 20 or 40 MHz, must be specified.
 
/Per  

n°10774857
dwery   profil
Profil : Membre
Note : 0/4 pour 0 vote
Posté le 20-06-2005 à 12:45:42  answer
 

Piffo77 a écrit :

 
I'm working on "Rev 5" now. Anyway, the log file was more than 110000 text lines long and there where only 5-10 rows with overwritten data (<0.1 %). The more serious problem are when capturing of packets is aborted. I suspect some parts of the software which can cause this behaviour.




 
 Hi,
 
   I agree. The way it works now is more than enough for our research.
 

Citation :


The sun light sensor, the temperature setting and selection of where the air shall go (down/window etc) as not been located.  


 
The light and rain sensor is on another bus, VAN BODY 1.
 

Citation :


The packet "8FC RA- 81xxxxxx81" is sent when starting up the engine. The xxxxxx is the hexadecimal value for how long the car has gone. 0x030D40 = 20000.0 km


 
8FC RA- 820069BF82 A
 
 I've found it in my logs, seems reasonable.
 

Citation :


I have an ICD2 and some PIC18F processors at home but I don't know if or when I have the time to convert the "VAN mon" software. Rewriting the software for different crystal frequences can be complicated since the timing is critical. Some limitations, for example 2 choices, 20 or 40 MHz, must be specified.


 
 Ok, I would use the same speed we have now to ease the task.
 Maybe we'll switch to a different speed later, or use
 one of the Atmel chips to interface with the VAN.
 
 Regarding the a/c, here are my notes:
 
4DC: a/c unit status, sent only with engine on
 
byte 0
        bit 7 seems always on
        bit 6 and 5 are related to a/c and back de-icing status.
byte 1
        unknown, always 0 here.
byte 2
        internal temperature, X/2
bytes 3-4
        this is a 2 byte gauge, somewhat inversely proportional
        to the current temperature.
bytes 5-6
        always 0xFFFF
 
 I hadn;t the time to investigate further. I suspect it works
 pretty much like the radio, one port to tell the BSI the button
that has been pressed and the other one for doing things.
 
 I've been driven to this explanation due to the fact that,
 when the roof id open, the rear-window heater can't be activated.
 
--
 
 - alex.
 


Message édité par dwery le 20-06-2005 à 15:12:31
n°10906906
dwery   profil
Profil : Membre
Note : 0/4 pour 0 vote
Posté le 29-06-2005 à 19:33:16  answer
 


 
 Hi,
 
  I bought another cdc on ebay.. this one should be
 ok and be there within a week :)
 
  if anyone is interested in the old one, compatible
 only with 2001 and pre-2001 cars, drop me a note..
 
--
 
 - alex.

n°10938783
fariouche   profil
Profil : Apprenti
Note : 0/4 pour 0 vote
Posté le 01-07-2005 à 23:19:26  answer
 

Hi,
 
I've received the bortesi interface, and it's working great!
As soon as I have some time, I will try to log some packets...
 
Fariouche

n°10938794
DeltaFX   profil
Profil : Vétéran
Avatar
Note : 1.7/4 pour 27 votes
Posté le 01-07-2005 à 23:21:00  answer
 

fariouche a écrit :

 
Hi,
 
I've received the bortesi interface, and it's working great!
As soon as I have some time, I will try to log some packets...
 
Fariouche




 
Fariouche, what's your headunit model serial/number ? Is your car muxed ?

n°10942662
fariouche   profil
Profil : Apprenti
Note : 0/4 pour 0 vote
Posté le 02-07-2005 à 14:56:30  answer
 

DeltaFX a écrit :

 
Fariouche, what's your headunit model serial/number ? Is your car muxed ?




 
Hi,
 
I have a 307, so muxed, HU VDO 22RC280/65 (not in their comatibility list)
 
It's working great, but there is a mis-connection in the resistors near the RCA plugs... If a touch them a bit, the sound becomes clear. Else, it's just impossible to hear or the sound is very low and noisy.
 
Just some resoldering will do it I think.
 
Fariouche.

n°10946602
baf607   profil
Profil : Nouveau membre
Note : 0/4 pour 0 vote
Posté le 03-07-2005 à 00:30:18  answer
 

Hi all, and thanks for this thread. I just spent 2 hours to read it from the beginning. You are great engeneering guys !
 
I recently bought a 607 (03/2001) which has an RT2 (radio + telephone) and a CD Charger. It also has the monochrome GPS installed.
 
I read that this car has also a VAN bus between CDC and radio. So I think your project can be easily ported to my car... What do you think of that ?
 
I'm a newby in PIC programmming, electronic stuffes, and serial communication. I don't understand why you are implementing a first 'software' stage in the PIC to do a 'simple' VAN monitor. I understand that the final goal is to develop a CDC interface that will be fully compliant with VAN protocol, and that embbeded PIC will be the final solution.
 
But your first goal is to analyse packets and not send packet : so why don't do that directly on the computer ? Wouldn't this be easier to analyse and correct code (only PC software to change, no buffering problem because PC RAM should be enough ( no ? :) ) ) ?
 
Perhaps I'm totally wrong, perhaps VAN data voltage and current level don't feet RS232, perhaps the VAN data is to fast for RS232, or even for USB... tell me where I made a mistake...
 
 
 

n°10949440
dwery   profil
Profil : Membre
Note : 0/4 pour 0 vote
Posté le 03-07-2005 à 13:39:29  answer
 

baf607 a écrit :

 
I recently bought a 607 (03/2001) which has an RT2 (radio + telephone) and a CD Charger. It also has the monochrome GPS installed.
 
I read that this car has also a VAN bus between CDC and radio. So I think your project can be easily ported to my car... What do you think of that ?




 
 Hi,
 
  yes, I think it should work. RT2, as far as I know, uses VAN. Can you tell us
 the model number/product number on your CDC?
 
 You're also the first one with a GPS, so I think we could discover
 interesting things by snooping the bus on your car.
 

Citation :


But your first goal is to analyse packets and not send packet : so why don't do that directly on the computer ? Wouldn't this be easier to analyse and correct code (only PC software to change, no buffering problem because PC RAM should be enough ( no ? :) ) ) ?
 
Perhaps I'm totally wrong, perhaps VAN data voltage and current level don't feet RS232, perhaps the VAN data is to fast for RS232, or even for USB... tell me where I made a mistake...


 
 The problem is all related to timing. To communicate on the VAN bus, timing
 must be perfect and we would not be able to do that on a PC.
 
 The voltage levels on the VAN bus are also not compatible with any
 port found on a standard PC: they're called "differential". Much more
 like RS422 or RS485 than RS232.
--
 
 - alex.
 

n°10952450
baf607   profil
Profil : Nouveau membre
Note : 0/4 pour 0 vote
Posté le 03-07-2005 à 18:57:57  answer
 

Hi,  
 
I don't know the product number : here is what I can see :  
 
http://img180.imageshack.us/img180/7655/photo0145jb.jpg
http://img180.imageshack.us/img180/6131/photo0158ee.jpg
 
the CAA-355 number references the 6 disc magazine : I found on the clarion website that this magazine is suitable for CDC655Tz, CDC634, CDC635
So I'm not sure of mine.
Do you know how to remove the cover to unmount the CDC from the car ?
 
 
For the serial interface : I understand now : thanks for the explanation.
I will think of buying a PIC programmer and some electronic tools.
 
Baf


Message édité par baf607 le 03-07-2005 à 19:27:43
n°10979978
dwery   profil
Profil : Membre
Note : 0/4 pour 0 vote
Posté le 05-07-2005 à 20:33:50  answer
 

baf607 a écrit :

 
I don't know the product number : here is what I can see :  
 
the CAA-355 number references the 6 disc magazine : I found on the clarion website that this magazine is suitable for CDC655Tz, CDC634, CDC635
So I'm not sure of mine.
Do you know how to remove the cover to unmount the CDC from the car ?




 
 Hi,
 
  your CDC is a DC628, peugeot part number 6564.45, which is the one used  
 also on 2001 206s . The newest cars uses 6564.55.
 
  You have VAN onboard, but probably the packets wil be a little
 different from the ones we already sniffed.
 
--
 
 - alex.


Message édité par dwery le 06-07-2005 à 01:02:12
n°11029369
MoebiUS   profil
Gold Member
Profil : Pilote semi-pro
Avatar
Note : 1.7/4 pour 33 votes
Posté le 08-07-2005 à 22:20:08  answer
 

:coucou: Wahou, je ne suis pas venu depuis des mois ici. J'ai l'impression que ça a pas mal avancé :buzz:
Quelqu'un me fait un résumé ??? :D

n°11056436
baf607   profil
Profil : Nouveau membre
Note : 0/4 pour 0 vote
Posté le 11-07-2005 à 17:09:19  answer
 

faignant :) :) ;)

n°11063833
ups   profil
Profil : Nouveau membre
Note : 0/4 pour 0 vote
Posté le 12-07-2005 à 04:18:41  answer
 

Hi!
 
I have read the entire thread and I must confess that I am rather curious if I will be able to get the results necessary to get a "fake" CDC running.
 
I've ordered the parts for the interface and will try them as soon as I get my hands on them.
 
But before that one question:
 
How did you manage to get the connection interface.
Some got hold to an iso plug. Which ones?
If I recall from this kind of interfaces it is not possible to interrupt the wires and each end much be terminated with a 120ohm resistor. (It was needed in CAN.. I assume the same for VAN...)
So a T configuration would be needed. How to get the T connector for the plug behind the radio?
 
I'll keep you posted as soon as I get some news.

n°11076842
darrepac   profil
Profil : Membre
Note : 0/4 pour 0 vote
Posté le 12-07-2005 à 22:38:32  answer
 

MoebiuS a écrit :

 
:coucou: Wahou, je ne suis pas venu depuis des mois ici. J'ai l'impression que ça a pas mal avancé :buzz:
Quelqu'un me fait un résumé ??? :D




 
+1 :-p

n°11081896
dwery   profil
Profil : Membre
Note : 0/4 pour 0 vote
Posté le 13-07-2005 à 12:24:21  answer
 

ups a écrit :

 
I have read the entire thread and I must confess that I am rather curious if I will be able to get the results necessary to get a "fake" CDC running.




 
 There's no doubt! :) We are pretty close...
 

Citation :


How did you manage to get the connection interface.
Some got hold to an iso plug. Which ones?
If I recall from this kind of interfaces it is not possible to interrupt the wires and each end much be terminated with a 120ohm resistor. (It was needed in CAN.. I assume the same for VAN...)
So a T configuration would be needed. How to get the T connector for the plug behind the radio?


 
 Don't worry for termination.. just connect the two wires behind  
 the radio using a mini-ISO plug (mini-ISO is composed of
 three blocks, you need the blue one).
 
 You can also attach your wires to the ISO connector
 you already have on the car. The pinout is on the wiki.
 
--
 
 - alex.
 

n°11133632
dwery   profil
Profil : Membre
Note : 0/4 pour 0 vote
Posté le 18-07-2005 à 15:27:29  answer
 

good news!
 
 I managed to capture some packets from a CDC. I
 had only a small amount of time, so I was
 not able to do the reverse engineering at
 the same time...
 
 capture file with notes here:
 
 http://rt3wiki.free.fr/uploads/Us/cdc-capture.txt
 
 this is my proposed decoding of port 4EC:
 
4EC::4::bcd:                            : track time (m)
4EC::5::bcd:                            : track time (s)
4EC::6::bcd:                            : current track
4EC::7::bcd:                            : cd number
4EC::8::bcd:                            : track count
 
 
--
 
 - alex
 


Message édité par dwery le 18-07-2005 à 17:54:39
n°11140422
Piffo77   profil
Profil : Apprenti
Note : 0/4 pour 0 vote
Posté le 18-07-2005 à 22:03:26  answer
 

Good work Alex!
 
I've started working on rev 5 of the VAN mon software to include CDC emulation. There were a lot of interesting information in the log fil. Obviously the CDC replies with writing 0x96 -> 0x8C4 (display command port) to acknowledge (CDC ACK) received commands on port 0x8EC or to force an update of the display every second.
 
The code for replying with ACK on certain addresses (for example 0x8EC) and let other devices read data on an address (0x4EC) is already implemented in rev 3 and 4 of the VAN mon software. I made a "quick and dirty" and added some functions so the monitor software replied with the ACK when a command was received on address 0x8EC. The software also replies with the RTR data on 0x4EC (fixed, containing the first packet read from 0x4EC in the log file).
 
When i pressed the CDC button on the radio it switched to the CDC input for about two seconds and then back to the radio. There are no code for updating the display info by sending a "CDC ACK" once a second and the buffer doesn't change between each read. I think the display belives the CDC is "dead" and switches back to the previous audio source.
 
I get the same reaction when I press the "source" button on the remote control stick. The CDC input is activated for a few seconds.
 
Hopefully there will be a "release version" of Rev 5 during this or next week. I don't have so much free time for the moment.
 
/Per

n°11157674
dwery   profil
Profil : Membre
Note : 0/4 pour 0 vote
Posté le 19-07-2005 à 23:31:15  answer
 

Piffo77 a écrit :

 
 
Hopefully there will be a "release version" of Rev 5 during this or next week. I don't have so much free time for the moment.
 




 
 wow! we are homing on the target...! don't worry, we are in no hurry.  
 
 another useful sequence i forgot to post:
 
 direct access to cd using 1-6 keys on the radio
 
 8C4: WA- 8A2201 A
 8EC: WA- 4101 A
 8C4: WA- 96 A
 4EC: RA- 8600D316FFFF0101FF003F86 A
 5E4: WA- 201F A
 9C4: WA- 0082 A
 8C4: WA- 8A2241 A
 5E4: WA- 201F A
 9C4: WA- 0082 A
 4EC: RA- 8600D316FFFF0101FF003F86 A
 5E4: WA- 201F A
 9C4: WA- 0082 A
 5E4: WA- 201F A
 9C4: WA- 0082 A
 8C4: WA- 8A2202 A
 8EC: WA- 4102 A
 8C4: WA- 96 A
 4EC: RA- 8700D316FFFF0102FF003F87 A
 5E4: WA- 201F A
 9C4: WA- 0082 A
 8C4: WA- 8A2242 A
 5E4: WA- 201F A
 9C4: WA- 0082 A
 4EC: RA- 8700D316FFFF0102FF003F87 A
 5E4: WA- 201F A
 9C4: WA- 0082 A
 5E4: WA- 201F A
 9C4: WA- 0082 A
 
 on port 8C4 we see 8A22 insteal of the usual 8AC2.
 on 8EC, 41 is the change cd command and the payload
 is the cd number.
 
 a short list of command i;ve seen on 8EC:
 
        41FF    next cd
        41FE    prev cd
        410X    direct cd selection
        4106
        31FF    ? next track
        31FE    ? prev track
        1183    mute/pause ?
        1181    unmute/play ?
        1184    fwd
        1183    rev?
        1185    ?
--
 
 - alex.


Message édité par dwery le 19-07-2005 à 23:32:00
n°11186929
Piffo77   profil
Profil : Apprenti
Note : 0/4 pour 0 vote
Posté le 21-07-2005 à 21:37:26  answer
 

Hi
 
The experiments has continued. Finally I have managed to emulate some basic CDC functions in my car.  
 
An early beta of revision 5 (probably with many bugs since I haven't tried to optimize or analyze the code) of the VAN monitor is availible at
http://rt3wiki.free.fr/uploads/Us/VAN%20mon%20rev5%20beta%201.txt
 
It contains some debug code and only emulates basic disc changing functions for the CDC. The VAN monitor must be "capturing" data in order to emulate a CDC. The track number is fixed to 1, number of tracks to 18 and the second counter only steps from 0:00 to 0:09 and then restarts. It is possible to "select disc" by using keys 1..6 or the wheel on the remote control. The code only interprets commands 0x1101, 0x1181, 0x1183, 0x41FE, 0x41FF and 0x4101..0x4106. Trying to change tracks or fast forward/rewind is not recommended. Test the software on your own risk..
 
I've tried to update the Wiki table commands list but I cannot save the data (timeout) and the wiki is very slow. Can anyone try to get it to work?
 
How should the CDC emulation work? Now the radio switches to the CDC input and it remains active until another audio source is selected so the current implementation should be enough for many applications.  
 
Does anyone know if the RD3 radio and CDC supports cd-text? The packet read from 0x4EC doesn't seem to have any unused data for this.
 
/Per

n°11193946
dwery   profil
Profil : Membre
Note : 0/4 pour 0 vote
Posté le 22-07-2005 à 12:26:41  answer
 

Piffo77 a écrit :

 
The experiments has continued. Finally I have managed to emulate some basic
CDC functions in my car.




 
 great work!
 

Citation :


How should the CDC emulation work? Now the radio switches to the CDC input
and it remains active until another audio source is selected so the current
implementation should be enough for many applications.


 
 My opinion is that we should build a generic VAN platform which can
 be used to do different things, ranging from simply feeding
 audio to driving an ipod via its remote control interface.
 
 basically, a VAN subsystem with a well defined programming
 interface.
 
 I've read some docs about PIC18F migration.. it should be fairly
 easy, requiring only register name changes, removing banking
 instructions and a few other minor mods. I'll try to do
 that on rev 5 in the weekend and let you know.
 
 I will then volunteer for the iPod related work.
 

Citation :


Does anyone know if the RD3 radio and CDC supports cd-text? The packet read
from 0x4EC doesn't seem to have any unused data for this.


 
 I've been told it doesn't support it :(
 
--
 
 - alex.


Message édité par dwery le 22-07-2005 à 12:27:16
n°11218026
transac   profil
Profil : Apprenti confirmé
Note : 0/4 pour 0 vote
Posté le 24-07-2005 à 16:02:23  answer
 

Non, d' un fromage, 18 pages
Je suis content que mon poste est pris de l' ampleur!!!
Felicitation, les gars..
 
Alors cette emulation du CDC, ce n' est finalement pas si facile, apparement
J' ai pu lire que le boitier de bortesi fonctionnait finalement sur la liste noir des RD3, qu' en penses tu Moebius?
 
Si on peut avoir quelque infos sur la compatibilité final sur ton RD3

n°11218056
transac   profil
Profil : Apprenti confirmé
Note : 0/4 pour 0 vote
Posté le 24-07-2005 à 16:04:18  answer
 

Voici le passage en question

fariouche a écrit :

 
Hi,
 
I have a 307, so muxed, HU VDO 22RC280/65 (not in their comatibility list)
 
It's working great, but there is a mis-connection in the resistors near the RCA plugs... If a touch them a bit, the sound becomes clear. Else, it's just impossible to hear or the sound is very low and noisy.
 
Just some resoldering will do it I think.
 
Fariouche.




n°11238659
fariouche   profil
Profil : Apprenti
Note : 0/4 pour 0 vote
Posté le 25-07-2005 à 21:16:29  answer
 

Transac a écrit :

 
Voici le passage en question




 
 
Bonjour,
 
Hehe, ca marche nickel. C'etait en effet un probleme de soudure.
Je ne vois paq pourquoi il y aaurait des incompatibilités... Apres tout peugeot a fait en sorte de rester compatible pour eviter les version de CDC.
 
 
Long time since my last post.... I see that we have some good news! Good work Alex and piffo!
I did not get much time for that these days. I'm currently trying to continue virtual dash so that I can use it in my carPC...
 
Fariouche

mood
Publicité
Posté le   profilanswer
 

 Page :  1  2  3  4  5  ..  16  17  18  19  20  21

Aller à :
Ajouter une réponse
 

Sujets relatifs
topic de ma 206 orange tangerinecherche RTA 206 1.9D MUX de 2002 en PDF
cherche copie schema boite a fusible 206 1.9D de 2002problème branchement chargeur cd clarion CAA-355 sur blaupunkt 2040
RD3 disponible en MP3 et branchement IPODCherche 12v apres contact dans le compartiment moteur
Autoradio VDO RD3 sans écran déporté = possible?Raul 206 HDI Sport S16 Récif ; Tout Roule :)
Fixation du support chargeur cd dans le coffreLa 2-6 black ==> Vitres teinter , photossss
Plus de sujets relatifs à : CHERCHE spec de la messagerie VAN entre RD3 et Chargeur