DOS? Are you crazy Paul? :)
I was investigating Visual Basic for Windows and I was dismayed at the
complexity.
It is way over kill for what I want to do.
Namely display engine parameters on a note book or net book screen in real
time.
Notebook and net book screens are very large in terms of number of pixels
and cheap.
They can display dozens of engine parameter in a relative small space.
20 some odd years ago I wrote a fully functional aviation moving map
program
in Quick
Basic that ran on DOS driven by a GPS using an RS232 serial interface.
Unfortunately RS232 serial interfaces have disappeared off note book and
net
book
computers.
DOS is a close as anyone is going to get for a real time OS. The down side
to DOS is
it's limited memory management capability. For for my use it is quite
adequate.
Running on a modern computer it is lightening fast bordering on
instantaneous.
The big stumbling block as I see it is the lack of support for USB serial
ports.
That has recently changed. Apparently there are other people out there
that
see the elegant beauty of DOS.
Here is the break through. http://www.georgpotthast.de/usb/
Everything including a full blown EFI can be written in hours using simple
to learn
Quick BASIC. Quick BASIC is a compiled language and the programs are small
and
lightening fast. QB/DOS can handle real time hard ware interrupts which
were
used in my moving map program. The code is already written to read a USB
GPS.
To do an EFI system it is necessary to add hardware of course.
One must design a USB interface board with addressable bit ports to
control
injectors and coils. There are probably some on the market already if I
bother to
look. After that an amplifier must be added to control the injectors. That
could be
as little as an FET power transistor. The modern coils can be controlled
with a computer level bit.
Rather than spend 100's of hours learning VB I am going to look into this
approach
further. I have a real old IBM Think Pad that should run DOS no problem.
No Henry, not the late one I just bought in Shenzhen China last week :)
Paul Lamar
Here is the pin out for the 25 pin connector printer port on many old
notebooks
suitable for running DOS/QB and using it as an EFI computer. Many cheap,
less than
$100, small ATX mother boards also have a parallel printer port and would
also work.
I need to experiment with input Pins 11 and 13 as potential CAS inputs.
QB would see that as an error hardware interrupt. I am sure this goes
through the
assemble language BIOS routines and could be quite fast. I'll trigger these
lines
with a signal generator and measure the time it takes the Think Pad computer
to
respond. My guess it is down in the microseconds. The trick here is to get
the HW
interrupt and have a QB program toggle an out put pin with the OUT or POKE
QB
instructions. For those that don't have QB and are interested here it is in
zip form.
It will run in a DOS or command line window under XP.
All the I/O pins 2 through 9 are self explanatory and would be used to
trigger coils
and fuel injectors.
Don't throw those old notebook computers out just yet:)
Paul Lamar
-----------------------------------------------------
Here is what QB looks like running under DOS on the old IBM Think Pad.
BTW many people are working on USB support for DOS so an ATX mother board
with a USB chip that will boot DOS is all you need. No keyboard display or
hard
drive. The USB chip is big enough to store reams of engine data.
Paul Lamar
---------------------------------------------------------------------------------
I just found some info on the Internet that claims the hidden editor in
Windoze is
the same editor used in Quick Basic. I downloaded it and sure enough it is
identical.
It is now called Edit12.
http://en.wikipedia.org/wiki/MS-DOS_Editor
The other thing I needed was a file manager. Low and behold the best file
manager
ever written, namely Xtree, is still out there and can be downloaded for
free.
Here it is and what it looks like. It is only 43K and not 50 meg like stupid
windows.
http://www.xtreefanpage.org/lowres/x60softw.htm Of course it is
instantaneous on an
old 530 MHz IBM ThinkPad. Old software newer computer equals super sonic
speeds.
If only Microsh*t had come out with a 32 bit DOS instead of Windoze way back
when the
world would be a much better place.
It appears that many people agree as the support for old DOS is alive and
well.
Paul Lamar
Paul:
As you know there are lots of free Basic software out there. The
biggest question is how do they handle the hardware and USB ports etc.
. I haven't investigated this; but it is clear that much of it is for
newer hardware then the old DOS type Basic software. For example:
QB64 (Windows, Mac OS X, Linux)
This BASIC compiler aims to be 100% compatible with the QuickBasic 4.5
compiler and the QBasic interpreter, but being able to create
executable files that will run on modern Windows, Mac OS X and Linux
systems. The language has also been extended to provide support for
handling TCP/IP (internet) connections and email, displaying graphic
files, playing stereo sound and music files, using animation,
displaying True Type fonts, handling mouse and game controller input,
integrating with C++, SDL and Windows API DLLs, etc. The compiler
comes with its own IDE, although you can of course use some other
editor if you prefer.
Also look at this Basic list.
http://www.thefreecountry.com/compilers/basic.shtml
Much of this software will work in the Linux/ Puppy environment as
well as MS. Puppy is a much richer and more powerful l environment
than DOS and is designed for high performance combined with simplicity
(compared to both Linus and Windows environments).
James
It is the conbination of DOS and Quick Basic. Both allow direct connection with the
hardware. Quick Basic has hardware interrupt handling built in. We are looking at
over 100 hardware interrupts in one second.
That cannot be said about Windows or Linux. There is a multitasking scheduler in
there that is making decision on how much of the resources you are allowed. You don't
want a powerful multitasking OS. You want something small that gets out of the way of
your real time program. DOS fits that almost perfectly.
Paul Lamar
Paul,
There's always Real Time Linux if that's where you want to go.
http://www.realtimelinuxfoundation.org/
James,
Can you provide a link to "This BASIC compiler", QB64 I assume?, that
you mention above?
Mark LaPierre
--
The Rotary Engine News Letter. Powered by Linux.
ACRE NL web site.
http://www.rotaryeng.net
You Tube key word PaulLamar2
Copyright 1998-2012 All world wide rights reserved.