#### ## ##### ## ## ## ## ### ##
##### ## ## ## ## ##### ## ##
_ | | | | | |___ |_____|
##### ## ## ## ## ## ## ## ##
###### ## ## ## ## ##### ## ####
IMPORTANT: enter the case-INsensitive alphabetic (no numbers) code AND WRITE SOME SHORT summary of changes (below) if you are saving changes. (not required for previewing changes). Wiki-spamming is not tolerated, will be removed, so it does NOT even show up in history. Spammers go away now. Visit Preferences to set your user name Summary of change: This page contains all test of the new Subaru Trigger code ---- * Subaru Trigger test 2010-05-25 to 2010-05-29 '''List of essentials''' - none met yet ? * firmware ? 1.1.75 or 1.1.77 ? (there is no chance at all with 1.1.76) * vemscfg and vemslog ? * triggerlog ? * analog DC voltage on the trigger inputs (both primary and secondary). Ignition on, but engine off is OK. * how did you make sure about the '''polarity of both VR signals''' ? ** the ECU must see falling edge on the input, as per the LM1815 specs! * scopeshots if possible ** but scopeshot is likely only partially useful with 5 ksample / seconds. (at least we can verify the polarity though) ** We've seen 1..2 usec offensive pulses capacitively charged from the ignition of a Nissan (of a certain harness: 40 other working well without this problem). Since that was HALL, we could solve it in software with the HALL-dirac filtering and the customer was very happy. ** With VR the same software solution is not possible, as the LM1815 hides the characteristics of the input from the processor. So with VR the triggering must be solved reliably in HW, but still without noise. ** There is obviously a narrow range of values for auditrigger and subaru (and low toothcount VR in general). But just like auditrigger was solved (and now only 1 in 40 audi needs special attention beyond the normal procedure) the Subaru will be solved too. The amount of work and chit-chat is fruitless without these rudimentary information. Another problem might be that the primary and secondary might require different pulldown/up values. If the VR polarity is wrong, it might be extremely hard or impossible to get it working properly. (just because it starts one way and not the other - with a certain pullup - does NOT mean that one way is good polarity !). '''VERY IMPORTANT:''' If it turns out that you have very high frequency noise bursts it has very recently become clear that the very high performance ceramic capacitors we use are not optimal in the 1 MHz range. I have had great success with MKP type capacitors in the C30 and C33 positions on two cars with this type of noise, 2nF should be enough. Note that MKP capacitors are not SMD. I see that you have changed the capacitors in the C31 and C34 positions, these are NOT filter capacitors. They time the pulse from the LM1815. - Jörgen. *Note. Scoop images will come in a few days -------------------------------------------------------- Trying to find the Subaru trigger problem while cranking, i have done some measurements. My cheap, only 2k$ Agilent DSO3062A oscilloscope, does only have a sample rate of 1 to 5 kSa/s when measuring over these relatively long times.. :o( * The pulses at LM1815 output is default 25 micro sec. * To reliable capture any pulses at LM1815.12 I have therefore made an pulse extender. The following measurements is done with this extender between probe at CH2 and LM 1815.12. ---------------------------------------------------------- NewFile_00: Measurements at secondary trigger. CH1 at LM1815 pin3 CH2 at LM1815 pin12 (extender between) Cranking at approx. 150 rpm rpm signal in VemsTune jumps time to time to 170 rpm Fuelpump off ------------------------------------------------------- NewFile_01: Measurements at secondary trigger. CH1 at LM1815 pin3 CH2 at LM1815 pin12 (extender between) Cranking at approx. 150 rpm rpm signal in VemsTune jumps a lot Fuelpump on mis/backfiring!! ---------------------------------------------------------- NewFile_02: Measurements at secondary trigger. CH1 at LM1815 pin3 CH2 at LM1815 pin12 (extender between) Cranking at approx. 120 rpm rpm signal in VemsTune jumps to 170 rpm, at the exact time the noise pulse is seen at the scope. Fuelpump off ------------------------------------------------------------- NewFile_03 to NewFile_05: (Different zoom's at the same shot) Measurements at secondary trigger. CH1 at LM1815 pin3 CH2 at LM1815 pin12 (extender between) Cranking at approx. 150 rpm rpm signal in VemsTune jumps time to time to 3000 rpm Fuelpump on pin5 is now tied to Vcc. This has resulted in no noise at pin12, but still misfiring.. ----------------------------------------------- NewFile_0A Waveform 1. Measurements at secondary trigger. CH1 at LM1815 pin3 CH2 at LM1815 pin12 (extender between) Cranking at approx. 150 rpm rpm signal in VemsTune jumps time to time to 3000 rpm Fuelpump on pin5 tied to Vcc 10nF at C31, C34, C30, C33 Log 21.24.17 ------------------------------------------------ NewFile_0B Waveform 2. Measurements at secondary trigger. CH1 at LM1815 pin3 CH2 at LM1815 pin12 (extender between) Cranking at approx. 150 rpm rpm signal in VemsTune jumps time to time to 3000 rpm Fuelpump on pin5 tied to Vcc 10nF at C31, C34, C30, C33 10k pulldown at both trigger inputs Log 21.55.45 ------------------------------------------------- Log 22.01.02 Ignition lock 15_degrees ------------------------------------------------- NewFile_0C & _0D Waveform 3. Measurements at secondary trigger. CH1 at LM1815 pin3 CH2 at LM1815 pin12 (extender between) Cranking at approx. 150 rpm rpm signal in VemsTune jumps time to time to 3000 rpm Fuelpump on pin5 tied to Vcc 10nF at C31, C34, C30, C33 10k pulldown at both trigger inputs ------------------------------------------------- NewFile_0E & _0F Waveform 4. Measurements at secondary trigger. CH1 at LM1815 pin3 CH2 at LM1815 pin12 (extender between) Cranking at approx. 150 rpm rpm signal in VemsTune jumps time to time to 3000 rpm Fuelpump on pin5 tied to Vcc 10nF at C31, C34, C30, C33 10k pulldown at both trigger inputs Ignition lock 15_degrees ------------------------------------------------- NewFile_10 & 20 (_10 waveform at USB) To verify that there is correct signal from both LM1815.12. Measurements at primary and secondary trigger. CH1 at LM1815 pin12, primary CH2 at LM1815 pin12, secondary Fuelpump off ------------------------------------------------- NewFile_30, 40, 50 & 60 (Same scope shot, different zoom's etc.) Waveform 5. Measurements at primary and secondary trigger. CH1 at LM1815 pin12, primary CH2 at LM1815 pin12, secondary Fuelpump on Misfiring ------------------------------------------------- After varming up the engine with old ECU, it's possible to start the engine with VEMS ECU. At this time the engine cranks at approx. 200 rpm. A short misfire at startup, but the engine overcome this and starts anyway. When the engine revs up, misfire apears above approx. 2500 rpm. ------------------------------------------------- Trying to avoid this problem, i removed both pin5's from Vcc. Logfile 18:00:10 Trigger log 18:00:52 Didn't chance anything ------------------------------------------------- 2 x 10k pulldown is then removed. Didn't change anything ------------------------------------------------- 2 x 10nF at input's is then removed Now the engine can't start at all. Misfires and rpm in Vemstune jums to > 50.000 rpm!! You need to add capacitance * eg. 100 nF onboard after the 10k ** and possibly 220nF or 470 uF before the 10k - that is right on the input not remove. Remember the factory HW values (even with capacitor variations) must not prevent triggering from a 135 tooth audi at 10k RPM. ------------------------------------------------- 2 x 10nF is mounted again, and we are back to a working system when the engine is hot, and the rpm is kept under 2500 rpm..... Ole Blach 2010-05-30 ---- '''Hint: please route the trigger signals and trigger GND in a separate cable, shielded on one side'''. There is no substitute for this test. If that works to prevent ign noise sneaking into trigger, it gives a huge help even if we must be able to use the factory harness in the end (likely with higher input capacitance values). ---- 28/5-2010 Did some more test today. Status car is not running. All test results will be published Saturday Scooped signals to the processor and did not find any thing wrong. Stable rpm until it starts to fire then rpm spikes to 3000 rpm. Symptoms like the old trigger setup. When the engine starts to run fast it looses sync. ---- What we have seen 2010-05-24 We have stable 160 rpm at cranking fuel pump off. When we cranking the car it´s stable in beginning it fires up to 300-600 rpm then random fires and rpm is no longer stable. Its like it runs only on two cylinders (firing correct) but then losing sync. We see some correct firing´s but also ignition fires at different times than it should. Obviously there is noise in the signal, that must be filtered. Question: Haw is this code tested and what signal is used? * It is very important when testing that we have a swinging signal like 100-300-120-500-200 rpm`s and not lousing sync. Not joust a long stable sweep ** yes, it is tested with sweeping signal We have big trouble scoping the output of LM1815 because of the short signal like 15 micro sec. It should be a bit higher (20-30 usec), but you can '''enlarge it very easily, see below'''. I would suggests that we use the p259 led´s output. When the processor get signal from lm1815 Pre/sec trigger we set the output high for 0.5 sec. This will give us a chance to see and measure what goes in and out of lm1815. Triggerlog also shows the time of the pulse (although currently for the primary trigger only). Watching the input with analog scope is of primary importance. Even if the output is perfect, if the input is on the edge, it can break any time (eg. in cold). ---- '''Analog scopeshots ?''' do you have some ? http://www.syvecs.com/forum/viewtopic.php?f=6&t=110&p=474&hilit=trigger+pattern+advisory+note#p474 If the input is biased properly, the LM1815 adaptive filtering should filter out small amplitude "phantom-tooth" pulses in the subaru. I didn't see your scope so only you can judge the offending amplitude. 10-30% should not trigg, and with lower R181 / R182 even higher amplitude offenders can be filtered out Maybe the noise is capacitively injected by ignition ? '''It could save a LOT of time''' (even 1 week) to '''route the VR signals via properly shielded cable''' (with ground wire inside, and shield connected to ground only on ECU side). Than only try the factory harness when it works well with the separate shielded cable so you have a good starting point reference. ---- '''Ideas''' - setting up more agressive filtering for this low toothcount * the LM1815 (especially for the primary trigger) is set up so it can receive 9000 RPM signal from the audi 135 tooth. As subaru has only 6 teeth (the shortest gap is 30 degrees which is equivalent to 12 teeth) the '''circuit can be modified for 10 times higher times.''' ** 10 nF => 100 nF on the input ** 1nF => 10 nF for the output pulse timing ** please verify the above values (I wrote them from memory), and multiply with the accompanying resistor so 3*R*C is less than 30 degrees * LM1815 mode pin5=5 can be tried (and left it open can be tried too). Often used with 1k pulldown in audis for the low toothcount crankhome-VR. ---- http://www.vems.hu/files/MembersPage/Skassa/subarutrigger_files/new%20trigger/Subaru_1.jpg New Vems pcb installed http://www.vems.hu/files/MembersPage/Skassa/subarutrigger_files/new%20trigger/Subaru_2.jpg Our technical engineer trying to hunt down the errors http://www.vems.hu/files/MembersPage/Skassa/subarutrigger_files/new%20trigger/Subaru_3.jpg Test car 600 Hp HKS Subaru ---- '''Subaru / fiatstilo code''' * Unlike in 1.0.x where the subaru was a special case of the missing tooth type, * in 1.1.7x it's devised from the N+1 type (which is well proven also, eg. 12+1 is very common in Jap engines). * do we suspect that RPM variations during cranking are so severe (RPM *= 1.5 in just 90 degrees) that in the 60,90,30 train the 90<60 and therefore misdetected as the "short pulse" ? ** if yes, we can possibly solve that with code modification ''tooth_relative_length(p16, etime_atp/2);'' so setting 120% threshold actually means 60% ** note that it can work either "missing tooth advanced filter bit" = 0 or 1 (trigger_multitooth_hairy is bit3) ** however, the minimum for TOOTHREL_SINGLE is currently 100% (while 60% with the suggested mod might provide better margin) ** either scope or triggerlog should reveal this. Note that this cannot possibly cause anything at 2000 RPM (such extreme *1.5 between 2 teeth) relative accelerations only happen during cranking <pre> if ( config_primary_trigger & _BV(ptrig_coil)) { // even (coil) type trigger // LANCIA_COSWORTH does NOT need toothlen examination (only campulse "shaping" elsewhere) if( FIATSTILO_SUBARU ){ // toothlen examination (and tooth skipping => c004 trigger) uint16_t etime_atp; etime.ptrig_capturedtime_prev = capturedtime; etime_atp = etime.average_tooth_period; p16 = (lsr16(period32) == 0) ? (uint16_t) period32 : 0xffff; etime.average_tooth_period = p16; // store new period if( (config.primary_trigger & _BV(trigger_multitooth_hairy)) == 0 ){ // no advanced missingtooth filter if( p16 >= etime_atp ) return; // goto trigger_filter does not work well (as is) for SUBARU anyway.... } else { // uint8_t tooth_cnt = etime.tooth_cnt; // Looking for appr 30% relative toothlen (15..60% would be cool). Definitely skip any >= 100% uint8_t toothlen = tooth_relative_length(p16, etime_atp); if (toothlen != TOOTHREL_SINGLE) return; } // We are at the "trigger tooth". // help initial sync a bit ? Maybe more sensitive than the simple coil type pattern. // let's see if we had enough camsync pulses (eg. 3 needed in subaru) if (engine.strig_count >= config.another_trigger_tooth) engine.status_trig |= cam_sync_mask; // if > than fire some sectrig error flag ??? engine.strig_count = 0; } </pre> Optional: Add document to category: Wiki formatting: * is Bullet list ** Bullet list subentry ... '''Bold''', ---- is horizontal ruler, <code> preformatted text... </code> See wiki editing HELP for tables and other formatting tips and tricks.