[Trlog] serial port keyed on starting TR

kd4d at comcast.net kd4d at comcast.net
Fri Feb 4 13:30:22 EST 2005


Hello, again:

>From Dave's description, it sounds like TR is actually asserting
the keying line on his serial port.  So, this would clear it but
TR would reassert it.

The line is apparently not asserted before he runs the batch
file and starts TR...

The lpt1init program I wrote worked because apparently the
other program didn't SET the PTT pin to asserted, it just didn't
change it and left it where it was.  That meant the startup
order, in that case, was turn on computer, run LPT1INIT,
turn on radio...

73,

Mark, KD4D


> > >You mean something like (in dave.bat):
> > >
> > >echo *****TURN OFF RADIOS*****
> > >pause
> > >tr
> > 
> > Perfect!
> 
> Hmmmmm. 
> 
> There might be a more fun way to do this.
> 
> You need to output a value to the parallel port that puts things in
> the off state.  
> 
> You can actually use TR to do this (I think).  First, you need to
> figure out which port and value to output.  Use the TR PORTS command
> to find out what your base address is for your parallel port.
> 
> The port number to send data to the parallel port is 2 more than the
> base address.
> 
> Then, manually change the port value using the TR IOPORT command.
> 
> You will want to send a $08 to the port I believe.
> 
> Now that you have got all of that working, you are wondering how to
> automate it.
> 
> There is a little known way to send keystrokes to a DOS program using
> this context:
> 
> TR IOPORT << keys
> 
> Where keys is a file that has the EXACT KEYSTROKES you want to execute.
> You can not have extra CR LFs in this file - so it takes a little bit 
> of work to do it right.  I use debug to create it but there are other
> ways.
> 
> You can then put that in your autoexec file and fix it that way.
> 
> You can do a similar thing with the debug program itself and probably
> many others.
> 
> This is a good exercise for someone wanting to spend a few hours learning
> some new tricks.
> 
> Tree
> _______________________________________________
> Trlog mailing list
> Trlog at contesting.com
> http://lists.contesting.com/mailman/listinfo/trlog


More information about the Trlog mailing list