Pages: 1 ... 17 18 [19] 20 21 ... 29
Author Topic: Haldex Controllers Thinking.....  (Read 276218 times)
DT
Full Member
***

Karma: +20/-1
Offline Offline

Posts: 184


« Reply #270 on: January 16, 2016, 08:30:17 AM »

hmm, the #¤%% reset that is mentioned to exist earlier in thread also for Gen2.

what I believe would work for communication is
send 0 to ecu after reset (with 0.4)  is finished and then wait a sec for the C5 (which you hopefully can't receive), then send the 32byte loader which executes automatically when received by ecu.
Logged

ccyberwing
Newbie
*

Karma: +7/-0
Offline Offline

Posts: 19


« Reply #271 on: January 16, 2016, 08:36:09 AM »

hmm, the #¤%% reset that is mentioned to exist earlier in thread also for Gen2.

what I believe would work for communication is
send 0 to ecu after reset (with 0.4)  is finished and then wait a sec for the C5 (which you hopefully can't receive), then send the 32byte loader which executes automatically when received by ecu.

i think this should work - but we can only wait for about 100ms because the watchdog resets every ~800ms (or tie the reset up to 5V)

i read this controller with 125kbaud, so speed shouldnt be any problem
Logged
DT
Full Member
***

Karma: +20/-1
Offline Offline

Posts: 184


« Reply #272 on: January 16, 2016, 08:45:58 AM »

i think this should work - but we can only wait for about 100ms because the watchdog resets every ~800ms (or tie the reset up to 5V)

i read this controller with 125kbaud, so speed shouldnt be any problem

The P0L0.4 at header seems less confusing now. :-)   no need to wait for 1 sec

the 0 could be sent a few μs after reset is done, then we can send the 32byte code 1ms later since C5 is sent by cpu 2.5μs after it receives 0.
« Last Edit: January 16, 2016, 08:47:29 AM by DT » Logged

ccyberwing
Newbie
*

Karma: +7/-0
Offline Offline

Posts: 19


« Reply #273 on: January 16, 2016, 08:50:17 AM »

The P0L0.4 at header seems less confusing now. :-)   no need to wait for 1 sec

the 0 could be sent a few μs after reset is done, then we can send the 32byte code 1ms later since C5 is sent by cpu 2.5μs after it receives 0.

yes, i think so too  Wink Wink Wink

nice - "only" have to sort this reset watchdog out - as far as i can see it could be controlled by the sbc chip (i'll find out)
Logged
DT
Full Member
***

Karma: +20/-1
Offline Offline

Posts: 184


« Reply #274 on: January 16, 2016, 08:52:59 AM »

yes, i think so too  Wink Wink Wink

nice - "only" have to sort this reset watchdog out - as far as i can see it could be controlled by the sbc chip (i'll find out)
If you take a look at where it is connected to I will see in the flash what their code do to disable it. Then we can do the same thing in code after loaded 32bytes(which will not take 800ms) I'll take a shower now, do you have the connections for me when I'm back at keyboard?  Smiley
Logged

ccyberwing
Newbie
*

Karma: +7/-0
Offline Offline

Posts: 19


« Reply #275 on: January 16, 2016, 08:56:48 AM »

If you take a look at where it is connected to I will see in the flash what their code do to disable it. Then we can do the same thing in code after loaded 32bytes(which will not take 800ms) I'll take a shower now, do you have the connections for me when I'm back at keyboard?  Smiley

i think so.  Grin Cool
Logged
ccyberwing
Newbie
*

Karma: +7/-0
Offline Offline

Posts: 19


« Reply #276 on: January 16, 2016, 09:37:56 AM »

 Grin Grin Grin

ha ... now i know how it works Cheesy ... you wont belive ..

you remember we have the header with pol0.4 on it , lets say pin1 ... and pin3 and pin4 are the gnd and the temp sensor ...
and .... pin 2 is the watchdog control  Cheesy Cheesy

https://dropmefiles.com/4L53o

so you have to look about some timer that generates 20Hz on an special pin to prevent the watchdog triggering... Ha!
(should be pretty close at 20Hz, 15Hz triggers the dog and 25 Hz too)
« Last Edit: January 16, 2016, 10:24:36 AM by ccyberwing » Logged
DT
Full Member
***

Karma: +20/-1
Offline Offline

Posts: 184


« Reply #277 on: January 16, 2016, 10:30:38 AM »

Grin Grin Grin

ha ... now i know how it works Cheesy ... you wont belive ..

you remember we have the header with pol0.4 on it , lets say pin1 ... and pin3 and pin4 are the gnd and the temp sensor ...
and .... pin 2 is the watchdog control  Cheesy Cheesy

https://dropmefiles.com/4L53o

so you have to look about some timer that generates 20Hz on an special pin to prevent the the watchdog triggering... Ha!
(should be pretty close at 20Hz, 15Hz triggers the dog and 25 Hz too)
:-)
I think I've seen a couple of timers in code but I believe I assumed atleast one of them where for baudrate control. It would have been super easy to find if we knew where mentioned sbc chip are connected on c167.

simple circuit that could be put inline with the "flashcable" in a few inches of shrink tube for easy 20hz but for sure it's nicer to find what they do in code.
http://www.electroschematics.com/6527/simple-square-wave-generator-with-7400/

I hit a deer the other day and need to visit the garage now for 1 hour to see if I can fix the Xenon headlight. Will check code after that.
Logged

ccyberwing
Newbie
*

Karma: +7/-0
Offline Offline

Posts: 19


« Reply #278 on: January 16, 2016, 10:42:09 AM »

Its somewhere on the inner Pins - i don't want to destroy the Controller.
Its a simple reset/watchdog ic with 6pin

Ok, and I'll go for diner now.
good luck!
Logged
k0mpresd
Hero Member
*****

Karma: +146/-54
Offline Offline

Posts: 1655


« Reply #279 on: January 21, 2016, 01:29:57 PM »

Its a simple reset/watchdog ic with 6pin

i only see the 1 6pin IC on the gen2 board. i removed it and held ground via 1k resistor to P0L.4 and c167 booted as normal. vcds connected via canbus OK.

here is high res image of gen2 controller: http://www.filedropper.com/img0157
Logged
DT
Full Member
***

Karma: +20/-1
Offline Offline

Posts: 184


« Reply #280 on: January 21, 2016, 02:02:46 PM »

i only see the 1 6pin IC on the gen2 board. i removed it and held ground via 1k resistor to P0L.4 and c167 booted as normal. vcds connected via canbus OK.

here is high res image of gen2 controller: http://www.filedropper.com/img0157
Can you please check where it is connected to c167?

On gen1 I think it is the ic right beside the P0L.4 connector

Btw, what model of 6pin IC?
« Last Edit: January 21, 2016, 02:06:53 PM by DT » Logged

k0mpresd
Hero Member
*****

Karma: +146/-54
Offline Offline

Posts: 1655


« Reply #281 on: January 21, 2016, 04:35:27 PM »

i cant tell what it says on top, "Dx2" it looks like. where "x" is unknown.

i think you may be one to something though. that IC is connected directly to P0L.4 through a resistor and capacitor.
the straight blue line from point > point is 0/ohm resistance.

high res image: http://www.filedropper.com/p0l4
Logged
DT
Full Member
***

Karma: +20/-1
Offline Offline

Posts: 184


« Reply #282 on: January 21, 2016, 04:59:08 PM »

i cant tell what it says on top, "Dx2" it looks like. where "x" is unknown.

i think you may be one to something though. that IC is connected directly to P0L.4 through a resistor and capacitor.
the straight blue line from point > point is 0/ohm resistance.

high res image: http://www.filedropper.com/p0l4
No direct connection to c167 from any of 6pin if you do a beep test with multimeter?
I'm sorry to ask but could you please try to trace all 6 pins and report? It's not possible to do this on the gen1 but I think gen1 and gen2 are almost similar hardware wise except for the on die in Gen1. Thank you.
Logged

k0mpresd
Hero Member
*****

Karma: +146/-54
Offline Offline

Posts: 1655


« Reply #283 on: January 21, 2016, 05:16:19 PM »

2 blue dots.
3 red dots.

blue is obviously direct to pin and both red are direct to single pin.
others didnt appear connected.

edit: wait, sorry. missed a pin. blue is connected twice as well.

http://www.filedropper.com/dots_1

as far as im concerned, knowing what little i know, gen1 and gen2 are damn near identical. hardware and software. gen2 is just in a cleaner package.
« Last Edit: January 21, 2016, 05:21:29 PM by k0mpresd » Logged
DT
Full Member
***

Karma: +20/-1
Offline Offline

Posts: 184


« Reply #284 on: January 21, 2016, 06:20:01 PM »

2 blue dots.
3 red dots.

blue is obviously direct to pin and both red are direct to single pin.
others didnt appear connected.

edit: wait, sorry. missed a pin. blue is connected twice as well.

http://www.filedropper.com/dots_1

as far as im concerned, knowing what little i know, gen1 and gen2 are damn near identical. hardware and software. gen2 is just in a cleaner package.

Thank you, I will look into this tomorrow.
Logged

Pages: 1 ... 17 18 [19] 20 21 ... 29
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Page created in 0.025 seconds with 17 queries. (Pretty URLs adds 0.001s, 0q)