Pages: 1 [2]
Author Topic: Custom can-bus values  (Read 18708 times)
BlackT
Hero Member
*****

Karma: +79/-42
Offline Offline

Posts: 1465



« Reply #15 on: February 14, 2025, 01:22:18 AM »

yes, they are stored in ram locations
so any tweaks available here
I want to send custom values on CAN 280, so Is enought only to change here variables with one I want ( I don't care about conversion factor)
This to me look like CAN-bus data, am I on right trace?
Logged
fknbrkn
Hero Member
*****

Karma: +208/-24
Offline Offline

Posts: 1498


mk4 1.8T AUM


« Reply #16 on: February 14, 2025, 03:03:24 AM »

Yes
You can movb 0xF812, yourVariable instead of mdverlc for example
Logged
elias
Full Member
***

Karma: +21/-3
Offline Offline

Posts: 71


« Reply #17 on: February 14, 2025, 05:47:25 AM »

actually, i had a similar challenge. You can find informations here:
http://nefariousmotorsports.com/forum/index.php?;topic=21150.0

It was only modifying a value which already exists. adding another one
is a little bit different task, but very similar.
Logged
prj
Hero Member
*****

Karma: +1095/-513
Offline Offline

Posts: 6164


« Reply #18 on: February 15, 2025, 08:18:44 AM »

Just activate some message that is not used, for sure not all are enabled (CW_CAN_S).

After that put whatever you want there.
Logged

PM's will not be answered, so don't even try.
Log your car properly - WinOLS database - Tools/patches
BlackT
Hero Member
*****

Karma: +79/-42
Offline Offline

Posts: 1465



« Reply #19 on: February 17, 2025, 01:08:33 AM »

Just activate some message that is not used, for sure not all are enabled (CW_CAN_S).

After that put whatever you want there.
But every ME7 bin I open have CW_CAN_S is set to FF

Thank you all for your help
Logged
BlackT
Hero Member
*****

Karma: +79/-42
Offline Offline

Posts: 1465



« Reply #20 on: April 01, 2025, 04:38:54 AM »

Here it is some free space to send custom CAN-bus adata on 1.8T with 8E0 AL software

BYTE_F847 and BYTE_F848  are not used
Logged
fknbrkn
Hero Member
*****

Karma: +208/-24
Offline Offline

Posts: 1498


mk4 1.8T AUM


« Reply #21 on: April 01, 2025, 08:45:21 AM »

you can inject up to 255 variables there using those two as id and data bytes
its pretty simple routine
Logged
prj
Hero Member
*****

Karma: +1095/-513
Offline Offline

Posts: 6164


« Reply #22 on: April 01, 2025, 01:16:04 PM »

you can inject up to 255 variables there using those two as id and data bytes
its pretty simple routine

256 Wink

Sample rate will be pretty bad though.
Logged

PM's will not be answered, so don't even try.
Log your car properly - WinOLS database - Tools/patches
BlackT
Hero Member
*****

Karma: +79/-42
Offline Offline

Posts: 1465



« Reply #23 on: April 04, 2025, 10:10:28 PM »

you can inject up to 255 variables there using those two as id and data bytes
its pretty simple routine
Nice idea  Grin will try that
Is it possible to send DTC over CAN, to make them like on BMW 0-255
Or to ask better question, is DTC stored somewhere in flash?
From my founding  ME7 use B_xxx to set some error flag  than store that in EEPROM?
Soo first method will be to send error flags to CAN
Second will be to read eeprom data where dtc are saved and send them over can
Logged
fknbrkn
Hero Member
*****

Karma: +208/-24
Offline Offline

Posts: 1498


mk4 1.8T AUM


« Reply #24 on: April 04, 2025, 11:49:52 PM »

256 Wink

Sample rate will be pretty bad though.

1 for handshake  Roll Eyes
10 vars was fine to catch a realtime, 255 would be not for sure

Quote
Is it possible to send DTC over CAN, to make them like on BMW 0-255

you can reinvent protocols if a beating a dead horse is your fav
Logged
rogerius
Full Member
***

Karma: +62/-7
Offline Offline

Posts: 118


« Reply #25 on: April 05, 2025, 03:22:25 AM »

10 vars was fine to catch a realtime, 255 would be not for sure
26 vars is also fine (thanks fknbrkn) in ColorMFA
Logged
BlackT
Hero Member
*****

Karma: +79/-42
Offline Offline

Posts: 1465



« Reply #26 on: April 07, 2025, 01:54:20 AM »



you can reinvent protocols if a beating a dead horse is your fav
I don't want to reivent protocol for DTC, I only want to send them via CAN BUS. I am okay to send them in Pxxx form. Only I don't know how to read them in ASM, where are they stored
Logged
rogerius
Full Member
***

Karma: +62/-7
Offline Offline

Posts: 118


« Reply #27 on: April 07, 2025, 05:04:34 AM »

I don't want to reivent protocol for DTC, I only want to send them via CAN BUS. I am okay to send them in Pxxx form. Only I don't know how to read them in ASM, where are they stored

ROM:854B7E A8 50                             mov     r5, [r0]
ROM:854B80 1A F5 20 20                       bfldh   r5, #DTCBit_H5, #DTCBit_H5
ROM:854B84 B8 50                             mov     [r0], r5
ROM:854B86 0D 10                             jmpr    cc_UC, loc_854BA8
ROM:854B88                   ; ---------------------------------------------------------------------------
ROM:854B88
ROM:854B88                   loc_854B88:                             ; CODE XREF: DFPM_DLSU_DiagnoseLambdaSondeBeforeKAT_sub_85448A+6DAj
ROM:854B88 F2 F4 40 9C                       mov     r4, word_381C40
ROM:854B8C 9A F4 0C E0                       jnb     r4.14, loc_854BA8
ROM:854B90 A8 50                             mov     r5, [r0]
ROM:854B92 0A F5 01 01                       bfldl   r5, #DTCBit_L0, #DTCBit_L0
ROM:854B96 B8 50                             mov     [r0], r5
ROM:854B98 A8 20                             mov     r2, [r0]
ROM:854B9A 0A F2 02 02                       bfldl   r2, #DTCBit_L1, #DTCBit_L1
ROM:854B9E B8 20                             mov     [r0], r2
ROM:854BA0 A8 50                             mov     r5, [r0]
ROM:854BA2 1A F5 20 20                       bfldh   r5, #DTCBit_H5, #DTCBit_H5
ROM:854BA6 B8 50                             mov     [r0], r5
ROM:854BA8
ROM:854BA8                   loc_854BA8:                             ; CODE XREF: DFPM_DLSU_DiagnoseLambdaSondeBeforeKAT_sub_85448A+58j
ROM:854BA8                                                           ; DFPM_DLSU_DiagnoseLambdaSondeBeforeKAT_sub_85448A+6FCj ...
ROM:854BA8 A8 40                             mov     r4, [r0]
ROM:854BAA 88 40                             mov     [-r0], r4
ROM:854BAC E6 FC 65 00                       mov     r12, #65h ; 'e' ; errorNo. #65h
ROM:854BAC                                                           ; 65+<START_CLAAAA>81083F=8108A4
ROM:854BAC                                                           ; CLALATV (P1176, P0133, P0130)
ROM:854BB0 DA 84 DC 66                       calls   84h, SetDTCME75_8466dc ; Sets the Diagnostic Trouble Code
ROM:854BB0                                                           ; r12 = ErrorCode
ROM:854BB4 08 04                             add     r0, #4
ROM:854BB6 98 60                             mov     r6, [r0+]
ROM:854BB8 98 70                             mov     r7, [r0+]
ROM:854BBA 98 90                             mov     r9, [r0+]
ROM:854BBC DB 00                             rets
ROM:854BBC                   ; End of function DFPM_DLSU_DiagnoseLambdaSondeBeforeKAT_sub_85448A
ROM:854BBC

there is a DTC table that is referenced in code with an offset for each DTC, like in the example above. Try to id this code in your file!
This was discussed in Nefmoto, you just need to find it!


edit:
this
http://nefariousmotorsports.com/forum/index.php?topic=10018.0
« Last Edit: April 07, 2025, 05:08:48 AM by rogerius » Logged
Pages: 1 [2]
  Print  
 
Jump to:  

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