
	All files and the complete source code is released
  under GNU GENERAL PUBLIC LICENSE
	
  Last edit: 2004-08-22

	For updates and informations about the project and Sony Unilink
	check my page: www.mictronics.de

	or contact me: michael@mictronics.de

	Bug reports, comments, questions or requests are welcome.

	*** Op-amp hardware ***
	
	Enable the OPAMP_HW option in config.h if you build the v3 hardware.


	*** Jumper for CD or MD mode ***

	If the jumper is not set, the interface is working in
  CD changer mode. Set the jumper to switch to MD changer
  mode. Maybe you need to reset your headunit.


	Display update commands:  

	*** Time and track info ***

	tdttmmss
	||| | |
	||| | ss = seconds, range 0-99
	||| mm = minutes, CD and MD mode range: 0-99
	||tt = track number, CD mode range 0-99 ; MD mode range: 0-99
	|d = disc number, but +1, ie 9 is disc 10, range 0-9
	t = command id for time update 



	*** Disc name ***

	Dxxx...xxxxx~
	||         ||
	||         |End tag
	|ASCII string
	D = command id for disc name update

	Length of ASCII string is 0-48 characters.
	This means you can display a disc name with up to 48 characters.
	
	If your name is shorter than 48 character you must send an ~ as
	last character!

	ie: DMyCDNAME~



	*** Track name ***

	Txxx...xxxxx~
	||         ||
	||         |End tag
	|ASCII string
	T = command id for track name update

	Length of ASCII string is 0-48 characters.
	This means you can display a track name with up to 48 characters.

	If your name is shorter than 48 character you must send an ~ as
	last character!

	ie: TMyTrackname~



	*** Play mode changes ***

	Use the following commands to change the play modes via
      serial connection.The modes can also be changed on head unit.

	r0  Repeat mode off	- Repeat Off
	r1  Repeat mode 1		- Repeat Track
	r2  Repeat mode 2		- Repeat Disk
	r3  Repeat mode 3		- Repeat All

	s0  Shuffle mode off- Shuf Off
	s1  Shuffle mode 1	- Shuf Disc
	s2  Shuffle mode 2	- Shuf Changer
	s3  Shuffle mode 3	- Shuf All

	i0  Intro mode off 
	i1  Intro mode on
	
	d0  DScan mode off
	d1  DScan mode on

	b0  Bank mode off
	b1  Bank mode on
	b2  Bank mode inverse


	*** List items ***
	
	What it does:
	If your HU support a Custom File CDC and has a LIST button
	then you are able to send up to 10 list items to the interface.
	This items will be send when the LIST button was pressed.
	You can browse the list and select an item, the HU will then
	send a direct disc change command to the interface, which can
	send an RS232 command to your other hardware.
	
	For example:
	You can browse and select playlists from an connected MP3
	Player.
	
	send a list item in the following way:
	
	LxXXXXXXXX
	|||      |
	||-------- 8 Character item name
	|- item number 0-9
	-command tag
	
	or for names shorter than 8 characters:

	LxXXXX~
	|||  ||
	|||  |End tag
	||----- name characters
	|item number 0-9
	command tag

	ie:
	L1List0001
	
	or:
	
	L9Name~
	
	Note: The list function works currently in CD mode only.


	*** Raw Commands ***

	send raw commands in the following way:
  *xxxxxxxxxxxxx
  ||||||       |
  |||||up to 9 data bytes, no checksum, no end byte
  ||||CMD2
  |||CMD1
  ||TAD (transmitter adress in hex)
  |RAD (receiver adress in hex)
  start tag
   
	All command bytes are hexadecimal!



	### RS232 output ###

	This source code version produces RS232 output
  dependent wich key is pressed on your head unit.

	You can configure the output in file config.h

	RS232 output support for following head unit keys
  or modes changes:

	Play, Stop, Track_up, Track_down, Disc_up, Disc_down,
  FFWD, FRVS, Direct_Disc, Intro, Repeat, Shuffle,
  DScan, Bank, Power_Off

	Note: Play modes are lost after turning off your
  head unit. They are save during source change.		
	


	### Additional features for ATmega8 schematic ###

	LED1 - ID status; ON if interface has ID else OFF (D4)
	LED2 - Play status; ON if interface is selected as source
         and in play mode else OFF (D3)
	LED3 - Unilink Rx/Tx traffic

	Relais1 - Turns ON if interface is selected as source
            AND in play mode, turns NOT OFF when
            another source is selected.
  The relais will turn OFF only on "power off"
  commands from head unit NOT on "Source" change.



	### Known Problems ###

	Some people have reported signal voltage level
  problems with long cables in the past. If you have
  problems to get your interface recognized or with
  random resets then try to change R7 in 8515 schematic,
  or R9 in mega8 schematic, to 47k and see what happens.

	If you can't fix your problem then contact me for support.


	List support works not to 100%. I have the problem on my HU that I 
	can't get an command from HU to interface when a list was choosen.
	Such a command appears only if all 10 items of the list are send.
	Needs to be fixed...

	### Credits: ###
	Thanks to the people which have supported me:
	Andreas Richter, Arild Langseid, Massimiliano Golfetto (Felix_Max)
