Re: Re: h2200 as a gauge/monitor in a car

From: Adrian <a_ces_at_helldivers.net>
Date: Mon, 15 Jan 2007 20:53:36 +1100

As Irony would have it - I'm currently in the place of implementing the
same thing - I have a propietary ECU though (1st GEN Link wire in) - So
I'm mostly looking at mainly using it for data logging and starting the
car via relays. (I haven't read this list for a few days so I was quite
amused when I came across this post :o) I'm running a H2210 - and I'm
planning on implementing a daughter board doing all the ADC and
switching work. If you wanted to avoid the cable altogether for serial
cable there are bluetooth serial chips, made by ?National? (I think).
They only appear to come in a BGA though, so you would need reflow gear
and probably a professionally made board...

Let me know if you need a hand with the coding at all!

Cheers,
             Adrian.

Alex Babkin wrote:
> Thanks a lot guys!
> Keep it coming
>
> I will respond back with my progress once i'll get my hands on a h2200
> (in transit) and get something to work
>
> Thanks
> Alex
>
> On 1/14/07, *Joshua Layne* <joshua_at_willowisp.net
> <mailto:joshua_at_willowisp.net>> wrote:
>
> i think i am coming into this discussion a bit late - hopefully
> this won't be a repeat of anything anyone else has already said. -
> my comments inline.
>
> all just my opinion.
>
> HTH,
> j.
> On Sun, 14 Jan 2007 22:32:26 +0100, "Michal Panczyk"
> <mpanczyk_at_gmail.com <mailto:mpanczyk_at_gmail.com>> wrote:
> > Hi Alex!
> >
> > Just to give You some help - here's the pinout of ipaq connector :
> > http://pinouts.ru/PDA/ipaq_22p_pinout.shtml
> >
> > Just buy a pure power plug (the one that You have attached to the
> > power adapter), open it - You will see everything You need. It is
> > smaller and cheaper than ipaq cradle.
> > I am 99% sure of that - be careful of voltage levels - (I think
> that)
> > ipaq uses 5V over serial port and PC serial port uses 12V - You
> might
> > need to use a voltage converter (like max232).
> > Folks from the list - pls correct me if I am wrong with that.
> >
>
> I have an HP cable that connects the ipaq directly to a serial
> port - I do not believe it has any converters (although I suppose
> they could be hidden in the db9 housing) - if I can find it, I
> will check.
>
> > I am thinking of putting ipaq to the car (but for different
> purpose),
> > but I didn't have time for that, yet.
> >
> > Good luck
> > Michal
> >
> > PS. I don't know where You are writing from. but in Poland we do get
> > couple of really cold nights a year - I am not sure how the LCD
> would
> > behave in the morning after -25C at night.....
> >
> >
> >> Date: Fri, 12 Jan 2007 22:13:33 -0500
> >> From: "Alex Babkin"
> >> Subject: [H2200-port] h2200 as a gauge/monitor in a car
> >
> >>
> >> Hi
> >>
> >> Please bear with me while i describe the idea which i'd like to
> > implement
> >> with an h2200.
> >> I am converting my car's engine management system (ECU) to an "open
> > source"
> >> hardware to enable tweaking and pulling all kinds of real time data
> > about
> >> how the engine runs. (it's called Megasquirt, for whoever is
> interested)
> >> Anyway, I'd like to use an h2200 or two(and connect them via
> bluetooth)
> > to
> >> interface with the ECU and display the data (like speed, RPM,
> > temperatures,
> >> faults, etc) on the PDA's screen, while having software (that i
> have yet
> > to
> >> write) pulling the data from the ECU over the serial cable.
> >> The PDA's screen is a good choice as it is transflective and
> therefore
> > is
> >> viewable in direct sunlight, but still a bit smallish.
> >>
> >> So, here are some of the concerns that i have about realizing this
> > project.
> >> Please comment on the following and also please give your
> suggestions
> >> wherever appropriate.
> >>
> >> 1. Wiring up:
> >> - serial cable: i plan to use the trick of soldering up a 9pin
> serial
> > cable
> >> to a power dongle, however. i'd really like to not have a
> dongle stick
> > out,
> >> so i'd like to figure out a way to solder the wires directly
> onto the
> > unit
> >> and perhaps even strip unit out of the casing as i am going to
> fabricate
> >> a faceplate and put the PDA where gauge cluster usually is.
> (speed, rpm,
> >> gas, etc) and don't need the pda buttons an all. Which brings
> me to the
> > next
> >> point...
> >> - power: i'd like to wire it up such way that it power's up as
> i start
> > the
> >> car. When car shuts off, i'd like it to either shutdown gracefully
> > (using
> >> the car battery power for a while during shutdown), or go into
> suspend
> > mode
> >> until the next car start (suspend mode doesn't really drain too
> much
> >> current, so i am sure PDA could "hibernate" for years on car
> battery
> > power).
> >> So basically no button pressing, all the activation/shutdown
> would be
> > done
> >> with relays.
> >> Also, i'd like the PDA's screen to be at full brightness mode
> whenever
> > the
> >> car is on.
>
> Provided that you don't mind the ipaq staying in standby on its
> own battery, you can wire its power into switched power in your
> car (only on when the car is on)
> You don't need relays to do this, you just need to configure the
> APM daemon appropriately in GPE (my recommendation over rolling
> your own OS) because you will have a fully useable subsystem (APM,
> serial, screen) - only takes time to boot up - the resume from
> sleep is very fast (1-2 seconds). If you are interested in this
> path, I documented the necessary ipaq_sleep parameters here:
> http://www.handhelds.org/moin/moin.cgi/HpIpaqH2200gps
>
> #
>
> Disable ipaq_sleep if there is activity on the HWUART (BT) or when
> the deviec is plugged in - thanks to Matt Reimer for this one
>
> Edit /etc/ipaq-sleep.conf
> ---
> auto-sleep_time = 600 # auto-sleep time-out in seconds (<=0
> disables)
> dim_time = 180 # backlight dim time-out in seconds (<=0
> disables)
> dim_level = 2 # Dimmed light is this level
> check_apm = 1 # apm flag 0=no 1=yes
> X = 1 # X flag 1=check activity 0=dont
> debug = 0 # debug flag 0=no 1=yes
> check_cpu = 1 # cpu flag 0=no 1=yes
> CPU_value = 0.05 # CPU gives the cut-off value of load average
> probe_IRQs = 1 # auto-probe for IRQs 0=no 1=yes
>
> # manually set IRQs to check (this can be done multiple times)
> IRQ = 0 # HWUART
> IRQ = 35 # AC plug
>
> low_battery = 7
> ---
>
> >>
> >> 2. Software:
> >> - the only duty for the PDA siftware will be to bring it up to just
> > enough
> >> state to load up the program that will query the ECU over
> serial cable
> > and
> >> display the data in graphical mode with my own custom graphical
> > interface.
> >> So i'd like to figure out the minimum kernel/software
> configuration for
> > it
> >> to load up the fastest (to minimize the loading time after the car
> > starts)
> >> - framebuffer programming: i've been suggested as writting
> simple gtk+
> >> graphics app, but i really don't want to run X (for fast
> bootup) and
> > really
> >> X is not needed as the app would be the only app running for the
> > lifetime of
> >> the PDA. So if anyone has some good resources on how to MMap
> the FB and
> >> write and app to draw into it, it would be very helpful.
> >>
> I would really recommend using the existing graphical environments
> - they don't prevent you from running full screen and you get the
> benefit of having a full toolkit (GTK2 in the case of GPE) and
> being able to distribute to other users without having them have
> to replace their entire environment - it just becomes an application.
>
>
> WRT the wiring below, I would search for the serial mod for ipaq
> cradles - you could then repurpose your cradle to a car cradle and
> connect the serial cable to a DB9 gender changer and connect it
> directly to the car unit.
>
> >> so, to summarize, the important points to figure out are:
> >> - how to wire up the 9pin serial port cable (also, i am not too
> > knowledgeble
> >> in 9pin serial, but would i need any alterations to the cable
> wiring?
> > since
> >> none of the two devices connected with the cable are a PC, i.e
> - PDA on
> > one
> >> end and the ECU box on the other, and ECU is designed to be
> connected to
> > a
> >> PC over the serial cable)
> >> - how to wire up the power (suspend more on "main relay off" event
> >> possible?)
> >> - what's the least possible software configuration possible
> (for startup
> >> speed) to run a simple application that will read serial port
> and draw
> >> directly into the framebuffer
> >> - how to write into the framebuffer
> >>
> >>
> >> Thanks all, i will appreciate any insights on the above questions
> >> Regards
> >> Alex
> > _______________________________________________
> > H2200-port mailing list
> > H2200-port_at_handhelds.org <mailto:H2200-port_at_handhelds.org>
> > https://handhelds.org/mailman/listinfo/h2200-port
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> H2200-port mailing list
> H2200-port_at_handhelds.org
> https://handhelds.org/mailman/listinfo/h2200-port
>
Received on Mon Jan 15 2007 - 05:07:36 EST

This archive was generated by hypermail 2.2.0 : Mon Jan 15 2007 - 05:08:03 EST