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

Announcing the PriusChat OBDII Phone App Project

Discussion in 'Prius OBDII Third-Party Apps' started by TonyPSchaefer, Nov 20, 2010.

  1. Spenumatsa

    Spenumatsa Junior Member

    Joined:
    Jun 20, 2010
    77
    5
    0
    Location:
    Nashua, NH
    Vehicle:
    2010 Prius
    Model:
    IV
    As an registered iPhone app developer, the answer is no. You cannot download it from any other place except the iTunes store. Of course you can anything with jail braked phones.
     
  2. TonyPSchaefer

    TonyPSchaefer Your Friendly Moderator
    Staff Member

    Joined:
    May 11, 2004
    14,816
    2,497
    66
    Location:
    Far-North Chicagoland
    Vehicle:
    2017 Prius Prime
    Model:
    Prime Advanced
    Thanks, guys.
    As I said, I don't know squat about doing this.
    That's actually a little bit incorrect; I earned a BS in CompSci a very long time ago and though I remember much about programming I have forgotten a lot of it. It's the open source phone app stuff that I don't know anything about.

    I work for a company that builds its own software, hardware and firmware. I, however, work in the Education department. Many times I am asked to sit in on development meetings to throw out ideas that are sometimes so basic the engineers would have missed them. Additionally, my contact with the end-users gives me their perspective, which I bring to the meetings.

    For this project, I have no idea what role I can play other than interested party. I would be more than happy to beta test or whatever. Like everyone else, I think I have good ideas.
     
  3. frenchie

    frenchie Member

    Joined:
    Oct 19, 2004
    150
    48
    0
    Location:
    France, not far from PARIS
    Vehicle:
    Other Hybrid
    Model:
    N/A
    Bonjour,

    I had a contact with Brennan from the above link.
    I signed a NDA with him, but I can write down, after looking shortly to some of his sources, that:
    It should be possible to speak efficiently with the prius using his device.
    with his device, it seems possible to manage multiframe responses. (necessary to get SoC for instance).

    Here is a starter howto get some infos from prius gen3.

    I have no experience with dev on Ipad, but I wrote some programs in VB (with CANUSB, ELM327 & TACTRIX OP2 as interface) using the infos in the above pdf and I will share my small knowledge with pleasure...
    My idea would be to show the ipxx 's screen on my new HU using a spare video input... .
     
  4. Sakamura

    Sakamura New Member

    Joined:
    Nov 25, 2010
    12
    0
    0
    Location:
    Montréal, Québec, Canada
    Vehicle:
    2010 Prius
    Model:
    N/A
    Grain of salt here.

    FWIW, I'm a game developer (VP Technology actually), have been working on the iPhone for the past 2+ years.

    First, Mr. Apple forbids putting any reference to their libraries publicly.
    Second, it's preferable to have some liberal licensing. All licensing support adding exceptions, so even GPL can be possible, but I'd recommend against it for simplicity.
    Third, with the 4.2 now up, iPad app would be very fun, since it can run in the background ^___^ Most dangerous thing we could do is to actually make a iTunes controller with signals, like song playing as long as you press gas, and horrible horrible stuff like that ;)

    I don't have a lot of time on my hands, but I have quite a lot of hands-on experience on iPhone and iPad, Obj-C, and even more on coding or app design in general, if you need help, feel free to throw me a PM.
     
  5. ChapmanF

    ChapmanF Senior Member

    Joined:
    Mar 30, 2008
    23,327
    15,111
    0
    Location:
    Indiana, USA
    Vehicle:
    2010 Prius
    Model:
    IV
    I intersected the short list of "popular open source licenses with broad community support" from that link with the FSF's list of open source licenses that they consider compatible with the GPL. That left really only the new BSD and the MIT X11 licenses (listed as compatible with GPL v2 and GPL v3) and the Apache license 2.0 (compatible with GPL v3 only).

    Choosing a GPL-compatible open source license gives us some flexibility if we happen to discover a really good existing project to piggyback on that happens to be GPL licensed. The result in that case would be GPL licensed, but if the alternative were to have to pass up good quality work and re-do it all, probably nobody wants to work that hard.

    As it happens though, my brief search only turned up three existing projects for OBD-II and Android, and all three use the Apache license 2.0.

    The unitsofmeasure code that I would definitely want to use is under the new BSD license, which is pretty much compatible with anything.

    So we could probably choose Apache or BSD and be fine, and manage to avoid GPL after all since it doesn't seem as if there's much existing GPL work we would want to use.

    Of the three Android apps I found so far, one is moribund; the other two have some activity and some possibly usable example code; neither looks anything like complete. They both pretty much use hardcoded PID and conversion information instead of user-loadable tables which we'll certainly want.


    Does anybody have a preference between svn and git for version control? If not I'll flip a coin.


    This will be for down the road, but eventually the app will need to be digitally signed. Any signing certificate can be used during testing, but the one used for ultimate signing should probably belong to someone officially connected to priuschat.com, who should also probably set up a "priuschat" Android developer account to be the proud papa of the app. (I'll probably make my own developer account just to play in, but a priuschat account sounds right for publishing the app.)

    The priuschat signing certificate needs to have a lifetime to at least end-2033 and will have to be kept well backed up and its passphrase kept very private - anybody who knows it could create fake versions of a priuschat app that did Bad Things, and that would hurt business. Development can be a great community project, but it will be up to the keeper of the priuschat name (and passphrase) to decide when it's ready for the priuschat signature. I can help with the certificate generation but I shouldn't just generate it for you (cos then I'd know it!).


    By the way, I assume there are already good collections of PID specs for NHW20 and ZVW30 like what Graham and Vincent worked out for NHW11. Can somebody point me to them? Are they in XGauge tables in a forum thread somewhere, or in some other form?

    Enough for now, -Chap
     
  6. orange4boy

    orange4boy Member

    Joined:
    Oct 20, 2009
    231
    43
    15
    Location:
    Vancouver BC
    Vehicle:
    2003 Prius
    Model:
    N/A
    Just popped in to say: GO TEAM GO!

    Can't wait to use something like this on my new iphone4
     
  7. reeed

    reeed Junior Member

    Joined:
    Oct 19, 2009
    30
    1
    1
    Location:
    Singapore
    Vehicle:
    2016 Prius
    Model:
    N/A
    svn please :)
     
  8. TonyPSchaefer

    TonyPSchaefer Your Friendly Moderator
    Staff Member

    Joined:
    May 11, 2004
    14,816
    2,497
    66
    Location:
    Far-North Chicagoland
    Vehicle:
    2017 Prius Prime
    Model:
    Prime Advanced
    All great points, Chap, but I can only speak to this one. I'm going to assume that Danny would be the owner of the Priuschat Certificate. He's got pretty much a brand with Priuschat now and I'm sure he would want to make sure the name is kept clean.
     
  9. Sakamura

    Sakamura New Member

    Joined:
    Nov 25, 2010
    12
    0
    0
    Location:
    Montréal, Québec, Canada
    Vehicle:
    2010 Prius
    Model:
    N/A
    I personally use SVN for most of my projects, but GIT works well when you have >20 people working on the project, as you can get info from more than one source that's usually online. Speed diff isn't that incredible that said.

    My suggestion is to take any certificate really for the first part of the dev, once the project is well under way and starts to see results, then it becomes a good idea to get that said "real" certificate. Or else, it's only money spent too early.

    Same for iOS ... I mean I have my own personal certificate for my products, and if PriusChat wants to have an official product, there's no need to spend $100 on something that might be useful in 6-12 months (and since the subscription is yearly, it'd be a $100 down the drain.


    Saka
     
  10. ChapmanF

    ChapmanF Senior Member

    Joined:
    Mar 30, 2008
    23,327
    15,111
    0
    Location:
    Indiana, USA
    Vehicle:
    2010 Prius
    Model:
    IV
    Interestingly, Android devices are perfectly happy with a self-signed cert. They're not using it to prove that you're a particular person known to a CA, but only to verify that if you supply an app update you're the same person who originally signed the app, or that two of your apps should be allowed to share a sandbox if you request it. I'm not sure yet just what I think of their model, but at least it doesn't require you to spend any money on a cert.

    An argument might even be made for opening the Priuschat market account right away, making a cert, and publishing the official PriusChat Hello World app, just to stake a claim. Then the cert's already associated with PriusChat apps when used later to sign a more interesting app.

    -Chap
     
  11. pEEf

    pEEf Engineer - EV nut

    Joined:
    Sep 23, 2010
    720
    576
    3
    Location:
    Berkeley, CA
    Vehicle:
    2008 Prius
    Model:
    N/A
  12. ChapmanF

    ChapmanF Senior Member

    Joined:
    Mar 30, 2008
    23,327
    15,111
    0
    Location:
    Indiana, USA
    Vehicle:
    2010 Prius
    Model:
    IV
    @pEEf: that's very cool.

    @*: a name for this project? sourceforge has a short-phrase-style name and also a 15-character filename-style name. And a description.

    PriusChat OBD-II Mobile Apps would fit for the full name, and the automatically suggested short name comes out priuschatobd-ii which is ok I guess.

    Will that make it sound too Prius-specific? I'm thinking of writing a description along the lines of "with an emphasis on accessing the specialized performance and diagnostic information in hybrid and other advanced vehicles, with loadable definitions to support new parameters and codes as they become known." Which should make it appealing to owners of other hybrids and some non-hybrids too.

    I'm of two minds about the project name - benefit of associating the project closely with priuschat, possible cost of suggesting to non-Prius folks that it's not of interest to them too? What do you think?

    And if you would suggest a different name, what would it be?
    <brainstorm>
    obdchat?
    "OBD-II Mobile Apps from PriusChat"?
    ...?
    </brainstorm>

    -Chap

    also, I'm still wondering (maybe it got buried earlier in the thread) - where do I find the currently known PID information for NHW20s and ZVW30s? Where do scangauge owners go to find those and program xgauges?
     
  13. reeed

    reeed Junior Member

    Joined:
    Oct 19, 2009
    30
    1
    1
    Location:
    Singapore
    Vehicle:
    2016 Prius
    Model:
    N/A
    "hybridview"
    "hybridmon"
    "stealthmon"
    None of the above have anything related to the Prius or hybrid cars on the first page of google search :)

    "stealthview" brings up some night vision equipment...
     
  14. reeed

    reeed Junior Member

    Joined:
    Oct 19, 2009
    30
    1
    1
    Location:
    Singapore
    Vehicle:
    2016 Prius
    Model:
    N/A
  15. Danny

    Danny Admin/Founder
    Staff Member

    Joined:
    Nov 24, 2003
    7,093
    2,101
    1,174
    Location:
    Charlotte, NC
    Vehicle:
    2013 Prius Plug-in
    Model:
    Plug-in Base
    How hard is it to change the name down the road? Right now I think part of Tony's vision is to have it be "PriusChat" branded, but I have another name ready if we need it. It also ties into a new community site I'm going to launch soon :)
     
  16. ChapmanF

    ChapmanF Senior Member

    Joined:
    Mar 30, 2008
    23,327
    15,111
    0
    Location:
    Indiana, USA
    Vehicle:
    2010 Prius
    Model:
    IV
    I don't know but let's see what I can find ....

    Renaming a project

    ...

    • Follow the provided instructions. The rename operation will then be queued up and performed on all of the necessary servers.
    Please note that changing the UNIX name for your project will change the location of your project -- the URLs to access your project on the SourceForge.net site, and the URLs and hostnames for things like CVS, Subversion and your project web site, will all change.
    ... it just seems tidier to pick the name first ....

    -Chap
     
  17. TonyPSchaefer

    TonyPSchaefer Your Friendly Moderator
    Staff Member

    Joined:
    May 11, 2004
    14,816
    2,497
    66
    Location:
    Far-North Chicagoland
    Vehicle:
    2017 Prius Prime
    Model:
    Prime Advanced
    Personally, my preference would be to keep the name as generic as possible and not be vehicle or propulsion specific.

    To Danny's point, I think the opening splash screen should say something like, "designed and developed by the PriusChat.com community".

    I'm all in favor of adaptability and vehemently opposed to boundaries. To that point, calling it PriusOBD or HybridOBD limits its projected use. However, if it were possible to continue development for eventual EV use, that would be awesome. Not to mention the plug-in. And if someone were able to use this app and apply our GreenDriving templates to achieve improved overall mileage on their conventional vehicle, that should make us all just a little giddy. I mean, some cars still have really good gauges but some cars are taking away gauges and replacing them with dummy lights if they are replaced at all. We should strive to give those gauges back to the average driver. And then add some more.

    Even if we start exclusively with the Prius, we should have one eye to the future including the Plug-In and impending EV and the other to the past to support drivers of conventional vehicles. Let's not just make our world a little better, let's try to make everyone's world a lot better.
     
  18. ChapmanF

    ChapmanF Senior Member

    Joined:
    Mar 30, 2008
    23,327
    15,111
    0
    Location:
    Indiana, USA
    Vehicle:
    2010 Prius
    Model:
    IV
    With the usual diffidence in plugging my own suggestion, what did you think of obdchat? Not vehicle or propulsion specific, still manages to sneak in a -chat, and in a plausible way (I mean, it is going to chat with those pesky ECUs, after all).

    -Chap
     
  19. ChapmanF

    ChapmanF Senior Member

    Joined:
    Mar 30, 2008
    23,327
    15,111
    0
    Location:
    Indiana, USA
    Vehicle:
    2010 Prius
    Model:
    IV
  20. mitch672

    mitch672 Technology Geek

    Joined:
    Mar 10, 2004
    1,077
    197
    0
    Location:
    Randolph, MA
    Vehicle:
    Other Electric Vehicle
    Model:
    N/A
    Steve Woodruff (AutoBeYours.com), has an OBDII app for the android, for the Gen 2 Prius, reads and clears Prius specific error codes as well, and has fancy gauges.

    He is using a Bluetooth OBDII dongle. He's also a member of Priuschat (imwoody36), perhaps he'd be interested in guiding the effort, although he is selling his android solution for about $159 with the BT adapter.

    Android Smartphone Toyota Scanner
     
    1 person likes this.