[SOLVED] Freezes when RPM signal connected

Support in english
erikiiofph7
Posts: 26
Joined: Thu 10. Jul 2014, 20:10
Location: Sweden

[SOLVED] Freezes when RPM signal connected

Post by erikiiofph7 »

If I have my RPM signal connected my MD freezes after some time, sometimes after only about 10 seconds, sometimes 30 or 60 s.
If I disconnect my RPM signal my MD doesn't freeze at all.

Weird that it works at first and then freezes...

I guess it can't be a software problem, because the firmware still thinks the RPM is connected even when it's not, although its only random numbers since the frequency converter is only reading electrical noise.

By the way, this is the first time I have it installed in my car. Before I just had everything hooked up in the passenger seat.

Any ideas?


EDIT: Marked it as solved as changing ethernet cable was the key to success...
Last edited by erikiiofph7 on Mon 23. Feb 2015, 20:29, edited 1 time in total.
User avatar
designer2k2
Administrator
Posts: 721
Joined: Mon 31. May 2010, 20:13
Location: Innsbruck
Contact:

Re: Freezes when RPM signal connected

Post by designer2k2 »

Hello,

you run the V2 with the seeeduino mega, right?

freezing from the LCD, and on the serial port?

are the RPM´s measured ok? whats the maximum RPM you have?

on the passenger seat it did not freeze?
itsmyfault...
erikiiofph7
Posts: 26
Joined: Thu 10. Jul 2014, 20:10
Location: Sweden

Re: Freezes when RPM signal connected

Post by erikiiofph7 »

It's a V2, that's correct.

Both serial communication & LCD freezes, I just tested the serial.

RPM figures seem to be OK. Most of my tests have been on idle. Some tests on slow driving as well, so engine speed below 2500 rpm or so.

Well, at least I didn't get any freeze from what I can remember. But I have noticed that the amount of time before I get a freeze can vary quite a lot, the other day it was running for about 10 minutes before it froze. And when I tested it in the passenger seat I didn't run it super-long, so I can't guarantee that I didn't have the problem back then...
User avatar
designer2k2
Administrator
Posts: 721
Joined: Mon 31. May 2010, 20:13
Location: Innsbruck
Contact:

Re: Freezes when RPM signal connected

Post by designer2k2 »

Can you log the Serial Data? so we could see whats the last message right before it freezes?

What exact software are you running?
itsmyfault...
erikiiofph7
Posts: 26
Joined: Thu 10. Jul 2014, 20:10
Location: Sweden

Re: Freezes when RPM signal connected

Post by erikiiofph7 »

I got it working when I swapped back to the ethernet cable I had when I had the test setup with the sensor unit in the passenger seat. So it seems that the ethernet cable is the bad guy. When I installed it I cut the ethernet cable to get it through the firewall and then crimped on a new connector. So I guess I made a bad job when crimping the connector. I'll crimp on a new connector to see if it solves the problem. I won't have access to my car the next week though.

It's still a mystery to me how a bad network cable can lead to problems when rpm is connected but not when it's not. It's still the same amount of data to transfer since the frequency to voltage voltage converter will read noise.
User avatar
bofh
Posts: 629
Joined: Tue 1. Jun 2010, 19:01
Location: Saarland
Contact:

Re: Freezes when RPM signal connected

Post by bofh »

thats really strange
erikiiofph7
Posts: 26
Joined: Thu 10. Jul 2014, 20:10
Location: Sweden

Re: Freezes when RPM signal connected

Post by erikiiofph7 »

I got myself a network cable tester to confirm that my crimping was bad. The network tester did find a problem with my cable. Pin 7 & 8 were short-circuited, but this shouldn't matter since pin 7 is not uset according to https://code.google.com/p/multidisplay/wiki/Bus. Anyway, I did cut off my old crimped connector and crimped on a new connector, which was fine according to my network tester. But the MD still freezes.

Then I thought maybe it's an issue of too long cable, because the cable I had when it worked in the passenger seat was a short cable (less than 0.5m) and the one that's installed is about 4m. So I borrowed a 5m cable from my computer and hooked it up. No freezing.

But maybe there is a voltage drop over my cable, maybe the cable I have installed has a lower conductor cross-section area compared to the 5m cable? If the 5V line would be loaded more when the RPM signal is connected then I think this would make sense. Since ethernet cables are generally not designed for currents (power over ethernet is not that common yet) I guess the cross-section area can vary between different cable manufacturers.

The cable I have installed is also the cheapest cable I could find on Reichelt, I thought I could go for a cheap cable since I don't need high frequency properties (I guess our MD data is communicating at way lower frequencies than a gigabit LAN), but maybe cheap cable also means smaller cross-section area as copper is expensive...
erikiiofph7
Posts: 26
Joined: Thu 10. Jul 2014, 20:10
Location: Sweden

Re: Freezes when RPM signal connected

Post by erikiiofph7 »

I have made myself a breakout ethernet cable to easily measure the voltage between pin 1 (+5V line) and pin 8 (ground) when MD is running.
Image

I connected it together with the female-female adapter next to the sensor unit / MD02/MD03 and measured the voltage for the different ethernet cables:

Code: Select all

Ethernet Cable     RPM connected    Freezes    Voltage Pin1-8    Comment
==============     =============    =======    ==============    =======
Installed cable    Yes              Yes        4.96 V            Engine not running
Installed cable    Yes              Yes        4.94 V            after freeze
5m cable fr comp   Yes              No         4.96 V        
short (<0.5m)      Yes              No         4.99 V        
Installed cable    Yes              Yes        4.95 V            before freeze
Installed cable    Yes              Yes        4.93/4.94 V       after freeze
Installed cable    No               No         4.95/4.96 V       
(I don't know how to make a table in the forum environment, so I made a table in unformatted text istead...)

There seem to be a trend that the setups that work have the higher voltage readings, and the ones that freezes have the lower voltage readings. Does it sound reasonable that 4.93/4.94 V is too low then?
erikiiofph7
Posts: 26
Joined: Thu 10. Jul 2014, 20:10
Location: Sweden

Re: Freezes when RPM signal connected

Post by erikiiofph7 »

Today I measured how long my installed cable actually was. And it was slightly longer than I thought, it was 4.7 meters. Then I tightened it up as much as possible getting rid of all slack, and I actually managed to shorten it to 3.7 m. But the freezing is still there.

BUT then I was watching the markings on the cables, and found that (amongst other markings) the installed cable is marked 26AWGX4P, whereas the 5m cable from my computer is marked 24AWGX4P. Some googling and this seems to indicate 4 pairs of 26AWG / 24AWG.

According to http://en.wikipedia.org/wiki/American_wire_gauge 26AWG has 0.129 mm² conductor area with 134 mOhm/m, and 24AWG has 0.205 mm² with 84 mOhm/m.

I think I'm on to something here... The installed cable that gives freezing is the one with the smaller area, just as I suspected cheap cable => less copper. Time to get a new cable that is 24AWG or better then...
erikiiofph7
Posts: 26
Joined: Thu 10. Jul 2014, 20:10
Location: Sweden

Re: Freezes when RPM signal connected

Post by erikiiofph7 »

Problem solved!

I bought a new cat5e UTP ethernet cable marked "4pairs 24AWG", removed the old 26AWG cable and installed the new 24AWG cable instead. Cable length installed in my car is about 3.8 m. I've run this new cable for a few days now, and it has been working perfectly so far.

Another thing I discovered is that the RPM numbers doesn't go higher than 3450 rpm, even if the engine speed is higher. My rpm signal source gives 2 pulses per revolution. I use the ignition coil input as rpm signal (my engine is a 4cyl with an old-school ignition system that has a central ignition coil combined with a distributor instead of separate ignition coils). Is there a limitation of maximum 1 pulse per rev for the MD electronics? I'll try to use the signal from one of the injectors instead, which would give me 0.5 pulses per rev.
Post Reply