[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ADT 1.22 Difficulties - what's wrong?



William Hubbard writes ...
> 
> Well, I'm at a loss and am about ready to give up.  It seems there is a
> component somewhere that is not working properly.  I can't get ANYTHING
> to work in terminal mode, and the only thing that works thus far as far
> as establishing communications between the PC and the Apple, results in
> the problem I was plagued with from the beginning (hence my original
> message).  The author of ADT indicated there may be null characters
> being added to the data, somehow, but I have found no way to turn them
> off.  I have three other PCs - two notebooks (one '286 and one pentium
> 133) and a desktop (AMD K6 233) - and I have been unsuccessful at
> getting ADT to function at all with any of them (although I did get IN#2
> to receive data from a comm program on the '286 notebook, which uses a
> DB-9 connector).  Perhaps the handshaking is not correct, though the
> cable is wired as per ADT documentation specs.
 ....


     Since so much of ADT seems to be working, it looks like you probably have
a good copy. There is a way to check this using a short program which does a
checksum test.

     The catch is that this check is valid only if you have not changed any of
the defaults. (Changing one or more default settings changes the settings you
see when you first start the program. The program is changed and saved with
the new settings.)

     If you think you may have changed the original default settings, boot the
DOS 3.3 disk which has ADT and, at the usual Applesoft prompt, 

BLOAD ADT

     Do a 

CALL -151

to get into the monitor (you should get the "*" prompt).

     In the monitor enter 

803.80D

     If your ADT defaults are the originals, you should see ...

0806- 05 00
0808- 01 05 01 00 00 00

If your values are different, you can change them back by entering:

806:05 00 01 05 01 00 00 00

Do a Cntrl-Reset to get back to Applesoft. Save ADT

BSAVE ADT,A$803,L$A14




     The test program is pretty short. To type it in start by entering 

NEW

and enter this program


 10  TEXT : HOME
 20  PRINT  CHR$ (4)"BLOAD ADT,A$4000"
 40  FOR I = 0 TO 2579
 50 Z = Z +  PEEK (16384 + I)
 55  IF I / 500 =  INT (I / 500) THEN  PRINT "CURRENT SUM= ";Z
 60  NEXT I
 70  PRINT "CHECKSUM= ";Z

     When done,

SAVE ADTCK

on the same diskette as ADT.

     To check your copy of ADT v1.22

RUN ADTCK

The program displays intermediate sums and a final sum. Check the numbers you
get against the checksums listed below: 

Checksums

ADT v1.22

76     
53958 
101079
158919 
224504
307117
312869  <-- final sum


     If you do not get the values listed it would be a good idea to
re-transfer adt.dmp. (For a somewhat easier transfer, download ADT122nudmp.zip
and follow the included directions. You can find it on Ground at
ftp://ground.ecn.uiowa.edu/apple2/upl2000/Feb/ .)


     Once you are fairly certain that your copy of ADT v1.22 is okay, it is
probably worthwhile to check your SSC settings. While several probably do not
matter (because they are set by ADT), some settings are not setable by ADT and
could cause problems.

     First, you need to decide whether you should set your SSC for "terminal"
(printer) or "communication" (modem) operation.

     The cable wiring shown in the directions for those who 'role their own'
does not appear to be a standard modem cable. It looks like a simple NULL
modem cable intended for use with ADT. (Since it's in the docs, I guess it
works; but, it is not a standard NULL modem cable.)

     If you are using the cable shown in the directions, your SSC card should
probably be set for "communication" (modem) operation. This would also be the
correct setting if you are using a standard modem cable plus a Null modem
adaptor.

     If you are using a standard modem cable without a NULL modem adaptor, the
directions say that you should set your SSC for "terminal" (printer)
operation.

     For the other settings, here is some SSC info:



From: Tom Kelly and David Empson

>>

Recomended slots
    slot 1 for terminal use (e.g. printer)
    slot 2 for communication use (e.g. modem)

Jumper Block
    for communication use label is upside down (arrow points up)
    for terminal use label is right side up (arrow points down)

Note that RS-232-C signals on the SSC use negative-true logic;
that is, they are true at 0v and false at +5 volts.


SW1 Dip Switch 1-4 Settings

    Baud      SW1-1     SW1-2     SW1-3     SW1-4     SW1-8
 undefined    on        on        on        on        not used
    50        on        on        on        off       "
    75        on        on        off       on        "
    110       on        on        off       off       "
    135       on        off       on        on        "
    150       on        off       on        off       "
    300       on        off       off       on        "
    600       on        off       off       off       "
    1200      off       on        on        on        "
    1800      off       on        on        off       "
    2400      off       on        off       on        "
    3600      off       on        off       off       "
    4800      off       off       on        on        "
    7200      off       off       on        off       "
    9600      off       off       off       on        "
    19200     off       off       off       off       "

Note: SW1-1 thru SW1-4 settings can be overridden by software.


SW1 Dip Switch 5-7 Settings

                                      SW1-5  SW1-6  SW1-7

"Communication" (modem) operation     on     on     on
"Printer" (printer) operation         off    on     on*


Note

Switch SW1-5 and SW1-6 help define the operation mode of the card.

1-5   1-6   Operation Mode
on    on    Communications
off   on    Printer
on    off   Emulate Apple Serial Interface Card with P8 PROM
off   off   Emulate Apple Serial Interface Card with P8A PROM


Switches SW1-7 and SW2-7 select between the standard and secondary
Clear To Send signals when the jumper block is set for "terminal"
(printer) operation.

1-7   2-7   pin
on    off   CTS
off   on    SCTS

If the jumper block is set "Communication" (modem) operation,
SW1-7 should always be ON and
SW2-7 should always be OFF.

*For "Terminal" (printer) operation, the setting may vary.
If using an Imagewriter II
SW1-7 should be ON and
SW2-7 should be OFF.



SW2 Dip Switch Settings

Switches SW2-1 through SW2-4 functions depend upon whether "Terminal"
(printer) or "Communications" (modem) operation is enabled.


SW2 Dip Switch 1-4 Settings for "Communications" (modem) operation

Data     Parity    Stop      SW2-1    SW2-2    SW2-3   SW2-4
Bits               Bits

7        none      1         on       off      off     on
7        odd       1         on       off      on      off
7        even      1         on       off      off     off
7        none      2         off      off      off     on
7        odd       2         off      off      on      off
7        even      2         off      off      off     off
8        none      1         on       on       off     on
8        odd       1         on       on       on      off
8        even      1         on       on       off     off
8        none      2         off      on       off     on
8        odd       2         off      on       on      off
8        even      2         off      on       off     off



SW2 Dip Switch 1-4 Settings for "Terminal" (printer) operation

SW2-1    Default data format
on       8 data, 1 stop
off      8 data, 2 stop

SW2-2    Delay after sending out a RETURN character
off      None
on       32 milliseconds

SW2-3 and SW2-4 set line width and video output

2-3   2-4            Function
on    on      40 column output, video on
on    off     72 column output, video off
off   on      80 column output, video off
off   off    132 column output, video off


Note: SW2-1 thru SW2-4 settings can be overridden by software.


SW2 Dip Switch 5-7 Settings

SW2-5 enables automatic line feed generation.
on   auto-send a linefeed after sending a CR
off  no linefeed auto-send

SW2-6 enables interrupts.
on   Yes (recommended for baud rates greater than 1199 baud)
off  No

SW2-7 used with SW1-7 to select CTS signal
on   may have this setting for use with some printers
off  correct setting for "communication" (modem) operation

(SW2-8 is not used)



 Connector Pin Assignments

 10-Pin    Dsub-25
 Header    Connector          Signal Name
 ______________________________________________________
    1         1               Frame Ground
    2         2               Transmit Data (TXD)
    3         3               Receive Data (RXD)
    4         4               Request To Send (RTS)
    5         5               Clear To Send (CTS)
    6         6               Data Set Ready (DSR)
    7        19               Secondary Clear To Send (SCTS)
    8         7               Signal Ground
    9        20               Data Terminal Ready (DTR)
   10         8               Data Carrier Detect (DCD)

Pins 1-7 and 2-7 are set together to determine the SSC pin to be read
for the Hardware Handshaking signal. Generally set to monitor Pin #20.


Typical Configurations: [and Don't Forget The JUMPER Block]

           Modem**                  ImageWriter I/II Printer***

      1234567  1234567                 1234567  1234567
ON       XXXX  XX XXX                     X XX  X  XX
OFF   XXX        X   X                 XXX X     XX  XX


** Default is 9600 baud, 8 data bits, no parity, 1 stop bit. The
correct settings for SW2-5 (on= auto-send linefeed after CR) and
SW-6 (on= enable interrupts) may vary.

*** This is the setting recommended in the IW-II manual. 

<<


     Jeanmarie's suggestion that you try connecting at 9600 baud or slower
could be part of the solution. Other things to check include:

o- On the PC, you are running adt.exe from DOS. (A DOS window under Windows95,
etc. is not satisfactory.)  For example, if you normally start up in
Windows95, then, go to the Shutdown menu and do a 'Restart in DOS mode'.

o- On the PC, you have started no telecom program which is set to use the COM
port adt.exe will use.




Rubywand