RomRaider Logo

RomRaider

Open Source ECU Tools
 FAQ •  Register •  Login 

RomRaider

Documentation

Community

Developers

It is currently Tue Dec 23, 2025 4:01 pm

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 26 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Communicating with MS45
PostPosted: Fri Feb 09, 2018 12:19 pm 
Offline
Senior Member

Joined: Wed Jan 22, 2014 6:54 pm
Posts: 1773
Does anyone have any information pertaining to communicating with MS45?

I have decompiled INPA files and the commands all appear to be virtually identical to MSS54, MS43, MS42, MS41.
However I get bad responses when attempting to communicate. Tried several different BAUD rates, etc. Nothing. I sniffed the communication when doing basic INPA functions and did not recognize anything. I have yet to sniff my KESS read/write communications.

Am I missing something?

My goal was to build a free MS45 read tool making it a little easier for people using WINKFP to flash and hopefully open some doors to the MS45 community.


Top
 Profile  
 
 Post subject: Re: Communicating with MS45
PostPosted: Fri Feb 09, 2018 7:20 pm 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
Use the Editor > Tools > Test App to send the Init command. Do you get the exact same format and *length* as the older version DMEs?
Then try sending the general query command: 0B03
You will need to modify the logger def to match the results of this output. The response length has to be correct or you will not get any data to show in the logger display.


Top
 Profile  
 
 Post subject: Re: Communicating with MS45
PostPosted: Fri Feb 09, 2018 7:20 pm 
Offline
Experienced

Joined: Wed Oct 21, 2015 2:36 am
Posts: 980
I have an x3 with ms45. What do you want me to try?


Top
 Profile  
 
 Post subject: Re: Communicating with MS45
PostPosted: Fri Feb 09, 2018 7:45 pm 
Offline
Senior Member

Joined: Wed Jan 22, 2014 6:54 pm
Posts: 1773
ba114 wrote:
I have an x3 with ms45. What do you want me to try?

Same :lol:

I get nothing with init command which is why I started the thread (even though the INPA source files state init is the same)


Top
 Profile  
 
 Post subject: Re: Communicating with MS45
PostPosted: Sat Feb 10, 2018 5:11 am 
Offline
Experienced

Joined: Wed Oct 21, 2015 2:36 am
Posts: 980
Do you know if kess reads files similar to pasoft? I can grab a read using that and sniff that


Top
 Profile  
 
 Post subject: Re: Communicating with MS45
PostPosted: Sat Feb 10, 2018 1:51 pm 
Offline
Experienced

Joined: Thu Dec 04, 2014 6:37 pm
Posts: 139
The address of the dme is different on ms45 and newer. 83 vs 12 for ms41-43


Top
 Profile  
 
 Post subject: Re: Communicating with MS45
PostPosted: Sat Feb 10, 2018 3:45 pm 
Offline
Senior Member

Joined: Wed Jan 22, 2014 6:54 pm
Posts: 1773
Interesting. I’ll play around later. I wonder if my inpa source file is old or inaccurate for my ms45.1.


Sent from my iPhone using Tapatalk


Top
 Profile  
 
 Post subject: Re: Communicating with MS45
PostPosted: Sat Feb 10, 2018 4:11 pm 
Offline
Senior Member

Joined: Wed Jan 22, 2014 6:54 pm
Posts: 1773
Success. Checksum is the same. Now I need to find the right INPA source file to make this easier. I'll also sniff my kess read. Here's some adaptation clearing. Knock and lambda.

Write: B8 12 F1 04 18 02 FF FF 45
Read: B8 F1 12 20 58 0A 27 86 D1 27 87 D2 27 F7 52 27 F8 52 28 07 D8 27 B5 D4 27 BD D4 27 D7 D4 27 D6 D4 27 64 D4 4D

Write: B8 12 F1 05 31 30 04 00 00 5B
Read: B8 F1 12 05 71 30 04 00 00 1B


Unsure if packet length is built in here or not.

Edit: Don't waste your time sniffing kess :roll:


Top
 Profile  
 
 Post subject: Re: Communicating with MS45
PostPosted: Mon Feb 12, 2018 11:31 pm 
Offline
Newbie

Joined: Wed Mar 05, 2014 1:47 pm
Posts: 21
This is a different protocol from MS41/2/3. It's KWP2000 instead of DS2. The first three bytes are the header (83 = ??, 12 = DME, F1 = tester), then the length of the payload. The next byte is the SID (service ID AKA Mode) next is the Parameter ID (PID) and then whatever arguments are required. The response code for success is the SID + 0x40.

This is not proprietary to BMW, it's really similar to what a lot of other manufacturers use, and it's the same protocol that's used via K and CAN on newer cars (with some minor changes).


Top
 Profile  
 
 Post subject: Re: Communicating with MS45
PostPosted: Tue Feb 13, 2018 12:17 am 
Offline
Senior Member

Joined: Wed Jan 22, 2014 6:54 pm
Posts: 1773
mattbarn wrote:
This is a different protocol from MS41/2/3. It's KWP2000 instead of DS2. The first three bytes are the header (83 = ??, 12 = DME, F1 = tester), then the length of the payload. The next byte is the SID (service ID AKA Mode) next is the Parameter ID (PID) and then whatever arguments are required. The response code for success is the SID + 0x40.

This is not proprietary to BMW, it's really similar to what a lot of other manufacturers use, and it's the same protocol that's used via K and CAN on newer cars (with some minor changes).

Awesome! This helps a ton. If I read that right, the 4th byte = packet length - 5? aka length of payload


Top
 Profile  
 
 Post subject: Re: Communicating with MS45
PostPosted: Tue Feb 13, 2018 8:09 pm 
Offline
Newbie

Joined: Wed Mar 05, 2014 1:47 pm
Posts: 21
Yep, exactly.


Top
 Profile  
 
 Post subject: Re: Communicating with MS45
PostPosted: Thu Feb 15, 2018 11:18 am 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
It's much the same as the protocol we use for Subaru (on K-line).
You may even be able to create your own Logger definition file to try it.
Change these as required but leave protocol ID as SSM and transport ID as ISO9141 and choose SSM on K-line as the protocol in the Logger settings rather than DS2:
Quote:
<protocol id="SSM" baud="4800" databits="8" stopbits="1" parity="0" connect_timeout="2000" send_timeout="55">
<transports>
<transport id="iso9141" name="K-Line" desc="Low speed serial protocol supported up to ~MY2014.">
<module id="ecu" address="0x10" desc="Engine Control Unit" tester="0xF0" fastpoll="false"/>
</transport>

Try a sniff and see if you get a response. Then you'd have to define all the logger parameters in this section of the def.
What will probably be different is the Init to determine the DME ID and supported parameters thereafter.


Top
 Profile  
 
 Post subject: Re: Communicating with MS45
PostPosted: Thu Feb 15, 2018 1:29 pm 
Offline
Newbie

Joined: Thu May 28, 2015 1:27 pm
Posts: 87
I have ms45.0 for experiments, if something need to be checked - PM.


Top
 Profile  
 
 Post subject: Re: Communicating with MS45
PostPosted: Mon Apr 30, 2018 3:46 pm 
Offline
Newbie

Joined: Wed Apr 26, 2017 4:43 am
Posts: 98
Location: Georgia
Johnny_B wrote:
I have ms45.0 for experiments, if something need to be checked - PM.


so do I. if I can do any for community let me know


Top
 Profile  
 
 Post subject: Re: Communicating with MS45
PostPosted: Mon Dec 31, 2018 3:32 pm 
Offline
Senior Member

Joined: Wed Jan 22, 2014 6:54 pm
Posts: 1773
Haven't forgotten about this.

Did some sniffing today and was able to decipher this (just to get familiar with the packets)

TX: B8 12 F1 01 3E 64
RX: B8 F1 12 01 7E 24

TX: B8 12 F1 03 10 81 05 CC
RX: B8 F1 12 03 50 81 05 8C

E0 38 30 30 70 70 38 10 C0 70 0E 80 10 80 30 C0 0C 1C C0 10 70 30 18 C0 60 70 70 88 3A 60 38 10 80 38 0C 60 1C 70 80 70 30 18 60 70 18 70 E0 70 38 80 30 F8 F8 FF

TX: B8 12 F1 01 3E 64
RX: B8 F1 12 01 7E 24

TX: B8 12 F1 03 10 81 05 CC
RX: B8 F1 12 03 50 81 05 8C


I'm unable to identify the bold text. How many packets, which are the packet headers, checksums, etc. Does anyone else see anything there?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 26 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subsilver by phpBBservice.nl