Order Tray | Contact Us | Home | SIG Lists

[aprssig] KPC 3+ reset script

Andrew P. andrewemt at hotmail.com
Thu Feb 23 21:19:50 UTC 2012


Shouldn't be too hard to force to back into KISS mode.

The logic I'm using in YAAC is just

write("KISS ON\r");
sleep(1);
write("RESTART\r");

Obviously this isn't my actual Java code, but a scrap of pseudo-code, but the concept should be obvious; I don't wait for prompts or acknowledgements, I just do it.

After all, what can my app do if the TNC refuses to cooperate, except call for wiser human assistance?

;-)

Andrew Pavlin, KA2DDO
 
------Original Message------
From: John Gorkos
To: aprssig at tapr.org
Cc: curt.we7u at gmail.com
Sent: Feb 23, 2012 4:04 PM
Subject: Re: [aprssig] KPC 3+ reset script


Great perl minds think alike:  I've got the part to get me OUT of kiss down 
pat.  It's the "get me back IN to kiss" that's a bit harder.  I'll grind out 
some Perl-Expect and post it to this thread when it sort of works.  It would 
be much better if Kantronics would FIX THEIR BUGGY FIRMWARE! (I know, shouting 
on the internet doesn't mean that the Kantronics engineering staff will hear me 
and do what we pay them to do, but it's worth a try).

John gorkos


On Thursday, February 23, 2012 01:00:39 PM Curt, WE7U wrote:
> On Thu, 23 Feb 2012, Curt, WE7U wrote:
> >> to ensure i don't get bit by Kantronics bad programming.  Does anyone
> >> have a
> >> TCL or Perl Expect script that will send the KISS escape sequence,
> >> tickle the
> >> TNC, send it an INTFACE KISS command, and reset it?
> >> I'll try to cobble something together, but plagiarism is the highest
> >> form of
> >> flattery here...
> > 
> > There's a "kiss-off" script in the Xastir sources you could start with.
> 
> Ah, but it ain't much.  Invoked like this:  ./kiss-off.pl >/dev/ttyS1
> 
> And here are the only real lines of code:
> 
>      sleep 1;
>      printf("%c%c%c", 192, 255, 192);
>      sleep 1;
> 
> No "expect" used, in fact no two-way communication at all.  Completely
> open-loop.  Who wrote this piece of crap?  ;-)
> 
> Even as-is, I found it useful.  For automated rebooting you'll want
> something more.

_______________________________________________
aprssig mailing list
aprssig at tapr.org
https://www.tapr.org/cgi-bin/mailman/listinfo/aprssig


Sent from my Verizon Wireless BlackBerry



More information about the aprssig mailing list