Intermec 4985 Manual

4985 NetworkController
PROGRAMMER’S
GUIDE
""""""""""""""""""""""""""""
PN:977-028-006
RevisionA
May1996

"NOTICEThispublicationcontainsinformationproprietarytoIntermecTechnologiesCorpo-
ration.Itisbeingsuppliedtoyouwiththe express understandingthat thein-
formationcontainedhereinisforthebenefitofthecontractingpartyonly,and
maynotbecopied,distributed,ordisplayedtothird partieswithout the express
writtenconsentofIntermecTechnologiesCorporation,andshall bereturnedto
IntermecTechnologiesCorporation uponwrittenrequest.Ifapurchase,license,or
nondisclosureagreementhasbeenexecuted,thetermsofthatagreementshall
governthisdocument.
Thispublicationisfurnishedforinformationonly,andtheinformationinitis
subject tochangewithoutnotice.Althougheveryefforthasbeenmadetoprovide
completeandaccurateinformation,IntermecTechnologiesCorporationassumes
noresponsibilityorliabilityforanyerrorsorinaccuraciesthatmayappearinthis
document.
DisclaimerofWarranties.Thesamplesourcecodeincludedinthisdocumentis
presentedfor reference only.Thecodedoesnotnecessarilyrepresentcomplete,
tested programs.Thecodeisprovided“ASISWITHALL FAULTS.”ALL
WARRANTIESARE EXPRESSLY DISCLAIMED,INCLUDING THE
IMPLIEDWARRANTIESOFMERCHANTABILITY AND FITNESS FORA
PARTICULARPURPOSE.
Wewelcomeyour commentsconcerningthispublication.Althougheveryefforthas
beenmadetokeepitfree oferrors,somemayoccur.Whenreportingaspecific
problem,pleasedescribeitbrieflyandincludethebooktitleand partnumber,as
well astheparagraphorfigurenumberandthepagenumber.
Sendyour commentsto:
IntermecTechnologiesCorporation
PublicationsDepartment
550 SecondStreetSE
CedarRapids,IA52401
NORANDandPEN*KEYareregisteredtrademarksofIntermecTechnologies
Corporation.
Ó1991 IntermecTechnologiesCorporation.All rightsreserved.
Thispublicationprintedonrecycled paper.
Acknowledgments
MS-DOSisaregisteredtrademarkofMicrosoftCorporation.
FCC ComputerCompliance
"NOTICEThisequipmentmeetsClass AdigitaldevicelimitsperPart15 ofFCC Rules.
Theselimitsprotectagainstinterferenceinacommercialarea.Itemits,uses,and
canradiateradiofrequencyenergy.Ifyoudonotinstall andusethe equipment
accordingtoitsinstructions,itmayinterferewithradiosignals.Usingitina
residentialareaislikelytocauseinterference.Ifthisoccurs,youmustcorrect the
interferenceatyourexpense.

4985 NetworkControllerProgrammer’sGuidei
CONTENTS
""""""""""""""""""""""""""""
SECTION 1
Introduction1-1...............................................
About theController1-2........................................
HostInterfaces1-2............................................
SECTION 2
GettingStarted2-1............................................
NetworkConfigurations2-1.....................................
4985 Configuration Switches2-6.................................
Communication Session2-7.....................................
DeviceChannels2-9...........................................
Help2-9.....................................................
Beeping 2-9..................................................
Connections2-10...............................................
Testing 2-10...................................................
ModemIndicator2-10..........................................
Cleaning 2-10..................................................
Specifications2-10..............................................
Hardware 2-11.................................................
Unpacking Equipment2-11..................................
GeneralEquipment2-12.....................................
OptionalPeripherals2-13....................................
SingleDock2-13.......................................
Multidock2-14.........................................
AuxiliaryPowerUnit(APU)2-15.........................
PowerSupply 2-16......................................
Modems2-16..........................................
Location2-18..............................................
Brackets2-18..............................................

CONTENTS"
ii 4985 NetworkControllerProgrammer’sGuide
Connectors2-20...........................................
ACPower2-21.............................................
SECTION 3
Installation3-1................................................
StartUpOperations3-1........................................
ResetButton3-5..............................................
FileSystem3-5...............................................
SECTION 4
FileStructures4-1.............................................
Introduction4-1...............................................
Host-to-ControllerRecords4-1..................................
SpecialCommands4-1.....................................
Type?-HostReadyCommand 4-2.......................
Type * -ReinitializationCommand 4-2....................
RecordLayouts4-2........................................
Type 0 -DownloadDataRecord4-3......................
Type 1 -End-of-DataRecord4-4.........................
Type 2 -InitializationRecord4-5.........................
Type 3 -Activate(Auto-Answer) Record4-6................
Type 4 -Activate(Auto-Dial)Record4-6..................
Type 5 -DeactivateforOneMinuteRecord4-8.............
Type 6 -HostDirectiveRecord4-8.......................
Type 7 -RebootControllerDirective 4-9..................
DirectiveTypes4-9........................................
FileUploadDirective“1”4-10............................
FileCreateorLoadDirective“2”4-10.....................
FileDeleteDirective“3”4-12.............................
FileDownloadDirective“4”4-12..........................
FileProcessing Abort“6”4-13............................
Controller-to-HostRecordLayouts4-13............................
Type 0 -UploadDataRecord4-14.............................
Type 1 -End ofSession StatusRecord4-14.....................
Type 2 -DataRequestRecord4-16............................
Type 3 -InactiveStatusRecord4-16...........................
Type 4 -ActiveStatusRecord4-16............................

CONTENTS"
4985 NetworkControllerProgrammer’sGuideiii
Type 5 -ActivateRequestRecord4-17.........................
Type 6 -SpecialRequestRecord4-18..........................
Type 7 -DirectiveStatusRecord4-19..........................
InitializationRecord4-20........................................
SystemModeParameters4-21...............................
HostParameters4-23.......................................
PortParameters4-25.......................................
ActivationParameters4-26......................................
SECTION 5
OtherFeatures5-1.............................................
Controller-BasedFileProcessing 5-1.............................
NCDIR.NCC 5-2..............................................
Host-to-ControllerFileProcessing RelatedCommands5-5...........
InitializationRecord(Type 2)5-5............................
HostDirectiveRecord(Type 6)5-6..........................
HostDirectiveSubrecords(Types1-3)5-6....................
FileUpload(Subtype 1)5-6.............................
FileCreateorLoad(Subtype 2)5-6......................
FileDelete(Subtype 3)5-6..............................
Controller-to-HostFileProcessing RelatedCommands5-7...........
Controller-to-HostRecordswith2-ByteChannelID5-7..........
DirectiveStatusRecord(Type 7)5-7.........................
Booting HHCsfromController5-7...............................
NETRPL.LST5-8..............................................
Host-to-ControllerSession Sample 1 5-8...........................
Host-to-ControllerSession Sample 2 5-10...........................
SECTION 6
WritingtheHostProgram6-1...................................
Starting theMainRoutine 6-2...................................
Receiving Data6-4............................................
DownloadData6-5............................................
Ending StatusRoutine 6-6......................................
Handling Time-Fill Records6-7..................................
Activating LANPort6-7........................................
Processing SpecialRequests6-8.................................

CONTENTS"
iv4985 NetworkControllerProgrammer’sGuide
Processing DirectiveStatusRecords6-8..........................
Adapting OlderHostPrograms6-8...............................
RecordTypes6-9.............................................
NI311 RecordTypes6-9....................................
NI311-to-Host6-9......................................
Host-to-NI311 6-9......................................
4985 NetworkController6-9................................
Controller-to-Host6-9..................................
Host-to-ControllerRecords6-10..........................
SpecialCommands6-12.........................................
LogicalChannels6-12...........................................
DataRecordLength6-13........................................
Enhancements6-13.............................................
SECTION 7
4000 SeriesWarmStartSystem7-1..............................
Creating FileMaintenanceLists7-2..............................
Setting VersionNumber7-4.....................................
Converting HHCApplicationPrograms7-4........................
APPENDIXA
Power-UpSelf-TestsA-1.........................................
APPENDIXB
CommunicationSessionB-1.....................................
APPENDIXC
CRC CheckingwithAsynchronousInterface C-1....................
APPENDIXD
FileStructureRecordsD-1.......................................
Host-to-ControllerRecordsD-1..................................
SpecialCommandsD-1.....................................
RecordLayoutsD-1........................................

CONTENTS"
4985 NetworkControllerProgrammer’sGuidev
DirectiveTypesD-4........................................
Controller-to-HostRecordLayoutsD-7............................
InitializationRecordD-11........................................
ActivationParametersD-14......................................
FIGURES
Figure 2-1Host-to-4985 Using 4980 2-1...........................
Figure 2-2 4980 NetworkCommunicationsControllerConnection
to4985 Controller2-2.....................................
Figure 2-3 4920 HostCommunicationsPackageConnection
to4985 Controller2-2.....................................
Figure 2-4 4985 MultidockswithMaximumConfiguration2-3........
Figure 2-5OptionalWiring with2APUsConnected2-5..............
Figure 2-6DefaultSwitchSettings2-6............................
Figure 2-7TypicalHost-to-4985 Setup2-7.........................
Figure 2-8 1-ByteIdentifier2-8..................................
Figure 2-9 2-ByteIdentifier2-8..................................
Figure 2-10 4985 NetworkController2-12..........................
Figure 2-11 4950 SingleDock2-13................................
Figure 2-12 4960 Multidock2-14..................................
Figure 2-13 AuxiliaryPowerUnit2-15.............................
Figure 2-14 PowerSupplyPlacementand Connectors2-16............
Figure 2-15 ApproximateDimensionsofAuxiliaryPowerUnit2-17.....
Figure 2-16 ApproximateDimensionsof4985 NetworkController2-17. .
Figure 2-17 ApproximateDimensionsofDocks2-18.................
Figure 2-18 SampleWall LayoutwithBrackets2-19..................
Figure 2-19 VerticalorWall-MountedBracket2-19..................
Figure 2-20 HorizontalorShelf-MountedBrackets2-20...............
Figure 2-21 ConnectorsontheBackofa4985 NetworkController2-21.
Figure 2-22 IsolatedGround Outlets2-22...........................
Figure 3-1DefaultSwitchSettings3-5............................
TABLES
Table 3-1Bank 1DipSwitches3-2...............................
Table 3-2Bank 2DipSwitches3-3...............................
Table 3-3Bank 3DipSwitches3-4...............................
Table 4-1Type?-HostReadyCommand 4-2.......................
Table 4-2Type * -ReinitializationCommand 4-2....................

CONTENTS"
vi4985 NetworkControllerProgrammer’sGuide
Table 4-3Type 0 -DownloadDataRecord4-3......................
Table 4-4Type 1 -End-of-DataRecord4-4.........................
Table 4-5Type 2 -InitializationRecord4-5.........................
Table 4-6Type 3 -Activate(Auto-Answer) Record4-6...............
Table 4-7Type 4 -Activate(Auto-Dial)Record4-7..................
Table 4-8Type 5 -DeactivateforOneMinuteRecord4-8............
Table 4-9Type 6 -HostDirectiveRecord4-9.......................
Table 4-10 Type 7 -RebootControllerDirective 4-9.................
Table 4-11 FileUploadDirective“1”4-10...........................
Table 4-12 FileCreateorLoadDirective“2”4-11....................
Table 4-13 FileDeleteDirective“3”4-12...........................
Table 4-14 FileDownloadDirective“4”4-12........................
Table 4-15 FileProcessing Abort“6”4-13..........................
Table 4-16 Type 0 -UploadDataRecord4-14.......................
Table 4-17 Type 1 -End ofSession StatusRecord4-15................
Table 4-18 Type 2 -DataRequestRecord4-16.......................
Table 4-19 Type 3 -InactiveStatusRecord4-16......................
Table 4-20 Type 4 -ActiveStatusRecord4-17.......................
Table 4-21 Type 5 -ActivateRequestRecord4-17....................
Table 4-22 Type 6 -SpecialRequestRecord4-18.....................
Table 4-23 Type 7 -DirectiveStatusRecord4-19....................
Table 4-24 SystemModeParameters4-22..........................
Table 4-25 HostParameters4-24..................................
Table 4-26 Type 4 -LANParameters4-26..........................
Table 5-1NCDIR.NCC RecordLayout5-2.........................
Table 5-2NETRPL.LSTFile 5-8..................................
TableA-1BeepCountA-1.......................................
TableD-1Type?-HostReadyCommand D-1......................
TableD-2Type * -ReinitializationCommand D-1...................
TableD-3Type 0 -DownloadDataRecordD-1.....................
TableD-4Type 1 -End-of-DataRecordD-2.........................
TableD-5Type 2 -InitializationRecordD-2........................
TableD-6Type 3 -Activate(Auto-Answer) RecordD-2...............
TableD-7Type 4 -Activate(Auto-Dial)RecordD-3..................
TableD-8Type 5 -DeactivateforOneMinuteRecordD-3............
TableD-9Type 6 -HostDirectiveRecordD-4......................
TableD-10 Type 7 -RebootControllerDirectiveD-4.................
TableD-11 FileUploadDirective“1”D-4..........................
TableD-12 FileCreateorLoadDirective“2”D-5....................
TableD-13 FileDeleteDirective“3”D-6...........................

CONTENTS"
4985 NetworkControllerProgrammer’sGuidevii
TableD-14 FileDownloadDirective“4”D-6........................
TableD-15 FileProcessing Abort“6”D-6..........................
TableD-16 Type 0 -UploadDataRecordD-7.......................
TableD-17 Type 1 -End ofSession StatusRecordD-7...............
TableD-18 Type 2 -DataRequestRecordD-8......................
TableD-19 Type 3 -InactiveStatusRecordD-8.....................
TableD-20 Type 4 -ActiveStatusRecordD-8.......................
TableD-21 Type 5 -ActivateRequestRecordD-8...................
TableD-22 Type 6 -SpecialRequestRecordD-9....................
TableD-23 Type 7 -DirectiveStatusRecordD-10....................
TableD-24 SystemModeParametersD-11.........................
TableD-25 HostParametersD-13.................................
TableD-26 Type 4 -LANParametersD-14..........................
GLOSSARY
INDEX

CONTENTS"
viii 4985 NetworkControllerProgrammer’sGuide

4985 NetworkControllerProgrammer’sGuide1-1
Section1
Introduction
""""""""""""""""""""""""""""
The 4985 NetworkCommunicationControllerprovidesthecommu-
nicationlink betweenaNORANDâHand-HeldComputers(HHCs)and
yourhostcomputer.Twoserialcommunicationchannels servicethe
network.Thehostinterfacechannel isanRS-232 interface,whilethe
LocalAreaNetwork(LAN)isanRS-485 interface.
Oncepoweredon,the 4985 NetworkCommunicationController re-
quireslittleorno operatorintervention.Youcanenterchangestothe
hostinterfaceportion using thedipswitches(locatedat thebackofthe
controller) orahostprogramthatdirectstheinternalsoftchanges.
Thisdocumentaidsinthewriting oftheinterfaceprogramforyour
hostcomputer.
At theinitial installation,configurethe 4985 NetworkControllerforthe
networkitshouldoperate.Therearethree banksofdipswitchesfor
functionalconfigurationofthecontroller.Eachbank containseight
switches.Thefirstbank definesthetypeofcommunications,these-
cond definesthemodemtypeconnectedtothenetwork,and thethird
bank definesthecontroller’suniqueaddress inyouroverall network.
Norand supportsNORAND modems.Youcanenableordisablethe
modemconfiguration bysetting onoroff theappropriateDIPswitch.
ThefilemaintenancesystemprovidesanHHCbootmechanism.Your
hostcomputerdownloadsabootfilelistduring thefileprocessing
stageofcommunication.Aftercompleting fileprocessing,all ofthe
files specifiedinthelistcan bedownloadedtotheHHContheRS-485
network.

SECTION 1 "Introduction
1-24985 NetworkControllerProgrammer’sGuide
About theController
Thiscontroller requireslittleorno operatorintervention during nor-
maloperation.Oncetheinitialconfigurationiscomplete,controller
operation becomestransparent totheuser.
Thepower-upsequenceverifiesproperoperationoftheRead-Only
Memory(ROM),RandomAccess Memory(RAM),and partialtesting
oftheserialcommunicationcontroller.Uponsuccessfulcompletionof
thepower-upself-test,thecontrollersoundsasinglebeep.Passing the
power-upself-testalsoimpliesproperoperationoftheinternalCentral
Processing Unit(CPU)and businterfacelogic.Adoublebeepindi-
catesthehostportisreadytocommunicate.
Shouldthecontrollerbeepmultipletimesduring power-up,thecontrol-
lerhasfailedaportionofthestartuptestsequence.Consult thebeep
countstableinAppendixAfordescriptionsofthe errorcodes.
Aftersuccessfulpowerup,thecontrollerisreadytocommunicatewith
thedeviceattachedtothehostinterfaceport.Ifthehostportdeviceis
amodem,thecontrollermayconfigurethemodemand waitforthe
remotesystemtocall.
Youcanaccess adebug facilityforanalysisofcontrollerhardwareand
configuration.
Host Interfaces
Youmayneedahostcommunicationprogramand supportprograms
totalktothecontroller.Norand providestwohostinterfaces:Asynch-
ronousand SecondaryADCCP.
TheSecondaryADCCPinterfaceonlycommunicateswiththe
NORAND 4980 NetworkControllerorthe 4920 PC Communication
Packageand cancommunicatelocallyor remotelyusing modems.
Theasynchronousinterfaceconnectsthecontrollerdirectlytoyour
hostcomputer.Thisconnectionprovidesagatewayfordatato pass
betweentheHHCsand yourhostusing logicalchannelsand record
types.
Thisguideprimarilycoverstheasynchronousinterfacewhichis
4980-compatible.Theprimarydifferencebetweenthe 4980 and 4985 is

SECTION 1 "Introduction
4985 NetworkControllerProgrammer’sGuide1-3
the 4985 Controllerhasonlytwo portsand lacksadisplay,keypad,and
disk drive.Sinceoneportisdedicatedtothehostinterface,thereis
onlyoneportremaining forcommunicating withHHCs.
Thedifferentrecordtypes,sentbackand forthbetweenthecontroller
and thehost,helptailorthecommunications sessiontomeet thatspe-
cificsession’sneeds.

SECTION 1 "Introduction
1-44985 NetworkControllerProgrammer’sGuide

4985 NetworkControllerProgrammer’sGuide2-1
Section2
GettingStarted
""""""""""""""""""""""""""""
NetworkConfigurations
Thehostportattachestoahostcomputer,aPC,oranothercontroller.
Thisconnectionmustuseoneoftwodatalink protocols:ASYNCorSec-
ondaryADCCP.
HostComputer
4985 Controller
4960 Multidock
Modem
Modem
4980 Controller
Figure2-1
Host-to-4985 Using4980
ASYNC
ADCCP
Synchronous
SADCCP
Synchronous
NPCP
Figure 2-1demonstratesthehostcomputerdirectlyconnecting toa
4980 NetworkController,wiredtoasynchronousmodem.Atelephone

SECTION 2 "GettingStarted
2-24985 NetworkControllerProgrammer’sGuide
lineorleaselinksthetwoidenticalmodems.Bothmodemsmustbe
configuredexactlyalikeforsmoothcommunications.The 4985 Net-
workControllerconnectstothemodemwiththehostport.
Figure 2-2showsthe 4980 NetworkControllerontheleftconnectedto
ahostcomputer.The 4985 Controllerontherightisataremotesite,
hooked upwithatleastonesix-packmultidock.
DirectConnect
Figure2-2
4980 NetworkCommunicationsControllerConnectionto4985 Controller
4980 Network
Controller4985 Controller
Modem
Modem
-OR-
Figure 2-3showsasetupusing the 4920 CommunicationsPackagefor
aPCconnectiontothe 4985 Controller.
DirectConnect
Figure2-3
4920 HostCommunicationsPackageConnectionto4985 Controller
4920 HostCommunicationsPackage
(IncludesCommunicationCoprocessor)
4985 Controller
Modem
Modem
-OR-

SECTION 2 "GettingStarted
4985 NetworkControllerProgrammer’sGuide2-3
Figure 2-4hasthemostHand-HeldComputers(HHCs)thatcancom-
municatethroughone 4985 Controller.TheNORANDâAuxiliaryPow-
erUnits(APUs)connectinserieswiththemultidocks.
4985 ControllerMultidockMultidock
APU
APU
Figure2-4
4985 MultidockswithMaximumConfiguration
MultidockMultidock
MultidockMultidock
MultidockMultidockMultidock
Multidock

SECTION 2 "GettingStarted
2-44985 NetworkControllerProgrammer’sGuide
"NOTE:Add APUstothenetworkwhenusingmorethantwomultidocks.Thisensures
adequatepowerforthemultidockstorechargetheHHCswhenplacedinthese
docks.OneAPUpowersfourmultidocks.Thecontrollerpowerstwomultidocks
directly.
Figure 2-5differsfromFigure 2-4byconnecting thetwoAPUstogeth-
erinsteadofchaining thesecond APUinseriestoamultidock.The
second APUconnectsdirectlytothefirstAPU.

SECTION 2 "GettingStarted
4985 NetworkControllerProgrammer’sGuide2-5
4985 ControllerMultidockMultidock
APU
APU
Figure2-5
OptionalWiringwith2APUsConnected
MultidockMultidock
MultidockMultidock
MultidockMultidockMultidock
Multidock
Ifhooking upthemaximumnumberofmultidocksallowed,usethe
wiring diagraminFigures2-4or2-5.Takeintoconsiderationyour
poweroutletsand physicalsetup.

SECTION 2 "GettingStarted
2-64985 NetworkControllerProgrammer’sGuide
4985 Configuration Switches
Three 8-positionDIPswitchesallowsausertocustomizethe 4985 for
theirparticularsystemapplication.Switches“1”through“5”ofDIP
bank #2 applyonlytoADCCPhostapplications.DIPbank #3 config-
uresthecontrollersidentification numberforalargesystem.Thecon-
trollerconvertsthis8-bitIDtoanASCII decimalnumberinthe
49850000 to49850255 range.ThisIDgoestothehostcomputerat the
startofthehost-to-controllercommunicationsession.Thedefaultval-
ueis“49850000”and “49850255”isreserved.
"NOTE:Detailsofthethree DataInput(DI)bankswitches startonpage3-1.
Figure 2-6shows switchsettingsforconnecting the 4985 NetworkCon-
trollertothe 4980 NetworkControllerorthe 4920 Communication
Packageusing SecondaryADCCPand aNM9600 Modem.
O
N1 2 3 4 5 6 7 8
Bank1
O
N1 2 3 4 5 6 7 8
Bank2
Figure2-6
DefaultSwitchSettings
Bank 1:Switch1:Command modeisoff
Switch2:CommunicationsmodeusesSecondary
ADCCP
Switch3-5:Communicationsusesexternalclocking to
determinespeed
Switch6:Reserved.
Switch7-8:Setscontrollertohandlethree channels
activetoHHCsconcurrently.
"NOTE:All reservedswitchesorthosenotapplicablemustbeintheoff position.
Bank 2:Switch1:Auto-configurethemodem
Switch2-3:Auto-dialing isoff
Table of contents
Other Intermec Controllers manuals