-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Additional information without electric climate #3
Comments
Battery is out of the question for now, I haven't been able to come up with a way to read battery voltage from MS-CAN other than through ECC. Haven't had much luck with sniffing the coolant, rpm and speed data like it was defined HERE. In my case (Z16XER) I was reading total garbage, but once I get reading basic data from the display done I'll try again with these. |
Love to hear that, it would be possible to display like the coolant in the first page? I would like to have the coolant temperature in the main page without need to swap page everytime |
First page as in the mode where song data is shown? I guess I can make it like this but it would require me to rewrite a lot of current logic. |
Alright, you have a single line GID so writing the coolant info to the album or artist fields won't work because you won't see them anyway. I had the single line version as well but I enabled UHP just to make it display all the three lines of text. As for GID firmware, EEPROM only holds basic data such as settings and carpass (if paired with the radio). and the GID firmware itself is held inside this TSOP flash package I think, difficult to read that data without a TSOP adapter. Don't feel the need to modify the GID firmware anyway, I'd like this project to work plug-and-play with no modification to the rest of the system |
Oh okay, would be possible to print in the top right with the single line gid? Or just you can't because u need to overwrite an existing text? Like artist aux etc. Btw with the the EEPROM firmware you can change different version 3 line version, single etc, but if you don't want to modify any firmware that's pretty useless. |
Yes the notification box can be displayed even with single line GID. |
Nevermind, the notification box does not show up when the main audio page is displayed. I guess I'll try to fit coolant info on the right of the middle line or find another way to display notifications |
Oh okay, I prefer the single line because I watch a lot the consumption and the autonomy of the car so I would need to swap page every time. The first page of the three line only display audio information and I only use aux so I would see only aux and nothing more. I prefer to see the consumption |
You are right, that's not good at all for posting it, I don't know if you can put the string down the song or you can just write in the line of artist/song name. Btw can you give me the code? I can use the coolant on the right of the AUX string? Because I just use aux so is not a problem for me and thank you for all the help and the amazing work you are putting in the project. |
You can't "add" anything to the AUX string sent by the radio, you can only overwrite it. |
I will keep an eye on this part of the project! |
That's beautiful thank you so much for the work! Currently waiting for the esp and the modules to arrive to get it working. |
There is an example for showing information in the electronic climate tab. It is in the issue #3 in the Car-CAN-Message-DB of JJToB. Here is the link: |
Thanks, never noticed that one. Already tested with UHP but it does not send any notification boxes, only menu-like screens. |
I don't exactly understand what do you mean by "change the pinout", please elaborate. Defining CAN RX TX pins is done here: If you want to redefine I2S output pins, here is how to do it. |
Oh yes sorry, I searched for the defaults pin out of can Rx tx and i2s, example for can Rx and tx io4 and io5 wired them up in my esp board but isn't working at all. Maybe is the board? And I need to define manually the gpio? I find that the default pins are the same for the 38 pins board and the 30 pins board so I don't know why isn't working |
After reflashing the esp every time I connect the board to the car the aux text go away and the current date is displayed is like the radio doesn't work because the buttons don't do nothing but I can hear the sound from the speaker so the radio is on. If I remove the esp everything work as usual |
Curious. I do most development on a setup like yours (GID and I assume CD30MP3) and never had the radio stop responding. What model year is your vehicle? |
I don't have the cd30 mp3 I have the cd40 USB btw the car is a Corsa d from 2013. if I inject 5v with the USB c the radio crash but I if inject 5v directly to the board the radio doesn't crash but if I long press button 1 nothing happen. Using Ms can from obd pin 3 and 11. I disconnected the i2c just for the testing and the problem persist. I will try with another board as soon as it arrives, can you confirm that without the i2s interface the mode "coolant mode" with button 1, or that the esp enables Bluetooth |
i2s is just an output and if you leave it not connected it does not matter to the ESP32 at all (it doesn't receive any data from PCM5102). Also please use a 12V to 5V USB car charger and not the CD40's USB port for power. If you have any electrolytic capacitors on hand you can also solder it to the ESP32 board just to make sure it is not dirty power. EHU32 will enable bluetooth and start sending stuff to the screen after it notices that the radio has sent some text to the display, it starts with the "1" mode active (audio metadata). You don't have to connect to switch to the "3" mode (1-line coolant info). If you can, please download version 0.7 from releases and try connecting your phone and playing something to see if the audio title is displayed at all. Of course it won't have the "3" mode and "2" won't work but I would like to see if the "radio message blocking" feature is the problem here (v0.7 is the last version without it). |
Okay, my problem is the 5v and grounds using a car charger with USB port. Gonna try others configuration. Anyway mode 1 work with song names, mode 2 show coolant hope I'm correct, mode 3 show speed and rpm, the rpm and speed are wrong when I'm idle at 800 it shows 3000 same for the speed I'm going 90kmh and it shows 45. Mode 2 coolant is partially wrong if I long press settings and after bc I can access the secret menu of the gid and I can see the little difference between the two coolant value, your is a bit high like 3/4 °c. The audio quality sucks, but that's my problem with the connection, I would love to see you PCB design did you manage to get that done? Btw if I connect the pcm5102 with vin and ground from esp the can interface crash and the radio also crash, I still didn't understand why |
It's the other way around, mode 2 should show speed and RPMs and if there is no ECC detected it will try to pull that data from CAN but as I said earlier in my vehicle I would read random values so I haven't had much luck testing that. I guess I'll remove that option from next version since it doesn't work that well - I'll make it only show speed that's read from the display. I think that the ground of the audio input in CD40 might be either floating or coupled with caps to ground, I'd suggest to measure with a multimeter between the audio input ground and vehicles ground to see if there is any voltage there. If there is then one fix would be to either modify the radio or buy some kind of an audio separation transformer. Thanks for the feedback, I'll correct the speed display (just multiply it by 2 I guess?) when I have some free time next week to possibly test it within my vehicle. As for coolant I'd say it's the GID that's lying since these cars notoriously run hot. |
Okay I resolved all the problem with the connections, the problem is that the audio quality sucks really bad. I don't know why the power is from a car charger with a USB cable, not from the radio. It's connected with an aux cable to the radio the aux female input is factory from the car as the cd40 USB has aux input Btw the speed yes divided by 2 is gonna be perfect |
I hope your PCM5102 isn't broken, here's a test program for you to flash the ESP32 with, please connect it to an amplifier at home so you can check whether the audio output works properly. It has no CAN functionality so you can connect to it and just play music from your phone. Additionaly please check whether you connected BCK, LRCK properly and ensure the pads on the back of PCM5102 are shorted according to the schematic (with H3L not shorted). |
As soon as I have a chance I'll try it thank you very much. Just a question: the ESP power supply should be given through the USB connector or i can give it directly to the vin and gnd pins? |
Yes, you can power the board through the VIN pin, on some boards it's connected the same 5V line as the USB VBUS pin, on other boards it's connected through an additional diode. Just make sure you don't power the board through VIN and through the USB connector (from PC) both at once. |
Depends on the application playing the music, but in my experience it works with all default music players, YouTube app and Spotify. Works with Spotify on iPhone as well. |
Hello How often does this window pop up or is it there all the time? |
It can be there all the time, constantly updating or be shown for just 5 seconds (just like AC does). |
I understand Thank you |
I think it's enough if it's only visible for 5 seconds |
I tried this but for some reason my GID (from a 05 vectra) wouldn't respect the formatting sequence. Not sure what's the issue here but I'll try again some other time. |
hello I love this project it's been a long time that I want to interact with the canbus of my astra h from my side I want to display the information of my cid on a tablet or a phone can you help me out? what would I need as a canbus module to read the information? what is the cabus line for this information (ms can lcan h can) for the development part of the application no problem but I do not know what hardware to use to communicate with the canbus. thanks |
The display is connected to both LS-CAN (GMLAN) and MS-CAN so if you wanted to replicate its functionality you'd have to read data from both buses. You could use bluetooth serial port to transmit CAN data to your tablet. |
first of all thank you for the speed of your response. https://www.celectronix.com/cartes-et-kits-stm32/2810-stm32f4-discovery-stm32f407g-disc1.html with which canbus I have to work MCP2551 or TJA1051? |
Get the ESP32-C6 then, it's easier to work with under arduino or ESP-IDF compared to STM32. Setting up bit timing is also easier with ESP32. The ESP TWAI driver isn't perfect but works well enough if you're not transmitting much.
any CAN transceiver module will work for MS-CAN or HS-CAN (for example SN65HVD230, TJA1051, TJA1050) just get whatever is cheaper for you. Remember that one board can only handle one CAN bus. |
I would like the most efficient and easiest solution especially for assembly to avoid soldering errors and other |
https://2btrading.tn/accueil/1089-can-bus-shield.html |
what do you think about can shield and arduino ? beacause its simple to connect (plug and play) |
Classic arduino (atmega328 I guess?) is slow and canbus shield is an external CAN peripheral (MCP2515) and as such it'll be even slower (runs over SPI). Also MCP2515 (not to be confused with CAN transceiver MCP2551) can't run on MS-CAN by default because the timing is wrong (can't set 95kbit unless the clock crystal is changed). It can only support only a single CAN bus at a time. |
ok THANKS . |
Yes that will work but only for MS CAN and HS CAN. Regular CAN transceivers won't work for LSCAN because it's physically different, it only uses a single wire. |
Hello I would like to create the following project:
|
Great but for displaying cid info I think I don't need ls can for exemple for radio and climate control. |
Hope you don't intend to remove the orignal display module since CID reads vehicle data directly from LS-CAN and retransmits that data on MS-CAN so without the original display MS-CAN is pretty much dead so unless you're able to replicate the authentication/anti-theft system stuff like radio and climate control will not work at all. If you want your project to run alongside the original display then it's fine.
Sorry but the project you're referencing uses a different CAN adapter which I don't know how to use and don't really have the time to learn to understand it. |
Happy to see you again |
Eh, should be fine. That electrolytic cap is probably getting it the worst but as long as you don't squish it next to the heatsink it should hold up.
Yeah that's a better choice, it's what I used for testing when soldered inside CD30MP3, shown here. The unit's steel cage was used as heatsink, as shown in this post. |
Thanks for the answer! But there is a problem with the sound. The sound is very loud and plays with a clear overload. But the sound quality is bad, it seems that the sound from the ESP32 is output at maximum volume. Adjusting the volume on the phone does not help. Update: this problem is in the Deezer player. |
Since you said you have xiaomi phone, connect to EHU32, make sure nothing is playing, then go into bluetooth settings and tap the arrow to the right of EHU32 and uncheck "Keep volume consistent", helped in the case of my poco f6 since Poweramp player would also start clipping sometimes. Other times I need to restart bluetooth and reconnect for it to behave properly (happens only if I was recently using a different bluetooth audio device), I have to admit that xiaomi's firmware is garbage when dealing with bluetooth audio, haven't had any problems under LineageOS based ROMs |
Thank you! This solved the problem! |
This bug has already been reported in another issue. Single-zone ECC (from Astra, Zafira etc) must be different to a dual-zone ECC and I don't have access to a vectra/signum anyway. Next release will attempt to read voltage from the display directly so it should be compatible with all vehicles (even those lacking ECC). IMPORTANT NOTE:If you have issues using EHU32, please consider creating another issue in this repo instead of posting in this one. This way we avoid spamming people's email inboxes with reply notifications unrelated to their original issue while important bugfixes/workarounds will be easier to find. |
Hello, would be possible to display coolant, speed, rpm and voltage without the Electronic climate? I know how to activate the electronic climate tab in the bottom but I don't have the automatic climate so this is useless for me. Would be possible to show maybe the coolant and battery in the first page of the screen without auto climate? If not why? The data are pulled from the ECC or is something related to the print on the display? If the problem is the ECC I could search for the different address of the data's in the can line? If the problem is the print why I couldn't print in the first page? Thank you so much for the work!
The text was updated successfully, but these errors were encountered: