Title: Generating CAN messages from Arduino for ME7.5 Post by: timr72 on June 13, 2022, 01:28:43 AM Hi All,
I've got as far as I can, but I'm hitting an issue. I have an ME7.5 ECU and 1.8T engine in my kitcar, none of the other units are there; so no ABS, no Airco, no Dashboard etc. Although the car runs I am missing a speedo input for the ECU. I've tried generating ABS pseudo traffic but this is not having the desired effect, I have also tried as Kombi1/2/3 same result. Is there a way (And how do I do it) to check where the ECU expects to get the speed from Can Kombi, ABS or physical? ..and can I change the ECU to use VSS pulse on I think pin 54? Binary and data useful attached; ECU and engine are BF/ME7.5 from a 2005 Audi A4 Convertible. Code: // CAN Receive and send Example Title: Re: Generating CAN messages from Arduino for ME7.5 Post by: fknbrkn on June 13, 2022, 02:29:47 AM http://nefariousmotorsports.com/forum/index.php?topic=17021.0title=
Motor canbus runs at 1mbit Title: Re: Generating CAN messages from Arduino for ME7.5 Post by: timr72 on June 14, 2022, 05:28:04 AM http://nefariousmotorsports.com/forum/index.php?topic=17021.0title= Motor canbus runs at 1mbit Thanks for the link, I had read that thread. What's interesting is the Arduino code I'm running reads CAN data reliably 0288 0280 etc and I can get all of that data. I'll have a play around with 1000k and see if that influences the outcome. Title: Re: Generating CAN messages from Arduino for ME7.5 Post by: BlackT on June 14, 2022, 07:39:15 AM Motor CAN use 500 kbs, you have good config in code
Title: Re: Generating CAN messages from Arduino for ME7.5 Post by: tao13 on January 30, 2023, 11:33:27 AM Do you tried to send some requests on CANBBUS (like pids) and did ecu respond?
I tried something but i think me7.5 doesn't know to respond on CANBUS, it only sent continously some ids. Title: Re: Generating CAN messages from Arduino for ME7.5 Post by: prj on January 30, 2023, 11:43:31 AM Do you tried to send some requests on CANBBUS (like pids) and did ecu respond? There is no diagnostics on CAN on ME7.5, only on K-Line.I tried something but i think me7.5 doesn't know to respond on CANBUS, it only sent continously some ids. Title: Re: Generating CAN messages from Arduino for ME7.5 Post by: tao13 on February 01, 2023, 09:25:28 AM Thanks again PRJ. From time to time you can be CUTE!
Please tell me if on KWP2000 can see and delete DTC? I saw in NefMotoECUFlasher exist something for DTC. The initialisation procedure is the same with read variable from memory like ME7logger or not? Thansk in advance! Title: Re: Generating CAN messages from Arduino for ME7.5 Post by: musicleecher on February 12, 2023, 08:24:43 PM Hi All, I've got as far as I can, but I'm hitting an issue. I have an ME7.5 ECU and 1.8T engine in my kitcar, none of the other units are there; so no ABS, no Airco, no Dashboard etc. Although the car runs I am missing a speedo input for the ECU. I've tried generating ABS pseudo traffic but this is not having the desired effect, I have also tried as Kombi1/2/3 same result. Is there a way (And how do I do it) to check where the ECU expects to get the speed from Can Kombi, ABS or physical? ..and can I change the ECU to use VSS pulse on I think pin 54? Binary and data useful attached; ECU and engine are BF/ME7.5 from a 2005 Audi A4 Convertible. Code: // CAN Receive and send Example I'm doing something similar on my 1.8T swapped '82 Toyota Carina. I'm using an ESP32 and a CAN transceiver to communicate with the ECU. Indeed the CAN is 500kbps not 1mbps. I am doing this to build a custom Dashboard for it. Right now I can get RPM and Engine temp. I'd like to get a bit more information but I'm not sure how I'll decode the CAN frames the ECU outputs. I'm also using the ESP32 to feed VSS to the ECU, I'm getting the actual speed from GPS. I think I might have been able to send good data to the ECU because I felt a difference in power but I haven't been able to test it thoroughly yet. These are the frames I'm currently sending (not tested thoroughly, might still not be working fine after all): Code: #define lo8(x) ((int)(x)&0xff) The Library I'm using for the CAN comms is called ESP32CAN. I believe you have to have your ECU configured to accept VSS through CAN instead with CWGGVFZG = 1 (I did not have the opportunity to check your file) I hope it helps and if you get to test it please post an update :) Title: Re: Generating CAN messages from Arduino for ME7.5 Post by: prj on February 13, 2023, 03:28:02 AM Speed via GPS is horrible, better not send any speed at all.
All the info about can frames of this ECU is in the FR. Title: Re: Generating CAN messages from Arduino for ME7.5 Post by: musicleecher on February 13, 2023, 10:07:23 AM Speed via GPS is horrible, better not send any speed at all. All the info about can frames of this ECU is in the FR. Why do you think it is horrible? I can always resort to reading the ABS rings on the front wheels and calculating Km/h Title: Re: Generating CAN messages from Arduino for ME7.5 Post by: prj on February 13, 2023, 10:12:13 AM Why do you think it is horrible? Because speed especially matters to ECU during starting/stopping. And GPS is too slow for that.Quote I can always resort to reading the ABS rings on the front wheels and calculating Km/h Much better option.Title: Re: Generating CAN messages from Arduino for ME7.5 Post by: musicleecher on February 13, 2023, 11:46:25 AM Because speed especially matters to ECU during starting/stopping. And GPS is too slow for that. Thanks for the clarification! Much appreciated! BTW, If you're willing to help, do you know at what rate the ECU expects the VSS messages? Like I can flood the ECU with the CAN messages but I'd much rather send them from x ms to x ms.. Title: Re: Generating CAN messages from Arduino for ME7.5 Post by: fknbrkn on February 13, 2023, 11:54:55 AM Thanks for the clarification! Much appreciated! BTW, If you're willing to help, do you know at what rate the ECU expects the VSS messages? Like I can flood the ECU with the CAN messages but I'd much rather send them from x ms to x ms.. Just read the FR, CAN module but imo its not worth, works fine without Title: Re: Generating CAN messages from Arduino for ME7.5 Post by: musicleecher on February 13, 2023, 01:01:54 PM Just read the FR, CAN module but imo its not worth, works fine without Does it? I'd say otherwise because the engine feels like it's not producing full power without VSS Title: Re: Generating CAN messages from Arduino for ME7.5 Post by: prj on February 13, 2023, 03:37:41 PM Does it? I'd say otherwise because the engine feels like it's not producing full power without VSS VSS does not affect power.Also, leave your "feels" for your partner and use logging for the ECU. Title: Re: Generating CAN messages from Arduino for ME7.5 Post by: tao13 on February 14, 2023, 12:52:51 PM PRJ, NYET , did you know if i start a kwp2000 session and read variables from memory, canbus will be slower, the ecu will send only few ID's on canbus?
I try to use both in the same time on my arduino, can listen and parse some id's but when i began KWP2000 and it is enought to read one variable , i don't receive all id's on canbus. Exist 2 cause: 1 kwp2000 get a lot of time to process and intrerrupt the canbus 2 or what i asked upstairs, when a kwp session is started the canbus is limited by ecu. Please if you have some info, tell us. Thanks in advance Title: Re: Generating CAN messages from Arduino for ME7.5 Post by: BlackT on February 14, 2023, 09:56:56 PM Did you thibk that maybe arduino is to slow to do all tasks ::)
Title: Re: Generating CAN messages from Arduino for ME7.5 Post by: tao13 on February 14, 2023, 11:49:50 PM NO, isn't , the first impresion is kwp2000 block for some ms the process and can id's are few , i receive only 2-3 id's!
Title: Re: Generating CAN messages from Arduino for ME7.5 Post by: dal on February 15, 2023, 05:12:58 AM PRJ, NYET , did you know if i start a kwp2000 session and read variables from memory, canbus will be slower, the ecu will send only few ID's on canbus? I try to use both in the same time on my arduino, can listen and parse some id's but when i began KWP2000 and it is enought to read one variable , i don't receive all id's on canbus. Exist 2 cause: 1 kwp2000 get a lot of time to process and intrerrupt the canbus 2 or what i asked upstairs, when a kwp session is started the canbus is limited by ecu. Please if you have some info, tell us. Thanks in advance I dont think so, because I have 3DcolorMFD on my A3 cluster, and the screen connects to the ecu via kline as soon as I turn the key on. And the data that comes from canbus stays perfect, I can tell by the rpm that comes from CAN, fast refresh rate as hell. Title: Re: Generating CAN messages from Arduino for ME7.5 Post by: tao13 on February 15, 2023, 05:55:16 AM I made a test today, put me7loger to make log on a laptop and i sniffed the can with my arduino. The can works ok. So it is a problem from my sketch or speed of arduino but, i tried with mega2560 and esp32 too. The same issue. I will try more.
PS: the speed/baud rate of initialise connection slow init with ecu is 10400 , the log speed it is different than this? In me7logger if i chose per example 38400 log speed it is only for log but at connection with ecu it is only 10400? Title: Re: Generating CAN messages from Arduino for ME7.5 Post by: dream on May 21, 2023, 02:48:24 AM I just got into same thing with a project.
I use ME7.5 for engine, 2x ECUmaster PMU for controlling everything in the car and Arduino for the cluster especially speedometer. The speedo was originally mechanical. I use the CAN messages from the ECU for the PMU to use RPM and ECT. On the other side I am going to send speedo with Arduino to ECU because I will use 2 step launch. I already tested to see if the ECU will receive the broadcasted CAN messages from the PMU. It works. All the communication DTC were gone. Only make sure you are broadcasting/receiving it on the right speed, as for 'motor1' works at 10ms (100Hz). |