home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dream 45
/
Amiga_Dream_45.iso
/
Amiga
/
emulation
/
AmigaNPI.readme
< prev
next >
Wrap
Text File
|
1997-10-17
|
7KB
|
218 lines
Short: V1.1 Load packages into the Newton
Author: David Fong <Dr.David.Fong@medical.net.au>
Type: misc/emu
AmigaNPI 1.1 - 11th October 1997
Amiga Newton Package Installer
Converted into Blitz2 Basic by David Fong
Based on source code by Filip R. Zawadiak
Based on information graciously provided by Apple Computer and Newton Inc.
AIM
To upload packages from the Amiga to the Newton without using
a Macintosh emulator.
Two versions are provided. A generic WB/CLI version (v1.1),
and a CLI only version (the old version 0.2a, in the cli_0_2
drawer).
REQUIREMENTS
Can be used from CLI - a fast Amiga is recommended.
Used from CLI on an Amiga 1200 with a 40 MHz 030 and the standard
serial port, AmigaNPI consumes approximately 82% of available CPU
processor power. This requirement drops to about 60% if an external
serial port (such as provided on the Surf Squirrel) is used.
Graphical user interface requires OS 2.0 (3.0 recommended) and
Magic User Interface v3.8
USAGE
Can be used from Workbench, or from CLI.
Workbench
Double click the program's icon, or type in just `AmigaNPI'
from the CLI.
From the main window, the package to be uploaded can be
chosen. The button immediately below the chooser can be
used to set serial preferences. These preferences can
be saved to env:AmigaNPI.prefs (and will then be copied
to envarc:AmigaNPI.prefs).
The bottom button will then transfer the package to the
Newton. During transfer, the transfer can be stopped by
pressing the `Abort' button.
CLI
From CLI type...
AmigaNPI filename [device [device_unit [bps [flags]]]]
Where filename is the name of the package file you are uploading.
`AmigaNPI ?' is a special case, and will result in a help and
information file being displayed in the shell window.
Optionally, the serial device and serial options can be specified.
Flags is a value derived by adding the possible numbers below.
Flags - 128 - Disable Xon/Xoff
- 64 - Enable EOF checking
- 32 - Enable shared mode
- 16 - Enable high speed mode
- 8 - Break command waits for buffer empty
- 4 - use RTS/CTS
- 2 - Select odd parity (otherwise use even)
- 1 - Enable parity checking
The default is
serial.device 0 38400 148
Defaults can also be read from the env:AmigaNPI.prefs file. In
this file, the arguments are separated by line feeds (ASC 10). All
four arguments must be provided in the AmigaNPI.prefs file.
Note that AmigaNPI will only upload package files, which are usually
suffixed with a `.pkg' extension.
Stuffit files, with a `.sit' extension, are archive files, like
the Amiga's .lha files, or the .zip files commonly used on
Windows machines. Unfortunately, only very old Stuffit de-archiver
programs are available for the Amiga. It is called something
like `unsit', it is available on the Aminet. It does not work
properly with modern .sit files.
Fortunately, most Newton packages are also provided in Zip format.
Good UnZip programs are available for the Amiga e.g. from InfoZip.
Try the Aminet, or ADE (ftp.ninemoons.com).
PROBLEMS
Only tested on my MessagePad 2000 :)
However, others report success with NewtonOS 2.0 powered MP120s.
Many people have had trouble using one version or another of
AmigaNPI (especially version 1.0). This might be a Blitz2
problem, since Blitz2 was designed with speed rather than
system-friendliness in mind.
Currently, it is difficult to claim that AmigaNPI is truly
multitasking, in the sense that the Newton will stop downloading the
package if the Amiga is significantly delayed for any reason. For
example, trying to use the Amiga's menu (by pressing the Amiga's right
mouse button) often results in the Newton stopping the transfer!
The recommended timeout sent from Amiga to Newton is very short,
only five seconds. This may be user adjustable in the future.
Speed is probably slower than it should be.
Cannot interpret compressed information, which is part of the
V42bis standard. This doesn't matter when uploading packages
to the Newton, but it would be nice to see what the Newton is
trying to send to the Amiga!
CREDITS
Blitz2 BASIC
Filip R. Zawadiak - provided the original source code, which
is present in the src_c directory.
- philz@silesia.linux.org.pl
- http://www.wnet.silesia.pl/~philz/
Andrew Kennan - for some helpful hints to avoid `busy waiting'
- bewilder@coastlink.com.au
Apple Computer, Newton Inc.
- for at last providing the necessary information
to make non-Mac package uploaders
- for making the wonderful MessagePad 2000.
The Makers of the Amiga
HISTORY
0.1 - 13th September, 1997. First release
- added code to `round-up' files to the next largest number
evenly divisible by four. This is a requirement according
to the Newton Load Package protocol. In fact, most packages
seem to have been carefully manicured to the appropriate
size anyway.
- note that Blitz2's lof() function doesn't seem to work
properly if the end of the file has already been reached.
0.2 - 23rd September, 1997. (beta)
- added code to cope with time-outs or disconnections.
Unfortunately, the implication of this is that AmigaNPI
will `busy wait' while waiting for serial port activity.
I hope this fix this problem shortly...probably at
the same time that I write a GUI interface for AmigaNPI.
- NEW - optional specification of device (usually serial.device)
and serial options. This is for use with FastSerialConn
by Filip Zawadiak, or if you need a slower than usual
transfer rate.
- BUG FIX - corrected Bad CRC reporting format.
0.2a - 25th September, 1997.
- BUG FIX - now uses RTS/CTS handshaking (instead of none)
1.0 - 4th October, 1997
- NEW - Graphical User Interface via MUI 3.8
- NEW - AmigaNPI no longer busy waits if the Newton is
not responding.
- NEW - User can manually abort the transfer (if using the
graphical user interface).
- NEW - User can set the serial flags personally.
- NEW - Save serial preferences to ENV:AmigaNPI.prefs (from
graphical user interface only)
- BUG FIX - now turns off Xon/Xoff handling (I hope this is
a bug fix, rather than introducing a new bug!)
- Source code now split into four separate files.
1.1 - 11th October, 1997
- Used Delay_(1) instead of VWait in the serial handling
code. Many people seemed to be experiencing serial
problems with 1.0, I hope this fixes the problem...
Delay_(1) is supposed to be more system friendly, and
also happens to further decrease processor load.
CONTACT
Dr.David.Fong@medical.net.au (this is my permanent address)
- vkelim@onaustralia.com.au
- vkelim@ariel.unimelb.edu.au
http://ariel.unimelb.edu.au/~vkelim/
- contains a lot of information about connecting the Newton
to the Amiga.