01-22-2013, 12:13 AM | #29 |
Senior Member
Join Date: Jun 2012
Drives: 13 CSB BRZ Ltd
Location: United States
Posts: 1,035
Thanks: 147
Thanked 530 Times in 286 Posts
Mentioned: 39 Post(s)
Tagged: 0 Thread(s)
|
From what I've seen, typically LIN will use the same pins as typical UART on microcontrollers. If it comes down to it, it wouldn't be too difficult just to program an 8 or 10 pin entry level microcontroller to do what you need.
Do you have any experience in CANBUS systems or master/slave hardware for LIN? -Acree
__________________
2011 BMW M3 (No torque dip)
2013 Subaru BRZ - SOLD - Build Thread |
01-22-2013, 10:39 AM | #30 |
Senior Member
Join Date: Nov 2012
Drives: 06 Subaru Legacy
Location: Canada
Posts: 291
Thanks: 40
Thanked 119 Times in 81 Posts
Mentioned: 11 Post(s)
Tagged: 1 Thread(s)
|
There's lot of choices for MCU's with LIN, CAN, and UART hardware ports/lines on-chip. Attaching hardware to the bus is not the difficult part, it's the proprietary protocols Toyota/Subaru use on these lines - that's the hard part. I don't have this level of tooling (time?) to reverse engineer the protocols - but if you have ideas like to hear them!
If we have choices and can stay off the CAN and LIN bus, that'd be the way to go. The UART is a bit different story. It's dedicated and point to point only between the doors, and probably carries very few messages, I'm willing to tackle that one. Can likely sniff, capture, and replay a packet to get passenger window to go up/down on command. |
01-22-2013, 10:55 AM | #31 |
Senior Member
Join Date: Nov 2012
Drives: 06 Subaru Legacy
Location: Canada
Posts: 291
Thanks: 40
Thanked 119 Times in 81 Posts
Mentioned: 11 Post(s)
Tagged: 1 Thread(s)
|
I suspect the passenger door "power window regulator switch assembly" (F6), is either powered(active) all the time, or powered but wake-up on UART Rx. It also seems that without being told something by the driver's door over UART, the passenger side doesn't know the state of ACC power in the car.
I suspect the driver's door p.w.r.s.a (E8) has its power/active state controlled by LIN. Similarly, without some message over LIN, the driver's door doesn't know the state of ACC power in the car. In other words, letting E8 know that "it's OK" to respect (allow) a window switch to operate the window. I'm really curious to see if the white wire test I'm asking for has different results on each door, for this reason. As you can see, dropping an "ACC ON" message onto CAN, probably cascades that message using different physical network technologies all the way through to the passenger door. But I bet we can induce a "ACC ON" message to be generated by the car, simply by tweaking a line somewhere momentarily. |
01-22-2013, 12:15 PM | #32 |
Senior Member
Join Date: Jun 2012
Drives: 13 CSB BRZ Ltd
Location: United States
Posts: 1,035
Thanks: 147
Thanked 530 Times in 286 Posts
Mentioned: 39 Post(s)
Tagged: 0 Thread(s)
|
According to the manual, they are both powered all the time. I would assume the same exact thing you are saying, that the driver's side is on wake-up over LIN which in turn sends wake-up over UART to passenger side.
From the small exposure I've had to it, LIN is standardized just like UART. There are different ways to compose a message but none of it is going to be proprietary like the CANBUS. It seems to me the easiest thing would be to piggy back on that LIN line like what you said, and reproduce the correct message. It would take an afternoon with an o-scope, but it wouldn't be very difficult. -Acree |
01-22-2013, 05:15 PM | #33 | |
Senior Member
Join Date: Oct 2012
Drives: 2013 Subaru BR-Z Limited
Location: Fort Lauderdale, Florida
Posts: 883
Thanks: 407
Thanked 562 Times in 294 Posts
Mentioned: 42 Post(s)
Tagged: 4 Thread(s)
|
Quote:
__________________
|
|
01-22-2013, 05:57 PM | #34 |
Senior Member
Join Date: Nov 2012
Drives: 06 Subaru Legacy
Location: Canada
Posts: 291
Thanks: 40
Thanked 119 Times in 81 Posts
Mentioned: 11 Post(s)
Tagged: 1 Thread(s)
|
I've not yet played with LIN, if it's like you say, then yay!
An oscope may not be as useful as a small logic analyzer, like ant8 or bus pirate. It's not guaranteed the drivers side passes all LIN traffic to passenger. It is guaranteed window up/down commands traverse UART, destined for passenger door. It's a question what actually originates the passenger commands, probably the driver window module. I fear there is no LIN command to control drivers window up/down. All of this conspires to suggest the device needs to install inside or run wires to at least the drivers door. And if it installs inside the drivers door I know that I have to run at least one wire to ECU, for an input/output function needed for autowindow. |
01-22-2013, 08:27 PM | #35 |
I Love custom Turbo kits
Join Date: Mar 2012
Drives: Limited BRZ
Location: Miami
Posts: 10,770
Thanks: 20,004
Thanked 8,344 Times in 4,361 Posts
Mentioned: 441 Post(s)
Tagged: 12 Thread(s)
|
Scott, where in Canada are you? Maybe we can go in the Canada Sub-Forum and get a Canadian user willing to help and you can actually get a test car?
__________________
|
01-23-2013, 02:28 PM | #36 | |
Senior Member
Join Date: Nov 2012
Drives: 06 Subaru Legacy
Location: Canada
Posts: 291
Thanks: 40
Thanked 119 Times in 81 Posts
Mentioned: 11 Post(s)
Tagged: 1 Thread(s)
|
All this LIN, CAN, yack yack yack is great fun... But I want to re-focus on my current ask, and is something anybody can do with a simple volt meter:
Quote:
Thanks! Last edited by scottmcphee; 01-23-2013 at 02:38 PM. |
|
01-23-2013, 07:00 PM | #37 | |
I Love custom Turbo kits
Join Date: Mar 2012
Drives: Limited BRZ
Location: Miami
Posts: 10,770
Thanks: 20,004
Thanked 8,344 Times in 4,361 Posts
Mentioned: 441 Post(s)
Tagged: 12 Thread(s)
|
Quote:
Hopefully @thejevans has time Thursday night :happy0180:
__________________
|
|
01-24-2013, 09:34 AM | #38 |
Rugger Extraordinaire
Join Date: Jul 2012
Drives: 1997 Miata, R.I.P. 2013 Red FR-S
Location: Derwood, Maryland, United States
Posts: 538
Thanks: 142
Thanked 258 Times in 145 Posts
Mentioned: 53 Post(s)
Tagged: 0 Thread(s)
|
Yeah, there's snow everywhere right now. I'm gonna have to pass for now.
|
01-24-2013, 10:34 AM | #39 |
Default User Title
Join Date: Mar 2011
Drives: FR-S
Location: Whitby, ON
Posts: 685
Thanks: 180
Thanked 343 Times in 117 Posts
Mentioned: 6 Post(s)
Tagged: 0 Thread(s)
|
I might have time this weekend...
|
The Following User Says Thank You to colHolm For This Useful Post: | Sportsguy83 (01-24-2013) |
01-24-2013, 08:00 PM | #40 |
[||•]=(86)=[•||]
Join Date: Jan 2010
Drives: 2017 Toyota 86
Location: Quebec
Posts: 963
Thanks: 173
Thanked 489 Times in 218 Posts
Mentioned: 9 Post(s)
Tagged: 0 Thread(s)
|
Can't help you sorry mate! ( just seen you mention me :P ) My car is stored for winter!
__________________
|
The Following User Says Thank You to trueno86power For This Useful Post: | Sportsguy83 (01-24-2013) |
01-24-2013, 08:31 PM | #41 |
Senior Member
Join Date: Nov 2012
Drives: 06 Subaru Legacy
Location: Canada
Posts: 291
Thanks: 40
Thanked 119 Times in 81 Posts
Mentioned: 11 Post(s)
Tagged: 1 Thread(s)
|
|
01-24-2013, 09:34 PM | #42 |
[||•]=(86)=[•||]
Join Date: Jan 2010
Drives: 2017 Toyota 86
Location: Quebec
Posts: 963
Thanks: 173
Thanked 489 Times in 218 Posts
Mentioned: 9 Post(s)
Tagged: 0 Thread(s)
|
Oohh crap no. But I wish I parked my car in the summer to. Got stuck in 2 hails storm last summer... lol
Anyway back to topic!
__________________
|
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
EcuTek Tuning advancements unleash unlimited possibilities | Visconti | Engine, Exhaust, Transmission | 27 | 03-03-2013 03:27 PM |