Searching \ for 'Controlling a PC, from a PC, using a PIC' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: techref.massmind.org/techref/microchip/devices.htm?key=pic
Search entire site for: 'Controlling a PC, from a PC, using a PIC'.

Truncated match.
PICList Thread
'Controlling a PC, from a PC, using a PIC'
1998\07\14@121436 by Osama ALASSIRY

flavicon
face
I have an application where I need to control a "blackbox" PC, using
another PC:

    Serial   Keyboard
[PC1]=====[PIC]=====>[BlackBox PC]
           ^--------------/
           Printer Port

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  spam_OUTosamaTakeThisOuTspamqatar.net.qa .....osamaKILLspamspam@spam@alassiry.com
                             http://www.alassiry.com

1998\07\14@172023 by Bill Cornutt

flavicon
face
{Quote hidden}

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
every time.

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
configure file.

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.  EraseMEbillspam_OUTspamTakeThisOuTcornutt.com

Greek Myths
http://www.webcom.com/shownet/medea/bulfinch/welcome.html

Hercules
http://www.webcom.com/shownet/medea/bulfinch/bull19.html

Twelve Labors
http://www.pantheon.org/mythica/articles/h/heracles.html

1998\07\14@174504 by Mark Willis

flavicon
face
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
> >
> ><snipped>
>
> 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)

ourworld.compuserve.com/homepages/steve_lawther/keybinfo.htm
(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!)

http://www.geocities.com/SiliconValley/Bay/8302/keybrd.htm (Interfacing
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
anyways)

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)

http://www.repairfaq.org/filipg/LINK/PORTS/F_Parallel.html (Fil's
FAQ-Link-In Corner: PC Ports overview - look here for Parallel port
links!)

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",
so far...

 Mark Willis, mwillisspamspam_OUTnwlink.com

1998\07\15@070811 by Morgan Olsson

picon face
>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

/  Morgan Olsson, MORGANS REGLERTEKNIK, SE-277 35 KIVIK, Sweden \
\  @spam@mrtKILLspamspaminame.com, ph: +46 (0)414 70741; fax +46 (0)414 70331    /

1998\07\15@172129 by Sean Breheny

face picon face
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.

Sean


> 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.


Good luck,
Sean


>
> /Morgan
>
> /  Morgan Olsson, MORGANS REGLERTEKNIK, SE-277 35 KIVIK, Sweden \
> \  KILLspammrtKILLspamspaminame.com, ph: +46 (0)414 70741; fax +46 (0)414 70331    /
>

1998\07\17@085523 by Jose Antonio Gracia

flavicon
face
part 0 704 bytes content-type:application/x-unknown-content-type-VisualBasic.Module; name="tty.b"--
Un saludo a todos
               Jose Antonio Gracia

RemoveMEjgraneTakeThisOuTspamcolon.net
http://www.geocities.com/SiliconValley/Pines/7097


Content-Type: application/x-unknown-content-type-VisualBasic.Module; name="tty.b"
as""
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
22

Attachment converted: wonderland:vcard.vcf (TEXT/CSOm) (00010297)

More... (looser matching)
- Last day of these posts
- In 1998 , 1999 only
- Today
- New search...