Change folder, update Readme

This commit is contained in:
Carsten Schmiemann 2024-03-27 03:31:07 +01:00
parent 52b7cb6de8
commit 0bf0977783
32 changed files with 80 additions and 5 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

View File

@ -1,17 +1,92 @@
# Easylink_CAN_Waker
Wake up a Easylink (A-IVI) car multimedia system by CAN for using it on a table.
Wake up a Easylink (A-IVI) car multimedia system by CAN for using it on a table or to put it into a car or in my case an old camper without CAN bus with legacy signaling.
## CAN frame capture
I captured some CAN frames on CAN Bus on Pin 20/40 and replayed then with a arduino and a can transreceiver.
I dont know exactly on which frames the unit will wake up, so I send everything.
I then try to reverse engineer the frames sent to control the Easylink system.
## What is working
- Bootup in normal mode
- Standby mode (screen powered off but easylink system stays on for faster recovery on a short stop)
- Set day / night mode
- Set brightness in night mode
- Disable bluetooth/disconnect smartphone
- Engage reversing camera
- Lower volume / block volume slider (for reversing)
## What needs to be done
- Control ESP via GPIOs
- Control ESP via Serial connection
- Reverse engineer of anti-theft / VIN protection calculation
- CAN msg Full MUTE of Easylink
- CAN msg for speed signal (for rising and lowering volume)
## Picture of dumping
![A-IVI with Dunpont pins connected](Easylink_CAN_Waker/doc/pic_aivi_dump_connection.jpg)
![A-IVI with Dunpont pins connected](doc/pic_aivi_dump_connection.jpg)
## Components
- ESP32
- VD230 CAN Transreceiver connect to PIN 4 and 5 of ESP or NodeMCU32
- ESP32 (using native CAN controller inside)
- VD230 CAN Transreceiver or similar connect to PIN 4 and 5 of ESP32 or NodeMCU32
# Connections
## Power
Your Easylink system needs power, you can buy a "Car multimedia connector" on aliexpress for example, you need the 22 PIN one. The system gets permanent power connection.
Dont worry it will consumpt less than 1mA during powered off state with no CAN bus activity. If the unit receive some frames power draw goes up to 50mA even the frames are not for the unit itself.
## CAN connection
The EXT-CAN which is used to control the Easylink is terminated in CAN gateway which is our ESP32, so you need to terminate your CAN bus at the transreceiver on the ESP side with 120Ohms and on the Easylink side with 120Ohms bedween CAN-low and CAN-high.
### Touchdisplay
Likely you will connect a touch display to it, it will use LVDS signaling over a HSD cable. You can buy one off Aliexpress or similar, use the Z Coding (universal can plug into all color coded sockets) so you dont need mess up with color codes to match the connectors.
The display will be controlled via M-CAN bus which is driven from the Easylink itself. So you need to connect CAN lines from the Easylink to the display and back, because CAN is terminated in the Easylink itself. Of course you can install termination resistors on the display itself.
## Speaker connections
You want to connect speakers to the system, these connections are located at the power plug. Pinout is below.
## Reversing camera connection
If you want to connect a reversing camera, you need a camera which supports differential CVBS signal, standard ones which has only single-ended (one connections is ground, the other is video, most has RCA plugs on it) CVBS output will not work. I will try to use a converter IC like AD8131, but this is untested at the moment.
## USB connection
If you want to use USB devices, just grab a USB mini cable and try to plug it into the black USB connector on the easylink, if it fits you can solder a USB-A socket to it and use your devices. If you use a USB hub, use a powered one to not overload USB circuit in the Easylink.
A USB mini to OTG cable will work too, but you must test if the connector fits into the socket or modify it.
# Programming with pyren, DDT4all, CLIP or something
You can program the Easylink with mentioned tools like in your car, just make another connection to the EXT-CAN (of course no termination on this point).
I have buied a OBD2 socket to breakout cable and connected some dunpont connectors to it, but you can buy a OBD2 Socket and connect it permanent to it, to use standard OBD2 dongles.
## Warning about black screen (reboot to death)
During my testing, reversing and so one I programmed a lot with pyren and bricked it from time to time, because not all DDT pages are well coded or I rebooted (key on off reset) too early so changes are not written correctly.
I highly recommend to back up your NOR flash first. It is easy and cheap! Buy a CH341A programmer and a SOIC clip on amazon, ebay or so. Diassembly of the Easylink is easy, remove the few screw from the case and push the top cover off, then remove the two screws holding the pcb on the lower plate.
Then connect the SOIC clip to the 8pin IC near the iMX6 SOC on the PCB back side. The red cable goes to the first pin which is marked with a little dot on the IC.
On the programmer software click autodetect IC, and read the contents of it, save it to a file and read it again and save it to another file, then use a compare program (ex. WinMerge) to ensure reading was successfull (both files are exact the same).
If you brick your easylink because of faulty or incompatible configuration and it will not boot any more (screen backlight goes on and off or unit shows press volume to reboot) you can it restore with your backup.
Connect the clip again and erase, write and verify the contents.
## Anti theft protection (system says locked)
If you use a unit already installed in a car, anti theft protetion is enabled, which means the unit compare the entered VIN with the connected car. I found the can message which contains probably a part of the VIN so the unit will boot up. But I dont know how these message is calculated, because in the Easylink you just enter your VIN. (on locked units it is impossible to change or disable anti theft at least for now).
If the unit is from a car which ECUs is partly working (Easylink is starting up in that car it will removed) you can read the CAN message which contains the VIN. You need to connect a CAN sniffer, dongle or something to the V-CAN, M-CAN or EXT-CAN and note the contents of the CAN ID 0x69F.

View File

Before

Width:  |  Height:  |  Size: 715 KiB

After

Width:  |  Height:  |  Size: 715 KiB

View File

Before

Width:  |  Height:  |  Size: 578 KiB

After

Width:  |  Height:  |  Size: 578 KiB

View File

Before

Width:  |  Height:  |  Size: 130 KiB

After

Width:  |  Height:  |  Size: 130 KiB