Saturday 23 November 2013

audi FIS 3-line protocol

UPDATE:

check libraries for reading data from radio and writing to cluster:

https://github.com/tomaskovacik/VAGFISReader
https://github.com/tomaskovacik/VAGFISWriter

Here is  wikipage with schematics:

https://github.com/tomaskovacik/VAGFISReader/wiki/How-to-connect

also page ti theory of operation:

https://github.com/tomaskovacik/VAGFISReader/wiki/Theory-of-operation

When writing to the cluster, no external components are required,the  cluster has all these components inside.


I think, this apply for pre-CAN-BUS cars only, check sticker on your radio, if there are 3pins labled ENA DATA CLK in middle section of mini-iso connector:

some 2000 models can be switched from canbus to this 3lb protocol.

 

static text

moving text












DEC 255-DEC
ASCII REAL
0 0 0 0 1 1 1 1
15 240

ADDR?
1 0 1 0 1 1 0 1
173 82
R
1 0 1 1 1 1 1 0
190 65
A
1 0 1 1 1 0 1 1
187 68
D
1 0 1 1 0 1 1 0
182 73
I
1 0 1 1 0 0 0 0
176 79
O
1 0 0 1 1 0 0 1
153 102
f _
1 0 1 1 1 0 0 1
185 70
F
1 0 1 1 0 0 1 0
178 77
M
1 0 1 1 1 0 0 1
185 70
F
1 0 1 1 0 0 1 0
178 77
M
1 1 0 0 1 1 1 0
206 49
1
1 1 0 1 0 0 1 0
210 45
-
1 1 0 0 1 1 1 0
206 49
1
1 1 0 1 1 1 1 1
223 32

1 1 0 1 1 1 1 1
223 32

1 1 0 1 1 1 1 1
223 32

1 1 0 1 1 0 1 0
218


CRC














0 0 0 0 1 1 1 1
15 240

ADDR?
1 1 0 1 1 1 1 1
223 32

1 1 0 1 1 1 1 1
223 32

1 1 0 1 1 1 1 1
223 32

1 1 0 0 0 1 1 1
199 56
8
1 1 0 0 0 1 1 0
198 57
9
1 1 0 1 0 0 0 1
209 46
.
1 1 0 0 1 1 0 0
204 51
3
1 1 0 1 1 1 1 1
223 32

1 0 1 1 1 0 0 1
185 70
F
1 0 1 1 0 0 1 0
178 77
M
1 1 0 0 1 1 1 0
206 49
1
1 1 0 1 0 0 1 0
210 45
-
1 1 0 0 1 1 1 0
206 49
1
1 1 0 1 1 1 1 1
223 32

1 1 0 1 1 1 1 1
223 32

1 1 0 1 1 1 1 1
223 32

1 1 0 0 0 1 0 0
196


CRC

CRC=MODULO(SUM(255-DEC),256) = ((SUM(0xFF-HEX))&0xFF)

Starting "pulse" ?

packet
so, it's SPI!?

TODO: try to use SPI libs to hadle this. http://www.gammon.com.au/forum/?id=10892

ENABLE is bi-direction "wire":

from audi concert plus
audi concert (nav)/chorus
and here is something like "ping" to radio:




Arduino code to receive from radio and to send text to cluster is down there:

Arduino code to send data from RS232 to cluster 

Arduino code to receive data from radio





comunication betwen arduino reader and actual radio

video of code in action









Friday 8 November 2013

How to enable CD changer input on audi chorus I

How to enable CD changer input on audi chorus I

I sell on Tindie
 From schematics, difrence between chorus and concert which has CD changer input,  is just few parts and enable CD-changer by coding as in here. Parts need to be soldered on main board to enable are this:

Audio input filter:
C1407 2.2uF/10V(THT, 2.54mm)
C1427 2.2uF/10V (THT, 2.54mm)
C1424 820pF (SMD 0805)
C1404 820pF (SMD 0805)
R1401 10kΩ (SMD 0805)
R1421 10kΩ (SMD 0805)
R1402 10kΩ (SMD 0805)
R1422 10kΩ (SMD 0805)


Location of all components on bottom side of PCB.
Power supply switch:
BSP452 (cheepest on ebay)
R2018 150Ω (SMD 0805)


Location of 150Ω resistor is on first picture.

Comunication lines Data-In, Data-out, clock
R5301 1kΩ (SMD 0805)
R5304 1kΩ (SMD 0805)
R5305 1kΩ (SMD 0805)
R5202  2,2kΩ (SMD 0805)
R5303  2,2kΩ (SMD 0805)
V5301 BC848B any BC848/850 is ok
 V5302 BZX84C5V6
V5303 BZX84C5V6
V5304 BZX84C5V6



Location of 3x1k and 2x2k2 is on first picture.

Price for this components is 0.68€ at gme.sk.

After this, you need CD changer emulator and simple circute, which emulate "mode" button press. For so small project is perfect attiny25/45/85 actualy 85 is cheapest one. For attiny support in arduino, follow this tutorial. Sketch for tiny:


Schematic  and pcb for this "mode button emulator":

schematics

PCB