VEMS Community Forum

VEMS => Configuration => Topic started by: scottieb on December 20, 2007, 11:50:23 AM

Title: Struggling to get vems to talk.
Post by: scottieb on December 20, 2007, 11:50:23 AM
Hi All,

Tried to get my vems board to talk to megatune last night, no luck.

This is what I did.

Downloaded the latest vems software package form the forum.

Unzipped it and executed Megatune.

Connected the vems board to a 12V supply. Checked I have 5V coming out of the main regulator. Connected the RS232 to the vems board. Checked I have data going into pin 13 of U19(MAX232) (using hyperterminal)

When I power the board up I get something out of TX0, but not a lot.

In megatune I set the coms to the correct port and baud rate of 9600. when I press test it says no response.

What am I missing?

The board is alive because if I use hyperterminal and set the baud rate to 9600, when I press ââ,¬Ëœoââ,¬â,,¢ I get a load of garbage back, but its consistent garbage.

Help please!

Regards,

Scott
Title: Re: Struggling to get vems to talk.
Post by: scottieb on December 20, 2007, 06:35:51 PM
Anyone? :o)
Title: Re: Struggling to get vems to talk.
Post by: antonch on December 20, 2007, 08:00:05 PM
Quote from: scottieb on December 20, 2007, 06:35:51 PM
Anyone? :o)

Have you tried connecting to it via terminal--there is a program in the package for that. I think if you type Man you should get somethign descent back. Are you using USB to serial connector?
Title: Re: Struggling to get vems to talk.
Post by: scottieb on December 20, 2007, 08:13:45 PM
Normal RS232 port on del laptop. got it to talk through hyperterminal, its telling me it has firmware version 1.0.38 and I have megatune bundled with 1.0.73, so maybe thats the problem?

I've tried to upload the latest firmware but the upgrade-firmware.bat application just says "cannot open com 4" I'm trying to figure out how to change the port now, does anyone know?

Scott
Title: Re: Struggling to get vems to talk.
Post by: scottieb on December 20, 2007, 08:50:08 PM
sorted now, all is well, now to try and get the wideband working, watch this space!
Title: Re: Struggling to get vems to talk.
Post by: [email protected] on December 20, 2007, 09:00:26 PM
I guess you've found out that the batch file needs to be edited... :)
Title: Re: Struggling to get vems to talk.
Post by: scottieb on December 21, 2007, 09:56:04 AM
Yes, Should have thought about it a bit more before posting really  ::)

Got the wideband calibrated and working a treat in the terminal, but how do i get it to display in megatune? I have a lambda gueage on the screen but it is reading min, and the heater is not on either?

Regards,

Scott
Title: Re: Struggling to get vems to talk.
Post by: Volvo850r on December 21, 2007, 12:20:29 PM
so in the end, was the problem with not using the correct firmware matched to the version of megatune you had? and then it was just a case of changing the com port value in "upload-firmware... bat" so you could put on the latest firmware.

Title: Re: Struggling to get vems to talk.
Post by: [email protected] on December 21, 2007, 12:30:34 PM
Quote from: scottieb on December 21, 2007, 09:56:04 AM
Got the wideband calibrated and working a treat in the terminal, but how do i get it to display in megatune? I have a lambda gueage on the screen but it is reading min, and the heater is not on either?

The wideband sensor's heater is not powered until the engine is running, when you do the mde02 command in terminal you are forcing the heater on.

So if you want to force it to see things in MegaTune:

Make sure that MegaTune is closed and open Terminal, connect then type: Manmde02
then type: byebye

Close your terminal program and open MegaTune, after the heater has warmed up you'll see the lambda scale reading very lean.

Rob
Title: Re: Struggling to get vems to talk.
Post by: [email protected] on December 21, 2007, 12:31:51 PM
Quote from: Volvo850r on December 21, 2007, 12:20:29 PM
so in the end, was the problem with not using the correct firmware matched to the version of megatune you had? and then it was just a case of changing the com port value in "upload-firmware... bat" so you could put on the latest firmware.

You should only use the MegaTune that comes with the firmware release.
Title: Re: Struggling to get vems to talk.
Post by: scottieb on December 21, 2007, 01:17:55 PM
Quote from: Volvo850r on December 21, 2007, 12:20:29 PM
so in the end, was the problem with not using the correct firmware matched to the version of megatune you had? and then it was just a case of changing the com port value in "upload-firmware... bat" so you could put on the latest firmware.



Correct.

So i take it megatune gets changed to accomodate new features everytime you do a firmware upgrade?
Title: Re: Struggling to get vems to talk.
Post by: scottieb on December 21, 2007, 01:19:21 PM
Quote from: [email protected] on December 21, 2007, 12:30:34 PM
Quote from: scottieb on December 21, 2007, 09:56:04 AM
Got the wideband calibrated and working a treat in the terminal, but how do i get it to display in megatune? I have a lambda gueage on the screen but it is reading min, and the heater is not on either?

The wideband sensor's heater is not powered until the engine is running, when you do the mde02 command in terminal you are forcing the heater on.

So if you want to force it to see things in MegaTune:

Make sure that MegaTune is closed and open Terminal, connect then type: Manmde02
then type: byebye

Close your terminal program and open MegaTune, after the heater has warmed up you'll see the lambda scale reading very lean.

Rob

ok nice one rob, i'll give that a try.

Is there a  way of getting an analogue output from the WBO2 for a guage?

Scott
Title: Re: Struggling to get vems to talk.
Post by: [email protected] on December 21, 2007, 02:23:02 PM
No, there is work underway to output data via RS232 so that the Wideband Gauge can display data from the VEMS.

Essentially what happens this time of year is that all the northern europeans stop playing with their Volvos and Audis and start developing the software again.
Title: Re: Struggling to get vems to talk.
Post by: scottieb on December 21, 2007, 03:07:11 PM
lol, its to cold even for them!

we it least it can be acessed by RS232, i suppose i could just read it out with a micro then display it.

... too many projects on the go at once!
Title: Re: Struggling to get vems to talk.
Post by: [email protected] on December 22, 2007, 08:42:14 AM
Quote from: scottieb on December 21, 2007, 01:17:55 PM
Correct.

So i take it megatune gets changed to accomodate new features everytime you do a firmware upgrade?

Yes, there is a file vemsv3.ini that defines the memory structure for all the features in the firmware, obviously as things are put in, and other settings taken out the structure changes.