KR930002137B1 - Method for processing e-bus protocol - Google Patents

Method for processing e-bus protocol Download PDF

Info

Publication number
KR930002137B1
KR930002137B1 KR1019900016050A KR900016050A KR930002137B1 KR 930002137 B1 KR930002137 B1 KR 930002137B1 KR 1019900016050 A KR1019900016050 A KR 1019900016050A KR 900016050 A KR900016050 A KR 900016050A KR 930002137 B1 KR930002137 B1 KR 930002137B1
Authority
KR
South Korea
Prior art keywords
polling
slave
data
node
bus
Prior art date
Application number
KR1019900016050A
Other languages
Korean (ko)
Other versions
KR920009118A (en
Inventor
서창진
김명석
오의교
조정호
정희창
Original Assignee
한국전기통신공사
이해욱
재단법인 한국전자통신연구소
경상현
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 한국전기통신공사, 이해욱, 재단법인 한국전자통신연구소, 경상현 filed Critical 한국전기통신공사
Priority to KR1019900016050A priority Critical patent/KR930002137B1/en
Publication of KR920009118A publication Critical patent/KR920009118A/en
Application granted granted Critical
Publication of KR930002137B1 publication Critical patent/KR930002137B1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/12Arrangements for remote connection or disconnection of substations or of equipment thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

The method controls E-bus protocol to work efficiently and perceives the board for a host to control and the status of LT's. It is composed of three stages; the 1st stage for referring to the status of a request command signal (REG-F) from a slave terminal, the 2nd stage for performing abnormal group falling when the REG-F signal is set, and the 3rd stage for performing normal group falling when the REG-F signal is reset.

Description

E 버스 프로토콜 처리방법How to handle E bus protocol

제1도는 본 발명이 적용되는 E 버스의 구조도.1 is a structural diagram of an E bus to which the present invention is applied.

제2도는 호스트에서 본 슬레이보 노드의 상태 천이도.2 is a state transition diagram of a slave node viewed from a host.

제3도 (a),(b)는 본 발명에 의한 슬레이브의 E 버스 프로토콜 처리방법의 흐름도.3 (a) and 3 (b) are flowcharts of a method for processing an E bus protocol of a slave according to the present invention.

제4도는 본 발명에 의한 E 버스 프로토콜 처리방법의 개략적인 폴링 순서도.4 is a schematic polling flowchart of an E bus protocol processing method according to the present invention.

제5도는 본 발명에 의한 E 버스 프로토콜 처리방법에 따른 일실시예도.Figure 5 is an embodiment according to the E bus protocol processing method according to the present invention.

* 도면의 주요부분에 대한 부호의 설명* Explanation of symbols for main parts of the drawings

11 : E 버스 12 : E 버스 호스트11: E bus 12: E bus host

13 : E 버스 슬레이브 a, b, c : 전송루프13: E bus slave a, b, c: transmission loop

본 발명은 ISDN(종합정보통신망) 가입자 모듈에서 D채널 정보를 처리하는데 사용된 E 버스 프로토콜 처리방법에 관한 것이다.The present invention relates to an E-bus protocol processing method used to process D-channel information in an ISDN subscriber module.

ISDN 가입자 모듈에서 D채널을 처리하기 위해서 PASB 또는 BASB 보드 및 CPB 보드가 필요하며 이러한 보드들간을 연결하기 위한 버스 및 버스제어부가 필요하다. 이때 하나의 CPB 보드에 다수의 PASB 또는 BASB 보드를 접속하기 위해서 새로운 버스구조로 E 버스가 제안되었다. CPB는 자신이 관리하는 PASB 또는 BASB 보드의 상태 및 각 보드내에서 유지하는 LT의 상태를 항상 알고 있어야 한다. PASB 또는 BASB 보드는 2개 이상의 LT를 가지고 있다.In order to process D channel in ISDN subscriber module, PASB or BASB board and CPB board are needed, and bus and bus controller for connecting these boards is needed. At this time, E bus was proposed as a new bus structure to connect multiple PASB or BASB boards to one CPB board. The CPB must always know the status of the PASB or BASB boards it manages and the status of the LTs maintained within each board. PASB or BASB boards have more than one LT.

본 발명은 E 버스가 효율적으로 동작하도록 하며 호스트가 제어해야 할 보드 및 LT의 상태를 알 수 있게 하기 위한 E 버스 프로토콜 처리방법을 제공하는데 그 목적이 있다.It is an object of the present invention to provide an E-bus protocol processing method for enabling an E-bus to operate efficiently and for a host to know a state of a board and an LT to be controlled.

상기 목적을 달성하기 위해 본 발명은 마스터단과 슬레이브단으로 각각 제어클럭을 공급하기 위한 클럭라인, 상기 마스터단으로 부터 상기 슬레이브단으로 데이타를 공급하기 위해 RS-485 루프로 이루어진 제1데이타 라인, 및 상기 슬레이브단으로 부터 상기 마스터단으로 데이타를 공급하기 위해 RS-485 루프로 이루어진 제2데이타 라인으로 구성되어 D채널 신호를 하나의 마스터단과 다수의 슬레이브단에서 상호 교환하기 위한 E 버스의 프로토콜 처리방법에 있어서, 상기 슬레이브단의 등록요구신호의 상태를 검색하는 제1단계, 상기 등록요구신호가 세트되면 비정상 그룹 폴링을 실시하고 처리하는 제2단계, 및 상기 등록요구신호가 리세트되면 정상 그룹 폴링을 실시하고 처리하는 제3단계에 의해 수행되는 것을 특징으로 한다.In order to achieve the above object, the present invention provides a clock line for supplying a control clock to a master terminal and a slave terminal, a first data line consisting of an RS-485 loop for supplying data from the master terminal to the slave terminal, and E-bus protocol processing method consisting of a second data line consisting of an RS-485 loop for supplying data from the slave end to the master end to exchange D-channel signals at one master end and a plurality of slave ends The first step of searching for the status of the registration request signal of the slave end, the second step of performing and processing an abnormal group polling when the registration request signal is set, and the normal group polling when the registration request signal is reset It is characterized by being carried out by a third step of performing and processing.

이하, 첨부한 도면을 참조하여 본 발명을 상세히 설명한다.Hereinafter, the present invention will be described in detail with reference to the accompanying drawings.

제1도는 본 발명이 적용되는 E 버스의 구조도로 11은 E 버스, 12는 E 버스 호스트, 13은 E 버스 슬레이브, a,b,c는 전송루프를 각각 나타낸다.1 is a structural diagram of an E bus to which the present invention is applied, where 11 is an E bus, 12 is an E bus host, 13 is an E bus slave, and a, b, and c are transmission loops, respectively.

E 버스는 전이중(full duplex)으로서 RS-485 루프로 구현되어 슬레이브로 부터 마스터로 또는 마스터로부터 슬레이브로 각각 데이타를 전송하는 두개의 단방향 데이타 전송선(b,c)과 상기 마스터로 부터 슬레이브에 각각 제어 클럭을 전송하는 2MHz 클럭 전송루프(a)로 이루어진다.The E bus is a full duplex, implemented as an RS-485 loop, which controls two unidirectional data transmission lines (b, c), each transferring data from slave to master or from master to slave and from master to slave, respectively. It consists of a 2MHz clock transmission loop (a) for transmitting the clock.

E 버스는 16대 까지의 슬레이브 노드를 CPB와 연결시키는 버스이며 BASB 또는 PASB에서 CPB로 데이타를 전달하거나, CPB에서 BASB 또는 PASB로 데이타를 전달한다. IOB는 E 버스상에서의 전송도중데이타가 망실되는 경우를 방지해야 하며 E 버스의 관리를 통하여 슬레이브를 관리해야 한다. 전송도중 데이타 망실 방지를 위한 방법으로는 여러가지 방법이 가능하겠지만 슬레이브 노드의 어느 정도의 오동작하에서도 시스템 성능의 저하를 최소화하며, 순간적인 복구가 용이하고, 별도의 하드웨어가 필요치 않는 폴링(Polling) 방식의 장점을 고려하여 폴링(Polling) 방식으로 한다.The E bus connects up to 16 slave nodes with the CPB, and transfers data from the BASB or PASB to the CPB, or from the CPB to the BASB or PASB. The IOB must prevent data loss during transmission on the E bus and manage the slaves through the management of the E bus. Various methods can be used to prevent data loss during transmission, but polling method that minimizes the degradation of system performance, facilitates instantaneous recovery, and does not require additional hardware even under some malfunction of slave nodes. Considering the advantages of the polling (Polling) method.

효과적인 폴링를 위하여 E 버스에서는 16개의 슬레이브를 3개의 그룹으로 구분한다. 첫째는 보드가 장착되지 않은 오프 보드(off-board) 그룹이며, 둘째는 보드가 현재 슬롯(slot)에 장착되어 있는 온 보드(on-borard) 상태이나 슬레이브로서의 역할을 수행하지 못하는 비정상보드(노드) 그룹이며, 셋째로는 보드가 현재 슬롯에 장착되어 있는 온 보드 상태이며 정상동작을 행하고 있는 정상보드(노드) 그룹이다.For effective polling, the 16 buses are divided into three groups on the E bus. The first is an off-board group where no board is mounted, and the second is an on-borard state in which the board is currently mounted in a slot or an abnormal board (node that does not serve as a slave). The third group is the normal board (node) group in which the board is currently mounted in the slot and is operating normally.

온 보드 및 오프 보드의 구분을 슬레이브로 부터 백패널을 통해 연결된 온 보드 점검비트(on-bordflag ; OB-F)에 의해 결정된다. 마스터는 온 보드 플래그가 세트되지 않은 노드에 대해서는 폴링을 실시하지 않는다. 온 보드 그룹중에서 일정 횟수이상 폴링에 응하지 않은 노드에 대해서는 비정상 그룹으로 이전시켜 더이상의 폴링을 실시하지 않는다. 비정상 보드가 폴링을 할당 받으려면 즉 비정상 그룹에서 정상그룹로 바꾸려면 슬레이브 전체 보드에 대해 공통되어 있는 등록요구 플래그(Registration flag ; REG-F)을 세트하여 마스터에게 요구한다.The distinction between on board and off board is determined by an on-bordflag (OB-F) connected from the slave through the back panel. The master does not poll nodes that do not have the on-board flag set. Nodes that do not respond to polling a certain number of times in the on-board group are transferred to an abnormal group and no further polling is performed. In order for a fault board to be assigned polling, that is, to change from a faulty group to a normal group, the master sets a registration flag (REG-F) common to all slave boards.

제2도는 호스트에서 본 슬레이브 노드의 상태 천이도이다. 보드가 탈장된 오프 상태에서 보드를 삽입하면 비정상 상태로 천이하고(f) 비정상 상태와 정상 상태에서 보드가 탈장되면 오프 상태로 천이한다(g.h). 비정상 상태에서 등록요구 플래그를 세트한 후 마스터의 폴링 요구에 응답하면 정상 상태로 천이하고(d) 정상 상태에서 마스터의 요구에 일정 횟수 이상 응답을 하지 않으면 비정상 상태로 천이한다(e). 슬레이브 노드는 자신이 200msec 동안 폴링을 할당 받지 못할때에는 자신이 비정상 보드라고 판단한다. 마스터는 등록요구를 감지한 후 비정상 그룹에 대해서 3회씩의 폴링 기회를 부여하여 등록요구 플래그가 제거될때까지 등록을 받는다.2 is a state transition diagram of a slave node viewed from a host. When the board is inserted in the off state in which the board is hermetically inserted, the board transitions to an abnormal state (f). After the registration request flag is set in the abnormal state, the terminal transitions to the normal state if it responds to the polling request of the master (d). The slave node determines that it is an abnormal board when it is not assigned polling for 200msec. After detecting the registration request, the master gives three polling opportunities to the abnormal group and receives registration until the registration request flag is removed.

E 버스에서의 프로토콜은 기본적으로 IOB의 요구에 슬레이브가 대답하는 한쌍의 '질의-응답'으로 이루어진다. 다시 말하면 슬레이브가 모두 정상일 경우 IOB의 한번의 질의에 대해 해당 슬레이브는 자신의 상태에 의해 응답 메시지를 결정하여 단한번 '응답'한다.The protocol on the E bus basically consists of a pair of 'query-responses' that the slave responds to the IOB's request. In other words, if the slaves are all normal, the slave responds to the IOB once query and decides the response message based on its own status.

E 버스에서 사용되는 명령어들은 아래 〈표 1〉에 나타내고 있다.The commands used on the E bus are shown in Table 1 below.

프리미티브(Primitive)중 SM-DATA와 SM-POLL에는 슬레이브 보드의 LT 상태를 기록하는 포맷(Format)을 마련하여 마스터는 정상 상태에 있는 모든 슬레이브 노드내의 LT 상태를 알수 있게 한다.During the primitive, SM-DATA and SM-POLL provide a format for recording the LT state of the slave board so that the master can know the LT state in all slave nodes in the normal state.

호스트가 질의 할때는 2가지의 결정이 필요하다.When the host queries, two decisions are needed.

첫째는 어떤 명령어를 보낼것인가의 문제이다. 즉 MS-POLL을 보낼것인가, MS-DATA를 보낼것인가이다. 둘째는 MS-POLL을 보낼 경우는 어느 노드에게로 보낼것인가의 문제이다.The first is the question of what command to send. That is, whether to send MS-POLL or MS-DATA. The second problem is which node to send MS-POLL to.

IOB의 질의 형태는 크게 3가지로 나누어진다. 첫째는 비정상 보드에 대한 IOB의 MS-POLL 요구에 슬레이브가 응답하므로써 정상 보드로 변화하려는 시도이고, 둘째는 IOB로 부터 정상 상태의 슬레이브로 전송하는 MS-DATA를 보내면 슬레이브가 응답하는 경우이고 셋째는 IOB의 MS-POLL 요구에 정상 상태의 슬레이브가 응답하는 경우이다.There are three main types of IOB queries. The first is an attempt to change to a normal board by responding to an MS-POLL request of an IOB for an abnormal board. This is the case when the slave in normal state responds to the MS-POLL request of the IOB.

상기 세가지 형태의 요구중 두번째의 경우는 전송할 패킷이 존재할 경우에만 MS-DATA가 출력되기 때문에 MS-DATA는 불규칙적으로 시행된다. 그러나 전송패킷(MS-DATA)이 있는지의 점검은 첫번째 또는 세번째 형태의 요구를 보내기 직전에 매번 검색한다. MS-DATA는 현재의 폴링 노드값과는 무관하게 출력이 가능하다. 만일 IOB 내에 항상 출력할 패킷이 있다면 첫번째와 세번째 형태의 요구뒤에는 항상 두번째 요구인 MS-DATA가 출력될 것이다. 출력패킷을 MS-DATA로 슬레이브로 보내기 전에 IOB는 출력할 슬레이브 노드를 확인하여 만일 해당 노드가 정상 노드가 아닐 경우는 출력을 포기한다. 만일 타임아웃(time-out)이 발생할 경우는 최대 3번까지 반복하여 동일메시지를 MS-DATA로 출력한다.In the second case of the three types of requests, the MS-DATA is executed irregularly because the MS-DATA is output only when there is a packet to transmit. However, a check to see if there is a transport packet (MS-DATA) is searched each time just before sending the first or third type of request. MS-DATA can be output regardless of the current polling node value. If there are always packets to be output in the IOB, the second request, MS-DATA, will always be printed after the first and third types of requests. Before sending the output packet to the slave as MS-DATA, IOB checks the slave node to output and if the node is not a normal node, abandon the output. If time-out occurs, repeat the message up to 3 times and output the same message as MS-DATA.

그러나 첫번째와 세번째 형태의 요구는 주기적으로 시행하며 이러한 전체 주기를 폴링 주기라 한다.However, the first and third types of requests are made periodically and this entire cycle is called the polling cycle.

슬레이브는 응답 메시지의 종류를 자신의 상태(IOB로 보낼 데이타의 유무)만으로 결정한다. 즉 호스트 노드의 상태와 호스트가 슬레이브로 보낸 명령어의 종류에 전혀 무관하다. 어느 한순간 특정 노드에 대해 E 버스 양방향으로 데이타가 존재한다면 호스트의 MS-DATA의 요구에 슬레이브 노드의 SM-DATA로 응답이 가능하여서 피기백(piggyback)이 이루어질 수 있다. 제한 시간내에 IOB에 전달된 SM-DATA는 모든 형태의 질의에 대한 정당한 응답으로 간주되어 CPB로 전달된다.The slave decides the type of response message based only on its own state (there is no data to send to the IOB). That is, it is irrelevant to the state of the host node and the type of command sent from the host to the slave. If there is data in the E bus bidirectional for a certain node at any one time, piggyback can be made by responding to the MS-DATA request of the host to the SM-DATA of the slave node. The SM-DATA delivered to the IOB within the time limit is regarded as a legitimate response to all types of queries and forwarded to the CPB.

제3도 (a),(B)는 본 발명에 의한 슬레이브의 E 버스 프로토콜 처리방법을 나타내는 흐름도로 (a)는 E 버스 슬레이브의 초기상태의 흐름도이고 (b)는 E 버스 슬레이브의 정상 상태의 흐름도이다.3 (a) and 3 (b) are flowcharts illustrating a method of processing an E bus protocol of a slave according to the present invention, (a) is a flowchart of an initial state of an E bus slave, and (b) is of a normal state of an E bus slave. It is a flow chart.

E 버스 슬레이브는 초기상태에서 제3도(a)에 도시한 바와 같이 소프트웨어와 하드웨어를 초기화하고 WDT(Watch dog Timer) 신호를 트러거한후 등록요구 플래그(REG-F)를 1로 세트한다(100,110,120,130).The E bus slave initializes the software and hardware as shown in FIG. 3 (a) in the initial state, triggers the WDT (Watch dog Timer) signal, and sets the registration request flag (REG-F) to 1 (100, 110, 120, 130). ).

E 버스 슬레이브가 정상 상태일때, 상기한 호스트의 요구에 대해 슬레이브는 보낼 데이타가 있는지 없는지에 따라 응답할 메시지의 종류를 결정한다. 마스터로 부터 MS-DATA가 전송되면 전송 버퍼에 전송패킷을 저장하고 WDT 신호를 트리거(Tigger)한다(150,170,180). 또한 마스터로 부터 MS-POLL이 전송되면 전송패킷을 저장하는 단계를 거치지 않고 곧장 WDT 신호를 트리거 한다(140,180). WDT 신호를 트리거한후 등록요구 플래그(REG-F)를 "0"으로 세트하고 송신패킷이 송신버퍼에 존재하는지 검색한다(190,200). 송신패킷이 존재하지 않으면 SM-POLL로 마스터에 응답하고(220) 송신패킷이 존재하면 송신패킷이 2개 이상인가를 검색하여(210) 2개 이상이면 SM-DATA(F=1)로 응답하고(240) 2개 이상이 아니면 SM-DATA(F=0)로 응답하고(230) 송신버퍼를 갱신하고(250) E 버스 슬레이브 정상 상태로 돌아간다. 즉 IOB로 보낼 패킷이 존재하지 않으면 SM-POLL로 응답하고 IOB로 보낼 패킷이 존재하면 SM-DATA로 응답한다.When the E bus slave is in a normal state, for the request of the host, the slave determines the type of message to respond to whether there is data to send or not. When MS-DATA is transmitted from the master, the transmission packet is stored in the transmission buffer and the WDT signal is triggered (150, 170, 180). In addition, when MS-POLL is transmitted from the master, the WDT signal is directly triggered without going through the step of storing the transmission packet (140, 180). After triggering the WDT signal, the registration request flag (REG-F) is set to "0", and it is checked whether a transmission packet exists in the transmission buffer (190, 200). If there is no transmission packet, it responds to the master with SM-POLL (220). If there are two transmission packets, it searches for two or more transmission packets (210). (240) If not more than two, respond with SM-DATA (F = 0) (230) update the transmit buffer (250) and return to the E bus slave normal state. That is, if there is no packet to send to IOB, it responds with SM-POLL. If there is a packet to send to IOB, it responds with SM-DATA.

SM-DATA를 보낼때에는 현재 슬레이브 노드내에 보내야할 여분의 패킷이 존재하는지의 여부를 SM-DATA내에 포함시켜 존재할 경우에는 F=1로, 없을 경우에는 F=0으로 IOB로 보고한다.When sending an SM-DATA, whether or not there is an extra packet to be sent in the current slave node is included in the SM-DATA, and if there is an F = 1, if not, it is reported as an IOB.

E 버스 슬레이브 정상 상태에서 감시장치 타이머가 폴트(fault)로 들어 오면 WDT 신호를 트리거 하고 등록요구 플래그(REG-F)를 "0"으로 하고 E 버스 슬레이브 초기상태로 들어간다(160,260,270).When the watchdog timer enters the fault in the E bus slave normal state, it triggers the WDT signal and sets the registration request flag (REG-F) to "0" and enters the E bus slave initial state (160, 260, 270).

전체 폴링은 온 보드 플래그 값의 읽기 및 상태출력, 비정상 그룹에 대한 폴링과 정상 그룹에 대한 폴링으로 구성된다. 비정상 그룹 폴링은 등록요구 플래그(REG-F)가 세트되어 있을때에만 이루어지는데 이는 비정상 상태에서 정상 상태로 변환하려는 비정상 노드의 노드 번호를 확인하기 위해 실시한다. 정상 노드폴링은 E 버스상에서 슬레이브 노드 사이의 데이타 충돌을 방지한 상태에서 SM-DATA를 수신하기 위해 실시한다.Full polling consists of reading and status output of onboard flag values, polling for abnormal groups and polling for normal groups. The abnormal group polling is performed only when the registration request flag (REG-F) is set. This is performed to check the node number of the abnormal node to be converted from the abnormal state to the normal state. Normal node polling is performed to receive SM-DATA while preventing data collisions between slave nodes on the E bus.

비정상 그룹에 대한 폴링은 한 노드에 대해 일단 한번씩 실시하여 응답이 없으면 그다음 비정상 노드에대해 실시한다. 만일 모든 비정상 노드에 대해 응답이 없으면 최대 3번까지 비정상 그룹 폴링을 실시한다. 비정상 그룹 폴링은 등록요구 플래그(REG-F)가 클리어되거나 전체적으로 3번 폴링이 이루어졌거나, 비정상 노드가 존재하지 않을때까지 실시한다. IOB의 MS-POLL 요구에 대해 슬레이브로 부터 응답이 정해진시간안에 IOB에 전달되면 그 응답의 종류에 관계없이 IOB는 해당 비정상 노드를 정상 그룹으로 이전시킨다.Polling for anomalous groups is done once for one node and then for anomalous nodes if there is no response. If there is no response for all abnormal nodes, up to three abnormal group polls are performed. Abnormal group polling is performed until the registration request flag (REG-F) is cleared, polling is performed three times in total, or there is no abnormal node. If a response from the slave is sent to the IOB within a predetermined time for the MS-POLL request of the IOB, the IOB transfers the abnormal node to the normal group regardless of the response type.

정상 그룹에 대한 폴링은 한 노드에 대해서 연속해서 세번의 타임아웃이 발생하거나 슬레이브가 전송할 패킷이 없음을 알리는 SM-POLL로 또는 더이상 전송할 패킷이 없음을 알리는 SM-DATA(F=0)로 응답할 때까지 반복한다. 연속해서 세번의 타임아웃이 발생했을 경우는 일단 에러카운트를 세트시키고(MS-DATA에 대한 요구시 세번 연속해서 타임아웃이 발생하여도 에러카운트가 증가됨) 연속해서 3번 에러카운트가 증가되면 IOB는 해당 슬레이브를 정상 그룹에서 비정상 그룹으로 이전시킨다. 정당한 응답(SM-POLL 또는 SM-DATA)이 IOB에 들어오면 에러카운트는 0으로 세트된다.Polling for a normal group may respond with an SM-POLL indicating three consecutive timeouts for a node or with a slave indicating that there are no packets to transmit, or SM-DATA (F = 0) indicating that there are no more packets to transmit. Repeat until. If three timeouts occur in succession, the error count is set once (if the request for MS-DATA occurs, the error count is increased even if the timeout occurs three times in succession). Transfer the slave from normal group to abnormal group. If a valid response (SM-POLL or SM-DATA) enters the IOB, the error count is set to zero.

제4도는 본 발명에 의한 E 버스 프로토콜의 처리방법의 개략적인 폴링 순서도로 상기 과정을 제4도를 참조하여 설명하면 다음과 같다.4 is a schematic polling flowchart of a method for processing an E bus protocol according to the present invention. Referring to FIG.

ANNi는 MS-POLL이 비정상 노드 i로 보내지는 경우이고 NMNi는 MS-POLL이 정상 노드 i로 보내지는 경우이고 '_'는 SM-POLL 또는 SM-DATA(F=0)가 입력되는 경우, "-→"는 타임아웃이 발생한 경우 "→"는 SM-POLL, SM-DATA(F=0 또는 1)가 입력되거나 타임아웃이 발생한 경우를 나타낸다.ANNi is the case where MS-POLL is sent to abnormal node i, NMNi is the case where MS-POLL is sent to healthy node i, and '_' is SM-POLL or SM-DATA (F = 0) is entered, " "→" indicates when timeout occurs. "→" indicates when SM-POLL, SM-DATA (F = 0 or 1) is input or a timeout occurs.

백패널로 부터 들어오는 등록요구 플래그(REG-F)를 점검하여 세트되어 있으면 비정상 노드에 대한 폴링을 실시하고(300) 리세트되어 있으면 정상 노드에 대한 폴링을 실시한다(310). 비정상 노드의 폴링은 모든 비정상 노드에 대한 3번씩의 폴링이 이루어졌거나 등록요구 플래그(REG-F)가 리세트될때까지 시행한다(320). 정상 노드에 대한 폴링은 타임아웃이 발생했을 경우는 세번까지 실시한다(330).If the registration request flag REG-F coming from the back panel is checked and set, polling for an abnormal node is performed (300), and if it is reset, polling for a normal node is performed (310). Polling of the abnormal node is performed until three polls have been made for all abnormal nodes or until the registration request flag (REG-F) is reset (320). Polling for the normal node is performed up to three times when a timeout occurs (330).

제5도는 본 발명에 의한 E 버스 프로토콜 처리방법에 따른 일실시예 시도이다. "_ _"는 타임아웃을," - →"는 SM-POLL을 "_"는 SM-DATA(F=0)를, "→"는 SM-DATA(F=1) 을 나타낸다.5 is an exemplary embodiment according to the E bus protocol processing method according to the present invention. "_ _" Indicates timeout, "-→" indicates SM-POLL, "_" indicates SM-DATA (F = 0), and "→" indicates SM-DATA (F = 1).

초기 정상 노드는 3,9번이며 비정상 노드는 1,4,6,8이라고 하자. 등록요구 플래그(REG-F)가 세트되어 비정상 노드에 대해 폴링을 실시한다. 1번 노드는 폴링 요구에 대해 SM-POLL로 응답하므로서 정상 노드로 전환된다(500). 4번,6번,8번 노드는 타임아웃이 발생하여 등록에 실패하였다(510). 두번째의 4번 노드에대한 폴링에서는 4번 노드가 SM-DATA(F=0)로 응답하여 정상 노드로 전환되었으며(520), 6번 노드는 세번째 폴링에 대해 SM-DATA(F=1)가 클리어 되어 8번 노드에 대한 폴링은 실시하지 않는다. 비정상 노드의 폴링이 완료되고 이제는 정상 노드에 대한 폴링으로 넘어간다. 1번 노드에 대한 폴링은 SM-DATA(F=0)로 응답하여 이를 CPB로 보고하고(540), 3번 노드는 폴링에 대한 응답으로 SM-POLL을 받아서 다음 정상 노드로 넘어간다(550). 4번 노드는 세번의 타임아웃이 발생하여 에러카운트를 1 증가시키고 다음 노드로 넘어간다. 이러한 타임아웃이 연속적으로 세번 발생할 경우는 해당 노느를 비정상 노드로 바꾼다(560). 6번 노드는 첫번째는 타임아웃이 발생했으나 두번째 폴링에 대해서 SM-POLL로 응답하여 다음 노드로 넘어간다(570). 9번 노드는 폴링 요구에 대해 4개의 연속된 SM-DATA(F=1)로 응답한후 SM-DATA(F=0)로 대답하여 연속적으로 5개의 데이타를 호스트에게 보낼 수 있다(600).Assume that the initial normal node is 3, 9 and the abnormal node is 1, 4, 6, 8. A registration request flag (REG-F) is set to poll for an abnormal node. Node 1 switches to the normal node by responding to the polling request with the SM-POLL (500). Nodes 4, 6, and 8 failed to register due to timeout (510). In polling for node 2, node 4 responds with SM-DATA (F = 0) and returns to the normal node (520). Node 6 receives SM-DATA (F = 1) for the third poll. It is cleared and polling for node 8 is not performed. Polling of the unhealthy node is complete and now it goes to polling the healthy node. Polling for node 1 responds with SM-DATA (F = 0) and reports it to CPB (540), and node 3 receives SM-POLL in response to polling and goes to the next normal node (550). . Node 4 has three timeouts, incrementing the error count by one, and moving on to the next node. If this timeout occurs three times in succession, the node is changed to an abnormal node (560). Node 6 has a first timeout but responds to the second poll with SM-POLL and proceeds to the next node (570). Node 9 can respond to the polling request with four consecutive SM-DATA (F = 1) and then reply with SM-DATA (F = 0) to send five consecutive data to the host (600).

상기와 같이 구성되어 작동하는 본 발명은 국산 전전자 교환기 TDX-1(등록상표임) 계열에 ISDN 기능을 접속하기 위한 가입자계 접속기술을 제공하여 제안된 E 버스 프로토콜을 실시간 처리를 요하는 멀티드롭의 구조를 갖는 버스 구조의 통신매체를 통하여 상호 프로세서간 통신을 요하는 메시지 전달부에서 마스터와 슬레이브로서 폴링방식을 이용하는 유사한 통신 구조에 적용할 수 있다.The present invention constructed and operated as described above provides a subscriber system access technology for accessing ISDN functions to a domestic electronic switchboard TDX-1 (registered trademark) series, thereby providing a multi-drop that requires real-time processing of the proposed E bus protocol. It can be applied to a similar communication structure using a polling scheme as a master and a slave in a message transfer unit requiring inter-processor communication through a communication medium of a bus structure having a structure of.

Claims (8)

마스터단과 슬레이브단으로 각각 제어클럭을 공급하기 위한 클럭라인(a), 상기 마스터단으로 부터 상기 슬레이브단으로 데이타를 공급하기 위해 RS-485 루프로 이루어진 제1데이타 라인(b), 및 상기 슬레이브단으로 부티 상기 마스터단으로 데이타를 공급하기 위해 RS-485 루프로 이루어진 제2데이타 라인(c)으로 구성되어 D 채널 신호를 하나의 마스터단과 다수의 슬레이브단에서 상호 교환하기 위한 E 버스의 프로토콜 처리방법에 있어서 ; 상기 슬레이브단의 등록요구신호(REG-F)의 상태를 검색하는 제1단계, 상기등록요구신호(REG-F)가 세트되면 비정상 그룹 폴링을 실시하고 처리하는 제2단계, 및 상기 등록요구신호(REG-F)가 리세트되면 정상 그룹 폴링을 실시하고 처리하는 제3단계에 의해 수행되는 것을 특징으로 하는 E 버스 프로토콜 처리방법.A clock line (a) for supplying control clocks to the master and slave stages, a first data line (b) consisting of an RS-485 loop for supplying data from the master stage to the slave stage, and the slave stage The second data line (c) consisting of an RS-485 loop for supplying data to the master terminal is provided with a protocol processing method of an E bus for exchanging D channel signals at one master terminal and a plurality of slave terminals. In; A first step of retrieving the status of the registration request signal REG-F of the slave end; a second step of performing and processing an abnormal group polling when the registration request signal REG-F is set; and the registration request signal And (REG-F) is reset by the third step of performing and processing normal group polling. 제 1항에 있어서, 상기 제 2 단계는 하나의 비정상 노드에 대한 폴링을 한번씩 실시하는 제1과정, 상기 폴링에 대한 응답의 유무를 검색하여 정해진 시간내의 정당한 응답이면 정상 그룹으로 천이하고 정해진시간내의 정당한 응답이 아니면 다음 단계로 진행하는 제2과정, 및 다음 비정상 노드에 대한 폴링을 실시하고 상기 제2과정을 최대 2회 반복하는 제3과정에 의해 수행되는 것을 특징으로 하는 E 버스 프로토콜 처리방법.The method of claim 1, wherein the second step includes: a first process of polling one abnormal node once, and searching for the presence or absence of a response to the polling, and transitioning to a normal group if a valid response within a predetermined time is reached; If it is not a valid response, a second process proceeding to the next step, and a third process of polling the next abnormal node and repeating the second process at most twice. 제 1항에 있어서, 상기 제 2 단계는 상기 비정상 그룹 폴링을 등록요구신호(REG-F)가 클리어 될때까지 반복 실시하는 것을 특징으로 하는 E 버스 프로토콜 처리방법.2. The method of claim 1, wherein the second step repeats the abnormal group polling until the registration request signal (REG-F) is cleared. 제1항에 있어서, 상기 제2단계는 상기 비정상 그룹 폴링을 비정상 노드가 존재하지 않을때까지 반복 실시하는 것을 특징으로 하는 E 버스 프로토콜 처리방법.The method of claim 1, wherein the second step repeats the abnormal group polling until there is no abnormal node. 제1항에 있어서, 상기 제3단계는 하나의 정상노드에 대해 폴링을 실시하는 제1과정, 상기 폴링에대한 응답의 유무를 검색하는 제2과정, 상기 응답이 없으면 타임아웃 카운트를 1증가시키고 상기 타임아웃카운트가 3이 될때까지 상기 제1 및 제 2과정을 반복하는 제 3과정, 상기 타임아웃 카운트가 3이 되면 에러카운트를 1증가시키는 제4과정, 및 상기 에러카운트가 3이되면 비정상 그룹으로 천이하는 제5과정에 의해 수행되는 것을 특징으로 하는 E 버스 프로토콜 처리방법.The method of claim 1, wherein the third step includes: a first process of polling one normal node, a second process of searching for the presence or absence of a response to the polling; A third process of repeating the first and second processes until the timeout count is 3, a fourth process of increasing the error count by 1 when the timeout count is 3, and an abnormality when the error count is 3 E bus protocol processing characterized in that performed by a fifth process of transition to a group. 제1항에 있어서, 상기 제3단계는 상기 슬레이브단이 전송할 패킷이 없음을 알리는 제어신호(SM-POLL)로 응답할때까지 실시하는 것을 특징으로 하는 E 버스 프로토콜 처리방법,The method of claim 1, wherein the third step is performed until the slave station responds with a control signal SM-POLL indicating that there is no packet to transmit. 제1항에 있어서, 상기 제3단계는 상기 슬레이브단이 더이상 전송할 패킷이 없음을 알리는 제어신호(SM-DATA, F=0)로 응답할때까지 반복 실시하는 것을 특징으로 하는 E 버스 프로토콜 처리방법.The method of claim 1, wherein the third step is repeated until the slave station responds with a control signal (SM-DATA, F = 0) indicating that there are no more packets to transmit. . 제2항에 있어서, 상기 정당한 응답은 상기 슬레이브단이 전송할 패킷이 없음을 알리는 제어신호(SM-POLL)와 상기 슬레이브단이 패킷을 전송하는 제어신호(SM-DATA)인 것을 특징으로 하는 E 버스 프로토콜 처리방법.The E bus of claim 2, wherein the legitimate response is a control signal SM-POLL indicating that the slave terminal has no packet to transmit and a control signal SM-DATA transmitting the packet to the slave terminal. Protocol handling method.
KR1019900016050A 1990-10-10 1990-10-10 Method for processing e-bus protocol KR930002137B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019900016050A KR930002137B1 (en) 1990-10-10 1990-10-10 Method for processing e-bus protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019900016050A KR930002137B1 (en) 1990-10-10 1990-10-10 Method for processing e-bus protocol

Publications (2)

Publication Number Publication Date
KR920009118A KR920009118A (en) 1992-05-28
KR930002137B1 true KR930002137B1 (en) 1993-03-26

Family

ID=19304481

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019900016050A KR930002137B1 (en) 1990-10-10 1990-10-10 Method for processing e-bus protocol

Country Status (1)

Country Link
KR (1) KR930002137B1 (en)

Also Published As

Publication number Publication date
KR920009118A (en) 1992-05-28

Similar Documents

Publication Publication Date Title
US5107489A (en) Switch and its protocol for making dynamic connections
DE3546664C2 (en) Operating communication bus network for processors
EP0435037B1 (en) Master slave industrial token passing network
US5455959A (en) System for collecting from masters information independently collected from associated slaves in shelves of a telecommunications terminal
US7609688B2 (en) Serialized bus communication and control architecture
US4509117A (en) Communications network access rights arbitration
KR0174702B1 (en) Apparatus and method for intermodular communications using system bus controllers
HU214427B (en) Data transfer system
KR930002137B1 (en) Method for processing e-bus protocol
EP0093578B1 (en) Communications system
US5528768A (en) Multiprocessor communication system having a paritioned main memory where individual processors write to exclusive portions of the main memory and read from the entire main memory
US5323145A (en) Alarm collection architecture with redundant bus
KR100274848B1 (en) Network management method for network management system
DE3546684C2 (en) Operating communication bus network for processors
SU1432537A1 (en) Device for interfacing subscribers with communication channel
JPH0225579B2 (en)
KR940000179B1 (en) Communication bus for d-channel information operation
KR100211059B1 (en) Polling address control apparatus and method thereof
KR0143970B1 (en) Telecommunication part control system
KR100229434B1 (en) Dual apparatus for controlling data communication
JP3127939B2 (en) Event information transmission device
CN114647180A (en) Communication method based on backboard bus control system
JPH04185138A (en) Communication controller
JPH066862A (en) Master/slave network system
JPS6160042A (en) Identification system of arrangement order of node

Legal Events

Date Code Title Description
A201 Request for examination
G160 Decision to publish patent application
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 19971211

Year of fee payment: 6

LAPS Lapse due to unpaid annual fee