'Controlling a PC, from a PC, using a PIC'
I have an application where I need to control a "blackbox" PC, using
basically, PC1 sends scancodes to be sent to the PIC, serially, the PIC
controls the Keyboard input of the "BlackBox PC", entering commands, and
then printing to the computer's LPT port, the PIC then gets this data, and
returns it to PC1 serially...
it seems that i'll need:
2 wires for serial
2 wires for keyboard interface
10 wires for LPT port (printer emulation)
has anybody done this before? or anything similar...
Thank you! any views would be appreciated...
Osama ALASSIRY qatar.net.qa osamaalassiry.comosama
I thought your idea sounded fimilar, so I did some research and found
its first reference.
There was this Greek hero many years ago named Heracles.
He was given a succession of twelve desperate adventures.
These adventures were called "The Twelve Labors of Heracles".
These labors would require cunning and gile. But there was one
labor that was too dificult, if not imposible. It was the project
you are about to embark on. Using a Pic to simulate a keyboard
on a pc. Heracles filed an appeal with the courts saying that this Labor
was "unusual and unjust labors". He won the appeal and It was
replaced with 'the cleaning of the Augean stables'. It seems that
Augeas, king of Elis, had a herd of three thousand oxen, whose
stalls had not been cleansed for thirty years.
Well, the rest is myth.
A pc needs a keyboard (unless the bios is modified). A simple solution
that I have heard of is to destroy an old keyboard, remove the circuit
board, wrap it in duct tape (#427 of 1001 Uses for Duct Tape)
and plug it in to the pc.
There is a dos command that tells the pc to use a com port as
input and output. (keyboard in, screen out). The difficult thing
with this feature is to configure the com port in the autoexec.bat file.
The dos command to go into this mode is also put in the autoexec.bat file.
I think the 'mode' dos command is used to set the com ports in
the autoexec.bat file. Else they are set after a reset in the same mode
I would prepare a floppy formated as a system disk with
command.com. I would also include the autoexec.bat file to
put the pc in this com in/ com out function. Along with the
So if it becomes necessary to remove this type of operation,
it is only necessary to remove the floppy and let the system boot
from the hard drive, or another system floppy.
Please don't think that I am saying anything bad about your 'Labor'.
But if it was too tough for Heracles, it may be too tough for you.
Bill C. cornutt.combill
|Bill Cornutt wrote:
> >I have an application where I need to control a "blackbox" PC, using
> >another PC:
> > Serial Keyboard
> >[PC1]=====[PIC]=====>[BlackBox PC]
> > ^--------------/
> > Printer Port
> I thought your idea sounded fimilar, so I did some research and found
> its first reference.
> There was this Greek hero many years ago named Heracles.
> He was given a succession of twelve desperate adventures.
> These adventures were called "The Twelve Labors of Heracles".
> <snipped good if not necessarily 'true'; humor <G>>
I don't say this is going to be easy, but as I'm in the middle of
designing a chording AT keyboard with Tim G. here, I think it's quite
possible. I've been told that an AT keboard interface CAN be done with
a mere RC oscillator-driven PIC, we're at the point of re-design # 3
right now so we can't say it's working yet - BUT:
Applicable links to look at, for you:
http://www.mbhs.edu/~ojenkins/wearable/fiddler.html (Omar Jenkin's Basic
Stamp equivalent to Tim's & my project)
(Steve's PC Keyboard info)
http://www.arne.si/~mauricio/PIC.HTM (MAX's PIC Projects - has routines
for BOTH ends of the AT-Keyboard link. Snag this if nothing else!)
http://www.arne.si/~mauricio/Kbdfaq.htm (Version 1.00 of the PC Keyboard
FAQ - if you find a newer version, let ME know please!)
the PC's Keyboard)
http://www.handykey.com/ (These folks make a chording keyboard that
goes to a serial port, but it's $200, it's an interesting gadget
http://www.phlat.com/din/ad_MiniDinToDinKeyboard.html (Keyboard adapter)
http://www.brouhaha.com/~eric/pic/ (Eric's PIC page)
http://www.hut.fi/~then/mytexts/mouse.html (PC Mouse info)
http://www.xs4all.nl/~wf/wouter/pic/ (Wouter's PIC projects)
FAQ-Link-In Corner: PC Ports overview - look here for Parallel port
http://sca.enlace.com.mx/carlosg/keyemu/ (KeyEmu Beta .03)
Soon we'll have a "Keydler" web page, it's going to be a GPL project
so we'll have source code available for PIC-to-AT keyboard.
Trade you help, Osama, if it sounds like a good idea (we may be slow
but we'll get there <G>) Both Tim & I have a bad case of "Real Life",
Mark Willis, nwlink.commwillis
>There is a dos command that tells the pc to use a com port as
>input and output. (keyboard in, screen out).
Isnt« there also a way to redirect print to a COM?
But, it is also possible the program that are printing use the LPT directly...
Maybe same problem with keyboard redirect?
/ Morgan Olsson, MORGANS REGLERTEKNIK, SE-277 35 KIVIK, Sweden \
\ iname.com, ph: +46 (0)414 70741; fax +46 (0)414 70331 / mrt
On Wed, 15 Jul 1998, Morgan Olsson wrote:
> >There is a dos command that tells the pc to use a com port as
> >input and output. (keyboard in, screen out).
There sure is: CTTY device
where device is the device name, i.e. COM1:
you also need to use the MODE command to set the parameters for the com
port first. Off hand, I don't know the syntax for this, but you should be
able to figure/find it out.
> Isnt´ there also a way to redirect print to a COM?
I think that the MODE command can do this.
> But, it is also possible the program that are printing use the LPT directly...
> Maybe same problem with keyboard redirect?
Both of these are valid points. The same goes for the screen. The CTTY
command oly works with text that is printed using DOS int 21h function
calls. For anything else, you would need to write a TSR, or maybe use a
program such as Norton's PCAnywhere.
> / Morgan Olsson, MORGANS REGLERTEKNIK, SE-277 35 KIVIK, Sweden \
> \ iname.com, ph: +46 (0)414 70741; fax +46 (0)414 70331 / mrt
Jose Antonio Gracia
part 0 704 bytes content-type:application/x-unknown-content-type-VisualBasic.Module; name="tty.b"--
Un saludo a todos
Jose Antonio Gracia
Content-Type: application/x-unknown-content-type-VisualBasic.Module; name="tty.b"
Content-Disposition: inline; filename="tty.bas"
Attachment converted: wonderland:tty.bas (????/----) (00010296)
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Description: Tarjeta de Jose Antonio Gracia Negre
Content-Disposition: attachment; filename="vcard.vcf"
X-MIME-Autoconverted: from 8bit to quoted-printable by colon.colon.net id OAA026
Attachment converted: wonderland:vcard.vcf (TEXT/CSOm) (00010297)
More... (looser matching)
- Last day of these posts
- In 1998
, 1999 only
- New search...