Simpact Freeway 1150 Uživatelská příručka

Procházejte online nebo si stáhněte Uživatelská příručka pro Servery Simpact Freeway 1150. Simpact Freeway 1150 User`s guide [en] Uživatelská příručka

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 98
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 0
Simpact, Inc.
9210 Sky Park Court
San Diego, CA 92123
DDCMP
Programmer’s Guide
DC 900-1343D
April 1999
Zobrazit stránku 0
1 2 3 4 5 6 ... 97 98

Shrnutí obsahu

Strany 1 - Programmer’s Guide

Simpact, Inc.9210 Sky Park CourtSan Diego, CA 92123 DDCMPProgrammer’s Guide DC 900-1343D April 1999

Strany 2

10 DC 900-1343D DDCMP Programmer’s Guide

Strany 3 - Contents

DC 900-1343D 11 Preface Purpose of Document This document describes the operation and programming interface required to useSimpact’s Digital Data Com

Strany 4

12 DC 900-1343D DDCMP Programmer’s Guide Required Equipment The DDCMP product requires the following major hardware components to operate: • a Freewa

Strany 5

Preface DC 900-1343D 13 Simpact References The following documents provide useful supporting information, depending on thecustomer’s particular hardw

Strany 6

14 DC 900-1343D DDCMP Programmer’s Guide Embedded ICP Installation and Programming Support • ICP2432 User’s Guide for Digital UNIX DC 900-1513 • ICP2

Strany 7 - List of Figures

PrefaceDC 900-1343D 15Document ConventionsThis document follows the most significant byte first (MSB) and most significant wordfirst (MSW) conventions for

Strany 8

16 DC 900-1343DDDCMP Programmer’s GuideCustomer SupportIf you are having trouble with any Simpact product, call us at 1-800-275-3889 Mondaythrough Fri

Strany 9 - List of Tables

DC 900-1343D 17Chapter1Introduction1.1 Product OverviewSimpact provides a variety of wide-area network (WAN) connectivity solutions forreal-time financ

Strany 10

18 DC 900-1343DDDCMP Programmer’s GuideTo maintain high data throughput, Freeway uses a multi-processor architecture to sup-port the LAN and WAN servi

Strany 11 - Intended Audience

1: IntroductionDC 900-1343D 191.1.2 Embedded ICPThe embedded ICP connects your client computer directly to the WAN (for example,using Simpact’s ICP243

Strany 12

Simpact, Inc.9210 Sky Park CourtSan Diego, CA 92123(619) 565-1865DDCMP Programmer’s Guide© 1996 through 1999 Simpact, Inc. All rights reservedPrinted

Strany 13 - 1574, Bit

20 DC 900-1343DDDCMP Programmer’s GuideSummary of product features:• Provision of WAN connectivity either through a LAN-based Freeway server ordirectl

Strany 14

1: IntroductionDC 900-1343D 211.2 Freeway Client-Server EnvironmentThe Freeway server acts as a gateway that connects a client on a local-area network

Strany 15

22 DC 900-1343DDDCMP Programmer’s Guide1.3 Embedded ICP EnvironmentRefer to the user’s guide for your embedded ICP and operating system (for example,

Strany 16

1: IntroductionDC 900-1343D 231.4.2 Opening a SessionAfter the DLI and TSI configurations are properly defined, your client application usesthe dlOpen f

Strany 17 - Introduction

24 DC 900-1343DDDCMP Programmer’s Guide• DLI library for linking with client applications• Test program (ddcmpalp.c) to check product installationFor

Strany 18 - Freeway Server

DC 900-1343D 25Chapter2DDCMP DLI FunctionsNoteIn this document, the term “Freeway” can mean either a Freewayserver or an embedded ICP. For the embedde

Strany 19 - Client Computer

26 DC 900-1343DDDCMP Programmer’s Guide• The Freeway Data Link Interface Reference Guide shows a generic code examplewhich can guide your application

Strany 20

2: DDCMP DLI FunctionsDC 900-1343D 27• transport subsystem interface (TSI) connection configuration• protocol-specific ICP link configuration The Freeway

Strany 21

28 DC 900-1343DDDCMP Programmer’s GuideIn the Freeway environment, the term blocking I/O indicates that the dlOpen, dlClose,dlRead and dlWrite functio

Strany 22 - 1.4 Client Operations

2: DDCMP DLI FunctionsDC 900-1343D 292.2.1 Initializing the DLIThe client application calls dlInit to initialize its interface to Freeway. This call s

Strany 23 - 1.5 DDCMP Product Overview

DC 900-1343D 3 Contents List of Figures 7List of Tables 9Preface 111 Introduction 17 1.1 Product Overview... 171.1.1 Freew

Strany 24 - 1.5.2 Hardware Description

30 DC 900-1343DDDCMP Programmer’s Guidemain // DLI “main” section: //{asyncIO = “yes”; // Use non-blocking I/O //tsiCfgName = “ddcmpaltcfg.bin”; // T

Strany 25 - DDCMP DLI Functions

2: DDCMP DLI FunctionsDC 900-1343D 31For an embedded ICP using the DLITE interface, Figure 2–2 shows the “main” sectionand two DDCMP sessions. You nee

Strany 26

32 DC 900-1343DDDCMP Programmer’s Guide2.2.3 Opening and Attaching DLI SessionsAfter DLI initialization, the client calls dlOpen to open each DLI sess

Strany 27

2: DDCMP DLI FunctionsDC 900-1343D 332.3 Example DDCMP Call SequencesTable 2–2 shows the sequence of DLI function calls to send and receive data using

Strany 28 - 2.1.4 Buffer Management

34 DC 900-1343DDDCMP Programmer’s GuideCautionWhen using non-blocking I/O, a dlRead request must always bequeued to avoid loss of data or responses fr

Strany 29 - 2.2.1 Initializing the DLI

2: DDCMP DLI FunctionsDC 900-1343D 352.4 Overview of DLI Functions for DDCMPAfter the DDCMP software is downloaded to the Freeway ICP, the client and

Strany 30 - DDCMP Programmer’s Guide

36 DC 900-1343DDDCMP Programmer’s Guidea It is critical for the client application to receive the dlOpen completion status before making anyother DLI

Strany 31

2: DDCMP DLI FunctionsDC 900-1343D 372.4.1 DLI Optional ArgumentsSection 2.5 and Section 2.6 describe the dlWrite and dlRead functions for a DDCMPappl

Strany 32 - 2.2.5 Error Reporting

38 DC 900-1343DDDCMP Programmer’s GuideTable 2–5: Required dlWrite Optional Arguments FieldsdlWrite Optional Arguments Field Value UsageusFWPacketType

Strany 33

2: DDCMP DLI FunctionsDC 900-1343D 39Table 2–6: Relevant dlRead Optional Arguments FieldsdlRead Optional Arguments Field Value UsageusFWPacketType FW_

Strany 34

4 DC 900-1343D DDCMP Programmer’s Guide 2.1.4 Buffer Management ... 282.2 Using the DLI in the Freeway DDCMP Environment ...

Strany 35

40 DC 900-1343DDDCMP Programmer’s Guide2.5 Overview of DDCMP Requests using Raw dlWriteFor DDCMP the dlWrite function supports three dlWrite categorie

Strany 36 - 36 DC 900-1343D

2: DDCMP DLI FunctionsDC 900-1343D 412.5.1 Commands using Raw dlWriteSection 2.5.1.2 through Section 2.5.1.4 explain how to issue specific commands to

Strany 37 - 2.4.1 DLI Optional Arguments

42 DC 900-1343DDDCMP Programmer’s GuideTable 3–1 on page 56 lists the available link configuration options and values for theDDCMP protocol. The link s

Strany 38 - 38 DC 900-1343D

2: DDCMP DLI FunctionsDC 900-1343D 432.5.1.4 Stop Link CommandUse the dlWrite function with the pOptArgs.usProtCommand field set toDLI_PROT_SEND_UNBIND

Strany 39 - Optional Arguments Fields

44 DC 900-1343DDDCMP Programmer’s Guide2.5.2 Information Requests using Raw dlWriteSection 2.5.2.1 through Section 2.5.2.3 explain how to issue protoc

Strany 40

2: DDCMP DLI FunctionsDC 900-1343D 452.5.2.2 Request Link Statistics ReportUse the dlWrite function with the pOptArgs.usProtCommand field set toDLI_PRO

Strany 41 - 2.5.1.1 Configure Link Command

46 DC 900-1343DDDCMP Programmer’s Guide2.5.2.3 Request Link Status ReportUse the dlWrite function with the pOptArgs.usProtCommand field set toDLI_PROT_

Strany 42 - 2.5.1.3 Start Link Command

2: DDCMP DLI FunctionsDC 900-1343D 472.5.3 Data Transfer using Raw dlWrite For the DDCMP software to properly handle data transfer, the localAck DLI c

Strany 43 - 2.5.1.4 Stop Link Command

48 DC 900-1343DDDCMP Programmer’s Guide2.6 Overview of DDCMP Responses using Raw dlReadTable 2–11 shows the valid DDCMP codes sent to your application

Strany 44 - 2.5.2.1 Request Buffer Report

2: DDCMP DLI FunctionsDC 900-1343D 492.6.1 Received DataThe DDCMP software provides the DLI_PROT_RECV_DATA dlRead response code fordata reception. The

Strany 45

Contents DC 900-1343D 5 2.6.2.8 DDCMP Maintenance Message Received [140] ... 532.6.2.9 Control Message Received in Maintenance Mode [200] ... 5

Strany 46

50 DC 900-1343DDDCMP Programmer’s GuidepOptArgs.iProtModifier field set to 7. The Final Acknowledge of Data Transmitted tellsthe client writing DDCMP

Strany 47 - 2.5.3.1 Send Normal Data

2: DDCMP DLI FunctionsDC 900-1343D 51defines the type of circuit exception received as shown in Table 2–13. Section 2.6.2.2through Section 2.6.2.10 gi

Strany 48

52 DC 900-1343DDDCMP Programmer’s Guide2.6.2.2 Receiving Computer not Responding [131]This exception is generated each seventh time that a reply (REP)

Strany 49 - 2.6.1 Received Data

2: DDCMP DLI FunctionsDC 900-1343D 532.6.2.8 DDCMP Maintenance Message Received [140]This exception is caused by the reception of a DDCMP maintenance

Strany 50 - 2.6.2 Circuit Exceptions

54 DC 900-1343DDDCMP Programmer’s Guide

Strany 51

DC 900-1343D 55Chapter3DDCMP Link Configuration OptionsThis chapter describes the various link configuration options that can be set using thedlWrite Co

Strany 52

56 DC 900-1343DDDCMP Programmer’s GuideTable 3–1: DDCMP Link Configuration Options and Settings OptionValue (hex)Default (✓) SettingData Rate (bits/sec

Strany 53 - 2.6.3 Confirmation Responses

3: DDCMP Link Configuration OptionsDC 900-1343D 573.2 Clock Source OptionThe clock source option determines the source of the data clock signals for a

Strany 54 - 54 DC 900-1343D

58 DC 900-1343DDDCMP Programmer’s Guide3.4 Line Mode OptionThis option selects the mode of serial communications, either synchronous or asynchro-nous.

Strany 55 - Configuration Options

DC 900-1343D 59AppendixAError CodesThere are several methods used by the DLI and DDCMP software to report errors(Table A–1 lists the DDCMP errors). Th

Strany 56 - 56 DC 900-1343D

6 DC 900-1343D DDCMP Programmer’s Guide C.15 stats-rpt-ack-packet ... 85C.16 status-rpt-packet ...

Strany 57 - 3.3 Reply Timer Length Option

60 DC 900-1343DDDCMP Programmer’s GuideTable A–1: DDCMP Error Codes Code DLI Constant Name Meaning0 DLI_ICP_ERR_NO_ERR A data block has been successfu

Strany 58 - 3.7 Maintenance Mode Option

DC 900-1343D 61AppendixBDLI and TSI Configuration ProcessNoteIn this document, the term “Freeway” can mean either a Freewayserver or an embedded ICP. F

Strany 59 - Error Codes

62 DC 900-1343DDDCMP Programmer’s GuideThe DLI and TSI configuration files provided with the product are listed in Table B–1. The DLI and TSI configurati

Strany 60 - Table A–1: DDCMP Error Codes

B: DLI and TSI Configuration ProcessDC 900-1343D 63uration file in the same directory as the location of the text file (unless a differentpath is supplie

Strany 61 - Configuration Process

64 DC 900-1343DDDCMP Programmer’s Guide6. If you have a UNIX system, move the binary configuration files that you createdin Step 4 and Step 5 into the a

Strany 62

B: DLI and TSI Configuration ProcessDC 900-1343D 65Figure B–1: DLI and TSI Configuration ProcessApplicationDLITSI(Freeway Server Only)TransportEnvironme

Strany 63

66 DC 900-1343DDDCMP Programmer’s Guide

Strany 64

DC 900-1343D 67AppendixCPacket Exchange Quick ReferenceThis appendix is intended for programmers writing an application program under oneof the follow

Strany 65 - DC 900-1343D 65

68 DC 900-1343DDDCMP Programmer’s GuideC.2 Command Sequences1. Sequence of packet exchanges for establishing a connection and starting a link Se

Strany 66 - 66 DC 900-1343D

C: Packet Exchange Quick ReferenceDC 900-1343D 69C.3 attach-packet Packet DescriptionThis packet is used to attach an application to the protocol and

Strany 67 - Quick Reference

DC 900-1343D 7 List of Figures Figure 1–1: Freeway Configuration... 18Figure 1–2: Embedded ICP Configuration...

Strany 68 - C.2 Command Sequences

70 DC 900-1343DDDCMP Programmer’s GuideC.4 link-config-packet Packet DescriptionThis packet is used to configure a link. The data field consists of a dat

Strany 69 - C.3 attach-packet

C: Packet Exchange Quick ReferenceDC 900-1343D 71NoteThe Freeway header is used only with DLI (it is not applicable forDLITE), and the usLength field o

Strany 70 - C.4 link-config-packet

72 DC 900-1343DDDCMP Programmer’s GuideC.5 start-link-packet Packet DescriptionThis packet is used to start or enable a link. Packet Header

Strany 71 - Packet Exchanges

C: Packet Exchange Quick ReferenceDC 900-1343D 73C.6 write-data-packet Packet DescriptionThis packet is used to send data to a remote application. Pac

Strany 72 - C.5 start-link-packet

74 DC 900-1343DDDCMP Programmer’s GuideC.7 receive-data-packet Packet DescriptionThis packet is received for data from a remote application, for ackno

Strany 73 - C.6 write-data-packet

C: Packet Exchange Quick ReferenceDC 900-1343D 75Packet Exchanges usProtCommand sent usProtCommand received --------------

Strany 74 - C.7 receive-data-packet

76 DC 900-1343DDDCMP Programmer’s GuideC.8 stop-link-packet Packet DescriptionThis packet is used to stop or disable a link. Packet Header

Strany 75 - Modifier Meanings

C: Packet Exchange Quick ReferenceDC 900-1343D 77C.9 detach-packet Packet DescriptionThis packet is used to detach an application from the protocol. P

Strany 76 - C.8 stop-link-packet

78 DC 900-1343DDDCMP Programmer’s GuideC.10 clr-stats-packet Packet DescriptionThis packet is used to clear a links statistics. Packet Header

Strany 77 - C.9 detach-packet

C: Packet Exchange Quick ReferenceDC 900-1343D 79C.11 clr-stats-ack-packet Packet DescriptionThis packet is received in response to a “clr-stats-packe

Strany 78 - C.10 clr-stats-packet

8 DC 900-1343D DDCMP Programmer’s Guide

Strany 79 - C.11 clr-stats-ack-packet

80 DC 900-1343DDDCMP Programmer’s GuidePacket Exchanges usProtCommand sent usProtCommand received ------------------

Strany 80

C: Packet Exchange Quick ReferenceDC 900-1343D 81C.12 buf-report-packet Packet DescriptionThis packet is used to request a buffer report. Packet Heade

Strany 81 - C.12 buf-report-packet

82 DC 900-1343DDDCMP Programmer’s GuideC.13 buf-report-ack-packet Packet DescriptionThis packet is received in response to a “buf-report-packet”. Pac

Strany 82 - C.13 buf-report-ack-packet

C: Packet Exchange Quick ReferenceDC 900-1343D 83Packet Exchanges usProtCommand sent usProtCommand received --------------

Strany 83

84 DC 900-1343DDDCMP Programmer’s GuideC.14 stats-rpt-packet Packet DescriptionThis packet is used to request a links statistics report. Packet Header

Strany 84 - C.14 stats-rpt-packet

C: Packet Exchange Quick ReferenceDC 900-1343D 85C.15 stats-rpt-ack-packet Packet DescriptionThis packet is received in response to a “stats-rpt-packe

Strany 85 - C.15 stats-rpt-ack-packet

86 DC 900-1343DDDCMP Programmer’s GuidePacket Exchanges usProtCommand sent usProtCommand received ------------------

Strany 86

C: Packet Exchange Quick ReferenceDC 900-1343D 87C.16 status-rpt-packet Packet DescriptionThis packet is used to request a link’s status report. Packe

Strany 87 - C.16 status-rpt-packet

88 DC 900-1343DDDCMP Programmer’s GuideC.17 status-rpt-ack-packet Packet DescriptionThis packet is received in response to a “status-rpt-ack-packet”.

Strany 88 - C.17 status-rpt-ack-packet

C: Packet Exchange Quick ReferenceDC 900-1343D 89Packet Exchanges usProtCommand sent usProtCommand received --------------

Strany 89

DC 900-1343D 9 List of Tables Table 2–1: Include Files ... 26Table 2–2: DLI Call Sequence for DDCMP (Blocking I/O) ...

Strany 90 - 90 DC 900-1343D

90 DC 900-1343DDDCMP Programmer’s Guide

Strany 91 - DC 900-1343D 91

DC 900-1343D 91IndexAAcknowledgmentsattach 39data transmitfinal acknowledgment 47, 49detach 39start link 39, 42, 50final acknowledgment 42stop link 39,

Strany 92 - 92 DC 900-1343D

92 DC 900-1343DDDCMP Programmer’s Guidesee Data codessee Error codessee Information codessee Response codesCommand codes 40DLI_PROT_CFG_LINK 41DLI_PRO

Strany 93 - DC 900-1343D 93

IndexDC 900-1343D 93configuration 26see also Configuration, DLIconfiguration process 61initialization 29normal vs raw operation 27session configuration 29

Strany 94 - 94 DC 900-1343D

94 DC 900-1343DDDCMP Programmer’s GuideFeaturesproduct 20Filesbinary configuration 27, 29, 33, 34, 62configuration file names 62dlicperr.h include file 59

Strany 95 - DC 900-1343D 95

IndexDC 900-1343D 95OOpening DLI sessions 32Operating systemSimpact’s real-time 18, 19Operationnormal vs raw 27Optional arguments 32dlRead relevant 39

Strany 96 - 96 DC 900-1343D

96 DC 900-1343DDDCMP Programmer’s Guidecomponents 23download 21, 55Start linkacknowledgment 39, 42command 38, 42final acknowledge 50final acknowledgment

Strany 97 - Customer Report Form

DDCMP Programmer’s GuideDC 900-1343DCustomer Report FormWe are constantly improving our products. If you have suggestions or problems you wouldlike to

Strany 98 - San Diego, CA 92123

Simpact, Inc.Customer Service9210 Sky Park CourtSan Diego, CA 92123

Komentáře k této Příručce

Žádné komentáře