Pages: 1 [2] 3
Author Topic: MK6 VW canbus  (Read 30005 times)
seishuku
Full Member
***

Karma: +13/-0
Offline Offline

Posts: 131


« Reply #15 on: September 12, 2015, 06:34:01 PM »

Well, the steering wheel controls are pretty simple, there shouldn't be any sequence on that.

I did make a little progress, I was able to force the audio amp off... It seems it they're a little more picky on message transmission period, I could get it to turn off by flooding it, but it would just be for a second, but sending it for the proper 320ms per message period gets the amp to power off for about 10 seconds before the radio overrides.

So, it's progress at least.
Logged
dream3R
Hero Member
*****

Karma: +18/-8
Offline Offline

Posts: 1194


« Reply #16 on: September 12, 2015, 06:49:17 PM »

You've got a race condition, as I said l said Wink

If ou have log files PM me with the CANiD 9origian car logs not you) button on/off times stamped.

If it's what I think it is I can suggest  a code change Wink I solved it before.
« Last Edit: September 12, 2015, 06:52:48 PM by dream3R » Logged



How to work out values from an A2L Smiley

http://nefariousmotorsports.com/forum/index.php?topic=5525.msg52371#msg52371


Starting Rev's http://nefariousmotorsports.com/forum/index.php?topic=5397.msg51169#msg51169

noobs read this before asking http://nefariousmotorsports.com/forum/index.php?topic=9014.0title=


ORGORIGINAL 05 5120 creator for Volvo
ORIGINAL Datalogger (Freeware) Author
ORGINAL finder of the 'extra' torque' limits
I don't have ME7.01 A2L I just use ID
seishuku
Full Member
***

Karma: +13/-0
Offline Offline

Posts: 131


« Reply #17 on: September 12, 2015, 07:15:48 PM »

Well, yeah, obviously I'm competing with the steering column module... I didn't think it would be much of an issue, I was able to do that no problem on my old 02 Audi A6.
Granted this MK6 electronics are just a *tad* more advanced. Wink

The attached log, steering wheel ID is 0x5c1 (32ms period), the problem one of interest is at time 18017.
The other ID is 0x604 and 0x661 (audio amp, both 320ms period), at time 15379 and 15382.

Amp off:
0x604, byte 0 = 0x80
0x661, byte 0 = 0x00

Amp on:
0x604, byte 0 = 0x81
0x661, byte 0 = 0x03

Right-hand column stalk/steering wheel 0x5c1:
MFD reset, byte 0 = 0x21
MFD up, byte 0 = 0x22
MFD down, byte 0 = 0x23
vol down, byte 0 = 0x06
vol up, byte 0 = 0x07
next track, byte 0 = 0x02
prev track, byte 0 = 0x03

0x5c1 isn't really important, just more of a test case, I could just as easily use 0x2c1 and send left blinker on, or wipers low speed, etc.
I was just hoping I could override it a little easier, like with the Audi or older MK4/5 platforms.
Logged
dream3R
Hero Member
*****

Karma: +18/-8
Offline Offline

Posts: 1194


« Reply #18 on: September 12, 2015, 08:19:59 PM »

ok looking can't sleep anyway, next time an xls will be handy (csv format actually)

I normally import it and T-SQL the crap out of it

re overrides, does VCDS or whatever support 'activations' this would be far easier to implement.

But watching fro a byte change in a loop is also easy Smiley

Sending the the byte change has to e done correctly..
« Last Edit: September 12, 2015, 08:22:18 PM by dream3R » Logged



How to work out values from an A2L Smiley

http://nefariousmotorsports.com/forum/index.php?topic=5525.msg52371#msg52371


Starting Rev's http://nefariousmotorsports.com/forum/index.php?topic=5397.msg51169#msg51169

noobs read this before asking http://nefariousmotorsports.com/forum/index.php?topic=9014.0title=


ORGORIGINAL 05 5120 creator for Volvo
ORIGINAL Datalogger (Freeware) Author
ORGINAL finder of the 'extra' torque' limits
I don't have ME7.01 A2L I just use ID
dream3R
Hero Member
*****

Karma: +18/-8
Offline Offline

Posts: 1194


« Reply #19 on: September 12, 2015, 08:31:10 PM »

OK CSV, so do you know byte 0 is ----------> Furthermost right?  Or is it just your code?

*bugfix Smiley *
Logged



How to work out values from an A2L Smiley

http://nefariousmotorsports.com/forum/index.php?topic=5525.msg52371#msg52371


Starting Rev's http://nefariousmotorsports.com/forum/index.php?topic=5397.msg51169#msg51169

noobs read this before asking http://nefariousmotorsports.com/forum/index.php?topic=9014.0title=


ORGORIGINAL 05 5120 creator for Volvo
ORIGINAL Datalogger (Freeware) Author
ORGINAL finder of the 'extra' torque' limits
I don't have ME7.01 A2L I just use ID
dream3R
Hero Member
*****

Karma: +18/-8
Offline Offline

Posts: 1194


« Reply #20 on: September 12, 2015, 08:34:17 PM »

Also prefix with 0x when using hex please, sorry it's a pet hate.
Logged



How to work out values from an A2L Smiley

http://nefariousmotorsports.com/forum/index.php?topic=5525.msg52371#msg52371


Starting Rev's http://nefariousmotorsports.com/forum/index.php?topic=5397.msg51169#msg51169

noobs read this before asking http://nefariousmotorsports.com/forum/index.php?topic=9014.0title=


ORGORIGINAL 05 5120 creator for Volvo
ORIGINAL Datalogger (Freeware) Author
ORGINAL finder of the 'extra' torque' limits
I don't have ME7.01 A2L I just use ID
dream3R
Hero Member
*****

Karma: +18/-8
Offline Offline

Posts: 1194


« Reply #21 on: September 12, 2015, 08:37:56 PM »

Re amp, hopefully you have Excel 2010+

Can you see the bit change?

Logged



How to work out values from an A2L Smiley

http://nefariousmotorsports.com/forum/index.php?topic=5525.msg52371#msg52371


Starting Rev's http://nefariousmotorsports.com/forum/index.php?topic=5397.msg51169#msg51169

noobs read this before asking http://nefariousmotorsports.com/forum/index.php?topic=9014.0title=


ORGORIGINAL 05 5120 creator for Volvo
ORIGINAL Datalogger (Freeware) Author
ORGINAL finder of the 'extra' torque' limits
I don't have ME7.01 A2L I just use ID
dream3R
Hero Member
*****

Karma: +18/-8
Offline Offline

Posts: 1194


« Reply #22 on: September 12, 2015, 08:46:02 PM »

Yes you can, as you pointed out.

So try and do a <30ms cycle use it as as a const and play with it)  and beat the steering wheel to the punch perhaps, there's no counters or anything I've sen on 29bit cars to worry about there.

That's my theory and iirc it  with canbus theory/docs.


Logged



How to work out values from an A2L Smiley

http://nefariousmotorsports.com/forum/index.php?topic=5525.msg52371#msg52371


Starting Rev's http://nefariousmotorsports.com/forum/index.php?topic=5397.msg51169#msg51169

noobs read this before asking http://nefariousmotorsports.com/forum/index.php?topic=9014.0title=


ORGORIGINAL 05 5120 creator for Volvo
ORIGINAL Datalogger (Freeware) Author
ORGINAL finder of the 'extra' torque' limits
I don't have ME7.01 A2L I just use ID
dream3R
Hero Member
*****

Karma: +18/-8
Offline Offline

Posts: 1194


« Reply #23 on: September 12, 2015, 08:53:30 PM »

Other ideas:

RTR bit as it's dominant.

Also read here http://electronics.stackexchange.com/questions/43139/transmission-of-different-messages-with-the-same-id-on-a-can-bus

If the timing doesn't' fix it look into diag commands,


Logged



How to work out values from an A2L Smiley

http://nefariousmotorsports.com/forum/index.php?topic=5525.msg52371#msg52371


Starting Rev's http://nefariousmotorsports.com/forum/index.php?topic=5397.msg51169#msg51169

noobs read this before asking http://nefariousmotorsports.com/forum/index.php?topic=9014.0title=


ORGORIGINAL 05 5120 creator for Volvo
ORIGINAL Datalogger (Freeware) Author
ORGINAL finder of the 'extra' torque' limits
I don't have ME7.01 A2L I just use ID
dream3R
Hero Member
*****

Karma: +18/-8
Offline Offline

Posts: 1194


« Reply #24 on: September 12, 2015, 08:57:04 PM »

You can also look into msg priorities, which iirc is part of the canid bits.
Logged



How to work out values from an A2L Smiley

http://nefariousmotorsports.com/forum/index.php?topic=5525.msg52371#msg52371


Starting Rev's http://nefariousmotorsports.com/forum/index.php?topic=5397.msg51169#msg51169

noobs read this before asking http://nefariousmotorsports.com/forum/index.php?topic=9014.0title=


ORGORIGINAL 05 5120 creator for Volvo
ORIGINAL Datalogger (Freeware) Author
ORGINAL finder of the 'extra' torque' limits
I don't have ME7.01 A2L I just use ID
dream3R
Hero Member
*****

Karma: +18/-8
Offline Offline

Posts: 1194


« Reply #25 on: September 12, 2015, 09:05:25 PM »

Ah my old friend canbus.  You let out IDE but, assuming all is zero?


Looks like you are breaking arbitration by sending duplicate canid's  Playing around with canid bits might help prio
Logged



How to work out values from an A2L Smiley

http://nefariousmotorsports.com/forum/index.php?topic=5525.msg52371#msg52371


Starting Rev's http://nefariousmotorsports.com/forum/index.php?topic=5397.msg51169#msg51169

noobs read this before asking http://nefariousmotorsports.com/forum/index.php?topic=9014.0title=


ORGORIGINAL 05 5120 creator for Volvo
ORIGINAL Datalogger (Freeware) Author
ORGINAL finder of the 'extra' torque' limits
I don't have ME7.01 A2L I just use ID
dream3R
Hero Member
*****

Karma: +18/-8
Offline Offline

Posts: 1194


« Reply #26 on: September 12, 2015, 09:23:48 PM »

Speaking to my mad self.

I managed to beat a race condition here


https://www.youtube.com/watch?v=kzcFesqruWk

But there was a counter on [04] iirc that I had to grab and increment then beat the race condition between modules, more difficult that you I think, so you should do it.

Not sure I'd do this on the ECM bus mind you, bus off whilst driving is not fun (been there).

Except for writing to the cluster for my boost gauge I always used diag commands to avoid this problem.
« Last Edit: September 12, 2015, 09:25:30 PM by dream3R » Logged



How to work out values from an A2L Smiley

http://nefariousmotorsports.com/forum/index.php?topic=5525.msg52371#msg52371


Starting Rev's http://nefariousmotorsports.com/forum/index.php?topic=5397.msg51169#msg51169

noobs read this before asking http://nefariousmotorsports.com/forum/index.php?topic=9014.0title=


ORGORIGINAL 05 5120 creator for Volvo
ORIGINAL Datalogger (Freeware) Author
ORGINAL finder of the 'extra' torque' limits
I don't have ME7.01 A2L I just use ID
seishuku
Full Member
***

Karma: +13/-0
Offline Offline

Posts: 131


« Reply #27 on: September 12, 2015, 09:31:23 PM »

lol

Ok, if you start changing bits in the ID, then you're changing the ID itself... Then it'll just be filtered out by the target module, right?

I'll have to do more testing. I'm using STMicro's HAL code, so maybe there's something they're doing that doesn't jive... But then again, what are the chances of that on both the STM and Teensy's K20 chip?
Logged
dream3R
Hero Member
*****

Karma: +18/-8
Offline Offline

Posts: 1194


« Reply #28 on: September 12, 2015, 10:40:50 PM »

lol

Ok, if you start changing bits in the ID, then you're changing the ID itself... Then it'll just be filtered out by the target module, right?

I'll have to do more testing. I'm using STMicro's HAL code, so maybe there's something they're doing that doesn't jive... But then again, what are the chances of that on both the STM and Teensy's K20 chip?

depends on the mask and filter??, hey man I'm just throwing ideas out, I'm highly skilled in CAN bus/freaking so I can try to help dude, few posts ago you said everything read everything Smiley unless i misunderstood.

I/We ended up writing out own code for J2354 and dealer units, mcu libraries were not cutting it for what we were going towards..

Couldn't get chipkit to communicate on 125kbps CAN for example, arudino yes, both open were using source libraries.

For example my MCU puts boost on the cluster 16x2 display (vid above), has a menu system using cruise buttons, folds mirrors in on lock, shift light (lol) etc and datalogs he ECM at the same time.  Sounds similar?

So been where you are man, what language you writing in in?   Perhaps I'll see something if your using an online private repo (couldn't care about seeing the code man, wrote enough of it myself lol)

hope this comes across nice, don't mean to sound angry or pissed but haven't slept so can't tell, but I am interested in helping an seeing VAG can.

Arduino with canshield works nice but only one controller, chipkit, I suspect library is shit,  I can send the freeware libraries I used for both 500k and 125k busses for canshield it's nice to see this stuff tbh.  Most people would just reverse engineer something similar, even companies....

Also most folk on here are playing with kline....so maybe not much more input idk for sure tho Smiley

Logged



How to work out values from an A2L Smiley

http://nefariousmotorsports.com/forum/index.php?topic=5525.msg52371#msg52371


Starting Rev's http://nefariousmotorsports.com/forum/index.php?topic=5397.msg51169#msg51169

noobs read this before asking http://nefariousmotorsports.com/forum/index.php?topic=9014.0title=


ORGORIGINAL 05 5120 creator for Volvo
ORIGINAL Datalogger (Freeware) Author
ORGINAL finder of the 'extra' torque' limits
I don't have ME7.01 A2L I just use ID
dream3R
Hero Member
*****

Karma: +18/-8
Offline Offline

Posts: 1194


« Reply #29 on: September 12, 2015, 10:58:45 PM »

More on arbitation here (I could be wrong) I still say race the mofo Wink

« Last Edit: September 12, 2015, 11:01:14 PM by dream3R » Logged



How to work out values from an A2L Smiley

http://nefariousmotorsports.com/forum/index.php?topic=5525.msg52371#msg52371


Starting Rev's http://nefariousmotorsports.com/forum/index.php?topic=5397.msg51169#msg51169

noobs read this before asking http://nefariousmotorsports.com/forum/index.php?topic=9014.0title=


ORGORIGINAL 05 5120 creator for Volvo
ORIGINAL Datalogger (Freeware) Author
ORGINAL finder of the 'extra' torque' limits
I don't have ME7.01 A2L I just use ID
Pages: 1 [2] 3
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Page created in 0.02 seconds with 18 queries. (Pretty URLs adds 0s, 0q)