follow ft86club on our blog, twitter or facebook.
FT86CLUB
Ft86Club
Delicious Tuning
Register Garage Community Calendar Today's Posts Search

Go Back   Toyota GR86, 86, FR-S and Subaru BRZ Forum & Owners Community - FT86CLUB > Technical Topics > Software Tuning

Software Tuning Discuss all software tuning topics.

Register and become an FT86Club.com member. You will see fewer ads

User Tag List

Reply
 
Thread Tools Search this Thread
Old 11-08-2013, 07:42 PM   #225
nelsmar
Senior Member
 
Join Date: Feb 2013
Drives: FR-S
Location: Phoenix
Posts: 2,605
Thanks: 733
Thanked 2,361 Times in 1,031 Posts
Mentioned: 345 Post(s)
Tagged: 3 Thread(s)
Quote:
Originally Posted by jamesm View Post
They're not fast enough. Trust me. I tried it.
Quote:
Originally Posted by vgi View Post
interesting, according to this
it's nxp arm7 60 MHz 32 bit microprocessor, which should be fairly fast.

i'm thinking if kill $25 cable i wouldn't be as disappointed as killing $170 cable
Yes they have a fast CPU. And so does your desktop computer. However calculating complex math formulas is a bitch with MS Calculator.

It really comes down to how it was programmed, and a lot of these cables out there such as the ELM327 will take your request, format it, send it, receive it, process it, and give you data back. This all has to be programmed. Sometimes people use inefficient code, sometimes they are processing the data vas just passthrough. Sometime its just such horrible code it runs slow as can be. And sometimes they have them set on a timer to send a request every so many seconds and buffer etc.

Sure the TJA1050 has the abillity to run at 500K connection speed when using ISO15765 connections... but that doesnt mean the cpu was designed to poll efficiently. You don't need a ton of CPU power to poll data and pass through. The common issue with the Chinese cables is that they are constantly made with "hacked up" firmwares with half assed code, or half-attempted reverse engineered code from other cables. Some of them are buggy, some of them arent. Its hit and miss.

There is a series of KLine based cables that will let you poll and I imagine they will let you do the fast poll in romraider (i have never used rom raider so sorry if im off a bit) which lets you poll quickly w/ pass through.

The ELM series sends a PID request and awaits a response, then sends the next one, and the next one... once it gets all its PID's responded to it will start the cycle over.

However using SSM over KLine / 15765 you can send a list of memory points to ask for and tell it to repeat indefinitely. The ECU will respond with the values of these memory spaces as quick as the ECU is either programed to, or to the bus speed. And if you have a poorly optimized code set that is translating the data, you will get a nice bottle neck. However if all of the code is being done in romraider for translation etc and the Kline cables are being 100% pass through (note the mention of pass through multiple times here!) then you can have less bottlenecks holding you back.




Thanks everyone for the links / info, ill read more when i catch up on this project at the office. After that ill try experimenting again. I am curious to see how much I can get out of this little 16mhz atmega 328. But I'll be ordering a higher 40+mhz PIC or ARM cpu as a backup this weekend. I am more concerned with me writing data to my display and SD card than the actual polling rate. As long as the math is done with efficiency in mind you should be able to poll quite a bit using a slower CPU. It sucks I used some CAN code for sending raw 15765 data to test and it kept causing a weird issue with my car and tossing a connection error CEL. I then found out after scanning every last line that the original dev put a small comment block mentioning he had math logic programmed for a 20MHz clock... -.- No wonder I was having issues. *sigh*. Ill probably just write something from scratch so that way I don't waste my time again.

And it was mentioned patching the ECU, does anyone have any info or even posts that even mention something like this that I could read? I saw something on the RR forums about patching for higher speed, but I don't know if it was simply to send read request, or if it was for extended, or just purely for performance.

Thanks for the help guys!
__________________
When I grow up, I wanna be God.
My flickr - Canibeat
Local magazine scout
Old Setup: Vortech Supercharged 360WHP/262WTQ @ 11.5psi
My build thread - WTF happened to nelsmar's car thread
nelsmar is offline   Reply With Quote
Old 11-09-2013, 12:14 AM   #226
jamesm
Banned
 
Join Date: Mar 2013
Drives: 2013 FR-S
Location: Orlando, FL
Posts: 2,929
Thanks: 1,166
Thanked 2,294 Times in 1,180 Posts
Mentioned: 313 Post(s)
Tagged: 4 Thread(s)
Quote:
Originally Posted by nelsmar View Post
Yes they have a fast CPU. And so does your desktop computer. However calculating complex math formulas is a bitch with MS Calculator.

It really comes down to how it was programmed, and a lot of these cables out there such as the ELM327 will take your request, format it, send it, receive it, process it, and give you data back. This all has to be programmed. Sometimes people use inefficient code, sometimes they are processing the data vas just passthrough. Sometime its just such horrible code it runs slow as can be. And sometimes they have them set on a timer to send a request every so many seconds and buffer etc.

Sure the TJA1050 has the abillity to run at 500K connection speed when using ISO15765 connections... but that doesnt mean the cpu was designed to poll efficiently. You don't need a ton of CPU power to poll data and pass through. The common issue with the Chinese cables is that they are constantly made with "hacked up" firmwares with half assed code, or half-attempted reverse engineered code from other cables. Some of them are buggy, some of them arent. Its hit and miss.

There is a series of KLine based cables that will let you poll and I imagine they will let you do the fast poll in romraider (i have never used rom raider so sorry if im off a bit) which lets you poll quickly w/ pass through.

The ELM series sends a PID request and awaits a response, then sends the next one, and the next one... once it gets all its PID's responded to it will start the cycle over.

However using SSM over KLine / 15765 you can send a list of memory points to ask for and tell it to repeat indefinitely. The ECU will respond with the values of these memory spaces as quick as the ECU is either programed to, or to the bus speed. And if you have a poorly optimized code set that is translating the data, you will get a nice bottle neck. However if all of the code is being done in romraider for translation etc and the Kline cables are being 100% pass through (note the mention of pass through multiple times here!) then you can have less bottlenecks holding you back.




Thanks everyone for the links / info, ill read more when i catch up on this project at the office. After that ill try experimenting again. I am curious to see how much I can get out of this little 16mhz atmega 328. But I'll be ordering a higher 40+mhz PIC or ARM cpu as a backup this weekend. I am more concerned with me writing data to my display and SD card than the actual polling rate. As long as the math is done with efficiency in mind you should be able to poll quite a bit using a slower CPU. It sucks I used some CAN code for sending raw 15765 data to test and it kept causing a weird issue with my car and tossing a connection error CEL. I then found out after scanning every last line that the original dev put a small comment block mentioning he had math logic programmed for a 20MHz clock... -.- No wonder I was having issues. *sigh*. Ill probably just write something from scratch so that way I don't waste my time again.

And it was mentioned patching the ECU, does anyone have any info or even posts that even mention something like this that I could read? I saw something on the RR forums about patching for higher speed, but I don't know if it was simply to send read request, or if it was for extended, or just purely for performance.

Thanks for the help guys!
i'm pretty sure the patches open up direct access to the parameters, i.e. straight from ram.
jamesm is offline   Reply With Quote
Old 11-09-2013, 12:53 AM   #227
StormTrooper
Senior Member
 
StormTrooper's Avatar
 
Join Date: Mar 2013
Drives: Pavement MT GR86
Location: The Berg Oregon
Posts: 959
Thanks: 146
Thanked 207 Times in 150 Posts
Mentioned: 7 Post(s)
Tagged: 0 Thread(s)
Garage
Simple questions from a semi literate user, no programming knowledge.

How is the compatibility of ecuflash and RR with a 64bit OS?

2-3 years ago logging and flashing was a real pita unless you had a copy of xp and laptop segregated from the net for 10 years.

Trying to log with my lc1 only made it impossible.


Thanks,
Matt
__________________
GR86 MT premium
StormTrooper is offline   Reply With Quote
Old 11-09-2013, 01:21 AM   #228
Td-d
Garden variety obsessive
 
Join Date: Oct 2013
Drives: 2009 Sti Hatch; 2015 Audi RSQ3
Location: South Africa
Posts: 532
Thanks: 54
Thanked 448 Times in 245 Posts
Mentioned: 74 Post(s)
Tagged: 2 Thread(s)
Quote:
Originally Posted by StormTrooper View Post
Simple questions from a semi literate user, no programming knowledge.

How is the compatibility of ecuflash and RR with a 64bit OS?
As long as you are running 32bit Java, you will be fine.
Td-d is offline   Reply With Quote
Old 11-09-2013, 01:24 AM   #229
Td-d
Garden variety obsessive
 
Join Date: Oct 2013
Drives: 2009 Sti Hatch; 2015 Audi RSQ3
Location: South Africa
Posts: 532
Thanks: 54
Thanked 448 Times in 245 Posts
Mentioned: 74 Post(s)
Tagged: 2 Thread(s)
Quote:
Originally Posted by jamesm View Post
i'm pretty sure the patches open up direct access to the parameters, i.e. straight from ram.
Straight from the release notes for the Ecuflash beta that enables the CAN logging:
Quote:
Support for fast RAM parameters on Subaru CAN vehicles (assuming ROM patch has been made). just use the known RAM parameter ID (0xFFxxxx) and the OP2 will do the rest. reading of multibyte RAM parameters is sped up by the ROM patch which allow reading up to 4 bytes with a specially encoded 3-byte parameter request. due to current Subaru output buffer limitations, only 80 bytes can be returned in a single request, so only 20 4-byte params can be read at a time. i will make some changes to the OP2 firmware in the future to issue multiple requests to overcome this 80-byte of data limit.
Td-d is offline   Reply With Quote
Old 11-09-2013, 03:00 AM   #230
StormTrooper
Senior Member
 
StormTrooper's Avatar
 
Join Date: Mar 2013
Drives: Pavement MT GR86
Location: The Berg Oregon
Posts: 959
Thanks: 146
Thanked 207 Times in 150 Posts
Mentioned: 7 Post(s)
Tagged: 0 Thread(s)
Garage
Quote:
Originally Posted by Td-d View Post
As long as you are running 32bit Java, you will be fine.
So no then....

i could never get both to like 32bit java with win7 and have the lc1 log....
__________________
GR86 MT premium
StormTrooper is offline   Reply With Quote
Old 11-09-2013, 04:08 AM   #231
Td-d
Garden variety obsessive
 
Join Date: Oct 2013
Drives: 2009 Sti Hatch; 2015 Audi RSQ3
Location: South Africa
Posts: 532
Thanks: 54
Thanked 448 Times in 245 Posts
Mentioned: 74 Post(s)
Tagged: 2 Thread(s)
Quote:
Originally Posted by StormTrooper View Post
So no then....

i could never get both to like 32bit java with win7 and have the lc1 log....
That's odd - I have a netbook running win 7 and I use the MTX (successor to the LC1) - and I never had problems logging.
Td-d is offline   Reply With Quote
Old 11-09-2013, 05:08 AM   #232
StormTrooper
Senior Member
 
StormTrooper's Avatar
 
Join Date: Mar 2013
Drives: Pavement MT GR86
Location: The Berg Oregon
Posts: 959
Thanks: 146
Thanked 207 Times in 150 Posts
Mentioned: 7 Post(s)
Tagged: 0 Thread(s)
Garage
It's been nearly two years but I remember that while I could get the lc1 to log using whatever software it came with it could not be recognized by RR. When I got that to work semi ok by messing with java and other things ecuflash would stop working......
__________________
GR86 MT premium
StormTrooper is offline   Reply With Quote
Old 11-09-2013, 09:41 AM   #233
Td-d
Garden variety obsessive
 
Join Date: Oct 2013
Drives: 2009 Sti Hatch; 2015 Audi RSQ3
Location: South Africa
Posts: 532
Thanks: 54
Thanked 448 Times in 245 Posts
Mentioned: 74 Post(s)
Tagged: 2 Thread(s)
There's been quite a lot of work done on RR in the past two years, including plugins - would be worth a try once the next logging enabled beta is out.
Td-d is offline   Reply With Quote
Old 11-09-2013, 12:08 PM   #234
nelsmar
Senior Member
 
Join Date: Feb 2013
Drives: FR-S
Location: Phoenix
Posts: 2,605
Thanks: 733
Thanked 2,361 Times in 1,031 Posts
Mentioned: 345 Post(s)
Tagged: 3 Thread(s)
So I did a little bit of reading on J2534. This protocol is simply a standardization for cables. It says that a specific connector should be used, and each connector should support the different CAN protocols in the specifications. All vehicles must use one of these protocols. All vehicles must have this plug. All cables must use this plug. All cables must have a windows DLL file that will let you use the pre-specified J2534 API functions such as Connect to ISO9141 Can network. Apply voltage, etc.

Basically it just means you can buy 1 cable and it should plug into all 2006(iirc) or newer vehicles and regardless if they use Kline, or whatever based communication method that one cable will let you simply say "connect with xxxx protocol" and it will connect. Previously each manufacture had custom cables and it was a mess for repair shops to have to buy so many cables.

I actually have all the parts to build a J2534 cable that could be used with RR and everything else, but at this time it wasn't what i was aiming for. But im glad I finally read into what that standard was for!

This also explains why the Chinese cables are so hit or miss. They are just trying to get most of the protocol for specifically allowing connection, and packet transfer. However they are still responsible for communicating with the ECU, buffering data, and sending it back. Knowing the Chinese market... they probably don't put so much time into making sure their cable & dll are performance made. I haven't read into performance requirements in what is needed. However I did find some code someone started for making an open source passthrough cable.

As I am working on a hardware logger I don't need to make something that is J2534 compliant. As my software would be sending my "passthrough" messages directly from my hardware, not a PC. The J2534 is just designed to allow you to send data over a network. And as I don't need something to bridge my hardware to the ECU it doesn't fully apply to me.

Thank god. lol I was starting to wonder if I was going to need to code/fabricate yet another layer into my tool.
__________________
When I grow up, I wanna be God.
My flickr - Canibeat
Local magazine scout
Old Setup: Vortech Supercharged 360WHP/262WTQ @ 11.5psi
My build thread - WTF happened to nelsmar's car thread
nelsmar is offline   Reply With Quote
Old 11-09-2013, 12:09 PM   #235
nelsmar
Senior Member
 
Join Date: Feb 2013
Drives: FR-S
Location: Phoenix
Posts: 2,605
Thanks: 733
Thanked 2,361 Times in 1,031 Posts
Mentioned: 345 Post(s)
Tagged: 3 Thread(s)
For anyone interested in reading more about J2534 here are some API methods:

http://www.drewtech.com/support/J2534/index.html

And an article explaining some of J2534:
http://www.kvaser.com/zh/about-can/r...ndards/51.html
__________________
When I grow up, I wanna be God.
My flickr - Canibeat
Local magazine scout
Old Setup: Vortech Supercharged 360WHP/262WTQ @ 11.5psi
My build thread - WTF happened to nelsmar's car thread
nelsmar is offline   Reply With Quote
The Following User Says Thank You to nelsmar For This Useful Post:
Sportsguy83 (11-09-2013)
Old 11-09-2013, 12:12 PM   #236
nelsmar
Senior Member
 
Join Date: Feb 2013
Drives: FR-S
Location: Phoenix
Posts: 2,605
Thanks: 733
Thanked 2,361 Times in 1,031 Posts
Mentioned: 345 Post(s)
Tagged: 3 Thread(s)
Although now I am interested and half tempted to order an Amtel 32u4 based protoboard and see if I can hack up a quick pass through cable that ecuflash & romraider could use. Ideally I think that processor @ 16mhz would be quick enough for most of the processing...
__________________
When I grow up, I wanna be God.
My flickr - Canibeat
Local magazine scout
Old Setup: Vortech Supercharged 360WHP/262WTQ @ 11.5psi
My build thread - WTF happened to nelsmar's car thread
nelsmar is offline   Reply With Quote
Old 11-09-2013, 12:31 PM   #237
nelsmar
Senior Member
 
Join Date: Feb 2013
Drives: FR-S
Location: Phoenix
Posts: 2,605
Thanks: 733
Thanked 2,361 Times in 1,031 Posts
Mentioned: 345 Post(s)
Tagged: 3 Thread(s)
One more thing to add onto these Chinese cables. You want to know why they are sooooo fast? Because ARM has a series of processors that have built in digital can bus. PIC also has a few units with built in CAN bus as well. In fact one of the new Arduino spec's has included one of these ARM processors with it. They included it so they can communicate in "harsh" environments. CAN communications are designed to work in environments where there may be lots of RF interference, voltage changes, and other bits that can mess with communications. This can be apealing for a number of other markets so some ARM manufactures started adding in this technology to their processors.

So you can either

A) do what i did which was get a cheap micro, then get a can bus micro, then get a can bus transceiver (translates the voltage to a digital digital signal).
B) Purchase a micro with a built in can bus controller.

The processors with the built in controllers are really not much more money. And typically are actually cheaper than buying all 3 chips. This also allows you to solder less, use less PCB, and have awesome marketing information to brag about stating you have a high speed processor. We all know that goes with marketing... So the processor is worthless, not needed, and is only there due tot he connivence of the processor.

I actually almost bought one of the ARM based proto boards just because it had a built in CAN controller, and may in fact do that down the road because really they are quite cheap, and make fabrication a lot easier since it removes an entire chip from my build!


I figured I would just in more info since when I was reading and trying to learn I really couldn't find jack SHIT on information on any of this. Its kind of a grey area where no one seem's to share much information. And the fact that the full spec's for J2534 costs money... that isn't helping anyone.
__________________
When I grow up, I wanna be God.
My flickr - Canibeat
Local magazine scout
Old Setup: Vortech Supercharged 360WHP/262WTQ @ 11.5psi
My build thread - WTF happened to nelsmar's car thread
nelsmar is offline   Reply With Quote
Old 11-09-2013, 12:56 PM   #238
xjohnx
Grip>Slip
 
xjohnx's Avatar
 
Join Date: Jun 2012
Drives: 13 SWP BRZ Ltd - Innovate Powered!
Location: RVA
Posts: 3,563
Thanks: 656
Thanked 1,717 Times in 1,031 Posts
Mentioned: 45 Post(s)
Tagged: 3 Thread(s)
Quote:
Originally Posted by nelsmar View Post
I actually almost bought one of the ARM based proto boards just because it had a built in CAN controller, and may in fact do that down the road because really they are quite cheap, and make fabrication a lot easier since it removes an entire chip from my build!
Pardon my ignorance, but what kind of things could you make with this?
xjohnx is offline   Reply With Quote
 
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Close iJason Member's Car Journals 1 08-04-2013 08:26 PM
Close pche Engine, Exhaust, Bolt-Ons 3 08-04-2013 02:04 AM
Sorry. please close. finch1750 Scion FR-S / Toyota 86 GT86 General Forum 1 07-31-2013 01:00 AM
please close abutterman Wheels and Tires 0 07-05-2013 09:40 AM


All times are GMT -4. The time now is 01:15 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
User Alert System provided by Advanced User Tagging v3.3.0 (Lite) - vBulletin Mods & Addons Copyright © 2026 DragonByte Technologies Ltd.

Garage vBulletin Plugins by Drive Thru Online, Inc.