FORUMS
Remove All Ads from XDA

[MOD][DSP] simpleDSP installation into MTCD/E inside (ImprovedSound)

149 posts
Thanks Meter: 166
 
By cs-x(RU), Senior Member on 30th July 2018, 09:34 PM
Post Reply Email Thread
simpleDSP installation into MTCD/E inside (ImprovedSound)
after in the summer of 2017 I disasseble the MTCB/C MCU firmware, I decided to try to improve the sound of these head units and bought a DSP test card based on the low-cost ADAU1401/1701 chip and started experiments with it to solve all the flaws in the sound settings of the Chinese head units.
In February 2018, Chinese vendors began the first sales of MTCE head units with internal DSP modules installed based on the ADAU1701 chip. A detailed analysis showed that the new hardware version of the head unit does not differ much from the previous one based on the sound processor BD3702, so I can try adding this module to me myself, because the Chinese refused to separately sell the DSP module for me.

[fig.1] photo of the main board of the new MTCE head unit with built-in DSP module
Click image for larger version

Name:	mainboard with DSPmodule.JPG
Views:	6612
Size:	58.4 KB
ID:	4561586

[fig.2] photo of the main board of a typical MTCD/E head unit with a sound processor
Click image for larger version

Name:	mainboard with SoundProc.jpg
Views:	6498
Size:	300.3 KB
ID:	4561611

[fig.3] screenshot of the fake 9-band EQ of a typical MTCD/E head unit with a sound processor
Click image for larger version

Name:	fake 9-band EQ.jpg
Views:	6690
Size:	45.7 KB
ID:	4561612

[fig.4] electrical circuit schematic of the sound processor of a typical MTCD/E head unit
Click image for larger version

Name:	SoundProc Schematic.JPG
Views:	6174
Size:	63.5 KB
ID:	4561619

[fig.5] electrical circuit schematic of the sound switch of a typical MTCD/E head unit
Click image for larger version

Name:	AudioSwitch Schematic.JPG
Views:	5644
Size:	41.1 KB
ID:	4561621

[fig.6] photo of the PX3(1GB) CPU coreboard of a typical MTCD/E head unit
Click image for larger version

Name:	coreboard PX3(1GB).jpg
Views:	4778
Size:	261.7 KB
ID:	4561630

[fig.7] photo of the PX3/PX5 CPU coreboard of a typical MTCD/E head unit
Click image for larger version

Name:	coreboard PX3-PX5.JPG
Views:	4392
Size:	109.7 KB
ID:	4561637

[fig.8] sigmaDSP ADAU1701 LQFP48 pinout
Click image for larger version

Name:	ADAU1701 pinout.JPG
Views:	4078
Size:	54.7 KB
ID:	4561645

[fig.9] sigmaDSP ADAU1401/1701 test board
Click image for larger version

Name:	ADAU1401 testboard.jpg
Views:	4174
Size:	111.4 KB
ID:	4561646

[fig.10] electrical circuit schematic of the ADAU1701 test board
Click image for larger version

Name:	ADAU1701 testboard Schematic.JPG
Views:	4076
Size:	90.7 KB
ID:	4561651

[fig.11] chinese built-in DSP ADAU1701 sub board
Click image for larger version

Name:	Chinese DSPmodule.JPG
Views:	4770
Size:	179.5 KB
ID:	4562327

As a result of comparing the MCU firmwares of the head units with the sound processor and with the integrated DSP module, we see that the same firmware is used.
When analyzing the behavior of the MCU firmware, it is found that after the start, it first polls the I2C bus on the sound processor chip and if it answers its own address, the head unit operates normally. If there is no sound processor, i.e. it does not respond to its own address, then the DSP chip is polled. If the DSP chip responds to its own address, then the head unit is already operating in the mode of improved sound with a real 15-band equalizer.
The sound processor chip BD37033 is powered by a 9-volt voltage source, and the AMS1117-3.3 stabilizer is used on the sigmaDSP test board, which allows operation from a voltage of up to 15 volts, so connect the DSP test board to the voltage of the sound processor chip on the main board. Disconnect from the I2C-bus of the MCU chip of the sound processor BD37033 and instead connect to the DSP chip ADAU1401/1701.
A real check showed that the software support of the DSP is in the MCU firmware from version 2.72 and higher and in Android builds versions 6.0.1, 7.1.2 and 8.0 and this mod is compatible with most MTCD/E head units

[fig.12] screenshot of the real 15-band EQ of a modified MTCD/E head unit with a DSP inside
Click image for larger version

Name:	real 15-band EQ.jpg
Views:	5662
Size:	47.5 KB
ID:	4562339

Since there is no electrical circuit schematic of the Chinese DSP module, then compare visually the board of the Chinese embedded DSP module with the DSP test board. The test board uses a onboard 12.288MHz crystal oscillator for clocking, and there is no resonator on the Chinese board and uses an 11.296MHz external clock from the CPU coreboard (I2S bit clock frequency for the sampling rate frequency of 44.1kHz).
Unsolder the crystal oscillator from the DSP test board, find the output of the clock signal on the CPU coreboard and provide a master clock signal to the 32-pin chip of the DSP chip ADAU1401/1701.

I and most my friends in the car listen only digital sounds from Android and analog sound from the FM radio tuner, so in the simplest version of the upgrade can do without using an analog audio switch that will simplify the finalization of the head unit.
On the new PX3/PX5 coreboards there are an additional 4 pins on which the I2S digital audio signals are output. These signals are connected to the DSP test board (the MCLKI signal of the external clock was already connected a little earlier).

[fig.13] digital I2S sound output from CPU coreboard
Click image for larger version

Name:	PX5 coreboard I2S.JPG
Views:	5370
Size:	88.5 KB
ID:	4562387

On the older PX3(1GB) coreboars not are an additional pins for external output, but the I2S digital audio output can be founded on the onboard Wolfson audio codec chip pins. However, I have not connected such a coreboard yet and I do not know about real software compatibility with the Android build of version 5.1.1, but I suppose that this should be possible without much additional effort, but need to try...

[fig.14] digital I2S sound output from CPU to Wolfson audiocodec on coreboard
Click image for larger version

Name:	PX3 coreboard I2S.JPG
Views:	4848
Size:	46.4 KB
ID:	4562396

Digital signals from Android sources must be connected to ADAU1401/1701 as follows:
-- Master CLOCK to 32 pin (MCLK) throu 100 Ohm resistor;
-- SDATA to 11 pin (MP0);
-- BLCK to 9 pin (MP5);
-- LRCLK to 8 pin (MP4)

The DSP chip has two built-in ADCs, so the analogue sound from the FM radio tuner can be connected to the sound processor pins as follows:
-- FM-R (pin 10) to 2 pin (ADC0);
-- FM-L (pin 11) to 4 pin (ADC1)

The DSP chip has four built-in DACs, so analog audio output can be connected for the power amplifier input to the sound processor pins as follows:
-- FR (pin 23) to 46 pin (DAC3);
-- FL (pin 22) to 45 pin (DAC2);
-- RR (pin 21) to 44 pin (DAC1);
-- RL (pin 20) to 43 pin (DAC0)

If do not need an additional output for an external subwoofer, then this is enough to enjoy improved sound due to the presence of a full 15-band equalizer, the ability to set delays, etc. (see screenshots at the end of this post), else if need to connect the external subwoofer, need to add the I2S DAC chip ES7144LV and connect it as follows:
-- Master CLOCK to pin 4 (CLKIN);
-- SDATA (MP6 pin 15) to pin 1;
-- SCLK (MP11 pin 19) to pin 2;
-- LRCLK (MP10 pin 16) to pin 3

[fig.15] electrical cuircuit schematic of the I2S DAC
Click image for larger version

Name:	external I2S DAC.JPG
Views:	4354
Size:	45.5 KB
ID:	4562429

[fig.16] wire connections
Click image for larger version

Name:	simpleDSP installation into MTCD-MTCE (ADAU1401).JPG
Views:	4422
Size:	144.8 KB
ID:	4564796

Verification showed that the improved sound is excellent
[fig.17]
Click image for larger version

Name:	Screenshot_20180730-165118.jpg
Views:	4974
Size:	45.2 KB
ID:	4562435
[fig.18]
Click image for larger version

Name:	Screenshot_20180730-170839.jpg
Views:	4764
Size:	42.6 KB
ID:	4562436
[fig.19]
Click image for larger version

Name:	Screenshot_20180730-170849.jpg
Views:	4156
Size:	45.2 KB
ID:	4562437
[fig.20]
Click image for larger version

Name:	Screenshot_20180730-170902.jpg
Views:	3852
Size:	45.0 KB
ID:	4562438
The Following 10 Users Say Thank You to cs-x(RU) For This Useful Post: [ View ] Gift cs-x(RU) Ad-Free
 
 
30th July 2018, 09:36 PM |#2  
OP Senior Member
Thanks Meter: 166
 
Donate to Me
More
reserv1
30th July 2018, 09:37 PM |#3  
OP Senior Member
Thanks Meter: 166
 
Donate to Me
More
reserv2
31st July 2018, 08:04 AM |#4  
Senior Member
Thanks Meter: 22
 
More
You are missing some pics there



[11]
[12]
[13]

in the process of filling information


[digital I2S sound output from CPU to Wolfson audiocodec on coreboard]

[digital I2S sound output from CPU coreboard]



[screenshot of the real 15-band EQ of a modified MTCD/E head unit with a DSP inside]

[...]
31st July 2018, 10:18 AM |#5  
OP Senior Member
Thanks Meter: 166
 
Donate to Me
More
Quote:
Originally Posted by Xorit

You are missing some pics there

I did not forget these pictures, I just did not have time to cook them for posting in the thread -- coming soon...
1st August 2018, 12:26 PM |#6  
Senior Member
Thanks Meter: 22
 
More
Quote:
Originally Posted by cs-x(RU)

As a result of comparing the MCU firmwares of the head units with the sound processor and with the integrated DSP module, we see that the same firmware is used.
When analyzing the behavior of the MCU firmware, it is found that after the start, it first polls the I2C bus on the sound processor chip and if it answers its own address, the head unit operates normally. If there is no sound processor, i.e. it does not respond to its own address, then the DSP chip is polled. If the DSP chip responds to its own address, then the head unit is already operating in the mode of improved sound with a real 15-band equalizer.

Please correct me

The 7floor mod just re-routes and cuts some traces to control the in-build DSP directly and if i got it correct, people got full access to the DSP after.

You say that in the boot process the MCU polls it's hardware interfaces and if it detects the internal DSP it operates in "normal" mode.

Could this normal mode be modified to remove the config restriction and fully control the internal DSP? Or instead boot in "improved" mode?

// In my car (Opel Astra J) the HU is heavily mounted inside the dash and it's not fun to rip the whole thing apart every time.
Also I have a DVD drive installed and the space inside the silverbox is super limited due to that.

Or is this a "prove of concept" for people who don't have an in-built DSP and just a "stage" before you come up with a software solution? (You mentioned that in the other thread)
1st August 2018, 12:56 PM |#7  
OP Senior Member
Thanks Meter: 166
 
Donate to Me
More
Quote:
Originally Posted by Xorit

Please correct me
The 7floor mod just re-routes and cuts some traces to control the in-build DSP directly and if i got it correct, people got full access to the DSP after.
You say that in the boot process the MCU polls it's hardware interfaces and if it detects the internal DSP it operates in "normal" mode.
Could this normal mode be modified to remove the config restriction and fully control the internal DSP? Or instead boot in "improved" mode?
// In my car (Opel Astra J) the HU is heavily mounted inside the dash and it's not fun to rip the whole thing apart every time.
Also I have a DVD drive installed and the space inside the silverbox is super limited due to that.
Or is this a "prove of concept" for people who don't have an in-built DSP and just a "stage" before you come up with a software solution? (You mentioned that in the other thread)

English is not native to me, so I apologize if I misunderstood you, but head units now have two options - with a sound processor and with a built-in DSP.

All the features of the sound processor are determined by the specific chip BD3702 / 37534/37033, etc, soldered on the HU mainboard. Since some of the audio presets are fixed in the MCU firmware, some do not like this sound and they want to customize it to their preferences. This can be achieved either by modifying the MCU firmware, or by direct control of the sound processor, for example, as in 7floor mod, but the audio capabilities are still low functional and are limited by the sound processor chip itself.

The possibilities of DSP for sound are very huge and diverse, but the Chinese sellers do not sell it separately for MTCD/E head units, so I suggested an alternative option by purchasing an affordable low-cost inexpensive DSP test board on Aliexpress and installing it inside the head unit to get a very improved sound, because all the software support has already been present and verified in the Android builds of versions from 6.0.1 to 8.0 and only need to connect the electrical circuits to the main board correctly.
I did it in practice and checked that it really works and it improves the sound very much, sorry, but if I did not answer your questions, please clarify them again for my understanding (my English is very pour)
The Following User Says Thank You to cs-x(RU) For This Useful Post: [ View ] Gift cs-x(RU) Ad-Free
1st August 2018, 01:33 PM |#8  
Senior Member
Thanks Meter: 22
 
More
Quote:
Originally Posted by cs-x(RU)

English is not native to me, so I apologize if I misunderstood you, but head units now have two options - with a sound processor and with a built-in DSP.

All the features of the sound processor are determined by the specific chip BD3702 / 37534/37033, etc, soldered on the HU mainboard. Since some of the audio presets are fixed in the MCU firmware, some do not like this sound and they want to customize it to their preferences. This can be achieved either by modifying the MCU firmware, or by direct control of the sound processor, for example, as in 7floor mod, but the audio capabilities are still low functional and are limited by the sound processor chip itself.

The possibilities of DSP for sound are very huge and diverse, but the Chinese sellers do not sell it separately for MTCD/E head units, so I suggested an alternative option by purchasing an affordable low-cost inexpensive DSP test board on Aliexpress and installing it inside the head unit to get a very improved sound, because all the software support has already been present and verified in the Android builds of versions from 6.0.1 to 8.0 and only need to connect the electrical circuits to the main board correctly.
I did it in practice and checked that it really works and it improves the sound very much, sorry, but if I did not answer your questions, please clarify them again for my understanding (my English is very pour)

Nah you got me completly right there and I fully understood what you wrote. (not a native english myself )

So basically this MOD provided by you is an alternative method of "super-improving" the sound with a standard car sound system (speaker connected to the radio directly).

This, because if you have a factory amp like bose preinstalled or you have already upgraded the sound system with a DSP/amp you don't want to have the audio processed in the HU, but rather have clean signals to your installed DSP in the car.

Let me shortcut:

version 1: add DSP board for standard sound system to be improved (THIS THREAD)
version 2: have full control of the standard sound processor already present to get rid of the MCU presets. (MY IDEA)

For me personally it would be super great to just have the 7floor mod in software. My factory amp does all the audio magic, but I need more control of the HU output and it would totally be enough to control the TDA7388 PDF file

This is my Witson seller MX HU W2-V5754
1st August 2018, 03:48 PM |#9  
Octane70's Avatar
Senior Member
Flag Okanagan
Thanks Meter: 388
 
More
cs-x(RU) Could you share a picture of the installed ADAU1401/1701 chip in your unit, give us an idea what were looking at?, It all makes sense to me now.
Also in there a new amplifer.apk with the 15 band eq that you show in fig. 17 to fig. 20?
1st August 2018, 04:22 PM |#10  
OP Senior Member
Thanks Meter: 166
 
Donate to Me
More
Quote:
Originally Posted by Octane70

cs-x(RU) Could you share a picture of the installed ADAU1401/1701 chip in your unit, give us an idea what were looking at?, It all makes sense to me now.
Also in there a new amplifer.apk with the 15 band eq that you show in fig. 17 to fig. 20?

In the summer of 2017 I bought this DSP test board for experimentation and subsequent installation in my MTCC head unit, but a significant software change was needed, so I suspended these works before the New Year 2018, and put a test card in the garage.
In April 2018 I decided to go back to the experiments to connect the test board to the MTCE head unit, but for a long time I could not find the card in the garage and was able to find it only last week. Immediately my friend asked me to install this DSP test board in his head unit, so I lasted all last Saturday and checked it on his head unit, but did not do the photo, and on Sunday he installed in the car and now I can not take the photo. Therefore, I can only sketch and specify the soldering points on the main board, but I'm going to do the next modification with the sound switch and ordered another DSP test board on Aliexpress.
A new apk with the 15 band eq that shown in fig. 17 to fig. 20 already present in the original Chinese Android build versions from 6.0.1 to 8.0 for MTCE head units and do not need to add anything yourself, since to activate the improved equalizer mode, it is sufficient only that the MCU firmware detects a DSP chip on the I2C bus and sends the command to the Android device
The Following 2 Users Say Thank You to cs-x(RU) For This Useful Post: [ View ] Gift cs-x(RU) Ad-Free
1st August 2018, 04:36 PM |#11  
OP Senior Member
Thanks Meter: 166
 
Donate to Me
More
Quote:
Originally Posted by Xorit

This, because if you have a factory amp like bose preinstalled or you have already upgraded the sound system with a DSP/amp you don't want to have the audio processed in the HU, but rather have clean signals to your installed DSP in the car.
For me personally it would be super great to just have the 7floor mod in software. My factory amp does all the audio magic, but I need more control of the HU output

I have plans to try to make a completely software solution similar to 7floor, but without soldering, but so far there is no time for such experiments, becouse need to debug everything well
For your case, can do it simply - set the zero frequency response and prevent it from changing, and only your external amplifier with DSP can control any frequency response (very small changes in the MCU firmware code needed and not need in Android build)
Post Reply Subscribe to Thread

Tags
dsp, improvedsound, mod, mtcd, mtce

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes