Special direct value output request

Open a thread for a question about the simulator control software.
If you cannot receive any data in the input setup use the upper two forums!

Re: Special direct value output request

Postby tronicgr » Mon 7. May 2012, 05:33

Hey, Nice idea..!!!

And looks simple enough to retrieve the data! :o

protocol data elm327.gif
protocol data elm327.gif (4.46 KiB) Viewed 5880 times


I'll give it a try!

Just a quick question: It it using 9600bps or 38400bps serial speed???

Thanos
User avatar
tronicgr
 
Posts: 624
Images: 11
Joined: Tue 20. Mar 2012, 22:10
Location: San Diego, CA
Has thanked: 130 times
Been thanked: 50 times

Re: Special direct value output request

Postby sirnoname » Mon 7. May 2012, 14:09

9600

Not all AT commands are implemented, I only choose the ones which are used by other software.
Commands which are not implemented give back "?".
I think also there is a command for increasing the port speed but did not see which it is ...
If a answer is correct or did help you for a solution, please use the solve button.
User avatar
sirnoname
Site Admin
 
Posts: 1829
Images: 45
Joined: Thu 1. Sep 2011, 22:02
Location: Munich, Germany
Has thanked: 35 times
Been thanked: 128 times

Re: Special direct value output request

Postby tronicgr » Mon 7. May 2012, 15:14

Yes I seen that... we don't need AT commands for this anyway. They are mostly used for diagnostic reasons. Maybe just a ATZ at start :lol:

So I just send "01 0C" and I get back "01 0C AA BB" where AA BB is the 2byte data for the rpm for example. Pretty simple! ;)

Well, 9600 is enough to start experimenting. But 38400bps would be even better! My dashboard currently uses 115.200bps and has only 10ms delay in the USO parser... 100 times per second refresh rate!

Thanos
User avatar
tronicgr
 
Posts: 624
Images: 11
Joined: Tue 20. Mar 2012, 22:10
Location: San Diego, CA
Has thanked: 130 times
Been thanked: 50 times

Re: Special direct value output request

Postby tronicgr » Wed 9. May 2012, 15:32

I did some tests on Monday, could speak to the ELM327 AT commands, but I still get "?" when requesting values... I also was trying to disable the LineFeed but I guess isn't supported AT command.

Arduino: "atz"
ELM237: "ELM327v1.4" LF ">"

Arduino: "ate0"
ELM237: "OK" LF ">"

Arduino: "atl0"
ELM237: "?" LF ">"

Arduino: "010C"
ELM237: "?" LF ">"

:evil:

I'll keep trying...

For the baud rate it should be the "ATBRD hh" where hh is the baud rate divisor. I don't know what value should I use to get 38400bps...

*Edit: Found the baud divisor... "68" in HEX ... 4000000 / 104 = 38461 (where 4000000 is the clock rate of the ELM327) :D

Thanos
User avatar
tronicgr
 
Posts: 624
Images: 11
Joined: Tue 20. Mar 2012, 22:10
Location: San Diego, CA
Has thanked: 130 times
Been thanked: 50 times

Re: Special direct value output request

Postby sirnoname » Wed 9. May 2012, 22:29

atl1 was wrong programmed, atl0 and 010c is working here. 010c must be without at ;)
By the way one thread above it works at your side.
I have added the baudrate code now but I am rounding to common values.
If a answer is correct or did help you for a solution, please use the solve button.
User avatar
sirnoname
Site Admin
 
Posts: 1829
Images: 45
Joined: Thu 1. Sep 2011, 22:02
Location: Munich, Germany
Has thanked: 35 times
Been thanked: 128 times

Re: Special direct value output request

Postby antenna » Tue 10. Jul 2012, 19:30

Forgive the intrusion, can you explain me how did you send the command with arduino? i've tried in first place with a simple code found on the web but i wasn't able to view the result because opening the serial monitor giving the error that com port was already occupied. I'm using arduino uno r3.
Thanks.
antenna
 
Posts: 5
Images: 0
Joined: Sat 2. Jun 2012, 18:57
Has thanked: 0 time
Been thanked: 0 time

Re: Special direct value output request

Postby tronicgr » Wed 11. Jul 2012, 16:07

Well, I didn't want to use software serial monitor, I used external data packet analyzer:

http://www.ikalogic.com/ikalogic-products/scanalogic-2/

When I have a working version of the OBDII arduino dashboard will post it for everyone to try it or modify it to their needs.


Thanos
User avatar
tronicgr
 
Posts: 624
Images: 11
Joined: Tue 20. Mar 2012, 22:10
Location: San Diego, CA
Has thanked: 130 times
Been thanked: 50 times

Previous

Return to Converter questions

Who is online

Users browsing this forum: No registered users and 2 guests

cron