Announcement

Collapse
No announcement yet.

How about an ODB-II plugin?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How about an ODB-II plugin?

    Obd-ii?
    (All done)
    iPad Mini 128GB, RF 600.5 amp, JL12W0V2, 8 Infinity Components

  • #2
    Originally posted by sdashiki View Post
    Obd-ii?
    Do you not think of anything else?









    OBD-ii would be nice though.

    Comment


    • #3
      Sorry guys, I went to the beach for a few days. Back now though

      Originally posted by sdashiki View Post
      Obd-ii?
      Know how to write Objective-C?

      ODB-II is something I want so I hope to get to it at some point, but since it took me two years to get off my butt and do this much I wouldn't wait on me to do it

      -dave
      My pathetic worklog.
      CarFrontEnd (now it's own sub-forum!!!!)

      Comment


      • #4
        Well, it seems like what you really need is some good code to communicate with serial devices. If you had that, you could:

        1. Communicate with serial OBDII devices
        2. Control XM Direct units
        3. Output data to LCD/LED displays
        4. Get data from NMEA GPS devices

        I'm too swamped for the next few months to get on the path to figure this out, though. Anybody else willing to put some serial comm code into CFE?
        Originally posted by ghettocruzer
        I was gung ho on building a PC [until] just recently. However, between my new phone having internet and GPS and all...and this kit...Im starting to have trouble justfiying it haha.
        Want to:
        -Find out about the new iBug iPad install?
        -Find out about carPC's in just 5 minutes? View the Car PC 101 video

        Comment


        • #5
          Originally posted by Bugbyte View Post
          Well, it seems like what you really need is some good code to communicate with serial devices. If you had that, you could:

          1. Communicate with serial OBDII devices
          2. Control XM Direct units
          3. Output data to LCD/LED displays
          4. Get data from NMEA GPS devices

          I'm too swamped for the next few months to get on the path to figure this out, though. Anybody else willing to put some serial comm code into CFE
          There isn't really a call for it to be in CFE directly (though it could be useful for remote control options), but I potentially see a helper object in the API being a good idea.

          I'm open to ideas on what people think it should do (though remember it should be generic to allow the plugin developer to do the specifics like talk to a GPS, ODB-II, etc..).

          Just some quick thoughts:
          1. It should manage connection prefs (e.g. last device connected) storage.
          2. Handle error checking for missing device (at startup and while running).
          3. Handle input and output (should this be done by notifications, selector call backs, or both?)
          4. Configure the port speed.

          I'd have to look at the serial interface (it's been awhile and I can't look right now) to see what other things should be bubbled up/handled.

          -dave
          My pathetic worklog.
          CarFrontEnd (now it's own sub-forum!!!!)

          Comment


          • #6
            Originally posted by iamgnat View Post
            I'm open to ideas on what people think it should do (though remember it should be generic to allow the plugin developer to do the specifics like talk to a GPS, ODB-II, etc..).
            Bingo. That way people can create a plugin that uses the generic serial handler to communicate with the device.

            I looked into this a few months ago and I could tell that it wouldn't be incredibly difficult to do but I hadn't programmed in Cocoa at that point and it was an uphill climb.

            I've got some serial code that Jirka very helpfully sent to a friend of mine when we were working on XM that could be helpful. PM me if you're interested.
            Originally posted by ghettocruzer
            I was gung ho on building a PC [until] just recently. However, between my new phone having internet and GPS and all...and this kit...Im starting to have trouble justfiying it haha.
            Want to:
            -Find out about the new iBug iPad install?
            -Find out about carPC's in just 5 minutes? View the Car PC 101 video

            Comment


            • #7
              Originally posted by Bugbyte View Post
              I've got some serial code that Jirka very helpfully sent to a friend of mine when we were working on XM that could be helpful. PM me if you're interested.
              Yeah I have some that I played with about a year ago or so. I looked at it last night. The "pain" is in setting up the serial port as you have to drop to the lower level C routines, but after that it is all NSFileHandle work which is pretty simple.

              I've already started to think about the interface to it, but if someone wants to beat me to the punch they are more than welcome to

              -dave
              My pathetic worklog.
              CarFrontEnd (now it's own sub-forum!!!!)

              Comment


              • #8
                .net 2.0+ has a great SerialPort class (System.IO.SerialPort). It has event callback functionality and everything. I've successfully used it to communicate with and parse data from a Holux M1000 GPS. I've started a little bit of work to communicate with and parse data from a Elmscan 5, just haven't gotten around to it yet. Either way, that library is awesome. No looping through or waiting for returns, just use the built in eventhandler functions and you're good to go.

                Comment


                • #9
                  Originally posted by impala454 View Post
                  .net 2.0+
                  This is a Mac Front End

                  NSFileHandle has the same functionality that you are talking about, it is just for basic file handles though. You just need to request the underlying C file id from the object so you can set it up the serial port configuration (bits, speed, etc..), then you just use NSFileHandle to handle your select loop type monitoring of it and it will notify you when there is work to be done.

                  -dave
                  My pathetic worklog.
                  CarFrontEnd (now it's own sub-forum!!!!)

                  Comment


                  • #10
                    Oh geez sorry about that I actually got linked to this thread from a google search

                    ironically, the google search was "ODB serial port C#"

                    Comment


                    • #11
                      Originally posted by impala454 View Post
                      Oh geez sorry about that I actually got linked to this thread from a google search
                      It's all a cheap ploy to drag you over to our side

                      -dave
                      My pathetic worklog.
                      CarFrontEnd (now it's own sub-forum!!!!)

                      Comment

                      Working...
                      X