Page 23 of 109

Re: ELM327 Software Development

Posted: Mon Oct 14, 2013 9:58 pm
by Jayme
0.18 =

Code: Select all

[22:58:48:366]   Attempting to Connect to Comport...
[22:58:48:378]   Searching for Device...
[22:58:49:208]   ELM Device Successfully Found!
[22:58:49:211]   Checking ELM Status..
[22:58:49:214]   ELM is Idle
[22:58:49:215]   Disabling Echo...
[22:58:49:224]   Echo Disabled Successfully!
[22:58:49:225]   Checking ELM Status..
[22:58:49:226]   ELM is Idle
[22:58:49:226]   Disabling LineFeed...
[22:58:49:242]   LineFeed Disabled Successfully!
[22:58:49:243]   Checking ELM Status..
[22:58:49:244]   ELM is Idle
[22:58:49:246]   Enabling Headers...
[22:58:49:256]   Headers Enabled Successfully!
[22:58:49:257]   Checking ELM Status..
[22:58:49:258]   ELM is Idle
[22:58:49:259]   Allowing Long Frames...
[22:58:49:272]   Long Messages Enabled!
[22:58:49:273]   Checking ELM Status..
[22:58:49:274]   ELM is Idle
[22:58:49:275]   Setting Timeout...
[22:58:49:288]   Timeout Set Successfully!
[22:58:49:289]   Checking ELM Status..
[22:58:49:290]   ELM is Idle
[22:58:49:291]   Setting CAN 11Bit 500Kb Protocol...
[22:58:49:303]   Protocol Set Successfully!
[22:58:49:305]   Checking ELM Status..
[22:58:49:306]   ELM is Idle
[22:58:49:307]   Disabling CAN Auto Format...
[22:58:49:320]   CAN Auto Format Disabled!
[22:58:49:321]   Checking ELM Status..
[22:58:49:322]   ELM is Idle
[22:58:49:323]   Setting CAN Error Format...
[22:58:49:335]   CAN Auto Format Set!
[22:58:49:337]   Checking ELM Status..
[22:58:49:352]   ELM is Idle
[22:58:49:353]   Connection Established!
[22:58:49:384]   Checking Input Voltage..
[22:58:49:399]   Voltage Found!
[22:58:49:402]   Checking ELM Status..
[22:58:49:403]   ELM is Idle

0.19=

Code: Select all

[22:58:02:446]   Attempting to Connect to Comport...
[22:58:02:454]   Searching for Device...
[22:58:03:282]   ELM Device Successfully Found!
[22:58:03:286]   Checking ELM Status..
[22:58:03:287]   ELM is Idle
[22:58:03:288]   Requesting Fast 115200 Baud..
[22:58:03:298]   ELM Device Accepted Baud, Check Communications..

Re: ELM327 Software Development

Posted: Mon Oct 14, 2013 10:07 pm
by Jayme
also...I cannot fathom why but after trying both of those versions, neither of my remotes work at all now... car wont lock or unlock off the remote :S

Re: ELM327 Software Development

Posted: Mon Oct 14, 2013 10:23 pm
by Tazzi
Jayme wrote:also...I cannot fathom why but after trying both of those versions, neither of my remotes work at all now... car wont lock or unlock off the remote :S
Umm? Im not sure mate?! That communication is only to the cable, doesnt send anything to the car? Its all 'AT' commands which are directly for the elm device nothing else.

Try a simple fix, unhook the battery, wait a couple minutes and hook her back up. Should reset everything.


**
On v0.19, once its the elm has sent the OK for the new baud rate set this is what is does next.. this is where nothing happened.

Code: Select all

   SerialPort1.Close()
        SerialPort1.BaudRate = 115200
        SerialPort1.Open()
        Dim CheckforELMComms As String = ""
        Dim CheckForOK As String = ""
       
            CheckforELMComms = SerialPort1.ReadLine()
            If CheckResponse.Contains("ELM") Then 
               SetRichTextBox_ThreadSafe("Elm Fast Baud Communication Achieved!", RichTextBoxConnectionActionLog)
            Else
                MessageBox.Show("ELM did not respond to new Baud Rate! Ending Communication")
                Exit Sub
            End If
So going by that code, you must have received a message box saying that the elm did not respond to the new baud rate since it didnt get any response back. Soo Im not sure what the go is on your keys? Nothings sent to the car?

The elm sends the "ELM" response after 78ms, I would have thought the application would close port, set new baud and reopen within that time but maybe not.

Elm factsheet says this "78ms" can be adjusted using ATBRT hh. So say.. maybe try 350ms = 350/5 = 70 = hex 46

Ill update later. Jayme, hope you suss out whatevers going on.

Re: ELM327 Software Development

Posted: Mon Oct 14, 2013 10:26 pm
by Jayme
I did press all the read dtc and read engine data buttons, and listened to chatter as well while it was connected but didnt appear to do much so I gave up. wasnt sure if maybe somethin got sent over the data bus that did it... used remote to unlock car plugged in played with those 2 versions, unpluggeed elm, closed door hit lock nothing..... try other remote nothing. had to lock doors with the key. battery is unhooked at the moment, will go try in the morning and see if its good now. if not I have no idea w hat im gonna do to get the remotes wokring agian !

Re: ELM327 Software Development

Posted: Mon Oct 14, 2013 10:39 pm
by Tazzi
Hmm.. I dunno! The read functions (if using CAN) would send off with the header 7E0, and the engine data read sends "010C" and 03 for fault requests. Just the standard generic OBD2 requests.
How did the battery off/on go?

Re: ELM327 Software Development

Posted: Tue Oct 15, 2013 6:21 am
by Jayme
thank goodness after spending all night powered down, the remotes woork again... had me worried for a while.. eek.

yeah I got that message box about the elm didnt respond to the new baud rate....

Re: ELM327 Software Development

Posted: Tue Oct 15, 2013 7:37 am
by VX L67 Getrag
Good to hear remotes working again Jayme, weird why it would do it!

Ver 0.19 works perfect with no more errors & not 1 buffer full message!

Now need to get a filter to catch odd commands!

AWESOME WORK!!!

Re: ELM327 Software Development

Posted: Tue Oct 15, 2013 7:49 am
by Jayme
so I wonder why mine wouldnt switch to the new baud rate? could be somehting to do with it being a bluetooth elm that hte bluetooth module died on, so I patched in an FDTI serial interface :P

Re: ELM327 Software Development

Posted: Tue Oct 15, 2013 8:09 am
by VX L67 Getrag
Yeah Not sure Jayme, only problem I have now with ho quick it fills the info box in OBDII prog 0.19 I can't copy all the info, if it's not too big I can copy it direct as txt, but if it's a bit bigger I have to copy as rtf, but then I tried logging the commands again with HPT logging & clear dtc & it just locked obdII program & said not responding & wouldn't copy any of the data & I had to ctr/alt/del & stop process!

Re: ELM327 Software Development

Posted: Tue Oct 15, 2013 9:31 am
by Tazzi
Ah had me a bit worried there too jayme! Glad its fine. On the topic of bluetooth elms, that would be the problem right there!
The boys at carmodder had the same issue, something about the elm device switching rates but the bluetooth part is fixed and the whole connection goes haywire and locks up the cars comms? Same thing happened on a VE.

Woohoooo! Good to see it logging smoothly!!
But Im trying to think why the program would lockup and stop working after you hitting the clear dtc button, shouldnt have been a problem? The program has fault catchs throughout all of the monitoring section so any problems should have been caught and delt with.

Has to be something about the serialport reading.. maybe elm got overwhelmed and sent spastic data? Dunno.. Ill add a filter later today and see how we go from there!

Could try clicking the clear dtc then starting the program? cant imagine itll catch anything but worth a try.