SFF-8472协议

SFF Committee documentation may be purchased in hard copy or electronic form

SFF specifications are available at ftp://https://www.360docs.net/doc/e05917725.html,/sff

SFF Committee

SFF-8472 Specification for

Diagnostic Monitoring Interface for Optical Transceivers

Rev 10.3 December 1, 2007

Secretariat: SFF Committee

Abstract: This specification defines an enhanced digital diagnostic monitoring interface for optical transceivers which allows real time access to device operating parameters.

This specification provides a common reference for systems manufacturers, system integrators, and suppliers. This is an internal working specification of the SFF Committee, an industry ad hoc group.

This specification is made available for public review, and written comments are solicited from readers. Comments received by the members will be considered for inclusion in future revisions of this specification.

Support: This specification is supported by the identified member companies of the SFF Committee.

POINTS OF CONTACT:

Technical Editor: Technical Contributors:

Randy Clark Randy Clark, Agilent Technologies

Avago Technologies Pete Mahowald, Agilent Technologies

350 West Trimble Rd Tom Lindsay, E2O

San Jose, CA, 95131 Lew Aronson, Finisar

408-435-6763 Dan Kane, Finisar

randy.clark@https://www.360docs.net/doc/e05917725.html, Leland Day, JDS Uniphase

Jim Judkins, Micrel Semiconductor

Gus Carroll, Pine Photonics

Chairman SFF Committee Luis Torres, Stratos Lightwave

I. Dal Allan

14426 Black Walnut Court

Saratoga

CA 95070

408-867-6630

408-867-2115Fx

endlcom@https://www.360docs.net/doc/e05917725.html,

The following member companies of the SFF Committee voted in favor of this industry specification.

Amphenol

Avago

Clariphy

EMC

Emulex

ENDL

ETRI

FCI

Finisar

Fujitsu CPA

Honda Connector

IBM

Infineon

Intel

JDS Uniphase

Madison Cable

Micrel

Nexans

OpNext

Picolight

Samsung

Stratos

Sumitomo

Sun Microsystems

Unisys

Vitesse Semiconductor

The following member companies of the SFF Committee voted to abstain on this

industry specification.

Adaptec

AMCC

Brocade

Comax

Cortina Systems

DDK Fujikura

Dell

Foxconn

Fujitsu Components

Hewlett Packard

Hitachi America

Hitachi Cable

Hitachi GST

LSI Logic

Maxtor

Molex

Montrose/CDT

Seagate

Toshiba America

Tyco AMP

Xyratex

The user's attention is called to the possibility that implementation to this Specification may require use of an invention covered by patent rights. By

distribution of this Specification, no position is taken with respect to the

validity of this claim or of any patent rights in connection therewith. The patent holder has filed a statement of willingness to grant a license under these rights on reasonable and non-discriminatory terms and conditions to applicants desiring to obtain such a license.

The development work on this specification was done by the SFF Committee, an

industry group. The membership of the committee since its formation in August 1990 has included a mix of companies which are leaders across the industry.

When 2 1/2" diameter disk drives were introduced, there was no commonality on

external dimensions e.g. physical size, mounting locations, connector type,

connector location, between vendors.

The first use of these disk drives was in specific applications such as laptop portable computers and system integrators worked individually with vendors to

develop the packaging. The result was wide diversity, and incompatibility.

The problems faced by integrators, device suppliers, and component suppliers led to the formation of the SFF Committee as an industry ad hoc group to address the marketing and engineering considerations of the emerging new technology.

During the development of the form factor definitions, other activities were suggested because participants in the SFF Committee faced more problems than the physical form factors of disk drives. In November 1992, the charter was expanded to address any issues of general interest and concern to the storage industry. The SFF Committee became a forum for resolving industry issues that are either not addressed by the standards process or need an immediate solution.

Those companies which have agreed to support a specification are identified in the first pages of each SFF Specification. Industry consensus is not an essential requirement to publish an SFF Specification because it is recognized that in an emerging product area, there is room for more than one approach. By making the documentation on competing proposals available, an integrator can examine the alternatives available and select the product that is felt to be most suitable.

SFF Committee meetings are held during T10 weeks (see https://www.360docs.net/doc/e05917725.html,), and Specific Subject Working Groups are held at the convenience of the participants. Material presented at SFF Committee meetings becomes public domain, and there are no restrictions on the open mailing of material presented at committee meetings.

Most of the specifications developed by the SFF Committee have either been incorporated into standards or adopted as standards by EIA (Electronic Industries Association), ANSI (American National Standards Institute) and IEC (International Electrotechnical Commission).

If you are interested in participating or wish to follow the activities of the SFF Committee, the signup for membership and/or documentation can be found at:

https://www.360docs.net/doc/e05917725.html,/ie/join.html

The complete list of SFF Specifications which have been completed or are currently being worked on by the SFF Committee can be found at:

ftp://https://www.360docs.net/doc/e05917725.html,/sff/SFF-8000.TXT

If you wish to know more about the SFF Committee, the principles which guide the activities can be found at:

ftp://https://www.360docs.net/doc/e05917725.html,/sff/SFF-8032.TXT

Suggestions for improvement of this specification will be welcome. They should be sent to the SFF Committee, 14426 Black Walnut Ct, Saratoga, CA 95070.

Publication History

Description Date Revision

Number

1.0 Initial Submission of Document, Preliminary 4/5/01

2.0 Draft Second Revision, Preliminary 5/18/01

3.0 Draft Third Revision, Preliminary 6/27/01

4.0 Draft Fourth Revision, Preliminary 10/8/01

5.0 Draft Fifth Revision 11/5/01

6.0 Draft Sixth Revision 11/19/01

7.0 Draft Revision 7.0 01/09/02

8.0 Draft Revision 8.0 02/01/02

9.0 Draft Revision 9.0 03/28/02

9.0 Revision 9.0 Approved for Technical Content 5/02

9.2 Revision 9.2 Submitted for Publication 5/30/02

9.3 Editorial Modifications to rev. 9.2. 9.3 Submitted for

8/01/02 Publication

5/26/04

9.4 Add extensions to include additional technologies.

Results of Dec. 5 03 discussions. Includes:

Support for Multiple Application Selection

Reserved values for SFF-8079 in Table 3.1,

Table 3.10, Table 3.12, and Table 3.17.

Additional transceiver type values in Table 3.5

Additional values in Table 3.1a, 3.5a and 3.5b

Additional values in Table 3.12

General editorial modifications.

6/01/04

9.5 Editorial Modifications to rev. 9.4. 9.5 Submitted for

Publication.

10.0 Add extensions to the following tables:

2/06/07 Table 3.1b, 3.2, 3.4, 3.5, 3.5b, 3.7, 3.11, 3.12, 3.21

Editorial changes to the following tables:

Table 3.2, 3.3, 3.4, 3.6, 3.7, 3.9, 3.10, 3.17

Add table 3.1a, 3.6a, 3.18a and references to 8079/8431.

6/01/07

10.2 Editorial updates per ballot feedback.

Technical update to Tables 3.1.

1. Scope and Overview

This document defines an enhanced memory map with a digital diagnostic monitoring interface for optical transceivers that allows pseudo real time access to device operating parameters. It also adds new options to the previously defined two-wire interface ID memory map that accommodate new transceiver types that were not considered in the SFP MSA or GBIC documents.

The interface is an extension of the two-wire interface ID interface defined in the GBIC specification as well as the SFP MSA. Both specifications define a 256 byte memory map in EEPROM which is accessible over a 2 wire serial interface at the 8 bit address 1010000X (A0h). The digital diagnostic monitoring interface makes use of the 8 bit address 1010001X (A2h), so the originally defined two-wire interface ID memory map remains unchanged. The interface is backward compatible with both the GBIC specification and the SFP MSA.

2. Applicable Documents

Gigabit Interface Converter (GBIC). SFF document number: SFF-8053, rev. 5.5, September 27, 2000.

Small Form Factor Pluggable (SFP) Transceiver, SFF document number INF-8074, rev. 1.0, May 12, 2001 (Based on the initial September 14, 2001 MSA public release).

SFP Rate and Application Selection. SFF document number SFF-8079, rev 1.7, February 2, 2005.

SFP Rate and Application Codes. SFF document number SFF-8089, rev 1.3, February 3, 2005.

Enhanced 8.5 and 10 Gigabit Small Form Factor Pluggable Module (SFP Plus).

SFF document number SFF-8431, rev 1.6, December 21, 2006.

3. Enhanced Digital Diagnostic Interface Definition

Overview

The enhanced digital diagnostic interface is a superset of the MOD_DEF interface defined in the SFP MSA document dated September 14, 2000, later submitted to the SFF Committee as INF-8074. The 2 wire interface pin definitions, hardware, and timing are clearly defined there. This document describes an extension to the memory map defined in the SFP MSA (see Figure 3.1). The enhanced interface uses the two wire serial bus address 1010001X (A2h) to provide diagnostic information about the module’s present operating conditions. The transceiver generates this diagnostic data by digitization of internal analog signals. Calibration and alarm/warning threshold data is written during device manufacture.

Additional A0h and A2h memory allocations were provided in revision 9.5 to support multi-rate and application selection as defined in SFF-8079 and SFF-8089 documents.

Extensions have been made in revision 10.2 to several tables documenting new connectors, industry form factors and transceiver codes.

Figure 3.1: Digital Diagnostic Memory Map

Specific Data Field Descriptions

2 wire address 1010000X (A0h)

2 wire address 1010001X (A2h)

95

127

255

55

95

119

247

255127

Table 3.1 Two-wire interface ID: Data Fields – Address A0h

Data Address

Size

(Bytes)

Name of

Field

Description of Field

BASE ID FIELDS

0 1 Identifier Type of transceiver (see Table 3.2)

1 1 Ext. Identifier Extended identifier of type of transceiver (see Table 3.3)

2 1 Connector Code for connector type (see Table 3.4)

3-10 8 Transceiver Code for electronic compatibility or optical compatibility

(see Table 3.5)

11 1 Encoding Code for high speed serial encoding algorithm (see Table 3.6)

12 1 BR, Nominal Nominal signalling rate, units of 100MBd.

13 1 Rate Identifier Type of rate select functionality (see Table 3.6a)

14 1 Length(SMF,km) Link length supported for single mode fiber, units of km

15 1 Length (SMF) Link length supported for single mode fiber, units of 100 m

16 1 Length (50um) Link length supported for 50 um OM2 fiber, units of 10 m

17 1 Length (62.5um) Link length supported for 62.5 um OM1 fiber, units of 10 m

18 1 Length (Copper) Link length supported for copper, units of meters

19 1 Length (OM3) Link length supported for 50 um OM3 fiber, units of 10 m

20-35 16 Vendor name SFP vendor name (ASCII)

36 1 Unallocated

37-39 3 Vendor OUI SFP vendor IEEE company ID

40-55 16 Vendor PN Part number provided by SFP vendor (ASCII)

56-59 4 Vendor rev Revision level for part number provided by vendor (ASCII)

60-61 2 Wavelength Laser wavelength

62 1 Unallocated

63 1 CC_BASE Check code for Base ID Fields (addresses 0 to 62)

EXTENDED ID FIELDS

64-65 2 Options Indicates which optional transceiver signals are implemented

(see Table 3.7)

66 1 BR, max Upper bit rate margin, units of %

67 1 BR, min Lower bit rate margin, units of %

68-83 16 Vendor SN Serial number provided by vendor (ASCII)

84-91 8 Date code Vendor’s manufacturing date code (see Table 3.8)

92 1 Diagnostic

Monitoring Type Indicates which type of diagnostic monitoring is implemented (if any) in the transceiver (see Table 3.9)

93 1 Enhanced Options Indicates which optional enhanced features are implemented

(if any) in the transceiver (see Table 3.10)

94 1 SFF-8472

Compliance Indicates which revision of SFF-8472 the transceiver complies with. (see Table 3.12)

95 1 CC_EXT Check code for the Extended ID Fields (addresses 64 to 94)

VENDOR SPECIFIC ID FIELDS

96-127 32 Vendor Specific Vendor Specific EEPROM

128-255 128 Reserved Reserved for SFF-8079

Table 3.1a Diagnostics: Data Fields – Address A2h

Data Address

Size

(Bytes)

Name of

Field

Description of Field DIAGNOSTIC AND CONTROL/STATUS FIELDS

0-39 40 A/W Thresholds Diagnostic Flag Alarm and Warning Thresholds (see Table 3.15) 40-55 16 Unallocated

56-91 36 Ext Cal Constants Diagnostic calibration constants for optional External Calibration

(see Table 3.16)

92-94 3 Unallocated

95 1 CC_DMI Check code for Base Diagnostic Fields (addresses 0 to 94)

96-105 10 Diagnostics Diagnostic Monitor Data (internally or externally calibrated)

(see Table 3.17)

106-109 4 Unallocated

110 1 Status/Control Optional Status and Control Bits (see Table 3.17)

111 1 Reserved Reserved for SFF-8079

112-113 2 Alarm Flags Diagnostic Alarm Flag Status Bits (see Table 3.18)

114-115 2 Unallocated

116-117 2 Warning Flags Diagnostic Warning Flag Status Bits (see Table 3.18)

118-119 2 Ext Status/Control Extended module control and status bytes (see Table 3.18a)

GENERAL USE FIELDS

120-127 8 Vendor Specific Vendor specific memory addresses (see Table 3.19)

128-247 120 User EEPROM User writable non-volatile memory (see Table 3.20)

248-255 8 Vendor Control Vendor specific control addresses (see Table 3.21)

Examples of transceiver performance code use are given in Table 3.1b for illustration.

Table 3.1b: Transceiver Identification/Performance Examples (A0h Bytes 12-18)

Address A0h

Rate and Distance Fields Wavelength Fields

Transceiver Type Transceiver Description Byte

12

Byte

14

Byte

15

Byte

16

Byte

17

Byte

18

Bytes

60 & 61

100-M5-SN-I and 100-M6-SN-I

1062.5 MBd MM 850nm

500m/50um, 300m/62.5um

0Bh 00h 00h 32h 1Eh 00h 0352h

200-SM-LC-L and 100-SM-LC-L 2125 MBd and 1062.5 MBd

10km SM 1310nm

15h30Ah364h300h 00h 00h 051Eh

400-M5-SN-I and 400-M6-SN-I 4

4250 MBd MM 850nm

150m/50um, 70m/62.5um

2Bh300h 00h 0Fh307h300h 0352h

400-SM-LC-M 4250 MBd SM 1310nm

4km “medium” length

2Bh304h 28h 00h 00h 00h 051Eh 400-SM-LC-L 4250 MBd SM 1310nm

10km “long” length

2Bh30Ah 64h 00h 00h 00h 051Eh

200-SM-LL-V and 100-SM-LL-V 2125 MBd and 1062.5 MBd

50km SM 1550nm

15h332h FFh 00h 00h 00h 060Eh

ESCON SM 200 MBd 20km

SM 1310nm

02h 14h C8h 00h 00h 00h 051Eh 100BASE-LX10 125 MBd 10km

SM 1310nm

01h 0Ah 64h 00h 00h 00h 051Eh 1000BASE-T 1250 MBd 100m

Cat 5 Cable

0Dh100h 00h 00h 00h 64h 0000h 1000BASE-SX 1250 MBd 550m

MM 850nm

0Dh100h 00h 37h21Bh200h 0352h 1000BASE-LX 1250 MBd 5km

SM 1310nm

0Dh105h 32h 37h 37h 00h 051Eh

1000BASE-LX10 1250 MBd 10km

SM 1310nm

0Dh10Ah 64h 00h 00h 00h 051Eh

1000BASE-BX10-D 1250 MBd 10km SM

1490nm downstream TX

0Dh10Ah 64h 00h 00h 00h 05D2h

1000BASE-BX10-U 1250 MBd 10km SM

1310nm upstream TX

0Dh10Ah 64h 00h 00h 00h 051Eh

OC3/STM1 SR-1 155 MBd 2km

SM 1310nm

02h 02h 14h 00h 00h 00h 051Eh

OC12/STM4 LR-1 622 MBd 40km

SM 1310nm

06h328h FFh 00h 00h 00h 051Eh

OC48/STM16 LR-2 2488 MBd 80km

SM 1550nm

19h350h FFh 00h 00h 00h 060Eh

1. By convention 1.25 Gb/s should be rounded up to 0Dh (13 in units of 100 MBd) for Ethernet 1000BASE-X.

2. Link distances for 1000BASE-SX variants vary between high and low bandwidth cable types per 802.3 Clause 38. The values shown are

270m [275m per 802.3] for 62.5um/200 MHz*km cable and 550m for 50um/500 MHz*km cable.

3. For transceivers supporting multiple data rates (and hence multiple distances with a single fiber type) the highest data rate and the

distances achievable at that data rate are to be identified in these fields.

4. In this example, the transceiver supports 400-M5-SN-I, 200-M5-SN-I, 100-M5-SN-I, 400-M6-SN-I, 200-M6-SN-I and 100-M6-SN-I.

The identifier value specifies the physical device described by the two-wire interface information. This value shall be included in the two-wire interface d ata. The defined identifier values are shown in Table 3.2.

TABLE 3.2: Identifier values

A0h data

address Value Description of physical device

0 00h Unknown or unspecified

01h GBIC

02h Module soldered to motherboard (ex: SFF)

03h SFP

04h Reserved for “300 pin XBI” devices*

05h Reserved for “Xenpak” devices*

06h Reserved for “XFP” devices*

07h Reserved for “XFF” devices*

08h Reserved for “XFP-E” devices*

09h Reserved for “XPak” devices*

0Ah Reserved for “X2” devices*

0Bh Reserved for “DWDM-SFP” devices*

0Ch Reserved for “QSFP” devices*

0D-7Fh Reserved, unallocated

80-FFh Vendor specific

* These device types are not impacted by this document and are shown only to

avoid multiple industry definitions in this type of “Physical Device” identifier field.

Extended Identifier [Address A0h, Byte 1]

The extended identifier value provides additional information about the transceiver. The field should be set to 04h for all SFP modules indicating two-wire interface ID module definition. In many cases, a GBIC elects to use MOD_DEF 4 to make additional information about the GBIC available, even though the GBIC is actually compliant with one of the six other MOD_DEF values defined for GBICs. The extended identifier allows the GBIC t o explicitly specify such compliance without requiring the MOD_DEF value to be inferred from the other information provided. The defined extended identifier values are shown in Table 3.3.

TABLE 3.3: Extended identifier values

A0h Data

Address Value Description of connector

1 00h GBIC definition is not specified or the GBIC definition is not

compliant with a defined MOD_DEF. See product specification

for details.

01h GBIC is compliant with MOD_DEF 1

02h GBIC is compliant with MOD_DEF 2

03h GBIC is compliant with MOD_DEF 3

04h GBIC/SFP function is defined by two-wire interface ID only

05h GBIC is compliant with MOD_DEF 5

06h GBIC is compliant with MOD_DEF 6

07h GBIC is compliant with MOD_DEF 7

08-FFh Unallocated

The connector value indicates the external optical or electrical cable connector provided as the media interface. This value shall be included in the two-wire interface data. The defined connector values are shown in Table 3.4. Note that 01h to 05h are not SFP compatible, and are included for compatibility with GBIC standards.

TABLE 3.4: Connector values

A0h data

address Value Description of connector

2 00h Unknown or unspecified

01h SC

02h Fibre Channel Style 1 copper connector

03h Fibre Channel Style 2 copper connector

04h BNC/TNC

05h Fibre Channel coaxial headers

06h FiberJack

07h LC

08h MT-RJ

09h MU

0Ah SG

0Bh Optical pigtail

0Ch MPO Parallel Optic

0D-1Fh Unallocated

20h HSSDC II

21h Copper pigtail

22h RJ45

23h-7Fh Unallocated

80-FFh Vendor specific

Transceiver Compliance Codes [Address A0h, Bytes 3-10]

The following bit significant indicators define the electronic or optical interfaces that are supported by the transceiver. At least one bit shall be set in this field. For Fibre Channel transceivers, the Fibre Channel speed, transmission media, transmitter technology, and distance capability shall all be indicated. SONET compliance codes are completed by including the contents of Table 3.5a. Ethernet, ESCON and InfiniBand codes have been included to broaden the available applications of SFP transceivers.

Table 3.5: Transceiver codes(Address A0h)

Data Addr

Bit 1Description of transceiver Data

Addr

Bit 1Description of transceiver 10G Ethernet Compliance Codes Fibre Channel link length

3 7 Unallocated 7 7 very long distance (V)

3 6 10G Base-LRM 7 6 short distance (S)

3 5 10G Base-LR 7 5 intermediate distance (I)

3 4 10G Base-SR 7 4 long distance (L)

Infiniband Compliance Codes7 3 medium distance (M)

3 3 1X SX Fibre Channel transmitter technology

3 2 1X LX 7 2 Shortwave laser, linear Rx (SA)7

3 1 1X Copper Active 7 1 Longwave laser (LC)6

3 0 1X Copper Passive 7 0 Electrical inter-enclosure (EL)

ESCON Compliance Codes 8 7 Electrical intra-enclosure (EL)

4 7 ESCON MMF, 1310nm LED 8 6 Shortwave laser w/o OFC (SN) 7

4 6 ESCON SMF, 1310nm Laser 8

5 Shortwave laser with OFC4 (SL)

SONET Compliance Codes 8 4 Longwave laser (LL)5

4 5 OC-192, short reach28 3 Copper Active

4 4 SONET reach specifier bit 1 8 2 Copper Passive

4 3 SONET reach specifier bit 2 8 1 Copper FC-BaseT

4 2 OC-48, long reach 28 0 Unallocated

4 1 OC-48, intermediate reach 2

4 0 OC-48, short reach2Fibre Channel transmission media

5 7 Unallocated 9 7 Twin Axial Pair (TW)

5 6 OC-12, single mode, long reach 29 6 Twisted Pair (TP)

5 5 OC-12, single mode, inter. reach 29 5 Miniature Coax (MI)

5 4 OC-12, short reach 29 4 Video Coax (TV)

5 3 Unallocated 9 3 Multimode, 62.5um (M6)

5 2 OC-3, single mode, long reach 29 2 Multimode, 50um (M5)

5 1 OC-3, single mode, inter. reach 29 1 Unallocated

5 0 OC-3, short reach 29 0 Single Mode (SM)

Ethernet Compliance Codes Fibre Channel speed

6 7 BASE-PX 310 7 1200 MBytes/sec

6 6 BASE-BX10 310 6 800 MBytes/sec

6 5 100BASE-FX 10 5 Unallocated

6 4 100BASE-LX/LX10 10 4 400 MBytes/sec

6 3 1000BASE-T 10 3 Unallocated

6 2 1000BASE-CX 10 2 200 MBytes/sec

6 1 1000BASE-LX 310 1 Unallocated

6 0 1000BASE-SX 10 0 100 MBytes/sec

1 Bit 7 is the high order bit and is transmitted first in each byte.

2 SONET compliance codes require reach specifier bits

3 and

4 in Table 3.5a to completely specify transceiver capabilities.

3 Ethernet LX, PX and BX compliance codes require the use of the Bit Rate, Nominal value (byte 12), link length values for single mode and

two types of multimode fiber (Bytes 14-17) and wavelength value for the laser (Bytes 60 & 61) as specified in Table 3.1 to completely specify transceiver capabilities. See Tables 3.1a and 3.5b for examples of setting values for these parameters.

4 Note: Open Fiber Control (OFC) is a legacy eye safety electrical interlock system implemented on Gigabit Link Module (GLM) type

transceiver devices and is not considered relevant to SFP transceivers.

5 Laser type “LL” (long length) is usually associated with 1550nm, narrow spectral width lasers capable of very long link lengths.

6 Laser type “LC” (low cost) is usually associated with 1310nm lasers capable of medium to long link lengths.

7 Classes SN and SA are mutually exclusive. Both are without OFC. SN has a limiting Rx output, SA has a linear Rx output, per FC-PI-4.

The SONET compliance code bits allow the host to determine with which specifications a SONET transceiver complies. For each bit rate defined in Table 3.5 (OC-3, OC-12, OC-48), SONET specifies short reach (SR), intermediate reach (IR), and long reach (LR) requirements. For each of the three bit rates, a single short reach (SR) specification is defined. Two variations of intermediate reach (IR-1, IR-2) and three variations of long reach (LR-1, LR-2, and LR-3) are also defined for each bit rate. Byte 4, bits 0-2, and byte 5, bits 0-7 allow the user to determine which of the three reaches has been implemented – short, intermediate, or long.

Two additional bits (byte 4, bits 3-4) are necessary to discriminate between different intermediate or long reach variations. These codes are defined in Table 3.5a.

Table 3.5a: SONET Compliance Specifiers

Speed Reach Specifier bit 1

(Byte 4 bit 4) Specifier bit 2

(Byte 4 bit 3)

Description

OC 3/OC 12/OC 48/OC 192 Short 0 0 SONET SR compliant 1 OC 3/OC 12/OC 48/OC 192 Short 1 0 SONET SR-1 compliant 2 OC 3/OC 12/OC 48 Intermediate 1 0 SONET IR-1 compliant OC 3/OC 12/OC 48 Intermediate 0 1 SONET IR-2 compliant OC 3/OC 12/OC 48 Long 1 0 SONET LR-1 compliant OC 3/OC 12/OC 48 Long 0 1 SONET LR-2 compliant OC 3/OC 12/OC 48 Long 1 1 SONET LR-3 compliant 1

2 OC 3/OC 12 SR-1 is single-mode based short reach

Examples of transceiver code use are given in Table 3.5b for illustration.

Table 3.5b: Transceiver Identification Examples (A0h Bytes 3-10)

Address A0h Transceiver Code Fields

Transceiver Type Transceiver Description Byte

3

Byte

4

Byte

5

Byte

6

Byte

7

Byte

8

Byte

9

Byte

10

100-M5-SN-I and 100-M6-SN-I

1062.5 MBd MM 850nm

500m/50um, 300m/62.5um

00h 00h 00h 00h 20h 40h 0Ch 01h

200-SM-LC-L and 100-SM-LC-L 2125 MBd 10km

SM 1310nm

00h 00h 00h 00h 12h 00h 01h 05h

400-M5-SN-I and 400-M6-SN-I 1

4250 MBd MM 850nm

150m/50um, 70m/62.5um

00h 00h 00h 00h 20h 40h 0Ch 15h

400-SM-LC-M14250 MBd SM 1310nm

4km “medium” length

00h 00h 00h 00h 0Ah 00h 01h 15h 400-SM-LC-L14250 MBd SM 1310nm

10km “long” length

00h 00h 00h 00h 12h 00h 01h 15h

200-SM-LL-V and 100-SM-LL-V 2125 MBd 50km

SM 1550nm

00h 00h 00h 00h 80h 10h 01h 05h

ESCON SM 200 MBd 20km

SM 1310nm

00h 40h 00h 00h 00h 00h 00h 00h 100BASE-LX10 125 MBd 10km

SM 1310nm

00h 00h 00h 10h 00h 00h 00h 00h 1000BASE-T 1250 MBd 100m

Cat 5 Cable

00h 00h 00h 08h 00h 00h 00h 00h 1000BASE-SX 1250 MBd 550m

MM 850nm

00h 00h 00h 01h 00h 00h 00h 00h 1000BASE-LX 1250 MBd 5km

SM 1310nm

00h 00h 00h 02h200h 00h 00h 00h

1000BASE-LX10 1250 MBd 10km

SM 1310nm

00h 00h 00h 02h200h 00h 00h 00h

1000BASE-BX10-D 1250 MBd 10km SM

1490nm downstream TX

00h 00h 00h 40h300h 00h 00h 00h

1000BASE-BX10-U 1250 MBd 10km SM

1310nm upstream TX

00h 00h 00h 40h300h 00h 00h 00h

OC3/STM1 SR-1 155 MBd 2km

SM 1310nm

00h 00h 01h 00h 00h 00h 00h 00h

OC12/STM4 LR-1 622 MBd 40km

SM 1310nm

00h 10h 40h 00h 00h 00h 00h 00h

OC48/STM16 LR-2 2488 MBd 80km

SM 1550nm

00h 0Ch 00h 00h 00h 00h 00h 00h

1. The assumption for this example is the transceiver is “4-2-1” compatible, meaning operational at 4.25 Gb/s,

2.125 Gb/s & 1.0625 Gb/s.

2. To distinguish between 1000BASE-LX and 1000BASE-LX10, A0h Bytes 12 to18 must be used … see Tables

3.1 and 3.1a for more

information.

3. To distinguish between 1000BASE-BX10-D and 1000BASE-BX10-U, A0h Bytes 12 to18 must be used … see Tables 3.1 and 3.1a for

more information.

Encoding [Address A0h, Byte 11]

The encoding value indicates the serial encoding mechanism that is the nominal design target of the particular transceiver. The v alue shall be contained in the two-wire interface data. The defined encoding values are shown in Table 3.6.

Table 3.6: Encoding codes

A0h data

address Value Description of encoding mechanism

11 00h Unspecified

01h 8B/10B

02h 4B/5B

03h NRZ

04h Manchester

05h SONET Scrambled

06h 64B/66B

07h -FFh Unallocated

BR, nominal [Address A0h, Byte 12]

The nominal bit (signaling) rate (BR, nominal) is specified in units of 100 MBd, rounded off to the nearest 100 MBd. The bit rate includes those bits necessary to encode and delimit the signal as well as those bits carrying data information. A value of 0 indicates that the bit rate is not specified and must be determined from the transceiver technology. The actual information transfer rate will depend on the encoding of the data, as defined by the encoding value.

Rate Identifier [Address A0h, Byte 13]

The rate identifier byte refers to several (optional) industry standard definitions of Rate_Select or Application_Select control behaviors, intended to manage transceiver optimization for multiple operating rates.

Table 3.6a: Rate Identifier

A0h data

address Value Description of rate selection functionality

13 00h Unspecified

01h Reserved for SFF-8079 (4/2/1G Rate_Select & AS0/AS1)

02h Reserved for SFF-8431 (8/4/2G Rx Rate_Select only)

03h Reserved for SFF-8431 (8/4/2G Independent Rx & Tx Rate_select)

04h Reserved for SFF-8431 (8/4/2G Tx Rate_Select only)

05h -FFh Unallocated

Length (single mode)-km [Address A0h, Byte 14]

Addition to EEPROM data from original GBIC definition. This value specifies the link length that is supported by the transceiver while operating in compliance with the applicable standards using single mode fiber. The value is in units of kilometers. A value of 255 means that the transceiver supports a link length greater than 254 km. A value of zero means that the transceiver does not support single mode fiber or that the length information must be determined from the transceiver technology.

Length (single mode)-(100’s)m [Address A0h, Byte 15]

This value specifies the link length that is supported by the transceiver while operating in compliance with the applicable standards using single mode fiber. The value is in units of 100 meters. A value of 255 means that the transceiver supports a link length greater than 25.4 km.

A value of zero means that the transceiver does not support single mode fiber or that the length information must be determined from the transceiver technology.

Length (50um, OM2) [Address A0h, Byte 16]

This value specifies link length that is supported by the transceiver while operating in compliance with applicable standards using 50 micron multimode OM2 [500MHz*km at 850nm, ] fiber. The value is in units of 10 meters. A value of 255 means that the transceiver supports a link length greater than 2.54 km. A value of zero means that the transceiver does not support 50 micron multimode fiber or that the length information must be determined from the transceiver technology.

Length (62.5um, OM1) [Address A0h, Byte 17]

This value specifies link length that is supported by the transceiver while operating in compliance with applicable standards using 62.5 micron multimode OM1 [200 MHz*km at 850nm, 500 MHz*km at 1310nm] fiber. The value is in units of 10 meters. A value of 255 means that the transceiver supports a link length greater than 2.54 km. A value of zero means that the transceiver does not support 62.5 micron multimode fiber or that the length information must determined from the transceiver technology. It is common for a multimode transceiver to support OM1, OM2 and OM3 fiber.

Length (Copper) [Address A0h, Byte 18]

This value specifies the minimum link length that is supported by the transceiver while operating in compliance with the applicable standards using copper cable. The value is in units of 1 meter. A value of 255 means that the transceiver supports a link length greater than 254 meters. A value of zero means that the transceiver does not support copper cables or that the length information must be determined from the transceiver technology. Further information about the cable design, equalization, and connectors is usually required to guarantee meeting a particular length requirement.

Length (50um, OM3) [Address A0h, Byte 19]

This value specifies link length that is supported by the transceiver while operating in compliance with applicable standards using 50 micron multimode OM3 [2000 MHz*km] fiber. The value is in units of 10 meters. A value of 255 means that the transceiver supports a link length greater than 2.54 km. A value of zero means that the transceiver does not support 50 micron multimode fiber or that the length information must be determined from the transceiver technology.

Vendor name [Address A0h, Bytes 20-35]

The vendor name is a 16 character field that contains ASCII characters, left-aligned and padded on the right with ASCII spaces (20h). The vendor name shall be the full name of the corporation, a commonly accepted abbreviation of the name of the corporation, the SCSI company code for the corporation, or the stock exchange code for the corporation. At least one of the vendor name or the vendor OUI fields shall contain valid data.

Vendor OUI [Address A0h, Bytes 37-39]

The vendor organizationally unique identifier field (vendor OUI) is a 3-byte field that contains the IEEE Company Identifier for the vendor. A value of all zero in the 3-byte field indicates that the Vendor OUI is unspecified.

Vendor PN [Address A0h, Bytes 40-55]

The vendor part number (vendor PN) is a 16-byte field that contains ASCII characters, left-aligned and padded on the right with ASCII spaces (20h), defining the vendor part number or product name. A value of all zero in the 16-byte field indicates that the vendor PN is unspecified.

Vendor Rev [Address A0h, Bytes 56-59]

The vendor revision number (vendor rev) is a 4-byte field that contains ASCII characters, left-aligned and padded on the right with ASCII spaces (20h), defining the vendor’s product revision number. A value of all zero in the 4-byte field indicates that the vendor revision is unspecified.

Laser Wavelength [Address A0h, Bytes 60-61]

Nominal transmitter output wavelength at room temperature. 16 bit value with byte 60 as high order byte and byte 61 as low order byte. The laser wavelength is equal to the the 16 bit integer value in nm. This field allows the user to read the laser wavelength directly, so it is not necessary to infer it from the transceiver “Code for Electronic Compatibility” (bytes 3 to 10). This also allows specification of wavelengths not covered in bytes 3 to 10, such as those used in coarse WDM systems.

CC_BASE [Address A0h, Byte 63]

The check code is a one byte code that can be used to verify that the first 64 bytes of two-wire interface information in the SFP is valid. The check code shall be the low order 8 bits of the sum of the contents of all the bytes from byte 0 to byte 62, inclusive.

Options [Address A0h, Bytes 64-65]

The bits in the option field shall specify the options implemented in the transceiver as described in Table 3.7.

Table 3.7: Option values

A0h data address bit Description of option

64 7-3 Unallocated

2 Cooled Transceiver Declaration (see SFF-8431).

Value of zero identifies a conventional uncooled (or unspecified) laser

implementation. Value of one identifies a cooled laser transmitter implementation.

1 Power Level Declaration (see SFF-8431).

Value of zero identifies Power Level 1 (or unspecified) requirements.

Value of one identifies Power Level 2 requirement.

See Table 3.11 and Table 3.18a for control, status, timing.

0 Linear Receiver Output Implemented (see SFF-8431).

Value of zero identifies a conventional limiting (or unspecified) receiver output.

Value of one identifies a linear receiver output.

65 7-6 Unallocated

5 RATE_SELECT functionality is implemented

NOTE: Lack of implemention does not indicate lack of simultaneous compliance

with multiple standard rates. Compliance with particular standards should be

determined from Transceiver Code Section (Table 3.5). Refer to Table 3.6a for

Rate_Select functionality type identifiers.

4 TX_DISABLE is implemented and disables the high speed serial output.

3 TX_FAULT signal implemented. (See SFP MSA)

2 Loss of Signal implemented, signal inverted from standard definition in SFP MSA

(often called “Signal Detect”).

NOTE: This is not standard SFP/GBIC behavior and should be avoided, since non-

interoperable behavior results.

1 Loss of Signal implemented, signal as defined in SFP MSA

(often called “Rx_LOS”).

0 Unallocated

BR, max [Address A0h, Byte 66]

The upper bit rate limit at which the transceiver will still meet its specifications (BR, max) is specified in units of 1% above the nominal bit rate. A value of zero indicates that this field is not specified.

BR, min [Address A0h, Byte 67]

The lower bit rate limit at which the transceiver will still meet its specifications (BR, min) is specified in units of 1% below the nominal bit rate. A value of zero indicates that this field is not specified.

Vendor SN [Address A0h, Bytes 68-83]

The vendor serial number (vendor SN) is a 16 character field that contains ASCII characters, left-aligned and padded on the right with ASCII spaces (20h), defining the vendor’s serial number for the transceiver. A value of all zero in the 16-byte field indicates that the vendor SN is unspecified.

Date Code [Address A0h, Bytes 84-91]

The date code is an 8-byte field that contains the vendor’s date code in ASCII characters. The date code is mandatory. The date code shall be in the format specified by Table 3.8.

Table 3.8: Date Code

A0h Data Address Description of field

84-85 ASCII code, two low order digits of year. (00 = 2000).

86-87 ASCII code, digits of month (01 = Jan through 12 =

Dec)

88-89 ASCII code, day of month (01 - 31)

90-91 ASCII code, vendor specific lot code, may be blank

Diagnostic Monitoring Type [Address A0h, Byte 92]

“Diagnostic Monitoring Type” is a 1 byte field with 8 single bit indicators describing how diagnostic monitoring is implemented in the particular transceiver.

Note that if bit 6, address 92 is set indicating that digital diagnostic monitoring has been implemented, received power monitoring, transmitted power monitoring, bias current monitoring, supply voltage monitoring and temperature monitoring must all be implemented. Additionally, alarm and warning thresholds must be written as specified in this document at locations 00 to 55 on 2 wire serial address 1010001X (A2h) (see Table 3.9).

Two calibration options are possible if bit 6 has been set indicating that digital diagnostic monitoring has been implemented. If bit 5, “Internally calibrated”, is set, the transceiver directly reports calibrated values in units of current, power etc. If bit 4, “Externally calibrated”, is set, the reported values are A/D counts which must be converted to real world units using calibration values read using 2 wire serial address 1010001X (A2h) from bytes 56 to 95. See “Diagnostics” section for details.

Bit 3 indicates whether the received power measurement represents average input optical power or OMA. If the bit is set, average power is monitored. If it is not, OMA is monitored.

Addressing Modes

Bit 2 indicates whether or not it is necessary for the host to perform an address change sequence before accessing information at 2-wire serial address A2h. If this bit is not set, the host may simply read from either address, A0h or A2h, by using that value in the address byte during t he 2-wire communication sequence. If the bit is set, the following sequence must be executed prior to accessing information at address A2h. Once A2h has been accessed, it will be necessary to execute the address change sequence again prior to reading from A0h. The address change sequence is defined as the following steps on the 2 wire serial interface:

1) Host controller performs a Start condition, followed by a slave address of 0b00000000.

Note that the R/W bit of this address indicates transfer from host to device (‘0’b).

2) Device responds with Ack

3) Host controller transfers 0b00000100 (04h) as the next 8 bits of data

This value indicates that the device is to change its address

4) Device responds with Ack

5) Host controller transfers one of the following values as the next 8 bits of data:

0bXXXXXX00 – specifies Two-wire interface ID memory page

0bXXXXXX10 – specifies Digital Diagnostic memory page

6) Device responds with Ack

7) Host controller performs a Stop condition

8) Device changes address that it responds to, based on the Step 5 byte value above:

0bXXXXXX00 – address becomes 0b1010000X (A0h)

0bXXXXXX10 – address becomes 0b1010001X (A2h)

Table 3.9: Diagnostic Monitoring Type

A0h Data Address Bit Description

92 7 Reserved for legacy diagnostic

implementations. Must be ‘0’ for compliance

with this document.

6 Digital diagnostic monitoring implemented

(described in this document). Must be ‘1’ for

compliance with this document.

5 Internally calibrated

4 Externally calibrated

3 Received power measurement type

0 = OMA, 1 = average power

2 Address change required see section above,

“addressing modes”

1-0 Unallocated

自由格式协议_chn

自由协议 控制器与显示器相连接的一个简单的通信协议,控制器是主控端, 显示器是从属端,在控制器中,只需编写简单的通信读/写程序,而不用编写通信中断服务程序。 首先,控制器发送一个请求给显示器,显示器接受请求之后,给控制器回复一个响应。显示器和控制器交换数据为128(最大)字,为MW0~MW127,字的每个比特可以作为线圈使用,为MWx.i(x=0..127,i=0..15)。 请求的格式: 站号:显示器站号(0~255,0表示广播方式,显示器不需要回复) 命令:‘R’表示从显示器读取,‘W’表示向显示器写数据 地址:MW(0~127)的索引号 长度:需要读/写MW的个数(1~128) 数据:MW的值,如果命令是‘R’则没数据 校验:从站号到校验前的字节,所有字节相加,再取0x100的余数 (注意:如果校验是0x5A,则忽略,不作检查) 状态:通信的状态 :0 –正常 :1 –地址错误 :2 –长度错误 :3 –范围错误(地址+ 长度> 128 ) :4 –命令错误 当命令是‘W’或不正常时,则没有地址、长度和数据 数据的格式

协议: 首先,控制器发送一个请求给显示器。显示器收到请求后,检查校验,如果校验正确,且站号等于显示器本身站号,显示器就响应这个请求。否则,显示器将不作响应。 控制器需要检查显示器的响应是否超时,超时时间为50毫秒。如果超时,控制器应该重新发送请求。 显示器检查接收数据是否超时,超时时间为25毫秒。如果超时,显示器初始化通信,等待控制器的新的请求。 读(从显示器读数据) 数据:需要读的MW的值 写(向显示器写数据) 例子 a) 控制器从DP210读MW0,MW1 控制器发送:01H 52H 00H 02H 55H DP210回应:01H 00H 00H 02H 00H 00H 00H 0CH 0FH (MW0=0 MW1=12) b) 控制器写256 到MW0 控制器发送:01H 57H 00H 01H 01H 00H 5AH DP210回应:01H 00H 01H

常用的硬件接口及通信协议详解

一:串口 串口是串行接口的简称,分为同步传输(USRT)和异步传输(UART)。在同步通信中,发送端和接收端使用同一个时钟。在异步通信中,接受时钟和发送时钟是不同步的,即发送端和接收端都有自己独立的时钟和相同的速度约定。 1:RS232接口定义 2:异步串口的通信协议 作为UART的一种,工作原理是将传输数据的每个字符一位接一位地传输。图一给出了其工作模式: 图一 其中各位的意义如下: 起始位:先发出一个逻辑”0”的信号,表示传输字符的开始。

数据位:紧接着起始位之后。数据位的个数可以是4、5、6、7、8等,构成一个字符。通常采用ASCII码。从最低位开始传送,靠时钟定位。 奇偶校验位:资料位加上这一位后,使得“1”的位数应为偶数(偶校验)或奇数(奇校验),以此来校验资料传送的正确性。 停止位:它是一个字符数据的结束标志。可以是1位、1.5位、2位的高电平。 空闲位:处于逻辑“1”状态,表示当前线路上没有资料传送。 波特率:是衡量资料传送速率的指针。表示每秒钟传送的二进制位数。例如资料传送速率为120字符/秒,而每一个字符为10位,则其传送的波特率为10×120=1200字符/秒=1200波特。 3:在嵌入式处理器中,通常都集成了串口,只需对相关寄存器进行设置,就可以使用啦。尽管不同的体系结构的处理器中,相关的寄存器可能不大一样,但是基于FIFO的uart框图还是差不多。

发送过程:把数据发送到fifo中,fifo把数据发送到移位寄存器,然后在时钟脉冲的作用下,往串口线上发送一位bit数据。 接受过程:接受移位寄存器接收到数据后,将数据放到fifo中,接受fifo事先设置好触发门限,当fifo中数据超过这个门限时,就触发一个中断,然后调用驱动中的中断服务函数,把数据写到flip_buf 中。 二:SPI SPI,是英语Serial Peripheral Interface的缩写,顾名思义就是串行外围设备接口。SPI,是一种高速的,全双工,同步的通信总线,并且在芯片的管脚上只占用四根线,节约了芯片的管脚,同时为PCB 的布局上节省空间,提供方便,正是出于这种简单易用的特性,现在越来越多的芯片集成了这种通信协议。

多子女家庭赡养老人协议书

赡养老人协议书 为充分保障自家老年人的合法权益,让老人能老有所居、老有所养。在大家族里建立长效机制,形成尊老、爱老的良好氛围。依照《老年人权益保障法》、《婚姻法》等相关法律条文相关规定、公序良俗,结合家族现有的实际情况。子女们充分沟通协商,就赡养老人事宜达成如下协议: 一、名词解释 老人:即赡养对象(名字:身份证号:);子女:包括(子女1、子女2、子女3、子女4)及其所在的家庭。赡养人:直接承担照顾老人的子女一方家庭。其他赡养人:四个子女中未直接承担照顾老人的子女一方家庭。 二、总体原则 1、子女与老年人共同生活或者就近居住; 2、权利与义务并 存:赡养老人是每个子女应尽的义务,关心过问老人的生活状况也是其他赡养人的权利;3、公平、合理、可行,形式多样不拘一格;4、尊重老人意愿;5、要做到“经济上供养、生活上照料和精神上慰藉的义务,照顾老年人的特殊需要”;6、鼓励和引导子女配偶及孙辈要尊老、敬老的言行;7、设定底线,上不封顶原则; 8、相互监督,共促良好氛围。 三、实施细则 (一)正常生活 1、老人在四个子女家轮流居住,赡养老人的子女家庭承担照

料的义务,另外三个子女以经济形式(以下简称:生活费)承担赡养责任。生活费缴纳周期为月度,采取预付制,打款到赡养老人的子女居住家庭账户。时限:在每月25日前完成打款。付款方自行留存凭证。 2、轮流居住的时间周期:个月,子女1、子女2、子女3承担支付的生活费标准是不低于元/月;个别子女承担支付的生活费标准是不低于元/月。(将根据物价上涨幅度,在次年1月上旬确定上调幅度)。初步商定的居住照看的顺序为:子女1、子女2、子女 3、子女4。 3、赡养老人的子女,应做好老人居住环境的布置安排。并定期做好清洁卫生方面的打扫。引导并规劝老人有良好的生活习惯。并确保老人的手机通畅,能接听电话。 4、同城的其他赡养人应每周不少于一次对老人进行探视和当面关心问候。异地的子女应每年不少于一次对老人进行探视和当面问候,电话问候每月不少于2次。 (二)生病期间 1、赡养人应当使患病的老年人及时得到治疗。 2、治疗老人发生的门诊、住院等医药费用采取四个子女均摊。 3、门诊所发生的医药费、检查费,由赡养人先行垫付。并将所发生费用的凭据做好留存,计算相关费用金额。有义务在当月通知到其他赡养人,其他赡养人有权利对相关票据进行复核,要求在2日内完成复核确认事宜,并有义务在当月/次月25日前支

单片机串口通信协议程序

#include #include #define R55 101 #define RAA 202 #define RLEN 203 #define RDATA 104 #define RCH 105 //#define unsigned char gRecState=R55; unsigned char gRecLen; unsigned char gRecCount; unsigned char RecBuf[30]; unsigned char gValue; void isr_UART(void) interrupt 4 using 1 { unsigned char ch; unsigned char i; unsigned char temp; if (RI==1) { ch=SBUF; switch(gRecState) { case R55: // wait 0x55 if (ch==0x55) gRecState=RAA; break;

case RAA: if (ch==0xaa) gRecState=RLEN; else if (ch==0x55) gRecState=RAA; else gRecState=R55; break; case RLEN: gRecLen=ch; gRecCount=0; gRecState=RDATA; break; case RDATA: RecBuf[gRecCount]=ch; gRecCount++; if (gRecCount>=gRecLen) { gRecState=RCH; } break; case RCH: temp=0; for(i=0;i

编码器RS485自由通讯协议

编码器RS485自由通讯协议 正常工作状态编码器按照编程设定参数:波特率为设定值,一般为9600、19200、38400等,数据位8位,停止位1位,无奇偶校验,无控制流。 编码器的主被动模式需对编码器进行设定。 编码器为主动模式时,即编码器主动向上位机发送数据。数据长度为13位16进制ASCII码,格式为:=±DATA↙,即: 1 2 3 4 5 6 7 8 9 10 11 12 13 = ± DATA ↙ 其中,“=”为前导字母,±为符号位。DATA为数据,ASCII格式,10位,由0~9构成,范围为-9,999,999,999~+9,999,999,999。最后是回车符(0D)。 编码器地址为被动模式时,即问答模式。上位机向编码器发送询问指令,指令为4位16进制ASCII 码,格式为:#AB↙(带地址返回主测量值询问指令为:&AB↙)。 AB为编码器地址,范围为0到99。 编码器对上位机回答的数据格式与主动模式发送的数据格式是一样的。 (带地址返回的数据格式在“=”与符号位之间有“AB>”,“>”为分隔符) 例:被动模式,地址设为1,波特率为19200,与上位机通讯时的数据为: 发送:23 30 31 0D 发送:26 30 31 0D 接收:3D 2B 30 30 30 30 30 30 30 30 31 32 0D 接收:3D 30 31 3E 2B 30 30 30 30 30 30 30 30 31 32 0D 即,发送#01↙接收=+0000000012↙。 即,发送&01↙接收=01>+0000000012↙。 编码器RS485信号及接线端子引脚分配 DB9针脚 定义 3 RS485(A+) 8 RS485(B-) 编程允许线(Poen)的使用 编程模式时,编码器棕色线与编程允许线(Poen)并在一起接正电源,兰色线接电源地线。此时,编码器的通讯速率固定为19200bps。 非编程模式,即正常工作时,建议将兰色线与编程允许线(Poen)并在一起接电源地线。 RS485通讯的注意事项: 1. 通讯速率与传输距离是一对矛盾。速率越高,传输距离越近、但也越稳定,反之亦然。 2. 在外部电磁干扰强时,外部置位线在对编码器置位需接高电平,但置位结束后建议强制接低电平,以防止编码器由于外部干扰而突然回零。 3. 在外部电磁干扰强时,RS485接线最好使用双屏蔽电缆。 4. 多个编码器接上位机时,由于编码器返回数据没有奇偶校验,故建议在上位机编程时在时间上对各个编码器返回的数据进行区分。 5. 当系统中有电动机时,编码器电源需与其他电源隔离。 6. 由于RS485电路是差分形式的,A+,B-都是带电压的,常时间接地或接高电平都会造成RS485电路损坏。 上海楚嘉自动化科技有限公司 技术服务部

IC卡通信协议详解(7816-3)

目录 第一章IC卡通信过程整体归纳 (1) 第二章IC卡的电气特性 (3) 1.IC卡的触点分配 (3) 2.IC卡的电气特性 (3) 2.1 VCC (3) 2.2 I/O (3) 2.3 CLK (3) 2.4 RST (3) 2.2 VPP (3) 第三章IC卡的操作过程 (4) 1、IC卡操作的一般过程 (4) 2、卡激活 (4) 3、冷复位 (4) 4、热复位 (5) 5、时钟停止 (6) 6、去激活 (6) 第四章复位应答 (8) 1、异步字符 (8) 1.1 字符结构 (8) 1.2 错误信号和字符副本 (8) 2、复位应答 (9) 2.1 复位应答的序列配置 (9) 2.2 复位应答的结构和内容 (11) 第五章协议和参数选择 (14) 1.PPS协议 (14) 2.PPS请求的结构和内容 (14) 3.成功的PPS交换 (14) 第六章异步半双工字符传输协议 (16) 1、命令的结构和处理 (16) 2、过程字节 (16) 3、NULL字节 (16) 4、确认字节 (16) 5、状态字节 (17) 第七章异步半双工块传输 (18) 1.数据块块帧结构 (18) 2.起始域 (18) 3.信息域 (18) 4.终止域 (19) 5.信息域尺寸 (19) 6.等待时间 (19) 7.数据链路层字符成分 (20) 8.数据链路层块成分 (20) 9.链接 (20)

第一章IC卡通信过程整体归纳 根据协议,IC卡的操作信息交互流程大概为(见图1): (1)接口设备能够控制IC卡各IO引脚使其激活。 (2)接口设备给卡发送复位信号使卡复位启动。 (3)卡要向接口设备发送复位应答信号,将通信中必要的相关信息告知接口设备。(4)接口设备对卡进行一次热复位,卡进行复位应答。 (5)接口设备发起一个PPS交互指令,选择要与卡通信的协议和相关参数。 (6)根据选择的协议(T=0或T=1)进行数据的通信。

家庭赡养老人协议书

家庭赡养老人协议书 ————母亲:父亲:————_____ 被赡养人姓名赡养人姓名_____ 长子:——————次子:———— 为维护被赡养人合法权益,切实保障被赡养人的晚年生活,根据有关法律规定,赡养人和被赡养人签订如下养协议。 第一条赡养的基本原则 1、赡养人不分男女都有赡养被赡养人的义务,各赡养人应积极履行对被赡养人经济供养、生活照料和精神慰藉的义务。赡养人应尊重被赡养人的生活习惯、宗教信仰、隐私,禁止侮辱、诽谤、殴打、虐待和遗弃被赡养人。赡养人的配偶应当协助赡养人履行赡养义务,赡养人家庭成员应尊重、照顾被赡养人。被赡养人所需的各项赡养费用和物资由赡养人根据各自的经济状况协商负担。 2、被赡养人在身体健康、经济条件允许的情况下,按照自愿、量力的原则,给赡养人及家庭以帮助,酌情减轻赡养人的负担。被赡养人在力所能及的情况下可以给予赡养人一定的帮助,但赡养人不得要求被赡养人承担不愿意或力不能及的劳动。 3、被赡养人的房产权、房屋租赁权和居住权受法律保护,未经被赡养人同意或者授权,赡养人及其配偶、子女不得强占、出卖、出租、转让或者拆除。经被赡养人同意由赡养人出资翻建的,应当明确被赡养人享有的产权和居住权。 4、赡养人不得强行将有配偶的被赡养人分开赡养。赡养人应当尊重被赡养人的婚姻自由,被赡养人有权携带自有财产再婚;赡养人及其家庭成员不得以被赡养人的婚姻关系发生变化为由,强占、分割、隐匿、损毁属于被赡养人的房屋及其他财产,或者限制被赡养人对其所有财产的使用和处分。被赡养人再婚的,赡养人仍有赡养的义务,不得以此为借口不尽赡养义务。 5、被赡养人有权依法继承配偶、父母、子女的遗产和接受遗赠。被赡养人的财产依法由被赡养人自主支配,赡养人及其配偶、子女不得向被赡养人强行索取。赡养人中经济条件较好的,可以对被赡养人适当多增加赡养费,经济条件较差的,在征得被赡养人和其他赡养人同意的情况下可以适当减少赡养费。 第二条:赡养人的主要义务. 1、赡养人应保证被赡养人每年添置两套外衣、一套内衣、鞋帽等个人物品,所需费用由赡养人共同承担。赡养人保证被赡养人的衣服、被褥干净、整洁,被赡养人单独居住的由当期赡养人负责,被赡养人同赡养人共同居住的由同住赡养人负责。 当期赡养人是指赡养人按照本协议轮流赡养、护理、照顾被赡养人,当轮到具体的赡养人时,该赡养人即为当期赡养人。 2、赡养人应妥善安排好被赡养人的膳食结构,保证被赡养人吃饱、吃好,保证每周至少有一顿肉、鱼、蛋以及新鲜蔬菜和水果等。食品的购买、烹饪和餐具的清洗,被赡养人单独居住的,由当期赡养人负责;被赡养人同赡养人共同居住的,由同住赡养人负责。被赡养人对膳食有特殊要求的,应尽量满足被赡养人的要求。

51串口通信协议(新型篇)

51串口通信协议(新型篇) C51编程:这是网友牛毅编的一个C51串口通讯程序! //PC读MCU指令结构:(中断方式,ASCII码表示) //帧:帧头标志|帧类型|器件地址|启始地址|长度n|效验和|帧尾标志 //值: 'n' 'y'| 'r' | 0x01 | x | x | x |0x13 0x10 //字节数: 2 | 1 | 1 | 1 | 1 | 1 | 2 //求和: ///////////////////////////////////////////////////////////////////// //公司名称:*** //模块名:protocol.c //创建者:牛毅 //修改者: //功能描述:中断方式:本程序为mcu的串口通讯提供(贞结构)函数接口,包括具体协议部分 //其他说明:只提供对A T89c51具体硬件的可靠访问接口 //版本:1.0 //信息:QQ 75011221 ///////////////////////////////////////////////////////////////////// #include #include //预定义 //帧 #define F_ST1 0x6e //帧头标志n #define F_ST2 0x79 //帧头标志y #define F_R 0x72 //帧类型读r #define F_W 0x77 //帧类型写w #define F_D 0x64 //帧类型数据帧d #define F_B 0x62 //帧类型写回应帧b #define F_C 0x63 //帧类型重发命令帧c #define F_Q 0x71 //帧类型放弃帧q #define F_ADDR 0x31 //器件地址0-9 #define F_END 0x7a //帧尾标志z #define F_SPACE 0x30 //空标志0 #define F_ERR1 0x31 //错误标志1,flagerr 1 #define F_ERR2 0x32 //错误标志2 2 //常数 #define S_MAXBUF 16 //接收/发送数据的最大缓存量 #define FIELD_MAXBUF 48 //最小场缓存,可以大于48字节,因为协议是以20字节为

永宏FBs-PLC的自由通讯协议及应用

引言 电子技术的日益发展,通讯接口给工业控制的自动化集中控制带来巨大的变化,系统的分布控制,网络的远程监控等都是通过通讯来实现监控。各个智能设备之间要进行正常通讯,首先要保证以下 3 个条件一致:通讯硬件界面相同;通讯参数设置一致;以及通讯协议一致。在串口的通讯中,界面都已经是标准化,参数设定亦可透过设定来保持一致。但在智能自动化设备中,由于品牌和产品都存在差异,对于同一种产品,不同的品牌就可能存在不同的通讯协议!所以,智能设备的通讯,设备的选择是关键!但针对同种协议的产品,就有可能缩小设备选型范围,势必会对系统的组成存在影响。如造成成本的提升,系统得不到优化等问题。 1. 系统硬件要求 1.1 永宏FBs-PLC 通讯功能 永宏FBs-PLC提供相当强大的通讯功能,SoC单晶片中集合 5 个高速通讯端口。主机自带一个通讯端口。多样的扩展方式,可以选择通讯模块或者通讯板实现通讯端口的扩展,单一主机可以最多扩展至 5 个通讯端口;数据传输可以选择ASCII 码或者速度快一倍的二进制码来传输;每个通讯端口通讯速率高达921.6Kbps ;支持RS-232,RS-485,USB 和Ethernet 等界面;通讯协议提供永宏标准通讯协议,工业界通用的ModBus 标准协议,以及自由口协议。这里我们就永宏PLC 的自由通讯协议做进一步探讨。 1.2 永宏PLC 自由通讯协议简介 所谓自由通讯协议,永宏PLC 作为主站,根据通讯的从站设备通讯格式来编写通讯传输数据格式,以保证通讯格式的一致性。在符合从站设备的数据格式时设备才能识别主站发送出来的命令要求,再根据命令来进行处理数据、做响应回复等工作。这样将大大提高PLC 控制对象的通讯接口兼容。 图 1.1 RS-485 单主多从通讯示意图 如图 1.1 所示,一个永宏PLC 可以跟多个智能从站进行通讯;智能从站可以同为一种设备不同品牌,或者不同设备不同品牌,例如其他品牌的PLC、变频器、智能仪表等,只要 符合RS-485 通讯要求即可组网。 2. 软件系统要求与设计

家庭赡养合约协议书(非常详细版)

家庭赡养协议书 被赡养人姓名 父亲: 母亲: 赡养人姓名 长子: 次子: 长女: 次女: 为维护被赡养人合法权益,弘扬中华民族尊老、敬老、爱老传统美德,发挥家庭养老的基础作用,促进家庭和睦、和谐,切实保障被赡养人的晚年生活,根据《老年人权益保障法》、《婚姻法》、《继承法》等有关法律规定,赡养人和被赡养人签订家庭赡养协议。 被赡养人于年结婚,婚后生有儿女(赡养人),现已长大成人。因被赡养人年事已高,生活行动不便,需要各位赡养人的赡养,各赡养人具备赡养的能力。经过被赡养人、各赡养人的充分协商,各方在平等、自愿的基础上达成如下协议: 第一条赡养的基本原则 1、赡养人不分男女都有赡养被赡养人的义务,各赡养人应积极履行对被赡养人经济供养、生活照料和精神慰藉的义务,照顾被赡养人的特殊需要,使被赡养人能够在身体、心理和智力方面尽可能得到妥善的照顾,幸福的生活。 2、被赡养人在政治、经济、文化、社会和家庭生活等方面的合法权益受法律保护,各赡养人及其家庭成员不得侵犯。赡养人应尊重被赡养人的生活习惯、宗教信仰、隐私,禁止侮辱、诽谤、殴打、虐待和遗弃被赡养人。 3、被赡养人在身体健康、经济条件允许的情况下,按照自愿、量力的原则,给赡养人及家庭以帮助,酌情减轻赡养人的负担。被赡养人在力所能及的情况下可以给予赡养人一定的帮助,如照顾孙子女、简单家务等,但赡养人不得要求被赡养人承担不愿意或力不能及的劳动。 4、赡养人应为被赡养人提供适合其需要和健康状况的居住环境,提供必要的健康保健,使被赡养人能够自由选择生活方式,并在其熟悉的环境中度过他们所希望的独立生活。 5、赡养人的配偶应当协助赡养人履行赡养义务,赡养人家庭成员应尊重、照顾被赡养人。被赡养人所需的各项赡养费用和物资由赡养人根据各自的经济状况协商负担。 6、被赡养人的房产权、房屋租赁权和居住权受法律保护,未经被赡养人同意或者授权,赡养人及其配偶、子女不得强占、出卖、出租、转让或者拆除,不得擅自改变租赁关系。经被赡养人同意由赡养人出资翻建的,应当明确被赡养人享有的产权和居住权。 7、赡养人不得强行将有配偶的被赡养人分开赡养。赡养人应当尊重被赡养人的婚姻自由,被赡养人有权携带自有财产再婚;赡养人及其家庭成员不得以被赡

各种通信协议

分层及通信协议 协议软件是计算机通信网中各部分之间所必须遵守的规则的集合,它定义了通信各部分交换信息时的顺序、格式和词汇。协议软件是计算机通信网软件中最重要的部分。网络的体系结构往往都是和协议对应的,而且,网络管理软件、交换与路由软件以及应用软件等都要通过协议软件才能发生作用。 一、通信协议 1、什么是通信协议 通信协议(简称协议Protoco l),是指相互通信的双方(或多方)对如何进行信息交换所一致同意的一整套规则。一个网络有一系列的协议,每一个协议都规定了一个特定任务的完成。协议的作用是完成计算机之间有序的信息交换。 通信网络是由处在不同位置上的各节点用通信链路连接而组成的一个群体。通信网必须在节点之间以及不同节点上的用户之间提供有效的通信,即提供有效的接入通路。在计算机通信网中,将这种接入通路称为连接(connection)。建立一次连接必需要遵守的一些规则,这些规则也就是通信网设计时所要考虑的主要问题。 (l)为了能在两个硬件设备之间建立起连接,应保证在源、宿点之间存在物理的传输媒介,在该通路的各条链路上要执行某种协议。 如果传输线路使用电话线,则要通过调制解调器将信号从数字转换成模拟的,并在接收端进行反变换。 如果用的是数字传输线路,则在数据处理设备和通信设备之间,必须有一个数字适配器,以便将数字信号的格式转换成两种设备各自所期望的形式。 为了在两个端设备之间互换数据,需要协调和同步,调制解调器和数字适配器必须执行它们自己的协议。 无论是模拟的还是数字的通信设备,调制解调器和数字适配器的状态必须由接到节点上的设备来控制,这里必定有一个物理的或电气的接口来执行这种功能,执行某种适当的协议来达到这一控制目的。 (2)在计算机通信网中,许多信息源都是突发性的(bursty),问题是要利用信息的这种突发性质来降低消耗在线路上的费用,由此开发了许多共享通信资源的技术。所谓共享,是指允许多个用户使用同一通信资源,这就产生了多用户的接入问题。多路接入

战略合作协议封面_共10篇完整篇.doc

★战略合作协议封面_共10篇范文一:战略合作协议(全面)战略合作伙伴协议 甲方:(以下简称“甲方”)乙方:(以下简称“乙方”) 甲乙双方基于良好的信任,处于双方长远发展战略上的考虑,甲乙双方决定强强联合,共同携手,就等领域开展合作。双方均以优秀的企业理念与专业性,本着“互惠、互利、稳定、恒久、高效、优质”的合作精神,结成深度的战略合作伙伴关系。现经双方友好协商,达成以下共识: 1.0合作纲领 1.1合作宗旨 甲方与乙方的合作宗旨是通过双方的紧密合作,打造双赢、可持续发展的战略合作伙伴关系。 1.2合作目标 双方相信,通过本次战略合作,能够帮助双方进一步提升整体运营效率、降低运营成本、改善提升公司收益等,实现双方未来的市场扩张策略并获得市场份额,为双方创造更大的商业价值。 1.3合作内容 1.3.1乙方为甲方提供生产及技术服务; 乙方的所有设备及人员向甲方提供,由甲方调配;结算方式如下:(暂略) 1.3.3甲方为乙方企业发展、品牌建设等方面提供指导、支

援等智力支持。 包括:⑴.现有公司的推广宣传; ⑵.业务的通路搭建; ⑶.现有技术的升级及新业务开发设计策划;⑷.梳理提炼产品文化内涵,提升产品附加值; 1.4合作期限 双方合作期限为______年,从___年__月_日到___年__月_日; 2.0合作双方的权利与义务 战略合作双方需要双方共同努力才能实现预期效果,故需要对双方的权利和义务作如下规定: 2.1甲乙双方的权利 ⑴.甲乙双方有要求对方如约提供服务的权利; ⑵.甲方有向乙方提出质询的权利; ⑶.甲方享有本合同约定的经济权益; ⑷.甲方有对乙方未履行相关约定及保密责任而带来损失予以追索经济赔偿的权利; 2.2甲乙双方的义务 ⑴.甲乙双方有按本协议如期履行的义务; ⑵.甲方有为乙方提供相关智力支持的义务; ⑶.甲方有按计划推进和完成由甲方承担的市场推广、业务搭建等任务的义务; ⑷.甲方应充分运用其行业影响力和战略合作伙伴关系,为乙方开拓业务提供条件; ⑸.乙方有回复甲方质询的义务; ⑹.乙方有对产品质量严格管理的义务,不得有损甲方形象

S7-200 CPU 通信口的自由口模式实现 Modbus 通信协议

在组态王里点击“com1”(根据你在前面已经定的com口而定),然后在右边的界面上显示你所建立的文件,然后对你编译的主画面点反键,然后在下拉菜单中点击“测试---”(你的文件名),再随便在选项里输入一个你编写的程序里的标志位,看能不能显示你的PLC内的当前值,如果可以显示,就应该是通信上了。 通过 S7-200 CPU 通信口的自由口模式实现 Modbus 通信协议,可以通过无线数据电台等慢速通信设备传输。这为组成 S7-200 之间的简单无线通信网络提供了便利。 详细情况请参考《S7-200系统手册》(2002 年 10 月或以后版本)的相应章节。Modbus 是公开通信协议,其最简单的串行通信部分仅规定了在串行线路的基本数据传输格式,在 OSI 七层协议模型中只到 1,2 层。 Modbus 具有两种串行传输模式,ASCII 和 RTU。它们定义了数据如何打包、解码的不同方式。支持 Modbus 协议的设备一般都支持 RTU 格式。 通信双方必须同时支持上述模式中的一种。 Modbus 是一种单主站的主/从通信模式。Modbus 网络上只能有一个主站存在,主站在 Modbus 网络上没有地址,从站的地址范围为 0 - 247,其中 0 为广播地址,从站的实际地址范围为 1 - 247。 Modbus 通信标准协议可以通过各种传输方式传播,如 RS232C、RS485、光纤、无线电等。在 S7-200 CPU 通信口上实现的是 RS485 半双工通信,使用的 是 S7-200 的自由口功能。 Modbus RTU 主站指令库(测试版) 西门子针对 S7-200 最新推出支持 Modbus RTU 主站的协议库(测试版),用户可以将这个库添加到 Micro/WIN 软件中,并通过调用库指令,方便地实 现 Modbus RTU 主站的功能。 注意: 1. Modbus RTU 主站指令库的功能是通过在用户程序中调用预先编好的程序功 能块实现的,该库只对 Port 0 口有效。该指令库将设置 Port 0 工作在自由口通信模式下。 2. Modbus RTU 主站指令库使用了一些用户中断功能,编其他程序时不能在用户程序中禁止中断。 使用 Modbus RTU 主站指令库,可以读写 Modbus RTU 从站的数字量、模拟 量 I/O 以及保持寄存器。 要使用 Modbus RTU 主站指令库,须遵循下列步骤: 取得 Modbus RTU 主站指令库文件,并添加到编程软件 STEP 7-Micro/WIN 中;按照要求编写用户程序调用 Modubs RTU 主站指令库。

思科X.25协议详解

C H A P T E R 17Chapter Goals ? Discuss the history and development of the X.25 protocol.? Describe the basic functions and components of X.25.?Describe the frame formats of X.25. X.25 Introduction X.25 is an International Telecommunication Union–Telecommunication Standardization Sector (ITU-T) protocol standard for WAN communications that defines how connections between user devices and network devices are established and maintained. X.25 is designed to operate effectively regardless of the type of systems connected to the network. It is typically used in the packet-switched networks (PSNs) of common carriers, such as the telephone companies. Subscribers are charged based on their use of the network. The development of the X.25 standard was initiated by the common carriers in the 1970s. At that time, there was a need for WAN protocols capable of providing connectivity across public data networks (PDNs). X.25 is now administered as an international standard by the ITU-T. X.25 Devices and Protocol Operation X.25 network devices fall into three general categories: data terminal equipment (DTE), data circuit-terminating equipment (DCE), and packet-switching exchange (PSE). Data terminal equipment devices are end systems that communicate across the X.25 network. They are usually terminals, personal computers, or network hosts, and are located on the premises of individual subscribers. DCE devices are communications devices, such as modems and packet switches, that provide the interface between DTE devices and a PSE, and are generally located in the carrier’s facilities. PSEs are switches that compose the bulk of the carrier’s network. They transfer data from one DTE device to another through the X.25 PSN. Figure 17-1 illustrates the relationships among the three types of X.25 network devices.

城市家庭赡养协议书

城市家庭赡养协议书 被赡养人姓名 父亲:母亲: 赡养人姓名 长子:次子: 长女:次女: 为维护被赡养人合法权益,切实保障被赡养人的晚年生活,根据有关法律规定,赡养人和被赡养人签订如下协议。 第一条赡养的基本原则 1、各赡养人应积极履行对被赡养人经济供养、生活照料和精神慰藉的义务。 2、赡养人应尊重被赡养人的生活习惯、宗教信仰、隐私。 3、被赡养人在身体健康、经济条件允许的情况下,按照自愿、量力的原则,给赡养人及家庭以帮助,酌情减轻赡养人的负担。被赡养人在力所能及的情况下可以给予赡养人一定的帮助,如照顾孙子女、简单家务等,但赡养人不得要求被赡养人承担不愿意或力不能及的劳动。 4、赡养人应为被赡养人提供适合其需要和健康状况的居住环境,提供必要的健康保健,使被赡养人能够自由选择生活方式,并在其熟悉的环境中度过他们所希望的独立生活。 5、赡养人的配偶应当协助赡养人履行赡养义务,赡养人家庭成员应尊重、照顾被赡养人。被赡养人所需的各项赡养费用和物资由赡养人根据各自的经济状况协商负担。

6、被赡养人的房产权、房屋租赁权和居住权受法律保护,未经被赡养人同意或者授权,赡养人及其配偶、子女不得强占、出卖、出租、转让或者拆除,不得擅自改变租赁关系。 7、赡养人不得强行将有配偶的被赡养人分开赡养。赡养人应当尊重被赡养人的婚姻自由,被赡养人有权携带自有财产再婚;赡养人及其家庭成员不得以被赡养人的婚姻关系发生变化为由,强占、分割、隐匿、损毁属于被赡养人的房屋及其他财产,或者限制被赡养人对其所有财产的使用和处分。 8、被赡养人有权依法继承配偶、父母、子女的遗产和接受遗赠。被赡养人的财产依法由被赡养人自主支配,赡养人及其配偶、子女不得向被赡养人强行索取。 第二条:赡养人对被赡养人经济上供养的内容及义务 1、赡养人应保证被赡养人每年春、夏、秋、冬合理添置新外衣、内衣、鞋帽等个人物品。赡养人保证被赡养人的衣服、被褥干净、整洁,被赡养人单独居住的由当期赡养人负责,被赡养人同赡养人共同居住的由同住赡养人负责。 当期赡养人是指赡养人按照本协议轮流赡养、护理、照顾被赡养人,当轮到具体的赡养人时,该赡养人即为当期赡养人。 2、赡养人应妥善安排好被赡养人的膳食结构,食品的购买、烹饪和餐具的清洗,被赡养人单独居住的,由当期赡养人负责;被赡养人同赡养人共同居住的,由同住赡养人负责。 3、赡养人应为被赡养人提供安全、舒适、方便的居住场所以及其它生活用品。被赡养人单独居住的,如房屋损毁,赡养人应负责及时维修,确保被赡养人的住所不破、不漏,卫生整洁,费用由赡养人共同承担。如被赡养人租赁房屋居住的,房租由赡养人共同承担。因房屋拆迁被赡养人没有居住房屋的,被赡养人可以选择到任何赡养人家居住。被赡养人的拆迁补偿款任何赡养人不得截留、侵占。 4、赡养人应保证被赡养人为满足日常需要自由出行的权利,所需交通费用由赡养人共同分担。如被赡养人不能自行出行,赡养人应安排时间负责被赡养人出行,所需交通费由当期赡养人承担。被赡养人需要添置轮椅的,赡养人应及时购买,所需费用由赡养人共同承担,当期赡养人应经常陪同被赡养人到户外活动。

菱f系列plc编程口通信协议

三菱FX系列 PLC 编程口通信协议总览 三菱PLC-FX2N 三菱FX系列PLC编程口通信协议总览 该协议实际上适用于PLC编程端口以及 FX-232AW 模块的通信。 通讯格式: 命令命令码目标设备 DEVICE READ CMD "0" X,Y,M,S,T,C,D DEVICE WRITE CMD "1" X,Y,M,S,T,C,D FORCE ON CMD " 7" X,Y,M,S,T,C FORCE OFF CMD "8" X,Y,M,S,T,C 传输格式: RS232C 波特率: 9600bps 奇偶: even 校验: 累加方式(和校验) 字符: ASCII 16进制代码: ENQ 05H 请求 ACK 06H PLC正确响应 NAK 15H PLC错误响应 STX 02H 报文开始 ETX 03H 报文结束 帧格式: STX CMD DATA ...... DATA ETX SUM(upper) SUM(lower) 例子: STX ,CMD ,ADDRESS, BYTES, ETX, SUM 02H, 30H, 31H,30H,46H,36H, 30H,34H, 03H, 37H,34H

SUM=CMD+......+ETX; 30h+31h+30h+46h+36h+30h+34h+03h=74h; 累加和超过两位取低两位 1、DEVICE READ(读出软设备状态值) 计算机向PLC发送: 始命令首地址位数终和校验 STX CMD GROUP ADDRESS BYTES ETX SUM 例子:从D123开始读取4个字节数据 02h 30h 31h,30h,46h,36h 30h,34h 03h 37h,34h 地址算法:address=address*2+1000h 再转换成ASCII 31h,30h,46h,36h PLC返回 STX 1ST DATA 2ND DATA ..... LAST DATA ETX SUM 注:最多可以读取64个字节的数据 例子:从指定的存储器单元读到3584这个数据 02h 33h 35h 38h 34h 03h 44h,36h 2、DEVICE WRITE(向PLC软设备写入值) 始命令首地址位数数据终和校验 STX CMD GROUP ADDRESS BYTES 1ST DATA 2ND DATA ...... LAST DATA ETX SUM 例子:向D123开始的两个存储器中写入1234,ABCD 02h 31h 31h,30h,46h,36h 30h,34h 33h,34h,31h,32h,43h,44h,41h,42h 03h 34h,39h PLC返回 ACK (06H) 接受正确 NAK (15H) 接受错误 3、位设备强制置位/复位 FORCE ON置位 始命令地址终和校验 STX CMD ADDRESS ETX SUM 02h 37h address 03h sum FORCE OFF复位 始命令地址终和校验

合作协议书封面模板

合作协议书封面模板农业大学人文社会科学学院 法学人才培养计划 合 作 协 议 书 合作单位: ********有限公司 ShanXi ******** Company 合 作

协 议 书 .太原 合同编号:zljs—鲁bx—001_合作协议书封面模板。 中磊建设有限公司建筑 工 程 承 包 合

同 、 中磊建设晔基花园新城一期工程项目部 前言 合伙成立、经营公司 2 协议书 合伙经营协议书 合伙人甲:__ ___ __号:_ ___ _ __ 合伙人乙:_ __ __号:_ ___ _ __ 合伙人乙:_ __ __号:_ ___ _ ___合作协议书封面模板。 第一条合伙宗旨:由三位合伙人共同成立_ ___ __公司,并共同发展,共同盈利,风险共担,利益共享。 第二条合伙经营项目及现状

1. 开办、经营模型厂。 2. 模型厂现状:①厂房租赁期: ②模型厂地址: 第三条出资额、方式、股份分配 1.合伙人甲以现金方式出资,计人民币______万元,占股_____%。合伙人乙以现金方式出资,计人民币______万元,占股_____%。合伙人乙以现金方式出资,计人民币______万元,占股_____%。 2.各合伙人的出资,于____________年________月________日以前交齐,逾期不交或未交齐的,应对应交未交金额数计付银行利息并赔偿由此造成的损失。 3.本合伙出资共计人民币______万元。合伙期间各合伙人的出资为共有财产,不得随意请求分割,合伙终止后,各合伙人的出资仍为个人所有,至时予以返还。 第四条盈余分配与债务承担

RIP路由协议详解

RIP路由协议(Routing Information Protocols,路由信息协议)是使用最广泛的距离向量协议,它是由施乐(Xerox)在70年代开发的。当时,RIP是XNS (Xerox Network Service,施乐网络服务)协议簇的一部分。TCP/IP版本的RIP是施乐协议的改进版。RIP最大的特点是,无论实现原理还是配置方法,都非常简单。 度量方法RIP的度量是基于跳数(hops count)的,每经过一台路由器,路径的跳数加一。如此一来,跳数越多,路径就越长,RIP算法会优先选择跳数少的路径。RIP支持的最大跳数是15,跳数为16的网络被认为不可达。 路由更新RIP路由协议中路由的更新是通过定时广播实现的。缺省情况下,路由器每隔30秒向与它相连的网络广播自己的路由表,接到广播的路由器将收到的信息添加至自身的路由表中。每个路由器都如此广播,最终网络上所有的路由器都会得知全部的路由信息。正常情况下,每30秒路由器就可以收到一次路由信息确认,如果经过180秒,即6个更新周期,一个路由项都没有得到确认,路由器就认为它已失效了。如果经过240秒,即8个更新周期,路由项仍没有得到确认,它就被从路由表中删除。上面的30秒,180秒和240秒的延时都是由计时器控制的,它们分别是更新计时器(_updateTimer)、无效计时器(Invalid Timer)和刷新计时器(Flush Timer)。 路由循环距离向量类的算法容易产生路由循环,RIP路由协议是距离向量算法的一种,所以它也不例外。如果网络上有路由循环,信息就会循环传递,永远不能到达目的地。为了避免这个问题,RIP等距离向量算法实现了下面4个机制。 水平分割(split horizon)。水平分割保证路由器记住每一条路由信息的来源,并且不在收到这条信息的端口上再次发送它。这是保证不产生路由循环的最基本措施。 毒性逆转(poison reverse)。当一条路径信息变为无效之后,路由器并不立即将它从路由表中删除,而是用16,即不可达的度量值将它广播出去。这样虽然增加了路由表的大小,但对消除路由循环很有帮助,它可以立即清除相邻路由器之间的任何环路。 触发更新(trigger update)。当路由表发生变化时,更新报文立即广播给相邻的所有路由器,而不是等待30秒的更新周期。同样,当一个路由器刚启动RIP 路由协议时,它广播请求报文。收到此广播的相邻路由器立即应答一个更新报文,而不必等到下一个更新周期。这样,网络拓扑的变化会最快地在网络上传播开,减少了路由循环产生的可能性。 抑制计时(holddown timer)。一条路由信息无效之后,一段时间内这条路由都处于抑制状态,即在一定时间内不再接收关于同一目的地址的路由更新。如果,路由器从一个网段上得知一条路径失效,然后,立即在另一个网段上得知这个路由有效。这个有效的信息往往是不正确的,抑制计时避免了这个问题,而且,当一条链路频繁起停时,抑制计时减少了路由的浮动,增加了网络的稳定性。 即便采用了上面的4种方法,路由循环的问题也不能完全解决,只是得到了最大程度的减少。一旦路由循环真的出现,路由项的度量值就会出现计数到无穷大(_countto Infinity)的情况。这是因为路由信息被循环传递,每传过一个路由器,度量值就加1,一直加到16,路径就成为不可达的了。RIP路由协议选择16作为不可达的度量值是很巧妙的,它既足够的大,保证了多数网络能够正常运行,又足够小,使得计数到无穷大所花费的时间最短。 邻居有些网络是NBMA(Non-Broad_cast MultiAccess,非广播多路访问)

相关文档
最新文档