KR0143970B1 - Telecommunication part control system - Google Patents

Telecommunication part control system

Info

Publication number
KR0143970B1
KR0143970B1 KR1019930030064A KR930030064A KR0143970B1 KR 0143970 B1 KR0143970 B1 KR 0143970B1 KR 1019930030064 A KR1019930030064 A KR 1019930030064A KR 930030064 A KR930030064 A KR 930030064A KR 0143970 B1 KR0143970 B1 KR 0143970B1
Authority
KR
South Korea
Prior art keywords
message
port
transmission
input
reception
Prior art date
Application number
KR1019930030064A
Other languages
Korean (ko)
Other versions
KR950022514A (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 KR1019930030064A priority Critical patent/KR0143970B1/en
Publication of KR950022514A publication Critical patent/KR950022514A/en
Application granted granted Critical
Publication of KR0143970B1 publication Critical patent/KR0143970B1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/16Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
    • G06F15/163Interprocessor communication
    • G06F15/17Interprocessor communication using an input/output type connection, e.g. channel, I/O port
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/16Combinations of two or more digital computers each having at least an arithmetic unit, a program unit and a register, e.g. for a simultaneous processing of several programs
    • G06F15/163Interprocessor communication
    • G06F15/173Interprocessor communication using an interconnection network, e.g. matrix, shuffle, pyramid, star, snowflake
    • G06F15/17306Intercommunication techniques

Abstract

본 발명은 전자교환기 시스템의 프로세서에 관한 것으로, 단일 프로세서의 모듈이 복수개의 프로세서와 통신하는 경우 상대 프로세서의 수보다 적은 입출력수단 및 DMA 수단을 이용하여 신뢰성있는 통신 프로토콜을 수행하도록 한 것이다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a processor of an electronic exchange system, wherein a module of a single processor communicates with a plurality of processors so as to perform a reliable communication protocol by using an input / output means and a DMA means less than the number of counterpart processors.

본 발명은 시간관리 프로세서에 의한 선로의 관리로 원활한 통신포트 운용을 확보하고 통신 선로의 이상으로 인한 메시지의 블록현상 및 교착상태로의 진입을 배제하며 적은 하드웨어의 사용으로 소형화 경량화되고 설치공간을 효율적으로 사용한다.The present invention ensures smooth communication port operation by managing the line by the time management processor, eliminates the block phenomenon and the entry into the deadlock state due to the error of the communication line, miniaturization, light weight and efficient installation space using less hardware. Used as

Description

복수의 시스템과 통신하는 단일 프로세서의 통신포트제어방법 및 그 장치Communication port control method of a single processor communicating with a plurality of systems and apparatus therefor

제1도는 본 발명에 따른 단일 프로세서의 복수 통신포트 접속장치 구조도.1 is a structure diagram of a plurality of communication port connection device of a single processor according to the present invention.

제2도는 본 발명에 따른 DMA(Direct Menory Access)부의 인터럽트 처리 흐름도.2 is a flowchart illustrating interrupt processing of a DMA (Direct Menory Access) unit according to the present invention.

제3도는 본 발명에 따른 SIO(Serial Input/Out put)부의 인터럽트 처리 흐름도.3 is an interrupt processing flow diagram of a serial input / out put (SIO) unit according to the present invention.

제4도는 본 발명에 따른 프로세서 타임 아웃이 흐름도.4 is a flow chart of a processor timeout in accordance with the present invention.

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

1:CPU 2:메모리부1: CPU 2: Memory section

3:제1 DMA 4:제1 SIO3: first DMA 4: first SIO

5:제2 DMA 6:제2 SIO5: second DMA 6: second SIO

7:제1 멀티플렉싱 스위치부 8:제2 멀티플렉싱 스위치부7: First multiplexing switch section 8: Second multiplexing switch section

본 발명은 전자교환기 시스템의 프로세서에 관한 것으로, 특히 단일 프로세서의 모듈이 복수개의 프로세서와 통신하는 경우 상대 프로세서의 수보다 적은 입출력 수단을 이용하여 신뢰성 있는 통신 프로토콜을 수행하도록 한 복수의 시스템과 통신하는 단일 프로세서의 통신포트 제어방법 및 그 장치에 관한 것이다.BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a processor of an electronic exchange system, and in particular, when a module of a single processor communicates with a plurality of processors, communicating with a plurality of systems for performing a reliable communication protocol using an input / output means less than the number of counterpart processors A communication port control method of a single processor and an apparatus thereof are provided.

일반적으로 전자교환기 시스템은 상대 시스템과 통신을 수행하기 위해 통신포트 수만큼의 입출력수단과 동일 채널수의 DMA(Direct Menory Access) 수단을 구비하여 복수개의 통신포트로 운용된다. 이때 송수신에 관한 모든 제어는 중앙처리 유니트가 수행하여 복수개의 통신포트로부터 동시에 송수신되는 메시지가 유실됨을 방지하기 위해 순차적으로 통신포트를 가용화시켜 통신을 수행한다. 이와 같은 통신 수행은 중앙처리 유니트가 통신할 필요가 있는 포트에 대해 SIO의 통신채널을 가용화하고 난후 메시지 전송요구 데이터를 상대측으로 전송하고 소정시간 이에 대한 응답메세지를 기대한다. 만약 전송요구 데이터에 대한 응답메세지가 소정시간에 수신되면 다음 포트로 전송순서를 넘기고, 소정시간 내에 응답메세지의 수신이 없으면 다시 일정 횟수 만큼의 재전송될 메시지 유무를 확인한다.In general, the electronic exchange system is provided with a plurality of communication ports provided with input / output means as many as the number of communication ports and direct channel access (DMA) means with the same number of channels in order to communicate with the counterpart system. In this case, all the control regarding the transmission and reception is performed by the central processing unit to perform communication by making the communication ports available sequentially so as to prevent the loss of messages simultaneously transmitted and received from the plurality of communication ports. Such communication is performed by enabling the communication channel of the SIO for the port that the central processing unit needs to communicate with, and then transmitting the message transmission request data to the counterpart and expecting a response message for a predetermined time. If a response message for the transmission request data is received at a predetermined time, the transmission sequence is transferred to the next port. If no response message is received within the predetermined time, the message is re-transmitted a predetermined number of times.

만약 수신메세지의 시작과 끝을 표시하는 플레그에 의한 메시지 전송시 시작 플레그에 의한 메시지 수신중에 선로의 이상이나 상대국의 비정상태로 인하여 메시지가 전송되지 않으면 그 모듈은 송수신이 이루어지지 않는 교착상태(Dead-Lock) 상태로 진입된다. 또한 다른 이유로 가용화되는 포트에 대한 상태정보를 남겨두어 인터럽트 등의 처리를 수행하고 되돌아 오는 경우 메시지 수신중이라는 상태정보에 의해 가용화되는 포트는 더 이상의 메시지 수신에 대한 억세스를 포기한다.If the message is not transmitted due to the abnormality of the line or the abnormal status of the other station while receiving the message by the start flag when the message is transmitted by the flag indicating the start and end of the received message, the module does not transmit or receive the deadlock. -Lock) state is entered. Also, for other reasons, the port that is available by the status information indicating that the message is being received gives up access to further message reception when the status information on the port being available is left and the processing such as interrupt is returned.

전술한 바와 같은 종래의 메시지 송수신 프로토콜 장치는 모듈의 수에 관계없이 공통 데이터 전송버스와 버스점유 제어부, 제어신호 발생부 및 노드 정합부 등의 복합적인 구성을 위하여 공간의 확보가 필요하게 되며 모듈수가 적은 프로세서인 경우 비경제적인 문제점이 있었다.As described above, the conventional message transmitting / receiving protocol apparatus requires space for a complex configuration such as a common data transmission bus, a bus occupancy controller, a control signal generator, and a node matching unit regardless of the number of modules. For a small processor, there was an uneconomic problem.

또한 메시지의 송수신시 각 포트가 메시지를 전송할 수 없는 교착상태로 진입되는 것을 방지할 수 없는 문제점이 있었다.In addition, there is a problem in that each port can not be prevented from entering a deadlock state that can not transmit a message when sending and receiving messages.

본 발명은 전술한 문제점을 감안하여 안출한 것으로, 그 목적은 단일 프로세서 모듈이 복수개의 시스템과 통신하는 경우 통신포트의 수보다 적은 SIO수단 및 DMA수단을 사용하여 원활한 통신포트의 운용을 확보하고 시간관리 프로세서의 운영으로 선로상의 이상상태로 인한 송수신 메시지의 교착상태 진입을 방지하며 시스템을 소형화 경량화 하도록 하는데 있다.SUMMARY OF THE INVENTION The present invention has been made in view of the above-described problems, and an object thereof is to ensure smooth operation of a communication port by using SIO means and DMA means which are smaller than the number of communication ports when a single processor module communicates with a plurality of systems. The operation of the management processor prevents the entry of deadlocks of incoming and outgoing messages due to abnormal conditions on the line and makes the system smaller and lighter.

이와 같은 목적을 달성하기 위하여 본 발명은, 전자교환기 시스템의 통신방법에 있어서, 비가용 상태에 있는 모든 통신포트를 가용상태로 전환시키고 해당 포트가 사용할 최대통신 허용시간을 설정한후 상기 해당 포트를 통해 메시지를 송수신하는 제1 과정과, 상기 제1 과정 수행후 입출력 수단을 통해 상대측 시스템으로 메시지가 전송되고 상기 상대측 시스템으로부터 전송된 메시지에 대응되는 메시지의 수신이 완료되면 이를 통보하는 인터럽트를 발생하는 제2 과정과, 상기 제2과정 수행후 발생된 인터럽트가 정상적인 인터럽트 인지의 여부를 판단하기 위해 전송완료 플레그가 리셋되었는가를 검출하는 제3과정과, 상기 제3과정 수행후 대국측으로부터 메시지의 수신되면 입출력 수단은 제어수단측에 이를 통보하기 위하여 인터럽트를 발생시키는 제4과정과, 상기 제4과정 수행후 인터럽트가 발생하면 상기 제1과정에서 설정된 최대통신허용시간을 리셋시키는 제5과정 및 상대측 시스템으로부터 상기 제1과정에서 설정된 최대 통신허용시간 내에 응답메세지의 수신이 없으면 선택된 해당 포트를 초기화 시키는 제6과정을 포함하는 것을 특징으로 하는 복수의 시스템과 통신하는 단일 프로세서의 통신포트 제어방법을 제공한다.In order to achieve the above object, the present invention relates to a communication method of an electronic switching system, wherein all communication ports in an unusable state are switched to an available state, and the corresponding port is set after setting a maximum communication allowable time for the corresponding port. A first process of transmitting and receiving a message through the first process, and generating an interrupt for notifying when the message is transmitted to the counterpart system through the input / output means after the first process is performed and the reception of the message corresponding to the message transmitted from the counterpart system is completed. And a third step of detecting whether the transmission completion flag is reset to determine whether the interrupt generated after performing the second step is a normal interrupt, and receiving a message from the counterpart after performing the third step. The input / output means generates an interrupt to notify the control means of this. Receiving the response message within the maximum communication allowance time set in the first process from the fifth process and the fifth process of resetting the maximum communication allowable time set in the first process if an interrupt occurs after performing the fourth process and the fourth process. If not there is provided a communication port control method of a single processor for communicating with a plurality of systems, characterized in that it comprises a sixth process of initializing the selected corresponding port.

또한, 본 발명은, 전자교환기 시스템에 있어서, 메시지 송수신에 대한 프로토콜 처리를 제어하는 제어수단과; 송수신 메시지를 저장하는 저장수단과; 상기 제어 수단의 제어에 따라 스위칭되어 대국에 대한 송수신 포트를 접속하여 대국에 대해 송수신되는 메시지를 입출력하는 멀티플렉싱 스위치수단과; 상기 제어수단의 제어에 따라 선택한 채널을 경유하여 상기 멀티플렉싱 스위치수단에 대해 메시지를 송수신함으로써 상기 멀티플렉싱 스위치수단을 통해 상기 대국에 대해 메시지를 송수신하는 입출력수단과; 상기 제어수단의 지시에 따라 상기 저장수단을 직접 억세스하여 저장수단에 대해 송수신 메시지를 입출력함으로써 상기 저장수단과 입출력수단 사이에서 송수신 메시지를 전달하는 DMA 수단을 구비하는 것을 특징으로 하는 복수의 시스템과 통신하는 단일 프로세서의 통신포트 제어장치를 제공한다.The present invention also provides an electronic exchange system comprising: control means for controlling protocol processing for message transmission and reception; Storage means for storing transmission and reception messages; Multiplexing switch means for switching under a control of the control means to connect a transmission / reception port for a power station to input / output a message transmitted to or received from the power station; Input / output means for transmitting and receiving a message to and from the large station through the multiplexing switch means by transmitting and receiving a message to and from the multiplexing switch means via a channel selected by the control means; And a DMA means for directly transmitting and receiving messages to and from the storage means by means of the control means to transmit and receive messages to and from the storage means and to transmit and receive messages between the storage means and the input / output means. It provides a communication port control device of a single processor.

이하 첨부된 도면를 참조하여 본 발명의 바람직한 일 실시예를 설명한다.Hereinafter, exemplary embodiments of the present invention will be described with reference to the accompanying drawings.

제1도는 본 발명에 따른 단일 프로세서의 복수 통신포트 접속장치 구조도이고, 제2도는 본 발명에 따른 DMA부의 인터럽트 처리 흐름도이며, 제3도는 본 발명에 따른 SIO부의 인터럽트처리 흐름도이다. 또한 제4도는 본 발명에 따른 프로세서의 타임아웃시 흐름도이다.1 is a structure diagram of a plurality of communication port connection apparatus of a single processor according to the present invention, FIG. 2 is an interrupt processing flowchart of the DMA unit according to the present invention, and FIG. 3 is an interrupt processing flowchart of the SIO unit according to the present invention. 4 is a flowchart of a timeout of a processor according to the present invention.

제1도에서 알 수 있는 바와 같은 본 발명은, CPU(1)와 메모리부(2)와, 제1DMA(3)와, 제1 SIO(4)와, 제2 DMA(5)와 제2 SIO(6)와, 제1 멀티플렉싱 스위치부(7) 및, 제2 멀티플렉싱 스위치(8)로 구성된다.As can be seen from FIG. 1, the present invention includes a CPU 1, a memory unit 2, a first DMA 3, a first SIO 4, a second DMA 5, and a second SIO. (6), the first multiplexing switch section 7 and the second multiplexing switch 8.

CPU(1)는 시스템 전체의 메시지 송수신에 대한 프로토콜 처리를 제어한다. 메모리부(2)는 송수신 프로토콜 처리에 대한 프로그램과 전송될 메시지 및 수신되는 메시지를 저장한다. 제1, 제2DMA(3, 5)는 CPU(1)의 지시에 따라 메모리부(2)를 직접 억세스하여 메모리부(2)에 대해 송,수신 메시지를 입출력함으로써, 제1, 제2SIO(4, 6)에 의해 송수신되는 메시지를 전달한다. 제1, 제2 SIO(4, 6)는 CPU(1)의 제어에 따라 채널을 선택하여 제1, 제2 멀티플렉싱 스위치부(7, 8)를 통해 메시지를 송수신하는데, 제1, 제2 멀티플렉싱 스위치부(7, 8)를 통해 수신한 메시지를 제1, 제2 DMA(3, 5)에 출력하고, 제1, 제2 DMA(3, 5)로부터 인가되는 메시지를 제1, 제2 멀티플렉싱 스위치부(7, 8)를 통해 송신한다. 제1, 제2 멀티플렉싱 스위치부(7, 8)는 CPU(1)의 제어에 따라 스위칭되어 대국에 대한 송수신 포트를 접속하여 대국에 대해 송수신되는 메시지를 입출력한다.The CPU 1 controls protocol processing for message transmission and reception of the entire system. The memory unit 2 stores a program for transmitting and receiving protocol processing, a message to be transmitted, and a received message. The first and second DMAs 3 and 5 directly access the memory unit 2 according to the instruction of the CPU 1, and input and receive messages to and from the memory unit 2 to thereby output the first and second SIOs 4. , 6) transmits and receives messages. The first and second SIOs 4 and 6 select a channel under the control of the CPU 1 and transmit and receive a message through the first and second multiplexing switch units 7 and 8. The first and second multiplexing are performed. The message received through the switch unit 7, 8 is output to the first and second DMAs 3 and 5, and the message applied from the first and second DMAs 3 and 5 is first and second multiplexed. Transmission is performed via the switch units 7 and 8. The first and second multiplexing switch units 7 and 8 are switched under the control of the CPU 1 to connect the transmission / reception ports for the large stations to input and output messages transmitted to and received from the large stations.

이와 같은 기능을 갖도록 구성된 본 발명의 송수신 프로토콜에 대한 동작을 설명한다.An operation of the transmission and reception protocol of the present invention configured to have such a function will be described.

제4도에서 알 수 있는 바와 같이 최초 모든 포트가 비가용상태 상태에서 CPU(1)가 타임아웃신호를 발생시키면(스텝30) 해당 포트는 동작모드로 리셋(Reset)되고(스텝31) 소정시간 경과후 CPU(1)로부터 인가되는 제어신호에 따라 각 포트별 제1, 제2 DMA(3,5)의 전송동작 완료 플레그와 제1, 제2 SIO(4,6)의 수신완료플레그를 세트(Set) 상태로 설정한후(스텝32) 복귀(스텝33)된다. 이때 CPU(1)는 상대측에 메시지의 전송을 허락하는 메시지를 송신하는 경우, 해당 포트로의 제1 DMA(3) 또는 제2 DMA(5)의 전송동작이 중복되어 사용되지 않는가를 확인하기 위하여 제1 DMA(3) 또는 제2 DMA(5) 전송동작 완료 플레그가 세트되어 있음을 확인하고, 제1 SIO(4) 또는 제2 SIO(6)도 수신상태에 있지 않다는 것을 확인하기 위하여 수신완료 플레그의 세트(Set) 상태를 확인한후, 상대국 측으로 부터의 메시지를 수신하기 위하여 제1 멀티플렉싱 스위치부(7) 또는 제2 멀티플렉싱 스위치부(8)를 스위칭 시켜 제1 SIO(4) 또는 제2 SIO(6)의 수신채널과 그 채널과 연동되는 제1 DMA(3) 또는 제2 DMA(5)를 수신상태로 전환시켜 제1 SIO(4) 또는 제2 SIO(6)의 송신채널을 통해 메시지를 전송한다. 이때 CPU(1)는 제1 DMA(3) 또는 제2 DMA(5)의 전송완료 플레그를 리셋 상태로 형성시키고 해당 포트가 사용할 최대 통신허용 시간을 세트 시킨다.As can be seen in FIG. 4, when the CPU 1 generates a timeout signal when all ports are initially unavailable (step 30), the corresponding port is reset to the operation mode (step 31) and the predetermined time is reached. In accordance with the control signal applied from the CPU 1, the transfer operation completion flag of the first and second DMAs 3 and 5 for each port and the reception completion flag of the first and second SIOs 4 and 6 are set. After setting to (Set) state (step 32), the operation returns to the state (step 33). At this time, when the CPU 1 transmits a message allowing the message to be sent to the other party, the CPU 1 checks whether the transfer operation of the first DMA 3 or the second DMA 5 to the corresponding port is duplicated. Reception completion to confirm that the first DMA 3 or the second DMA 5 transfer operation completion flag is set, and to confirm that the first SIO 4 or the second SIO 6 is also not in the reception state. After checking the set state of the flag, the first multiplexing switch unit 7 or the second multiplexing switch unit 8 is switched to receive the message from the counterpart side, so that the first SIO 4 or the second SIO is switched. A message is transmitted through the transmission channel of the first SIO 4 or the second SIO 6 by switching the reception channel of (6) and the first DMA 3 or the second DMA 5 linked with the channel to a reception state. Send it. At this time, the CPU 1 sets the transfer completion flag of the first DMA 3 or the second DMA 5 to the reset state and sets the maximum communication allowable time to be used by the corresponding port.

이후 제1 멀티플렉싱 스위치부(7) 또는 제2 멀티플렉싱 스위치부(8)의 접점을 통해 제1 DMA(3) 또는 제2 DMA(5)와 제1 SIO(4) 또는 제2SIO(6)로부터 상대 시스템 측으로 메시지가 전송되고, 상대 시스템 측으로부터 메시지에 대응되는 메시지가 수신된다. 메시지의 수신이 완료되면 첨부된 도면 제2도에서 알 수 있는 바와 같이 제1 DMA(3) 또는 제2 DMA(5)는 전송을 완료하고 이를 알리는 인터럽트를 발생시킨다(스텝10). 인터럽트가 발생되면 제1 DMA(3) 또는 제2 MDA(5)가 정상적인 상태에서 발생한 인터럽트 인가를 확인하기 위해 제1 DMA(3) 또는 제2 MDA(5)가 송신모드 인가를 판단한다(스탭11).The first DMA 3 or the second DMA 5 and the first SIO 4 or the second SIO 6 are then contacted through the contacts of the first multiplexing switch unit 7 or the second multiplexing switch unit 8. The message is sent to the system side, and a message corresponding to the message is received from the counterpart system side. When the reception of the message is completed, as shown in FIG. 2, the first DMA 3 or the second DMA 5 completes the transmission and generates an interrupt for notifying it (step 10). When an interrupt is generated, it is determined whether the first DMA 3 or the second MDA 5 is in the transmission mode in order to confirm whether the interrupt occurs when the first DMA 3 or the second MDA 5 is in a normal state (step). 11).

상기 스텝11의 판단에서 송신모드가 아니면 비정상적인 인터럽트로 처리하여 제1 DMA(3) 또는 제2 MDA(5)는 비정상 인터럽트 발생을 통보하는 플레그를 세트하고 전송동작을 중지한다(스텝13). 이때 CPU(1)는 이에 대응한 처리 동작을 수행한다.If it is determined in step 11 that the transmission mode is not in the transmission mode, it is processed as an abnormal interrupt and the first DMA 3 or the second MDA 5 sets a flag for notifying occurrence of abnormal interrupt and stops the transmission operation (step 13). At this time, the CPU 1 performs a processing operation corresponding thereto.

만약 상기 스텝11의 판단에서 정상적인 송신모드이면 제1 DMA(3) 또는 제2 MDA(5)가 정상적으로 메시지를 송신하였다는 전송완료 플레그를 세트하고, 제1 SIO(4) 또는 제2 SIO(6)가 수신상태에 있음을 통보하기 위해 SIO 수신완료 플레그를 리셋하고 종료한후 송신버퍼를 갱신한다(스텝12). 이상태에서는 메시지가 대국측으로 정상적으로 전송되었고, 자국은 대국 측으로부터 설정된 소정시간내에 수신메세지가 도착되기를 기다린다. 대국측으로부터 송신된 메시지가 제1 SIO(4) 또는 제2 SIO(6)의 수신채널로 정상적으로 수신되다면 제1 SIO(4) 또는 제2 SIO(6)는 이를 CPU(1)로 통보하기 위하여 첨부된 도면 제3도에서 알 수 있는 바와 같이 SIO 인터럽트를 발생시킨다(스텝20). SIO의 인터럽트가 발생되면 송수신에 대한 에러가 발생되었는가의 여부를 판단하여(스텝21) 에러의 발생이면 발생된 에러에 대한 처리를 수행한후 에러 처리 카운터를 증가시키고(스텝 25) 종료하며 에러가 발생되지 않은 정상적인 수신으로 판단되면 메시지의 수신이 완료되었는가의 여부를 판단한다(스텝22). 수신이 완료되었으면 통신의 최대허용시간치로 설정된 타이머를 리셋시키고 SIO 수신완료 플레그를 세트한후 다음에 사용될 버퍼를 지정하고 종료한다(스텝23).If it is determined in step 11 that the transmission mode is normal, a transmission completion flag indicating that the first DMA 3 or the second MDA 5 has normally transmitted a message is set, and the first SIO 4 or the second SIO 6 is set. In order to notify that is in the reception state, the SIO reception completion flag is reset and terminated, and then the transmission buffer is updated (step 12). In this state, the message has been normally transmitted to the counterpart side, and the host waits for a reception message to arrive within a predetermined time set from the counterpart side. If the message transmitted from the station side is normally received in the reception channel of the first SIO 4 or the second SIO 6, the first SIO 4 or the second SIO 6 notifies the CPU 1 of this. As shown in FIG. 3, an SIO interrupt is generated (step 20). If an SIO interrupt occurs, it is determined whether or not an error for transmission / reception has occurred (step 21). If an error occurs, the error processing counter is incremented (step 25) and the error processing counter is terminated. If it is determined that normal reception has not occurred, it is determined whether the reception of the message has been completed (step 22). When the reception is completed, the timer set to the maximum allowable time value of the communication is reset, the SIO reception completion flag is set, the buffer to be used next is specified, and the process ends (step 23).

만약 수신이 완료되지 않고 에러, 예를 들어 CRC에러등이 발생하였으면 수신완료 플레그를 리셋시킨다음(스텝24) CPU(1)는 발생된 에러를 처리하는 카운터를 증가시킨다(스텝25).If the reception is not completed and an error, for example, a CRC error, etc. occurs, the reception completion flag is reset (step 24). Then, the CPU 1 increments a counter for handling the generated error (step 25).

만약 상대측으로부터 응답메세지를 기다릴 경우 최대대기 허용시간이 경과하여 메시지의 전송이 종료되면 제4도에서 알 수 있는 바와 같이 그 포트의 제1 SIO(4) 또는 제2 SIO(6)와 제1 DMA(3)또는 제2 DMA(5)를 다음 순번에 사용될 수 있도록 리셋시키고(스텝31) 제1 DMA(3) 또는 제2 DMA(5)의 전송동작완료 플레그를 세트하고 제1 SIO(4) 또는 제2 SIO(6)의 수신완료 플레그를 세트하여(스텝32) 다음 순번시 까지의 포트 자체를 초기화 시킨다.If the message waits for a response message from the other party and the transmission of the message is terminated because the maximum wait time has elapsed, as shown in FIG. 4, the first SIO 4 or the second SIO 6 and the first DMA of the port are shown. (3) Alternatively, the second DMA 5 is reset so that it can be used next time (step 31), and the transfer operation completion flag of the first DMA 3 or the second DMA 5 is set and the first SIO 4 is set. Alternatively, the reception completion flag of the second SIO 6 is set (step 32) to initialize the port itself until the next turn.

따라서 무작정 응답 메시지를 기대함으로써 발생되는 블록 현상 및 메시지의 교착상태를 방지한다.Therefore, the block phenomenon and deadlock of the message caused by expecting a random response message are prevented.

이상에서 설명한 바와 같이, 본 발명은 단일 프로세서 모듈이 복수개의 시스템과 통신하는 경우 통신포트의 수보다 적은 SIO나 DMA를 사용하여 원활한 통신포트의 운용을 도모하고, 시간관리 프로세서에 의한 제어로 선로상의 이상상태 발생으로 전송되는 메시지의 교착상태로부터 이탈시키며, 적은 SIO 및 DMA의 사용으로 시스템이 경량화, 소형화되어 공간활요에 유용하다.As described above, in the present invention, when a single processor module communicates with a plurality of systems, the operation of the communication port is facilitated by using SIO or DMA less than the number of communication ports. It is useful to save space because the system is light and small by using SIO and DMA.

Claims (4)

전자교환기 시스템의 통신방법에 있어서, 비가용 상태에 있는 모든 통신포트를 가용상태로 전환시키고 해당 포트가 사용할 최대통신 허용시간을 설정한 후 상기 해당 포트를 통해 메시지를 송수신하는 제1과정과, 상기 제1 과정 수행후 입출력 수단을 통해 상대측 시스템으로 메시지가 전송되고 상기 상대측 시스템으로부터 전송된 메시지에 대응되는 메시지의 수신이 완료되면 이를 통보하는 인터럽트를 발생하는 제2 과정과, 상기 제2과정 수행후 발생된 인터럽트가 정상적인 인터럽트 인지의 여부를 판단하기 위해 전송완료 플레그가 리셋되었는가를 검출하는 제3과정과, 상기 제3과정 수행후 대국측으로부터 메시지가 수신되면 입출력 수단은 제어 수단측에 이를 통보하기 위하여 인터럽트를 발생시키는 제4과정과, 상기 제4과정 수행후 인터럽트가 발생하면 상기 제1과정에서 설정된 최대통신 허용시간을 리셋시키는 제5과정 및, 상대측 시스템으로부터 상기 제1과정에서 설정된 최대 통신허용시간 내에 응답메세지의 수신이 없으면 선택된 해당포트를 초기화 시키는 제6과정을 포함하는 것을 특징으로 하는 복수의 시스템과 통신하는 단일 프로세서의 통신포트 제어방법.A communication method of an electronic switching system, comprising: a first process of switching all communication ports in an unavailable state to an available state, setting a maximum communication allowable time for the corresponding port, and transmitting and receiving a message through the corresponding port; A second process of generating an interrupt for notifying when a message is transmitted to the counterpart system through the input / output means and receiving the message corresponding to the message transmitted from the counterpart system after the first process is performed, and after performing the second process A third step of detecting whether the transmission completion flag is reset to determine whether or not the generated interrupt is a normal interrupt; and if the message is received from the power station after performing the third step, the input / output means notifies the control means. A fourth process for generating an interrupt for performing the A fifth process of resetting the maximum communication allowable time set in the first process when the first process occurs; and a sixth process of initializing the selected corresponding port if no response message is received within the maximum communication allowable time set in the first process from the counterpart system. Communication port control method of a single processor for communicating with a plurality of systems comprising a. 제1항에 있어서, 상기 제1과정은 입출력수단 및 멀티플렉싱 스위치수단의 송수신을 위한 해당 접점 포트를 동작모드로 리셋 시키는 단계와, 상기 단계 수행후 상기 해당 접점포트의 DMA수단 전송동작이 중복되지 않았는가를 확인하기 위하여 DMA 수단 전송동작완료 플레그를 세트하고 입출력수단을 통해 대국측으로 부터의 메시지를 수신하기 위해 수신완료 플레그를 세트시키는 단계를 포함하는 것을 특징으로 하는 복수의 시스템과 통신하는 단일 프로세서의 통신포트 제어방법.The method of claim 1, wherein the first process comprises the steps of: resetting the corresponding contact port for the transmission and reception of the input / output means and the multiplexing switch means to the operation mode, and whether the DMA means transfer operation of the corresponding contact port is not duplicated after performing the step. And setting a reception completion flag to receive a message from the power supply side via the input / output means to confirm the communication with a single processor. Port control method. 제1항에 있어서, 상기 제3과정에서 비정상적인 인터럽트의 발생으로 판단되면 DMA 수단은 비정상 인터럽트 발생을 통보하는 플레그를 세트하며 메인프로세서 수단은 이에 대응한 처리루틴을 수행하는 단계와, 정상적인 인터럽트의 발생으로 판단되면 정상적인 송신으로 판단하여 DMA 수단이 전송완료 플레그를 세트하고 입출력수단은 수신완료 플레그를 리셋한후 송신버퍼를 갱신하는 단계를 포함하는 것을 특징으로 하는 복수의 시스템과 통신하는 단일 프로세서의 통신포트 제어방법.The method of claim 1, wherein if it is determined that an abnormal interrupt has occurred in the third process, the DMA means sets a flag for notifying the occurrence of the abnormal interrupt, and the main processor means performs a processing routine corresponding thereto, and generates a normal interrupt. If it is determined that the normal transmission, the DMA means sets the transmission completion flag, and the input and output means for updating the transmission buffer after resetting the reception completion flag, the communication of a single processor to communicate with a plurality of systems Port control method. 전자교환기 시스템에 있어서, 메시지 송수신에 대한 프로토콜 처리를 제어하는 제어수단과; 송수신 메시지를 저장하는 저장수단과; 상기 제어수단의 제어에 따라 스위칭되어 대국에 대한 송수신포트를 접속하여 대국에 대해 송수신되는 메시지를 입출력하는 멀티플렉싱 스위치수단과; 상기 제어수단의 제어에 따라 선택한 채널을 경유하여 상기 멀티플렉싱 스위치수단에 대해 메시지를 송수신함으로써 상기 멀티플렉싱 스위치수단을 통해 상기 대국에 대해 메시지를 송수신하는 입출력수단과; 상기 제어수단의 지시에 따라 상기 저장수단을 직접 억세스하여 저장수단에 대해 송수신 메시지를 입출력함으로써 상기 저장수단과 입출력수단 사이에서 송수신 메시지를 전달하는 DMA 수단을 구비하는 것을 특징으로 하는 복수의 시스템과 통신하는 단일 프로세서의 통신포트 제어장치.An electronic exchange system comprising: control means for controlling protocol processing for message transmission and reception; Storage means for storing transmission and reception messages; Multiplexing switch means which is switched under the control of the control means and connects a transmission / reception port for the power station to input / output a message transmitted / received to the power station; Input / output means for transmitting and receiving a message to and from the large station through the multiplexing switch means by transmitting and receiving a message to and from the multiplexing switch means via a channel selected by the control means; And a DMA means for directly transmitting and receiving messages to and from the storage means by means of the control means to transmit and receive messages to and from the storage means and to transmit and receive messages between the storage means and the input / output means. Communication port control device of a single processor.
KR1019930030064A 1993-12-27 1993-12-27 Telecommunication part control system KR0143970B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019930030064A KR0143970B1 (en) 1993-12-27 1993-12-27 Telecommunication part control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019930030064A KR0143970B1 (en) 1993-12-27 1993-12-27 Telecommunication part control system

Publications (2)

Publication Number Publication Date
KR950022514A KR950022514A (en) 1995-07-28
KR0143970B1 true KR0143970B1 (en) 1998-08-01

Family

ID=19373081

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019930030064A KR0143970B1 (en) 1993-12-27 1993-12-27 Telecommunication part control system

Country Status (1)

Country Link
KR (1) KR0143970B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100995025B1 (en) * 2002-12-09 2010-11-19 엘지전자 주식회사 method for connecting communication port between server and client

Also Published As

Publication number Publication date
KR950022514A (en) 1995-07-28

Similar Documents

Publication Publication Date Title
US4750109A (en) Method and system for expediting multi-packet messages in a computer network
EP0493934B1 (en) Communications network
EP0254472B1 (en) Data flow control arrangement for local area network
EP0373161B1 (en) Switching arrangement and method
EP0472835B1 (en) Notification and verification of state changes in a data processing input/output system
US4516122A (en) Communication system with collision detection and forced collision
EP0491569A2 (en) Communication systems
US5511230A (en) Communication system between master system and multiple slave systems in time division mode where a next slave is serviced upon receipt of final acknowledgement
US4962378A (en) Multi-user serial bus system
KR0143970B1 (en) Telecommunication part control system
KR100525677B1 (en) Apparatus and method for duplication of communication control module
JPH0983556A (en) Communication network and detection of fault
CN113783805B (en) Transmission method and system of FC switching network
KR100229434B1 (en) Dual apparatus for controlling data communication
KR940007156B1 (en) Processor synchronization method for communication network
KR950010483B1 (en) The method transmitting a message for an electronic exchanger
KR0168919B1 (en) Method and apparatus of control of communication channel for optical transmission device
KR930002137B1 (en) Method for processing e-bus protocol
KR100214115B1 (en) The switching system capable of packet service
JPH1023046A (en) Poling type monitoring method
JPH04301945A (en) High efficiency multicast system
JPS63136857A (en) Communication control system in bus network
JPS5970044A (en) Device for controlling transmission
JPH1188235A (en) Route switching method, node and network system
JPH05233514A (en) Data transfer device

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20050330

Year of fee payment: 8

LAPS Lapse due to unpaid annual fee