1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Open Source Raspberry Pi Omex datalogger

Discussion in 'Software' started by Krikkit, 9 Oct 2012.

  1. Krikkit

    Krikkit All glory to the hypnotoad! Super Moderator

    Joined:
    21 Jan 2003
    Posts:
    23,929
    Likes Received:
    657
    Hi folks, I've got a bit of a challenge on, hopefully you guys will have some ideas!

    A friend runs a race car in a small championship, his car runs on an Omex S400 ECU, which has a serial port to output data/alter the map from. Until now he hasn't used any GPS/ECU data when looking at his racing, but there's a desire there, since the ECU is so easily accessed (it sits on the floor in the passenger footwell).

    Omex provide two pieces of software - one to alter the map, the other is a comprehensive data logger. The software is pretty old, so it should run OK on a Pi, but a) Can the pi run Win95/XP under emulation? b) Will I be able to get the software being emulated to use a serial port properly? c) Is this a stupid idea?

    The reason I'm looking at a Pi is because it's cheap, light, and small - I can pack it all into a tiny project box and bolt it down to the bulkhead without too much modification.

    If, on the other hand, you have another suggestion for a small, light windows-capable machine I'm all ears, I was considering some kind of netbook as well.
     
  2. Picarro

    Picarro What's a Dremel?

    Joined:
    9 Jun 2009
    Posts:
    3,331
    Likes Received:
    134
    It could probably be very fun doing on a Pi, but a used netbook would probably be easier. And it would have en inbuilt screen for on-the-fly adjustments.
     
  3. Krikkit

    Krikkit All glory to the hypnotoad! Super Moderator

    Joined:
    21 Jan 2003
    Posts:
    23,929
    Likes Received:
    657
    Hmm... Maybe you're right.

    There's no on-the-fly adjustment, as the environment in the car when it's running is simply too harsh and too busy to be fiddling with anything. This is purely a passive system for capturing ECU data and run a GPS add-on.

    What about one of those VIA Epia Mini-ITX boards? They're pretty small and light, could they be smaller than a net-top?
     
  4. Picarro

    Picarro What's a Dremel?

    Joined:
    9 Jun 2009
    Posts:
    3,331
    Likes Received:
    134
    when you factor in the case, harddrive, PSU and other bits and bobs it would probably be larger than a netbook. And you would still need some sort of power for it. With a netbook you can just make it removable and have it charged whenever he is not running.
     
  5. Krikkit

    Krikkit All glory to the hypnotoad! Super Moderator

    Joined:
    21 Jan 2003
    Posts:
    23,929
    Likes Received:
    657
    It'll be a little larger perhaps, but it'd have to be powered on the car's systems, which isn't difficult for a Mini-ITX system as they're often used in car PC's. Then we've got the problems of getting it running near-automatically once the power is on, as the less stuff for him to do before a race/qualifying session the better!

    Maybe I need to abandon using the Omex software and look at other logging stuff, that way I might be able to resort back to a headless, slim OS'd Pi that can be easily powered...
     
  6. Picarro

    Picarro What's a Dremel?

    Joined:
    9 Jun 2009
    Posts:
    3,331
    Likes Received:
    134
    That might be a good idea. We went from "Lets build a small Pi powered system" to "Hey, a M-ITX system with dedicated PSU from the car would be great".. Might be a bit out of the reasonable spectrum.
     
  7. Krikkit

    Krikkit All glory to the hypnotoad! Super Moderator

    Joined:
    21 Jan 2003
    Posts:
    23,929
    Likes Received:
    657
    I'm still hoping to get the Pi working, as there's a few folks out there trying to interpret the outputs into something meaningful, but the backup is definitely something like that.
     
  8. Flibblebot

    Flibblebot Smile with me

    Joined:
    19 Apr 2005
    Posts:
    4,829
    Likes Received:
    297
    If you're set on going down the Pi route, just be aware that you'll only be able to use one of the Pi-based Linux distros - I don't think it's got enough oomph to emulate another OS.

    Perhaps you use a two-tier system - the Pi to record, log and analyse the running data, perhaps with a laptop/netbook to alter the mapping if/when it's needed?
     
  9. Krikkit

    Krikkit All glory to the hypnotoad! Super Moderator

    Joined:
    21 Jan 2003
    Posts:
    23,929
    Likes Received:
    657
    Yep, that would be the plan. The only thing to change on his map is the rev limit for launch control - it doubles nicely as a pit-lane speed limiter. Other than that the map won't be touched, as it's beyond any of our expertise, and with a couple of grand of engine to lunch it's not something to mess with!
     
  10. Puk

    Puk (A shrewd and knavish sprite)

    Joined:
    23 Mar 2002
    Posts:
    967
    Likes Received:
    74
    Kirikkit, I'll throw this one out there to you for a suggestion.

    There's a gadget that you can get fairly affordably second hand now called a joggler. It's a touchscreen photoframe system with a small arm processor and inbuilt flash disc with sound and wifi/Ethernet. In its standard state is pretty crap since O2 have albut given up support, but it's useful for one thing. It can boot from external USB flash drives.

    There's a community at the joggler wiki that have installed numerous operating systems on it including windows. I use mine for a squeezebox server that outputs via an external dac to my hifi but was tempted to fit it in the car for a carpc.

    So you could if you found the desired system, boot from a USB flash drive on a hub, and use a USB to serial converter to retrieve the data from your system, process on the fly and alter it with the touchscreen interface? It's not as meaty as an i5 powered itx box, but could be more convenient?
     
  11. Krikkit

    Krikkit All glory to the hypnotoad! Super Moderator

    Joined:
    21 Jan 2003
    Posts:
    23,929
    Likes Received:
    657
    Ooh, interesting idea PUK, that's 2nd on the list after a Pi! The XP setup looks very doable, and they're cheap enough that I could hack one up if necessary without worrying.

    Processing power isn't needed, it's just getting something that will survive the vibration of a racing car that's small and easily mountable enough to make it practical.
     
  12. Puk

    Puk (A shrewd and knavish sprite)

    Joined:
    23 Mar 2002
    Posts:
    967
    Likes Received:
    74
    I use mine everyday tbh, have had various Linux distros running on it over the last year or so before I finally settled for making it an everyday useable squeezebox.

    I've had mine apart and added some ram heatsinks as it currently sinks through the metal stand and is pretty straightforward to pull apart. I'm not sure why the joggler never took off a bit more in this community as its a cool gadget and as you can now get them for sub £40, I'm half tempted to fit one in every room!

    Anyhow food for thought. Best of luck with the pi!
     
  13. lp rob1

    lp rob1 Modder

    Joined:
    14 Jun 2010
    Posts:
    1,530
    Likes Received:
    140
    You won't be able to run the software on the Pi, as it has an ARM CPU, not x86. Your only options are to get a small XP/98 box running in the car, or reverse engineer the software to give meaningful input to the Pi.
     
  14. Krikkit

    Krikkit All glory to the hypnotoad! Super Moderator

    Joined:
    21 Jan 2003
    Posts:
    23,929
    Likes Received:
    657
    You can run myrhh on the Pi to emulate x86.
     
  15. badders

    badders Neuken in de Keuken

    Joined:
    4 Dec 2007
    Posts:
    2,642
    Likes Received:
    74
    I think you'll struggle with XP though.
    I know that GPS works on the Pi - I have a USB -> Serial -> GPS Mouse setup, and that works perfectly with GPSD on the Pi (in Debian Squeeze - I haven't tested Wheezy yet).

    You may be better off configuring the GPIO port to read serial data (or use another USB-Serial bridge) and then just logging the serial messages for analysis later?
     
  16. Krikkit

    Krikkit All glory to the hypnotoad! Super Moderator

    Joined:
    21 Jan 2003
    Posts:
    23,929
    Likes Received:
    657
    That's the current plan actually - there's a chap over on a VW forum doing the same thing atm, but how far along we'll get I'm not sure. It's a good excuse to get a Pi and do a bit of hacking anyway. :)
     

Share This Page