|
RomRaider
Documentation
Community
Developers
|
|
Page 1 of 1
|
[ 9 posts ] |
|
| Author |
Message |
|
mrf582
|
Post subject: How does 'fast polling' work? Posted: Thu Sep 13, 2012 10:56 am |
|
 |
| 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 |
|
 |
|
Sasha_A80
|
Post subject: Re: How does 'fast polling' work? Posted: Thu Sep 13, 2012 12:44 pm |
|
 |
| 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 |
|
 |
|
Merp
|
Post subject: Re: How does 'fast polling' work? Posted: Thu Sep 13, 2012 12:49 pm |
|
 |
| Experienced |
 |
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 |
|
 |
|
mrf582
|
Post subject: Re: How does 'fast polling' work? Posted: Thu Sep 13, 2012 2:41 pm |
|
 |
| Senior Member |
Joined: Fri Feb 10, 2006 7:04 pm Posts: 2661 Location: RIP
|
|
| Top |
|
 |
|
mrf582
|
Post subject: Re: How does 'fast polling' work? Posted: Thu Sep 13, 2012 3:57 pm |
|
 |
| Senior Member |
Joined: Fri Feb 10, 2006 7:04 pm Posts: 2661 Location: RIP
|
|
| Top |
|
 |
|
dschultz
|
Post subject: Re: How does 'fast polling' work? Posted: Thu Sep 13, 2012 11:18 pm |
|
 |
| 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 |
|
 |
|
mrf582
|
Post subject: Re: How does 'fast polling' work? Posted: Fri Sep 14, 2012 12:51 pm |
|
 |
| Senior Member |
Joined: Fri Feb 10, 2006 7:04 pm Posts: 2661 Location: RIP
|
|
| Top |
|
 |
|
nsfw
|
Post subject: Re: How does 'fast polling' work? Posted: Sun Sep 16, 2012 1:59 pm |
|
 |
| 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 |
|
 |
|
mrf582
|
Post subject: Re: How does 'fast polling' work? Posted: Mon Sep 17, 2012 11:03 am |
|
 |
| Senior Member |
Joined: Fri Feb 10, 2006 7:04 pm Posts: 2661 Location: RIP
|
|
| Top |
|
 |
|
Page 1 of 1
|
[ 9 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 5 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
|
|