Announcement

Collapse
No announcement yet.

v1 support in Linux

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

  • v1 support in Linux

    http://icculus.org/~chunky/stuff/v1cs-2009-11-23.tar.gz

    Chunky_Ks was kind enough to build a basic cli app for valentine1 support in *nix. This will hopefully be the beginnings of a proper dbus daemon for Linux[ICE] and UI for nGhost3.

    More to come...

    If you have a v1 and can test this, please let us know how it works.

    Big thanks to Chunky_Ks for his efforts!
    Former author of LinuxICE, nghost, nobdy.
    Current author of Automotive Message Broker (AMB).
    Works on Tizen IVI. Does not represent anyone or anything but himself.

  • #2
    I have no idea if it will actually work, by the way, as I don't have a V1 to test with.

    Gary (-;
    OBDGPSLogger, for logging OBDII and/or GPS data
    OBDSim, an OBDII/ELM327 software simulator
    mp3car forums: obdgpslogger, obdsim

    Comment


    • #3
      Lets hope we can get a tester for this. If anyone has a valentine1 and is interested in testing this please email me at [email protected] and I will work out a discounted unit for you. You would just have to test the plugin and work with chunkyks on any issues etc.

      EDIT: Tester Found

      - Matt
      V1Connect - Valentine1 Serial Adapter http://www.v1connect.com

      Comment


      • #4
        Email sent

        Comment


        • #5
          Replied. If you decide to purchase please contact chunkyks and begin discussion with him if you have any questions on the plugin. Keep me informed and good luck! chunkyks please email me if you have any questions or concerns.

          - Matt
          V1Connect - Valentine1 Serial Adapter http://www.v1connect.com

          Comment


          • #6
            I threw the zlib header on the code and fixed some compilation warnings with -Wall. Updated the same tarball.

            I think I'm done for now, though - bit pointless trying to work on it until I, or someone else, actually tries it.

            If you try it, my email is [email protected] [also appears in the boilerplate]

            Gary (-;
            OBDGPSLogger, for logging OBDII and/or GPS data
            OBDSim, an OBDII/ELM327 software simulator
            mp3car forums: obdgpslogger, obdsim

            Comment


            • #7
              I wrote the serial sampler cli a while back, but my lazzy self couldn't get myselft to continue working on it. Hope somebody find use of it.
              Attached Files

              Comment


              • #8
                v1cs-2009-12-07.tar.gz

                It's only spamming the console with text right now, but --listen works, according to kantlivelong.

                Code:
                [gamehenge:~/src/v1cs/]$ ./v1cs --help
                Usage: ./v1cs [args]
                   [-m|--mute]
                   [-d|--device=</dev/ttyUSB1>]
                   [-1|--on]
                   [-0|--off]
                   [-l|--listen]
                   [-o|--mode]
                   [-v|--version]
                   [-h|--help]
                [gamehenge:~/src/v1cs/]$
                So what most people want is ./v1cs -1l [dash one-little-ell]

                Gary (-;
                OBDGPSLogger, for logging OBDII and/or GPS data
                OBDSim, an OBDII/ELM327 software simulator
                mp3car forums: obdgpslogger, obdsim

                Comment


                • #9
                  Good to hear it works! I'll take this and make it a proper daemon with dbus signals, linuxice packaging, and all that fun stuff.

                  Cheers,
                  -tripzero
                  Former author of LinuxICE, nghost, nobdy.
                  Current author of Automotive Message Broker (AMB).
                  Works on Tizen IVI. Does not represent anyone or anything but himself.

                  Comment


                  • #10
                    Don't be silly...
                    I just finished dbus support, myself.


                    You should totally set up some space for it in linuxICE svn and give me write access to it so I can quit with this silly update-the-same-tarball-every-time-I-make-a-change crap.

                    Gary (-;
                    OBDGPSLogger, for logging OBDII and/or GPS data
                    OBDSim, an OBDII/ELM327 software simulator
                    mp3car forums: obdgpslogger, obdsim

                    Comment


                    • #11
                      Also I just put in the daemonise option.

                      Code:
                      kibbles:build chunky$ ./v1cs --help
                      Usage: ./v1cs [args]
                         [-m|--mute]
                         [-d|--device=</dev/ttyUSB1>]
                         [-1|--on]
                         [-0|--off]
                         [-l|--listen]
                         [-o|--mode]
                         [-e|--daemonise]
                         [-q|--quiet]
                         [-v|--version]
                         [-h|--help]
                      kibbles:build chunky$
                      Gary (-;
                      OBDGPSLogger, for logging OBDII and/or GPS data
                      OBDSim, an OBDII/ELM327 software simulator
                      mp3car forums: obdgpslogger, obdsim

                      Comment


                      • #12
                        Trip actually did generously hook me up with some svn space in the linuxice repo.

                        Code:
                        svn co https://linuxice.svn.sourceforge.net/svnroot/linuxice/packages/vone
                        cd vone
                        mkdir build; cd build
                        cmake ..
                        make
                        ./v1cs --help
                        Eventually outputs:
                        Code:
                        gogh:~/src/tmp/vone/build chunky$ ./v1cs --help
                        Usage: ./v1cs [args]
                           [-m|--mute]
                           [-d|--device=</dev/ttyUSB1>]
                           [-1|--on]
                           [-0|--off]
                           [-l|--listen]
                           [-o|--mode]
                           [-e|--daemonise]
                           [-q|--quiet]
                           [-v|--version]
                           [-h|--help]
                        gogh:~/src/tmp/vone/build chunky$
                        Have fun,
                        Gary (-;
                        OBDGPSLogger, for logging OBDII and/or GPS data
                        OBDSim, an OBDII/ELM327 software simulator
                        mp3car forums: obdgpslogger, obdsim

                        Comment


                        • #13
                          FWIW, the Dbus signal is thus:
                          Code:
                          DBUS_TYPE_BOOLEAN, loud,
                          DBUS_TYPE_UINT32, strength,
                          DBUS_TYPE_UINT32, ledbits,
                          DBUS_TYPE_UINT32, eightsegmentbits,
                          DBUS_TYPE_UINT32, arrowbits,
                          DBUS_TYPE_STRING, &data
                          Where "loud" corresponds to loud/quiet, "strength" is an actual number between 1 and 8. the Leds, eight-segment display, and arrow leds are packed thus:

                          Code:
                          int eightsegmentbits = 0;
                          int i;
                          for(i=7;i>=0;i--) {
                          	eightsegmentbits |= (1<<i) * (eightsegment[7-i]?1:0);
                          }
                          
                          int ledbits = 0;
                          if(ledX) ledbits |= 0x08;
                          if(ledK) ledbits |= 0x04;
                          if(ledKA) ledbits |= 0x02;
                          if(ledLaser) ledbits |= 0x01;
                          
                          int arrowbits = 0;
                          if(frontarrow) arrowbits |= 0x04;
                          if(sidearrow) arrowbits |= 0x02;
                          if(reararrow) arrowbits |= 0x01;
                          And "data" is the original seventeen bytes pulled from the device.

                          The documentation I was working off appears here: http://www.v1connect.com/Protocol.aspx.

                          Gary (-;
                          OBDGPSLogger, for logging OBDII and/or GPS data
                          OBDSim, an OBDII/ELM327 software simulator
                          mp3car forums: obdgpslogger, obdsim

                          Comment


                          • #14
                            Also, with this you can "simulate" by just pointing at a file containing a typical data stream using the --device option.

                            Gary (-;
                            OBDGPSLogger, for logging OBDII and/or GPS data
                            OBDSim, an OBDII/ELM327 software simulator
                            mp3car forums: obdgpslogger, obdsim

                            Comment


                            • #15
                              Looking good guys. Glad its working out and cant wait to see what becomes of this.
                              V1Connect - Valentine1 Serial Adapter http://www.v1connect.com

                              Comment

                              Working...
                              X