RomRaider Logo

RomRaider

Open Source ECU Tools
 FAQ •  Register •  Login 

RomRaider

Documentation

Community

Developers

It is currently Tue Dec 23, 2025 11:01 am

All times are UTC - 5 hours [ DST ]





Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: How does 'fast polling' work?
PostPosted: Thu Sep 13, 2012 10:56 am 
Offline
Senior Member

Joined: Fri Feb 10, 2006 7:04 pm
Posts: 2661
Location: RIP
There is someone in the BMW community that had created a datalogger using BMW's own protocol called EDIABAS. He is trying to get it to poll faster. The way it's setup right now is each request for a parameter is a separate 'job'. So you ask for a value, then the ECU sends it. Then you ask for another value, and the ECU sends that. This really slows the logging rate down. I'd like to help him get faster logging rates so I wanted to see how RR does it. If I understand correctly, RR basically sends a command to the ECU saying 'send me the following variables as fast as you can and I'll just listen'. Is that correct?

The ECU he's working with can be interfaced by using KWP2000. I believe that means it is ISO 14230? The BMW protocol seems to be as slow as molasses updating only 1 parameter 5 times per second. I wonder if there's a way to use the ISO 14230 API instead and get data rates up to 10.4K baud?

If anyone can help provide any technical details, I can refer him to this thread. Thanks for your help!

_________________
MS41 Project Leader & Co-Developer (2012 - 2023)
MS41.3 https://sites.google.com/site/openms41/custom-code---ms41-3
MS41 ECU Portal https://sites.google.com/site/openms41/ms41-ecu-portal


Top
 Profile  
 
 Post subject: Re: How does 'fast polling' work?
PostPosted: Thu Sep 13, 2012 12:44 pm 
Offline
Senior Member

Joined: Mon Jan 19, 2009 2:31 pm
Posts: 1615
Location: Moscow, Russia
RomRaider Logger, ecuExplorer use SSM2 ReadByte command.

PacketStart(0x80) Destination(0x10) Source (0xF0) length (data bytes) ReadByteCommand(0xA8) ReadExtention (0x00 single responce\0x01 repeatable responce) (3 byte address list MSB first) checksum

ECU checks data sent and stops repeatable renewed data stream in the case the scanner tries sending anything to k-line.

ISO 14230 just uses the same physical layer, I do not think ISO 14230 API wrapper is useful for the task mentioned.

Hope this helps.


Top
 Profile  
 
 Post subject: Re: How does 'fast polling' work?
PostPosted: Thu Sep 13, 2012 12:49 pm 
Offline
Experienced
User avatar

Joined: Thu Jul 23, 2009 1:46 pm
Posts: 863
mrf582 wrote:
There is someone in the BMW community that had created a datalogger using BMW's own protocol called EDIABAS. He is trying to get it to poll faster. The way it's setup right now is each request for a parameter is a separate 'job'. So you ask for a value, then the ECU sends it. Then you ask for another value, and the ECU sends that. This really slows the logging rate down. I'd like to help him get faster logging rates so I wanted to see how RR does it. If I understand correctly, RR basically sends a command to the ECU saying 'send me the following variables as fast as you can and I'll just listen'. Is that correct?

The ECU he's working with can be interfaced by using KWP2000. I believe that means it is ISO 14230? The BMW protocol seems to be as slow as molasses updating only 1 parameter 5 times per second. I wonder if there's a way to use the ISO 14230 API instead and get data rates up to 10.4K baud?

If anyone can help provide any technical details, I can refer him to this thread. Thanks for your help!


That's correct. Fast poll or 'continuous push' mode effectively doubles the bandwidth for X baudrate. tx-rx-rx-rx-rx-rx instead of tx-rx-tx-rx-tx-rx

It sounds like you need to figure out how to set the baudrate in the ecu. Subaru has a SSM routine that you can write the baudrate to, then update the baudrate in the logger to match. If the bmw ecu is capable of a higher baudrate, it may have something similar.

_________________
Please do not send me support questions via PM, use the forum instead!


Top
 Profile  
 
 Post subject: Re: How does 'fast polling' work?
PostPosted: Thu Sep 13, 2012 2:41 pm 
Offline
Senior Member

Joined: Fri Feb 10, 2006 7:04 pm
Posts: 2661
Location: RIP
Thanks.

If ISO 14230 isn't good to datalog with, what do you recommend? I've attached the Swedish version of ISO 14230 implementation standard and it looks like the command syntax is similar. Is there anything in there to allow tx rx rx rx rx instead of tx rx tx rx tx rx?


You do not have the required permissions to view the files attached to this post.

_________________
MS41 Project Leader & Co-Developer (2012 - 2023)
MS41.3 https://sites.google.com/site/openms41/custom-code---ms41-3
MS41 ECU Portal https://sites.google.com/site/openms41/ms41-ecu-portal


Top
 Profile  
 
 Post subject: Re: How does 'fast polling' work?
PostPosted: Thu Sep 13, 2012 3:57 pm 
Offline
Senior Member

Joined: Fri Feb 10, 2006 7:04 pm
Posts: 2661
Location: RIP
I believe this is valuable?
http://markgardnergibson.com/BMW/protocol.html

Whoops, this thread is getting off-topic. I'll stop.

_________________
MS41 Project Leader & Co-Developer (2012 - 2023)
MS41.3 https://sites.google.com/site/openms41/custom-code---ms41-3
MS41 ECU Portal https://sites.google.com/site/openms41/ms41-ecu-portal


Top
 Profile  
 
 Post subject: Re: How does 'fast polling' work?
PostPosted: Thu Sep 13, 2012 11:18 pm 
Offline
RomRaider Developer

Joined: Wed May 20, 2009 9:49 pm
Posts: 7314
Location: Canada eh!
Well the Subaru ECU uses some KWP commands and it's own SSM protocol over the same K-Line. It seems that the BMW ECU is similar in that respect.

Do you have a Openport 2.0 cable?


Top
 Profile  
 
 Post subject: Re: How does 'fast polling' work?
PostPosted: Fri Sep 14, 2012 12:51 pm 
Offline
Senior Member

Joined: Fri Feb 10, 2006 7:04 pm
Posts: 2661
Location: RIP
I don't but I plan on getting one. How can I help if I had one? I saw your thread where you were wanted to add support for other protocols into RomRaider. If I can help with that, let me know.

_________________
MS41 Project Leader & Co-Developer (2012 - 2023)
MS41.3 https://sites.google.com/site/openms41/custom-code---ms41-3
MS41 ECU Portal https://sites.google.com/site/openms41/ms41-ecu-portal


Top
 Profile  
 
 Post subject: Re: How does 'fast polling' work?
PostPosted: Sun Sep 16, 2012 1:59 pm 
Offline
Moderator

Joined: Wed Nov 22, 2006 10:23 pm
Posts: 2565
That page on BMW protocol needs more detail about exactly what commands the ECU supports... presumably there is more to be learned, but it will probably require further study of the ROM code, or a lucky discovery/distribution of a BMW internal document.

Subaru's protocol, SSM, has a request for reading a set of addresses once, and a slightly different request (in the header you change a 0 to a 1, or vice versa) to read a set of addresses repeatedly with no further commands. I suspect that BMW's ECU supports something like that, just because it's so much more useful than the tx/rx,tx/rx,tx/rx way of doing things, but it's a question that can only be answered by someone deeply familiar with the BMW ECU software.

_________________
2005 Legacy GT w/ ATP 3076, IWG, MBC, BCS, BC 272, LC, FFS, OMG
Please don't send questions via PM. Post a thread and send me a link to it instead. Thanks!


Top
 Profile  
 
 Post subject: Re: How does 'fast polling' work?
PostPosted: Mon Sep 17, 2012 11:03 am 
Offline
Senior Member

Joined: Fri Feb 10, 2006 7:04 pm
Posts: 2661
Location: RIP
NSFW wrote:
but it's a question that can only be answered by someone deeply familiar with the BMW ECU software.

Yeah, I agree.

_________________
MS41 Project Leader & Co-Developer (2012 - 2023)
MS41.3 https://sites.google.com/site/openms41/custom-code---ms41-3
MS41 ECU Portal https://sites.google.com/site/openms41/ms41-ecu-portal


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 7 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