From: Steve Dickey <steved@cory.eecs.berkeley.edu>
Newsgroups: comp.sys.hp48
Subject: Re: LINK-SOFTWARE LINUX????
Date: 29 Jun 1999 20:41:57 -0700
Organization: Posted via RemarQ, http://www.remarQ.com - The Internet's Discussion Network
Lines: 102
Sender: steved@bonkonin.hip.berkeley.edu
Message-ID: <m2lnd2z75m.fsf@bonkonin.hip.berkeley.edu>
References: <377781F1.321E8DEC@gmx.de> <m2g13bupld.fsf@kn-10-0-21-018.kotnet.kuleuven.ac.be> <3779251E.7FA7287D@doomnet.de>
NNTP-Posting-Host: 207.171.212.119
NNTP-Posting-Date: Wed, 30 Jun 1999 03:43:56 GMT
X-Trace: 930714236.053.56 S0YUSD2PSD477CFABC qube-02.us-ca.remarq.com
X-Complaints-To: newsabuse@remarQ.com
x-no-archive: yes
X-Newsreader: Gnus v5.6.45/XEmacs 21.2 - "Sumida"
Xref: republic.btigate.com comp.sys.hp48:27120

Wolfgang Seemann <woeba@doomnet.de> writes:

> Kris Verbeeck schrieb:
> > 
> > Matthias <buttz@gmx.de> writes:
> > 
> > > looking for link software, searched and searched till now...
> > Kermit!
> >
> 
> Urg!
> Not very comfortable....Is there any other program?

If you have minicom on your system, you probably also have rx and sx, which
implement the xmodem protocol.  If so, you may find the following script 
usefull. 

------------------------------START------------------------------
#!/bin/sh
  
#  48trans 1.0
#  Written by Rune Mathisen <mathrune@online.no>
#  Based on a script made by GuiLe <guile@gui.uva.es>

#  Permission is granted to freely use, distribute, and/or modify 
#  this script for use on your system provided that credits to the 
#  author are maintained. I am *NOT* responsible for anything bad 
#  that might happen because of these scripts.  It doesn't do anything 
#  bad on my system, but it is not my fault if it does something bad 
#  on your system!

#  Purpose:
#  Send and receive data to/from a HP48 (or X48 :-) using the xmodem
#  protocol.

#  Requirements:
#  You will need the programs 'sx' and 'rx' to use this
#  script.  They are included in the package lrzsz (I use v. 0.12.14).
#  Go to http://ftpsearch.ntnu.no/ and do a case insensitive glob
#  search for 'lrzsz*' to obtain a copy of this package.
#
#  You will will need read/write access to the device you are trying
#  to send/receive data to/from (which is pretty obvious :-).
#  Your HP48 IO parameters must be { 9600 0 0 1 3 0 }.

#  Usage:
#  * Uploading data from your computer to your HP48:
#    Assuming that your HP48 is connected to cua1(com2), type:
#        48trans put filename /dev/cua1
#    where 'filename' is the name of the file you want to send to
#    your HP48.
#    Now prepare your HP48 for the transfer:
#      - Enter a variable name on the stack
#      - [leftshift] [I/O] [NXT]
#      - Press [xrecv]
#    The transferred data is stored in the variable name you entered.
#
#  * Downloading data from your HP48 to your computer:
#    Prepare your HP48 for the transfer:
#      - Enter the variable name you want to transfer on the stack
#      - [leftshift] [I/O] [NXT]
#      - Press [xsen]
#    Assuming that your HP48 is connected to cua1(com2), type:
#        48trans get filename /dev/cua1
#    The transfered variable is stored in 'filename' in your current
#    directory.

FILE=$3
#DEVICE=/dev/cua0
DEVICE=$2
#HELPMSG="Usage: 48trans get/put file"
HELPMSG="Usage: 48trans get/put file device"

case $# in
    3)
    case $1 in
            put) 
                (stty -evenp -cstopb cread clocal -crtscts\
                        -inpck -inlcr -icrnl igncr ixon ixoff \
                        -iuclc -ocrnl -onlcr -onocr -onlret 9600
                sx -vv $FILE) < $DEVICE > $DEVICE;
                echo -e "\n";
                ;;
            get)
                (stty -evenp -cstopb cread clocal -crtscts\
                        -inpck -inlcr -icrnl igncr ixon ixoff \
                        -iuclc -ocrnl -onlcr -onocr -onlret 9600
                rx -vv $FILE) > $DEVICE < $DEVICE;
                echo -e "\n";
                ;;
            *)
                echo $HELPMSG
        esac
        ;;
    *)
    echo $HELPMSG
esac

-------------------------------END------------------------------

-- 
Steve