Introducing ElanLogger

Moderators: theelanman, dapinky, nitroman, Specky, clemo, Nige, Dave Eds, Sy V, GeoffSmith, DaveT, Elanlover, muley, Enright, algirdas

Re: Introducing ElanLogger

Postby Bern » Fri 19.01.2018, 16:20

Looking at the code I can see there's a comment about changing the SERIAL_RX_BUFFER_SIZE, I hadn't done that, so I will and try it again.

Though I'm supposed to be working at the moment, so I'll have to try it later!
'90 Elan SE Turbo
'03 Land Rover Discovery TD5
'03 VW Transporter
'03 VW Lupo
'87 Mini
'80ish Kubota B5100E
User avatar
Bern
Fanatic
 
Posts: 291
Joined: Sat 21.05.2016, 19:16
Location: Wells, Somerset, UK

Re: Introducing ElanLogger

Postby matts1972 » Fri 19.01.2018, 16:30

Bern wrote:Looking at the code I can see there's a comment about changing the SERIAL_RX_BUFFER_SIZE, I hadn't done that, so I will and try it again.

Though I'm supposed to be working at the moment, so I'll have to try it later!


Hi Bern,
Yes, you need to change the buffer size. However, you typically would get an "empty" .ecu-file like this if there is not data received on the interface.
ElanLogger closes the file as soon as it does not hear from your car for 3 seconds. So ignition needs to be on before turning on Elanlogger, or else Elanlogger will listen for 3 seconds and then close the .ecu-file that contains nothing but a mostly empty header.
Best regards
Matthias
User avatar
matts1972
Tinkerer
 
Posts: 73
Joined: Wed 10.03.2010, 19:44
Location: Heilbronn, Germany

Re: Introducing ElanLogger

Postby Bern » Fri 19.01.2018, 16:42

Hi Matthias,

Thanks for the reply :-)

I did have the ignition on before turning the logger on, but the engine wasn't running - I started the engine whilst the logger was on - would that make a difference?

I'll try it again tomorrow.

Cheers,

Bern.
'90 Elan SE Turbo
'03 Land Rover Discovery TD5
'03 VW Transporter
'03 VW Lupo
'87 Mini
'80ish Kubota B5100E
User avatar
Bern
Fanatic
 
Posts: 291
Joined: Sat 21.05.2016, 19:16
Location: Wells, Somerset, UK

Re: Introducing ElanLogger

Postby matts1972 » Fri 19.01.2018, 17:00

Bern wrote:Hi Matthias,

Thanks for the reply :-)

I did have the ignition on before turning the logger on, but the engine wasn't running - I started the engine whilst the logger was on - would that make a difference?

I'll try it again tomorrow.

Cheers,

Bern.


Ignition-on will keep the interface talking - so you did the right thing.
There seems to be a connectivity-issue, then. Make sure everything is connected properly. The diode is for protection only, but the two 100 ohm resistors are required to get data.

However, you probably should sort out the buffer-issue first. The small buffer might in fact result in invalid packets - having the same effect as no packets at all. Hence this might be the only issue, after all.
User avatar
matts1972
Tinkerer
 
Posts: 73
Joined: Wed 10.03.2010, 19:44
Location: Heilbronn, Germany

Re: Introducing ElanLogger

Postby GeoffSmith » Fri 19.01.2018, 18:18

Bern wrote:Hi Matthias,

Thanks for the reply :-)

I did have the ignition on before turning the logger on, but the engine wasn't running - I started the engine whilst the logger was on - would that make a difference?

I'll try it again tomorrow.

Cheers,

Bern.


Another possibility: When you crank the engine, the battery voltage drops and dependent on how the Arduino supply is regulated will determine whether it continues to run until the engine starts. I originally had this problem with my Bluetooth interface (which, having software involved took forever to re-establish itself) so I designed a robust two stage regulator circuit that maintains the BT supply for a lot longer then I'd care to crank the car and the BT connection is maintained throughout.
Calypso Red S2 #417

USB ElanScan interfaces - £55 incl. P&P.
User avatar
GeoffSmith
Kitty Fiddler
 
Posts: 14215
Joined: Fri 03.02.2006, 21:57
Location: S2#417 in Tytherington, Gloucestershire

Re: Introducing ElanLogger

Postby Giniw » Fri 19.01.2018, 18:49

(Talking about that, the Elan is the only car I know that let the radio on when cranking almost every time!)
User avatar
Giniw
God
 
Posts: 1174
Joined: Sat 21.04.2012, 20:46
Location: France

Re: Introducing ElanLogger

Postby Bern » Fri 19.01.2018, 19:42

Another possibility: When you crank the engine, the battery voltage drops and dependent on how the Arduino supply is regulated will determine whether it continues to run until the engine starts. I originally had this problem with my Bluetooth interface (which, having software involved took forever to re-establish itself) so I designed a robust two stage regulator circuit that maintains the BT supply for a lot longer then I'd care to crank the car and the BT connection is maintained throughout.


That's what I was thinking, next time I'll try it both ways!
'90 Elan SE Turbo
'03 Land Rover Discovery TD5
'03 VW Transporter
'03 VW Lupo
'87 Mini
'80ish Kubota B5100E
User avatar
Bern
Fanatic
 
Posts: 291
Joined: Sat 21.05.2016, 19:16
Location: Wells, Somerset, UK

Re: Introducing ElanLogger

Postby Bern » Tue 30.01.2018, 21:12

Finally found time to sort this out!

Not sure what the issue was, I re-arranged some of the program and got it to create a debug file, but then it started working anyway!

But could it be any coincidence that I tried it out on Sunday, no errors, then 20 miles into a 100 mile journey yesterday I got the engine management warning light coming on occasionally?

At least I could diagnose the problem when I got home - CAS sensor. I've ordered a new one along with a new oil seal - I know how to change that after seeing it done at Castle Coombe last year :-)

Thanks again Matt, a very useful tool!

Cheers,

Bern.
'90 Elan SE Turbo
'03 Land Rover Discovery TD5
'03 VW Transporter
'03 VW Lupo
'87 Mini
'80ish Kubota B5100E
User avatar
Bern
Fanatic
 
Posts: 291
Joined: Sat 21.05.2016, 19:16
Location: Wells, Somerset, UK

Re: Introducing ElanLogger

Postby matts1972 » Wed 31.01.2018, 10:28

Bern wrote:Finally found time to sort this out!
Not sure what the issue was, I re-arranged some of the program and got it to create a debug file, but then it started working anyway!


It is good to read that you got it to work, Bern. Thanks for the feedback.

Some additional tips for trouble shooting (someone might find those handy in the future):
  • It is good practice to start the car first and then to switch on ElanLogger (because of the voltage drop while starting the engine, as discussed earlier in this thread).
  • the built-in LED ("L") on the Arduino board should then stay off (or go off within a second or two). This is a sign that all is good and ElanLogger is receiving data - the LED will stay off until the ignition is turned off.
  • Should instead the LED start blinking (either slowly or fast) this means that ElanLogger has stopped receiving data (or never got data) or that there is another problem (fast blinking). This will not recover - you need to start over (and fix the issue first).

Cheers
Matt
User avatar
matts1972
Tinkerer
 
Posts: 73
Joined: Wed 10.03.2010, 19:44
Location: Heilbronn, Germany

Re: Introducing ElanLogger

Postby matts1972 » Sun 29.07.2018, 15:24

Hi all,

Small update after one year of successful ElanLogger usage:
My Arduino board died today after porlonged exposure to 14 volts from our car's alternator.
It turned out that Chinese Arduino Uno R3 clones use a voltage regulator that is only rated for 15 volts max instead of 20 volts like on genuine Arduino boards.
The good news is that nowadays a new Arduino Uno R3 clone costs less than 3 GBP including shipping to Europe. So the damage is small (also, the board still runs when connected to USB, just the voltage regulator was fried).

A solution could be an external 5v voltage regulator or an improvised heat shield on the Arduino voltage regulator (BTW the Chinese use an AMS1117-5 instead of the original NCP1117ST50T3G). Any suggestions are welcome.

Cheers,
Matthias
User avatar
matts1972
Tinkerer
 
Posts: 73
Joined: Wed 10.03.2010, 19:44
Location: Heilbronn, Germany

Re: Introducing ElanLogger

Postby Elanlover » Sun 29.07.2018, 23:08

matts1972 wrote: .........Any suggestions are welcome.



Uhmmm....don't buy Chinese?


:mrgreen:
I do whatever my Rice Crispies tell me to do
User avatar
Elanlover
Moderator
 
Posts: 3449
Joined: Fri 05.08.2005, 19:11
Location: The Great White North

Re: Introducing ElanLogger

Postby matts1972 » Mon 30.07.2018, 07:15

Elanlover wrote:
matts1972 wrote: .........Any suggestions are welcome.



Uhmmm....don't buy Chinese?


:mrgreen:


With this kind of thinking I would not have bought an Elan in the first place

:mrgreen: :mrgreen:

On a more serious note: https://www.arduino.cc/en/Products/Counterfeit
User avatar
matts1972
Tinkerer
 
Posts: 73
Joined: Wed 10.03.2010, 19:44
Location: Heilbronn, Germany

Re: Introducing ElanLogger

Postby RonR » Wed 03.10.2018, 12:28

Had a bit of a hiccup with the display software.
No matter what I did I couldn't get the code to fit on the Arduino Uno and run reliably, the Arduino Mega was overkill (big and expensive) so the project went on the back burner.

However a few weeks ago I discovered that there's an alternative big brother to the UNO's AtMega328 CPU that can be used with the Arduino programming environment.
The AtMega1284p has 4 x the Program storage, Flash and RAM. One was ordered, breadboarded and the software loaded onto it. Success!
This version uses an LT1086 regulator to supply 5V, a more accurate clock (DS3231) and a light detector (BH1750), used to automatically adjust the display brightness.
This was taken just after starting up from cold:
Image

Next steps:
Test while driving.
Hard-wire a prototype on a circuit board to test in day-to-day operation.
Addition of start-up checks and a "Status" display for Memory card, ECM Data presence, etc.
Migrate to a Multitasking environment to allow further developments.

A few more ideas have occurred - like adding a SatNav/Mobile Phone/Bluetooth card which could give:
Automatic clock correction using SatNav time.
Journey recording by saving location every minute, or addition of location data to ElanScan file.
Bluetooth interaction with the Car's stereo to give audible warnings of errors, overheating, etc.
A text sent to your Mobile Phone with the car's location whenever the car starts up. (Requires a SIM card).
Using Mobile Data to upload Elanscan files to an Internet-based server. (Requires a SIM card).
User avatar
RonR
Enthusiast
 
Posts: 100
Joined: Mon 22.08.2016, 20:25
Location: Bromley

Re: Introducing ElanLogger

Postby matts1972 » Thu 04.10.2018, 13:21

RonR wrote:Had a bit of a hiccup with the display software.
No matter what I did I couldn't get the code to fit on the Arduino Uno and run reliably, the Arduino Mega was overkill (big and expensive) so the project went on the back burner.

However a few weeks ago I discovered that there's an alternative big brother to the UNO's AtMega328 CPU that can be used with the Arduino programming environment.


Hi Ron,
That is great news, bravo. The AtMega1284p seems to be the ideal choice.
I was also thinking about the ESP8266 family. It is cheap as chips, Arduino IDE compatible, has more power, flash and RAM and also comes with WIFI onboard. So it coud act as a wireless Elanscan interface as well.
Cheers
Matthias
Last edited by matts1972 on Thu 04.10.2018, 20:20, edited 1 time in total.
User avatar
matts1972
Tinkerer
 
Posts: 73
Joined: Wed 10.03.2010, 19:44
Location: Heilbronn, Germany

Re: Introducing ElanLogger

Postby HJ2 » Thu 04.10.2018, 15:09

Awesome! :clap:
If you always do what you always did, you always get what you always got
User avatar
HJ2
God
 
Posts: 3615
Joined: Fri 06.06.2008, 10:54
Location: Delft, the Netherlands

Previous

Return to ElanScan

Who is online

Users browsing this forum: No registered users and 1 guest