📜 ⬆️ ⬇️

We release the car on the Internet! Modernization radio Prology mdn-2740t and analogues

Good afternoon, dear community!
I want to share developments on the modernization of the radio Prology mdn-2740t.
The most important improvement is to release the device on the Internet for, at a minimum, obtaining information about traffic jams and weather.
Most of the information is also suitable for Prology 2650T / 2630T / 1750T / 1340T / 1360T / ORION analogs AVM-57257BTG, Foryou DN-6320, as They are built on the basis of a single hardware platform ForYou NV3110 ( Link to of.sayt ).
The general principles are generally suitable for any tape recorder or navigator based on Windows CE.
There is no possibility to write to a thematic blog, so I am writing in a sandbox.
More under the cut.

The basis of the device is 3 blocks:

1) Navigation unit or GPS module. Simplified is a PDA in industrial implementation in the form of a module soldered to the motherboard. We will finalize it!
The unit is running Windows CE 5.0 or 6.0. My copy works on WinCE 5.0 (Samsung processor, ARM920T-S3C2440A), so everything that will be written below concerns this particular OS.

2) Motherboard. The "center" can be called the NEC UPD78F0547 microcontroller. The microcontroller is responsible for switching between sources (Navi, DVD, USB, AUX, etc.), the location of the touch buttons and some other operations. At the moment, the board is of interest only in terms of “iron” modifications, which I may write about in the next article. It is not possible to edit the firmware, at least I did not find any software for this (hex editor does not count).
')
3) DVD or Servo. A very interesting part of the device, which is responsible for playing content from usb, SD, DVD, CD.
Based on the SunPlus SPHE8202D microcontroller. With the help of flashing it you can change the background and icons of the main menu, as well as the control menu of each playback source.
image
If the community likes the article, next I will write about the modernization of the multimedia part.

So, we turn to the most interesting - modernization!

1) Add USB to the GPS module.
This is done quite simply - you only need to find the gps-module legs that are responsible for usb: D + and D-, and solder 2 central contacts of the cord to them with the “mom” usb-connector. Power + 5v and ground gnd can be found there.
The network has the so-called Service Manual on any fairly common radio tape recorder - in these manuals, as a rule, all the legs are signed. And if not signed, as in our case - we act by the method of exclusion!

Below is an example for Prology mdn-2740t:
The diagram shows where the contacts are GND, + 5v. D +, D- are on the 20 and 21 legs, respectively.
Determined by the absence of inscriptions and matches on the other legs.


The photo below shows how it looks in life.
D + and D- contacts can be swapped without fear. In the event of an error, it will simply not earn anything, but it will not burn either. So that with 2 times it turns out for sure!
View a photo of the board with soldered USB
image

Now we have a full-fledged “USB-tail”, in which we immediately want to plug something.
Let's try to insert a flash drive! If there are LEDs on it - they should blink for a while. This will be an indirect sign that the iron part works for us.
Go to step 2!

2) Now we need to get into the familiar Windows environment aka explorer, see the Start menu and the "computer" icon.
By default, navigators launch the MobileNavigator.exe file from the registry startup file instead of explorer.exe.
The MobileNavigator.exe file is nothing more than renamed Navitel.exe, i.e. at the start of the navigation part, we get into Navitel and nowhere else.
Let's fix it!
The easiest way is to replace the MobileNavigator.exe file on the complete SD card with, for example, the total commander for WinCE executable file and on the next boot we get into the usual two panel window.
Now we can “climb” on the internal memory of the device, but by and large, now it will not give us anything :).

In order for the device to see the flash drive - you need to update the navigation part with the firmware created by the forum user w3bsit3-dns.com e7763 , for which he thanks a lot !
Instructions for updating the firmware of the navigation part
1. Copy the NK.BIN file to the SD card in the root directory.
2. Insert the SD card into the device.
3. Turn on the device and enter the navigation interface. The update will start automatically. After the update, the device will reboot.
4. Remove the SD card with the firmware file, delete NK.BIN, copy the Windows folder from the archive to it, paste it into the device, and copy the Windows folder to the NandFlash partition.

I will not touch on the issues of creating firmware under WindowsCE, because I myself am not yet competent in this matter.
I can only say that drivers for devices such as usb-flash, usb-3g-modem, usb-wifi, usb-uart have been added to the firmware, the ability to save the registry on the internal memory of NandFlash, as well as some useful software has been added.

After updating and loading the device, we see the familiar windows screen with the “Start” button.
If you now insert a flash drive into a freshly soldered usb port and go into the “computer” icon - we will see our flash drive named HardDisk!

Now, making sure that the USB is working properly, we proceed to the organization of Internet access.
I consider the most convenient option to use a usb 3g-modem. In my city, I easily found and bought used ZTE MF-626 for 400 rubles. I think in other cities there will be no problems with the search.
Now an important point: the modem needs to be updated with the correct firmware, it took me 1.5 weeks of unhurried dances with tambourines to guess that it was in her :).
Instructions for updating the firmware modem ZTE MF-626
Procedure:
1) Unlock the modem firmware from here . Under win7 x64 everything works, you just need to install the correct drivers.
2) Update the modem with firmware from MTS from here .
3) Disable autorun and CD with these commands on the modem: AT + ZCDRUN = E and AT + ZCDRUN = 8.

Next you need to tell Windows CE about which modem we want to connect to it.
This is done like this.
1) You need to connect the modem to the computer, go to the device manager and find it there. Right-click to select properties, and on the opened tab select the information tab. On this information tab that opens, we find the modem VID. For my case, this is 12D1. Using the calculator, we translate the hexadecimal value to decimal, we get 4817.
While the modem is turned on in the PC, you can immediately configure an access point (APN) in order not to enter it manually in WinCE.
To do this, we launch any terminal program, connect to the service port of the modem and prescribe APN with the command AT + CGDCONT = 1, “IP”, “internet.mts.ru” (in this example for MTS).
Disconnect the modem from the computer.

2) Take the modem.reg file , open it, look for lines like this in it:
[HKEY_LOCAL_MACHINE \ Drivers \ CDC \ LoadClients \ XXXX_0_0 \ 0] and replace the value XXXX with your VID value. In total, these lines should be corrected 5 and also in this line.
change X [HKEY_LOCAL_MACHINE \ Drivers \ USB \ LoadClients \ XXXX \ Default \ Default \ CDC_Class] to your value and save the file.

3) Copy files to the SD-card modem.reg, Auto.reg .

4) Insert the card into the radio, go to the main Windows folder, find Regedit.exe and run it. We are looking for a key of the form [HKEY_LOCAL_MACHINE \ Drivers \ USB \ LoadClients \ 4817_4097_0 \ Default \ Default \ RS232_USB] and delete it.
image

6) Run the modem.reg file (we answer yes to the question that jumped out). To ensure the automatic connection of the Internet to the programs, we launch the Auto.reg file (we answer the jumped question with yes).

7) Connect the modem to USB and reboot the radio tape recorder (reset button). After downloading to the device manager, we control the modem connection (COM6-COM8 ports should appear).
image

8) We configure the Internet connection:
Time
image
Two
image
Three
image
If you have registered an access point in paragraph 1, then the APN string must be empty!

The setting is universal for all modems, the main thing is to know its VID.
After setting up the modem, we establish a connection - the result should be a window with a “connected” message.
Now we can launch Navitel and see a green icon indicating the condition of traffic jams! You can also open a browser (IE is the default) and go to any page.
Internet works!

So, now we have a full-fledged computer with USB host and Internet access. But Windows CE in the car looks a little sad, though unusual :). Add a little "beautiful"!
There are many options for "alternative" menu for PNA (navigators, which include our radio tape recorder). I chose MioPocket 4.0 - quite a “fresh” implementation, besides it is not just a menu, but also a large set of programs and games (yes, you can play the games under the Dandy emulator!).
It looks, in my opinion, very beautiful:
image

image

Installing MioPocket is very simple - just copy the contents of the archive to the SD card and run (on the device) MioAutoRun.exe. Also included is a very good ReadMe in English.

That's all for now! Many thanks to the w3bsit3-dns.com and gps-forum.ru communities, special thanks to e7763 and Vitt ! Part of the text and photos borrowed from these forums in consultation with the authors.

Topics for future articles:
1) Refinement radio for full stereo sound in Windows CE (to be able to listen to music).
2) Change the firmware of the DVD (Servo) parts. Restoring a device with unsuccessful firmware SunPlus and Nec.

Source: https://habr.com/ru/post/167577/


All Articles