|
RomRaider
Documentation
Community
Developers
|
|
It is currently Sat May 25, 2013 1:17 am
|
|
Page 1 of 1
|
[ 9 posts ] |
|
| Author |
Message |
|
mrf582
|
Post subject: How does 'fast polling' work? Posted: Thu Sep 13, 2012 10:56 am |
|
 |
| Experienced |
Joined: Fri Feb 10, 2006 7:04 pm Posts: 947 Location: Pittsburgh, PA
|
|
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!
|
|
| Top |
|
 |
|
Sasha_A80
|
Post subject: Re: How does 'fast polling' work? Posted: Thu Sep 13, 2012 12:44 pm |
|
 |
| Experienced |
Joined: Mon Jan 19, 2009 2:31 pm Posts: 974 Location: Saratov, 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: 480 Location: Pennsyltucky
|
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.
_________________ RomRaider IRC Chat: http://webchat.freenode.net/?channels=romraider Subaru Alpha Definition Git Repo & Instructions: viewtopic.php?f=34&t=8635&p=82450#p82450
|
|
| Top |
|
 |
|
mrf582
|
Post subject: Re: How does 'fast polling' work? Posted: Thu Sep 13, 2012 2:41 pm |
|
 |
| Experienced |
Joined: Fri Feb 10, 2006 7:04 pm Posts: 947 Location: Pittsburgh, PA
|
|
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.
|
|
| Top |
|
 |
|
mrf582
|
Post subject: Re: How does 'fast polling' work? Posted: Thu Sep 13, 2012 3:57 pm |
|
 |
| Experienced |
Joined: Fri Feb 10, 2006 7:04 pm Posts: 947 Location: Pittsburgh, PA
|
|
| 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: 3667 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 |
|
 |
| Experienced |
Joined: Fri Feb 10, 2006 7:04 pm Posts: 947 Location: Pittsburgh, PA
|
|
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.
|
|
| 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: 2273
|
|
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, LC, FFS, OMG Please don't send me tuning questions via PM - use the forums instead. Thanks!
|
|
| Top |
|
 |
|
mrf582
|
Post subject: Re: How does 'fast polling' work? Posted: Mon Sep 17, 2012 11:03 am |
|
 |
| Experienced |
Joined: Fri Feb 10, 2006 7:04 pm Posts: 947 Location: Pittsburgh, PA
|
NSFW wrote: but it's a question that can only be answered by someone deeply familiar with the BMW ECU software. Yeah, I agree.
|
|
| Top |
|
 |
|
Page 1 of 1
|
[ 9 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 1 guest |
|
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
|
|