1. Attachments are working again! Check out this thread for more details and to report any other bugs.

MFD Replacement?

Discussion in 'Gen 2 Prius Accessories & Modifications' started by jdh2550, Aug 20, 2012.

  1. jdh2550

    jdh2550 Co-Founder, Current Motor Company

    Joined:
    Nov 16, 2010
    317
    249
    0
    Location:
    Ann Arbor
    Vehicle:
    2005 Prius
    Model:
    N/A
    Hi y'all.

    Has anyone ever contemplated replacing the MFD (and most of the center console beneath it)?

    My "vision" (blech!) is to do away with everything in that center strip from MFD all the way down to the cassette player. A large-ish screen - at least a 10" tablet display - possibly larger. I want radio and digital music, I'd ditch Toyota Nav for Google Navigate (and Bluetooth tether), I'd do my own info displays. I'd still have a physical hazard flashers button. Everything else can be a soft button.

    Any thoughts? Good idea? Bad idea? It would be great if I did x, y or z? Comments please... :)
     
    ger likes this.
  2. 69shovlhed

    69shovlhed Surly tree hugger

    Joined:
    May 13, 2012
    2,170
    750
    0
    Location:
    Delaware
    Vehicle:
    2017 Prius Prime
    Model:
    Prime Premium
    it would be really cool if you could integrate a large touchscreen for all that stuff. if you do it, take lots of pix for us, ok? unless it don't work...
     
    jdh2550 likes this.
  3. Daves09prius

    Daves09prius Active Member

    Joined:
    Nov 20, 2010
    680
    161
    0
    Location:
    Gettysburg, PA
    Vehicle:
    2009 Prius
    Model:
    One
    Cool concept! But noting really useful to add. Maybe a Samsung tablet 7" or the new 10" you'd have to figure out and write your own android apps, and figure out how to connect it all through the mini connection to communicate to the Prius computers/electronics. (Way above my level of training and knowledge.) Custom = Long time & Lots of Money!
     
    jdh2550 likes this.
  4. jdh2550

    jdh2550 Co-Founder, Current Motor Company

    Joined:
    Nov 16, 2010
    317
    249
    0
    Location:
    Ann Arbor
    Vehicle:
    2005 Prius
    Model:
    N/A
    FYI - my plan is to use one of the numerous SBCs (single board computers) that run Android and then a separate touch screen. The SBC's have a bunch of GPIO (input output pins) which will allow me to interface to the Prius harnesses in a meaningful way. I may also need to have a CAN or LIN interface - but I think those can be fairly easily added as an add-on to the SBC (i.e. a separate PCB with a simple serial interface to the host processor).

    Any of the retail tablets have the advantage of being nicely packaged - but the downside of having no useful I/O capability for this sort of project.

    Wise words! :)
     
  5. jdh2550

    jdh2550 Co-Founder, Current Motor Company

    Joined:
    Nov 16, 2010
    317
    249
    0
    Location:
    Ann Arbor
    Vehicle:
    2005 Prius
    Model:
    N/A
    What, you mean you don't want a picture of the magic smoke rising out of my dashboard? ;)
     
    ger and lopezjm2001 like this.
  6. 69shovlhed

    69shovlhed Surly tree hugger

    Joined:
    May 13, 2012
    2,170
    750
    0
    Location:
    Delaware
    Vehicle:
    2017 Prius Prime
    Model:
    Prime Premium
    actually, that would be kinda cool. but i'd much rather see a german car fry. ideally, w/ several MB engineers inside it.:eek:
     
  7. jdh2550

    jdh2550 Co-Founder, Current Motor Company

    Joined:
    Nov 16, 2010
    317
    249
    0
    Location:
    Ann Arbor
    Vehicle:
    2005 Prius
    Model:
    N/A
    I presume you're an ex-Chrysler guy? I work with a couple of ex-Chrysler guys at the moment.

    I used to work for Ford a long time ago.
     
  8. 69shovlhed

    69shovlhed Surly tree hugger

    Joined:
    May 13, 2012
    2,170
    750
    0
    Location:
    Delaware
    Vehicle:
    2017 Prius Prime
    Model:
    Prime Premium
    good lord no! i wouldn't want a mopar product (except a 392 hemi) for anything but a urinal. rolling junk. no, i'm a mercedes tech. finest production car in the world. but i'd take great pleasure in machine gunning the whole engineering dept in stuttgart. those arrogant, sadistic, goose-stepping nitwits insist on designing everything like a chinese jigsaw puzzle. they must have a special department of fragile clip design. anyone who designs a clip that can't be removed without breaking gets a medal, a comemorative hitler youth dagger, and an extra portion of shnapps and strudel. anyone who designs a clip which can be re-used is fired and banished to the russian front and put on a strict diet of borsht.
    ok so i exaggerate. but their software really does suck, and they're not good with plastic or rubber parts. its said MB "over engineers". but thats cause the initial design is usually terrible, but they're too hard-headed to admit its a bad design, so they keep re-doing it until it finally works (sort of). they've been having problems with tail light sockets for over 20 years, still can't get them right. my chevelle has the same sockets it came with in 1970, and they still work. Wth!!
    sorry for the rant...
     
  9. jdh2550

    jdh2550 Co-Founder, Current Motor Company

    Joined:
    Nov 16, 2010
    317
    249
    0
    Location:
    Ann Arbor
    Vehicle:
    2005 Prius
    Model:
    N/A
    Ah - I thought you were making a reference to the Daimler-Chrysler debacle.

    But come on - don't be shy tell us how you really feel. Oh, you did that already... ;)

    My friend had a Sprinter - good when it worked expensive when it didn't. Some terrible design flaws in that one as well. If we ruled the world everything would be perfect, right? Where do I sign up for that gig??
     
    NortTexSalv04Prius likes this.
  10. 69shovlhed

    69shovlhed Surly tree hugger

    Joined:
    May 13, 2012
    2,170
    750
    0
    Location:
    Delaware
    Vehicle:
    2017 Prius Prime
    Model:
    Prime Premium
    if i ruled the world, my 1st decree would be that germans would only be allowed to make beer, chocolate, and pure race cars. and guns. and tools. they make great tools. and kartoffelpuffer.
    sour kraut and peppermint schnapps would be outlawed, as well as boiled meat.
     
  11. contraption

    contraption New Member

    Joined:
    Sep 26, 2012
    12
    1
    0
    Vehicle:
    2008 Prius
    Model:
    Two
    Hi jdh2550,

    I've just purchased a Prius and have been thinking along similar lines (tbh I'm a bit surprised to find that this doesn't exist already, since the MFD is such crap.) Instead of a single board computer attached to a separate touchscreen I'm considering going the tablet route with one or more IOIOs. This has several advantages:

    -you could have multiple IOIOs scattered around the car and connected via bluetooth for easy connections where needed (of course, there's no reason you couldn't add IOIOs to a SBC as well)
    -as you mention, tablets are neatly packaged already and install would be simplified.
    -it would be simpler to use the project on an arbitrary tablet and upgrades would be simplified, since you could just change out the tablet and leave the IOIOs in place. You might even be able to rig it so that the tablet is removable for security.

    I've had the car less than a week and am still in the early research phase of this project. So far the main hurdle seems to be climate control: do you know of any documented way to interact with the climate control system?
     
  12. jdh2550

    jdh2550 Co-Founder, Current Motor Company

    Joined:
    Nov 16, 2010
    317
    249
    0
    Location:
    Ann Arbor
    Vehicle:
    2005 Prius
    Model:
    N/A
    Hi contraption,

    I'm concentrating on making my Prius a plug-in first before I move on to this project. So, I've not made any progress.

    Your idea of using IOIO's sounds good but I'm not yet convinced that the project wouldn't be better served by an SBC. I'm not sure how you intend to have IOIOs communicate to the tablet via Bluetooth? Also at $50 a pop they're pretty expensive to use. Have you looked at any of the mesh network devices? There are some low cost ones appearing on Kickstarter. Although a mesh network onboard a Prius makes me a little nervous!

    I don't have any documentation about the climate control (CC). Do you know if it's a digital bus from MFD to a CC ECU or whether it's direct actuation from MFD to CC? I'm hoping it's the latter - and if that's the case then it should be pretty easy to reverse engineer... If it's a digital bus then I suspect that it's LIN based and I have a LIN capable dev board which I can hook up and sniff messages with.

    I'd be happy to help support and collaborate with you in your quest - but for the moment my PiP project comes first. I have $5K invested in that project so I really need to see it through! I'm in the process of changing jobs - after which I hope to have more time to devote to this stuff.
     
    ger likes this.
  13. contraption

    contraption New Member

    Joined:
    Sep 26, 2012
    12
    1
    0
    Vehicle:
    2008 Prius
    Model:
    Two
    Thanks for the quick response, I'm glad to hear this is still on your radar!

    The only info I've been able to find so far is an aftermarket stereo installation manual (linked here) that warns you should be sure to add a 68 Ohm resistor across the white and pink wires of an orphaned connector that was attached to the stock radio, lest you have problems with climate control on the MFD. This sounds to me like a termination resistor and supports the theory that communication for the radio and climate control are accomplished over a shared bus (LIN or CAN?) I'm pretty new to the world of automotive microcontrollers, and now wonder: is there a set of standard LIN codes for climate control that is consistent across manufacturers, or at least across models within each manufacturer, or does every model have its own codes and quirks? Can you recommend a sniffer?

    The IOIO supports Bluetooth connection to the Android device by means of a Bluetooth dongle on its USB port, but reading further I notice they say there are problems with communication dropouts if you try to keep more than one connected at a time. This means you'd be limited to a total of two: one connected via USB and the other via Bluetooth. I haven't played around with physical IO via Android on a SBC but suspect it might require a lot of non-portable code that would necessitate customization in order to move it to a new hardware platform, whereas the IOIO represents a dedicated IO module that can talk to a generic Android device, making whatever we come up with easier for others to make use of (as well as easier to upgrade as fancier new tablets appear.) I also tend to think of hobbyist products like SBC's and standalone touchscreen interfaces as being more expensive and buggier than their mass-market counterparts. As I said, I'm basically just gathering information at this point, and if I'm wrong in my assumptions a SBC+screen approach might very well be preferable.

    Here's a similar project from a BMW owner, but it sounds like they're mostly focused on the BMW-specific I-Bus interface for now.
     
  14. jdh2550

    jdh2550 Co-Founder, Current Motor Company

    Joined:
    Nov 16, 2010
    317
    249
    0
    Location:
    Ann Arbor
    Vehicle:
    2005 Prius
    Model:
    N/A
    Well I got an SBC for $75ish - interfacing to an LCD touchscreen will be a challenge but should be "doable". I'm not too bothered about making it portable to other hardware right now - and if it's still an Android app then as long as we modularize things appropriately there will still be a lot of carry over.

    OK - I just started poking around the service manual and came up with the attached system diagram for their "Multiplex Communication System" (see attached PDF).

    There's an A/C ECU sitting on the Mr. BEAN network (ok I added the Mr. part). There's a separate AVC-LAN and a separate CAN bus. All three of these are linked together via the Gateway ECU. So I wonder if there's a path for CAN commands to control stuff on the BEAN network.

    An interesting thing to note is that the DLC3 (the OBD2 connector beneath the dash) connects to the "Multiple Network Body ECU" as well as to the Gateway ECU. That makes me think that there are pins within DLC3 which will probably be able to talk to the MNBECU which in turn can send things on to the A/C ECU. Just a hunch.

    My guess is that the MFD sits as a node on the AVC-LAN.

    OK - a little more poking around and also attached is a system diagram for the A/C system. Cool... (pun most definitely intended!)

    (yeah, both PDFs have the same name - but don't let that fool you!)
     

    Attached Files:

  15. jdh2550

    jdh2550 Co-Founder, Current Motor Company

    Joined:
    Nov 16, 2010
    317
    249
    0
    Location:
    Ann Arbor
    Vehicle:
    2005 Prius
    Model:
    N/A
    Hardware I'm currently using is a dev board from Atmel:
    Atmel Store / Atmel AT32UC3C-EK

    And a DuinoMite Mega (this things a bargain!) My Duinomite Mega Canview V4 equivalent Project | PriusChat

    p.s. I've never worked with LIN - I think both BEAN and AVC-LAN may be LIN based - I'm not sure...
     
  16. jdh2550

    jdh2550 Co-Founder, Current Motor Company

    Joined:
    Nov 16, 2010
    317
    249
    0
    Location:
    Ann Arbor
    Vehicle:
    2005 Prius
    Model:
    N/A
    Googling IBus turned up this on AVRFreaks:

    "I've been trying to read and write to the BMW ibus, which is Real Similar to LIN, which is Real Similar to ISO9141. iBus seems to be 9600, even parity, 1 stop bit."

    (good news)

    and this:

    I did some playing around with iBus in my E39 and E46 some years ago to get my mp3 player info up in the navigation/control LCD display. Worked on one car, not on the other. Although they "should" have the same protocol, they were totally different.
    As nothing is documented (available) from BMW, it was all trial and (a lot of) error.
    Also, it's difficult to inject messages on the bus without upsetting something else.
    It might work on _ONE_ specific car, but don't expect it to work on any other car. Any difference in stereo or car model can **** things up.

    Apart from that, you can easily build an interface for it, the net is full of examples. "standard" serial comms.

    (not so good news)

    Now, I'm totally distracted again! Gee thanks! ;-) (just kidding of course my ADHD is no concern of yours...)
     
  17. jdh2550

    jdh2550 Co-Founder, Current Motor Company

    Joined:
    Nov 16, 2010
    317
    249
    0
    Location:
    Ann Arbor
    Vehicle:
    2005 Prius
    Model:
    N/A
    OK - more googling...

    AVC-LAN - eLinux.org - seems like it's a differential signal much like CAN (and they talk about using CAN transceivers as a driver). And this one has more details: TOYOTA Corolla MP3 Project. TOYOTA Corolla MP3 Project. SigmaObjects inc.

    BEAN Bus - eLinux.org - wheras Mr.Bean is a single wire at 10kbps (hardly any info on that page). And here's an SAE paper (behind paywall): Body Electronics Area Network (BEAN)

    So, it looks like there's more opportunity for hacking the AVC-LAN bus than the BEAN bus? (i.e. more info available). It might be time for me to buy a logic analyzer (something like this: Saleae Logic. The logic analyzer you'll love to use.)...

    But hang on a sec - I'm not supposed to be doing this yet! ;)
     
  18. contraption

    contraption New Member

    Joined:
    Sep 26, 2012
    12
    1
    0
    Vehicle:
    2008 Prius
    Model:
    Two
    So in order to talk to the climate control system, we would first need to reverse engineer a proprietary comm spec running on a weird bus at an unusual baud rate. I'm beginning to understand why somebody else hasn't taken care of it yet.

    The Salae logic analyzer looks awesome, I don't how I don't own one already. It's going on my wish list for sure.

    The AVC-LAN does sound better documented, and might let us talk to the existing Prius head unit (and steering wheel controls?) but the climate control in particular is the only thing for which the the MFD is the sole interface. Runtime engine/fuel efficiency monitoring can be accomplished through OBDII/Torque and the AV functions would be taken over by the Android device itself.

    I'll keep digging through the links you've found and add anything else I turn up in my own research to the conversation here. In the meantime, you get back to your plug-in project!
     
  19. jdh2550

    jdh2550 Co-Founder, Current Motor Company

    Joined:
    Nov 16, 2010
    317
    249
    0
    Location:
    Ann Arbor
    Vehicle:
    2005 Prius
    Model:
    N/A
    Actually I don't think it will be too hard because it's likely that all the commands are pretty much discretely controlled by buttons. Press a button capture the bus traffic. Press another button capture the bus traffic. Repeat a few hundred times and we should have it figured out!

    Yeah, I've been wanting one of these for a while. If I remember correctly their software is free so you could use one of those cheapy devices (specifically the one that starts EZ-USB) and probably use that as the hardware and still use the Saleae software. But that would be a little "mean". Plus the Saleae seems really well put together so I'm sure it's worth it.

    Yes, all good points. For me the 'droid will also replace the navigation functions.

    Sounds good.

    Spoil sport! ;-) But you're right. However, one last thing... Check out this link: TOYOTA Corolla MP3 Project (make sure you scroll down to the "simpler version". That's pretty darn straightforward. I think I'll use the source code from that project and make something work on the DuinoMite to sniff AVC-LAN and display on VGA monitor as well as log to SD Card. Is that something you could use? I don't know you're tech background - perhaps something you could whip together yourself?

    Anyway, I know, I know back to the other stuff...