PK88 in to kiss.

An old Packet friend asked me if I had a script that could get an AEA pk88 in and out of KISS. No, I didn’t. But I do have a PK88. So why not try and see if I can make it work?
It gives me a headache. With 3x Ctrl-C, you can get it out of KISS in under a second. I mean, you have to type 3x Ctrl-C in one second. I had set the terminal speed to 9600 baud. I couldn’t get it to work until I set it to 19200 baud.
After quickly pressing Ctrl-C three times, I managed to get it out of Kiss. ​​Now I can write a little script.

Kiss-on.sh

#!/bin/bash
#
# Script to put TNC's into KISS mode.
# Set you terminal speed to 19200 (TBAUD 19200).
#
# Set KISS ON, Keep It Simple Stupid :)

BAUD="19200"

stty $BAUD < /dev/ttyUSB0
echo -ne 'KISS ON\r' > /dev/ttyUSB0
sleep 1

Kiss-off.sh

#!/bin/bash
#
# Script to get TNC's out of KISS mode.
# Set you terminal speed to 19200 (TBAUD 19200).
#
BAUD="19200"

stty $BAUD < /dev/ttyUSB0
echo -ne "\x03" > /dev/ttyUSB0
echo -ne "\x03" > /dev/ttyUSB0
echo -ne "\x03" > /dev/ttyUSB0
sleep 1
echo -ne "RESTART\r" > /dev/ttyUSB

So nice, that works….
 

Leave a Reply