Simpact Freeway 1150 Betriebsanweisung

Stöbern Sie online oder laden Sie Betriebsanweisung nach Server Simpact Freeway 1150 herunter. Simpact Freeway 1150 User`s guide [en] Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 98
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 0
Simpact, Inc.
9210 Sky Park Court
San Diego, CA 92123
DDCMP
Programmer’s Guide
DC 900-1343D
April 1999
Seitenansicht 0
1 2 3 4 5 6 ... 97 98

Inhaltsverzeichnis

Seite 1 - Programmer’s Guide

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

Seite 2

10 DC 900-1343D DDCMP Programmer’s Guide

Seite 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

Seite 4

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

Seite 5

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

Seite 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

Seite 7 - List of Figures

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

Seite 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

Seite 9 - List of Tables

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

Seite 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

Seite 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

Seite 12

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

Seite 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

Seite 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

Seite 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,

Seite 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

Seite 17 - Introduction

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

Seite 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

Seite 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

Seite 20

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 33

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

Seite 34

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

Seite 35

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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_

Seite 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

Seite 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

Seite 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

Seite 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

Seite 46

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

Seite 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

Seite 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)

Seite 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

Seite 50 - 2.6.2 Circuit Exceptions

54 DC 900-1343DDDCMP Programmer’s Guide

Seite 51

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

Seite 52

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

Seite 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

Seite 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.

Seite 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

Seite 56 - 56 DC 900-1343D

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 62

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

Seite 63

66 DC 900-1343DDDCMP Programmer’s Guide

Seite 64

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

Seite 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

Seite 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

Seite 67 - Quick Reference

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 73 - C.6 write-data-packet

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 78 - C.10 clr-stats-packet

8 DC 900-1343D DDCMP Programmer’s Guide

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

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

Seite 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

Seite 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

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

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

Seite 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

Seite 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

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

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

Seite 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

Seite 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”.

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

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

Seite 89

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

Seite 90 - 90 DC 900-1343D

90 DC 900-1343DDDCMP Programmer’s Guide

Seite 91 - DC 900-1343D 91

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

Seite 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

Seite 93 - DC 900-1343D 93

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

Seite 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

Seite 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

Seite 96 - 96 DC 900-1343D

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

Seite 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

Seite 98 - San Diego, CA 92123

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

Kommentare zu diesen Handbüchern

Keine Kommentare