KR930007470B1 - Electronic exchange - Google Patents

Electronic exchange Download PDF

Info

Publication number
KR930007470B1
KR930007470B1 KR1019900022884A KR900022884A KR930007470B1 KR 930007470 B1 KR930007470 B1 KR 930007470B1 KR 1019900022884 A KR1019900022884 A KR 1019900022884A KR 900022884 A KR900022884 A KR 900022884A KR 930007470 B1 KR930007470 B1 KR 930007470B1
Authority
KR
South Korea
Prior art keywords
debugger
character
command
input
processor
Prior art date
Application number
KR1019900022884A
Other languages
Korean (ko)
Other versions
KR920014109A (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 KR1019900022884A priority Critical patent/KR930007470B1/en
Publication of KR920014109A publication Critical patent/KR920014109A/en
Application granted granted Critical
Publication of KR930007470B1 publication Critical patent/KR930007470B1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M3/00Automatic or semi-automatic exchanges
    • H04M3/42Systems providing special services or facilities to subscribers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M3/00Automatic or semi-automatic exchanges
    • H04M3/22Arrangements for supervision, monitoring or testing

Abstract

The program enables operators to terminate a running program at any time, and execute several debugging commands in the multi program running state, at the on-line remote sites. The operating principle comprises: an input character is examined whether a special character which is assigned as a character to re-prompt the debugging monitor. If not, check whether it is a terminating character, and them, terminates an interrupt process. This debugging monitor is useful in the multiprocessor based ESS (electronic switching system) for the effective control and maintenance.

Description

전전자 교환기의 롬(ROM) 상주 모니터 디버거 명령어 해석기의 온라인 방식 구동방법Online operation of ROM resident monitor debugger command interpreter of electronic changer

제1도는 본 발명이 적용되는 하드웨어의 구성도.1 is a block diagram of hardware to which the present invention is applied.

제2도는 종래의 롬(ROM) 상주 모니터의 흐름도.2 is a flowchart of a conventional ROM resident monitor.

제3도는 본 발명이 적용된 롬(ROM) 상주 모니터의 흐름도.3 is a flowchart of a ROM resident monitor to which the present invention is applied.

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

1 : 상위레벨 프로세서(MP) 2 : 하위레벨 프로세서1: high level processor (MP) 2: low level processor

3 : 신호메세지 프로세서(SMHP) 4 : 메인보드(MPMA)3: Signal Message Processor (SMHP) 4: Main Board (MPMA)

5 : 하위레벨보드(PPPA) 6 : CPU5: Low Level Board (PPPA) 6: CPU

7 : 다기능제어장치(MFP) 8 : 디버거7: MFP 8: Debugger

9 : 주기억장치 10 : 모니터9: Main memory 10: Monitor

본 발명은 전전자 교환기의 상위레벨 프로세서 및 하위레벨 프로세서의 보드에 탑재되어 동작되는 롬(ROM) 상주 모니터 디버거(이하, 디버거라 함)가 자신의 명령어를 받아 들여 수행시키는 방법에 관한 것이다.The present invention relates to a method in which a ROM resident monitor debugger (hereinafter referred to as a debugger) mounted on and operated by a board of a high-level processor and a low-level processor of an electronic switchgear receives and executes its own instructions.

각 보드에 탑재되는 디버거는 기동시 보드의 기능을 검증하고 사용자로 하여금 디버거 명령어를 사용하여 주기억장치로 사용자 프로그램을 로딩시키거나 사용자가 직접 프로그램을 주기억장치내에 입력시킨 후, 사용자 프로그램의 수행 및 실행 오류 검색을 행할 수 있는 환경을 만들어 준다.The debugger mounted on each board verifies the function of the board at startup and allows the user to load the user program into the main memory using debugger commands, or the user directly enters the program into the main memory, and then executes and executes the user program. Create an environment where you can search for errors.

종래에는 이 형태로써 폴링 방식으로 구동되는 명령어 해석기를 가지는 디버거의 명령어 수행 제어는 현재 실행중인 디버거 명령어에 대한 처리 작업이 완료된 다음에 새로운 디버거 명령어를 받아들일 준비를 갖추는 방식으로 구성되었다. 폴링 방식을 사용하는 경우 사용자가 디버거 명령어를 사용하여 사용자 프로그램을 일단 수행시키고 나면, 사용자 프로그램의 수행점이 디버거 명령어를 사용하여 이미 지정한 수행 중지점(breakpoint)에 이르기 전이거나 사용자 프로그램의 수행이 종료되기 전의 상태, 즉 사용자 프로그램이 수행중인 상태에서는 기계적으로 구성된 재시동 스위치(reset button)를 누르는 방법 이외에 디버거 명령어를 입력시키거나 수행중인 사용자 프로그램을 중지시킬 수 있는 방법이 없다.Conventionally, the instruction execution control of a debugger having a command interpreter driven in a polling manner in this form has been configured in such a manner that it is ready to accept a new debugger instruction after the processing for the currently executing debugger instruction is completed. When using the polling method, once the user has executed a user program using the debugger command, the execution of the user program has reached the end of the execution breakpoint already specified using the debugger command or the execution of the user program is terminated. In the former state, that is, while the user program is running, there is no way to input a debugger command or stop the running user program except by pressing a mechanically configured reset button.

따라서, 본 발명의 목적은 상기 종래기술의 문제점을 해결하기 위해 안출된 것으로서 전전자 교환기에 탑재된 디버거의 문자 입력 방식을 인터럽트 방식으로 변경시키고, 이에 따라 명령어 입력 사항의 인지 및 명령어 해석기 구동 방법을 변경함으로써 디버거의 한 명령어가 수행되고 있는 상태에서도 또 다른 디버거 명령어를 받아 들여 수행시키는 것을 가능하도록 하는 디버거 명령어 해석기의 온라인 방식 구동 방법을 제공하는데 있다. 즉, 사용자 프로그램이 무한하게 수행되는 프로그램이라 할지라도 이의 수행이 종료되기를 기다리지 않고, 사용자 프로그램의 수행중에 사용자가 디버거 명령어를 입력하여 사용자 프로그램의 수행을 제어함으로써 디버깅 작업을 효율적으로 수행할 수 있는 환경을 만들어주기 위함이다. 또한, 사용자 프로그램의 오동작을 발견하고 수행을 중지하고자 할 경우에도 멀리 떨어진 보드이 재시동 스위치를 누르지 않고 사용자가 약정된 특수 문자를 입력함으로써 간단히 처리되도록 하기도 한다.Accordingly, an object of the present invention is to solve the problems of the prior art, and to change the character input method of the debugger mounted in the electronic switchboard to the interrupt method, thereby recognizing the command input items and driving the command interpreter. The present invention provides an online method of operating a debugger command interpreter that enables a debugger command interpreter to accept and execute another debugger command even when one command of the debugger is being executed. In other words, even if the user program is infinitely executed, the user can input the debugger command and control the execution of the user program during execution of the user program without waiting for its execution to be completed. To make In addition, when a user program detects a malfunction of the program and wants to stop the execution, the distant board can be simply processed by the user inputting the special character promised without pressing the restart switch.

상기 목적을 달성하기 위하여 본 발명은 이하 첨부된 도면을 참조하여 본 발명의 일실시예를 상세히 설명한다. 제1도는 본 발명이 적용되는 하드웨어 구성도로서, 도면에서 (1)은 상위레벨 프로세서(MP), (2)는 하위레벨 프로세서, (3)은 NO.7 시그날 메시지를 처리하는 신호메세지 프로세서(SMHP), (4)는 메인보드(MPMA), (5)는 하위레벨보드(PPPA), (6)은 CPU, (7)은 다기능제어장치(Multi-Function Peripheral;이하, MFP라 함), (8)은 디버거, (9)는 주기억장치, (10)은 모니터를 각각 나타낸다.In order to achieve the above object, the present invention will be described in detail with reference to the accompanying drawings. 1 is a hardware configuration diagram to which the present invention is applied. In the drawing, (1) is a high level processor (MP), (2) is a low level processor, and (3) is a signal message processor for processing a NO.7 signal message. SMHP), (4) Main Board (MPMA), (5) Lower Level Board (PPPA), (6) CPU, (7) Multi-Function Peripheral (hereinafter referred to as MFP), 8 denotes a debugger, 9 denotes a main memory, and 10 denotes a monitor.

상위레벨 프로세서(MP)(1)의 종류로는 정합 교환 프로세서(ASP), 번호번역 프로세서(NTP), 내부 연결망 프로세서(INP), 입출력제어 프로세서(MMP), 운용 및 유지보수 프로세서(OMP)등과 같은 것들이 있다. 하위레벨 프로세서(2)의 종류로는 시분할 스위치 프로세서(TSP), 공간 분할 스위치 프로세서(SSP), 음성 서비스 프로세서(GSP), 애널로그 가입자 정합 프로세서(ASIP), 애널로그 중계선 프로세서(ATIP), 디지틀 중계선 프로세서(DCIP), 디지틀 북미식(T1) 트렁크 프로세서(DTIP), 신호 서비스 프로세서(LSP), 라인계 유지보수 정합 프로세서(ASMP), 중앙 제어 유지보수 정합 프로세서(CCMP), 망동기 프로세서(NSP), 중앙 링크 정합 프로세서(CLIP), 연결망 유지보수 정합 프로세서(INMP), 링크 정합 프로세서(LLIP)등과 같은 것들이 있다. 각각의 보드(1,2,3)내에서 CPU(6)는 연산 및 MFP(7)의 제어 기능 그리고 주기억장치에 대한 참조 기능을 가지며, MFP(7)는 보드의 문자 입·출력 및 인터럽트 기동 유·무를 결정하는 기능을 갖는다. 주기억장치(9)의 용도는 사용자 프로그램 및 자료를 저장하는 기능을 갖는다.The upper level processor (MP) 1 includes a matching exchange processor (ASP), a number translation processor (NTP), an internal network processor (INP), an input / output control processor (MMP), an operation and maintenance processor (OMP), and the like. There are the same things. The low-level processor 2 includes time division switch processor (TSP), space division switch processor (SSP), voice service processor (GSP), analog subscriber matching processor (ASIP), analog relay network processor (ATIP), and digital. Trunk Line Processor (DCIP), Digital North American (T1) Trunk Processor (DTIP), Signal Service Processor (LSP), Line System Maintenance Matching Processor (ASMP), Central Control Maintenance Matching Processor (CCMP), Synchronous Processor (NSP) ), Central link matching processor (CLIP), network maintenance matching processor (INMP), and link matching processor (LLIP). In each board 1, 2, 3, the CPU 6 has arithmetic and control functions of the MFP 7, and a reference function for the main memory, and the MFP 7 has board input / output and interrupt activation. Has the function of determining the presence or absence. The use of the main memory 9 has a function of storing user programs and data.

제2도는 종래기술인 폴링 방식을 이용한 디버거의 흐름도이다. 보드에 전원이 공급되면 자동으로 디버거(8)가 동작되어 중앙처리장치(6)의 기능을 검사하여(11), 비정상이면 디버거(8)의 기동을 중지한다. 중앙처리장치(6)의 상태가 정상이면 주기억장치(8)의 읽기·쓰기 기능 검사와 아울러 주기억장치(9) 전체의 내용을 지운다(12). 이후 MFP(7)를 폴링 방식으로 문자 입·출력을 하도록 초기화하고(13), 디버거(8)의 실행 데이타 및 수행환경에 대한 초기화를 행한 후(14), 사용자가 디버거(8) 명령어를 입력하기를 기다리다가(15) 완전한 문장 형태의 디버거(8) 명령어가 입력되면 이를 감지하여(16), 입력된 디버거(8) 명령어에 해당하는 디버거(8)의 기능이 수행될 수 있도록 디버거(8) 명령어 해석기를 구동시킨다(17). 사용자가 입력한 디버거(8) 명령어의 수행이 완전이 종료된 후, 디버거(8)는 다음 명령어를 받아들일 준비를 갖추고 다시금 디버거(8) 명령어 입력 대기 상태로 가게된다. 상기의 과정에서 볼 수 있듯이 사용자가 입력한 명령어의 수행이 종료되기 이전의 상태, 즉, 디버거(8) 명령어가 수행중인 상태에서 또 다른 명령어를 입력하여 수행시킬 수 없는 불편이 있다.2 is a flowchart of a debugger using a conventional polling scheme. When power is supplied to the board, the debugger 8 is automatically operated to check the function of the central processing unit 6 (11). If abnormal, the start of the debugger 8 is stopped. If the state of the central processing unit 6 is normal, the read / write function of the main memory 8 is checked and the contents of the main memory 9 are erased (12). Thereafter, the MFP 7 is initialized to perform character input / output in a polling manner (13), the initialization of the execution data of the debugger 8 and the execution environment (14), and the user inputs a debugger (8) command. While waiting (15) for a full sentence debugger (8) command is input (16), the debugger (8) to perform the function of the debugger (8) corresponding to the input debugger (8) command is performed ) Drive the command interpreter (17). After the execution of the user input debugger 8 command is completed, the debugger 8 is ready to accept the next command and goes back to the debugger 8 command input state. As can be seen in the above process, it is inconvenient to input another command in a state before the execution of the command input by the user is terminated, that is, the debugger 8 command is being executed.

제3도는 본 발명이 적용된 디버거(8)의 흐름도로써 종래기술의 문제점을 보완하여 디버거(8) 명령어 해석기의 구동을 온라인화한 것을 보여 준다.3 is a flowchart of the debugger 8 to which the present invention is applied, which shows that the operation of the debugger 8 command interpreter is brought online by supplementing the problems of the prior art.

중앙처리장치의 기능을 검사하여(31) 비정상이면 디버거(8)의 기동을 중지시키고, 정상이면 주기억장치를 초기화하고(32), 인터럽트를 이용하여 문자 입력을 수행하는 방식으로 MFP(7)의 기능을 초기화한다(33). 그다음 디버거(8)의 환경을 초기화하고(34), 사용자가 문자를 입력하기를 기다리는 상태로 들어간다(35). 이때, 한 문자가 입력되면 문자 입력 인터럽트가 발생하여 인터럽트 처리 루틴이 기동되고, 문자 입력 인터럽트 처리 루틴의 수행을 마친 후에는 문자가 입력되었을 당시의 실행점(execution point)으로 되돌아 오게 된다. 입력문자가 발생되면 디버거는 이를 인지하여(36), 입력된 문자가 디버거(8)의 재시동을 요구하는 특수 문자인가를 검사하여(37), 재시동 요구 문자이면 재시동을 위한 사항을 처리하고(38), MFP(7) 초기화 단계(33)로 분기하여 디버거(8)를 재시동시킨다. 즉, 사용자가 어떤 디버거(9) 명령어를 입력하여 이의 기능을 개시시킨 후, 디버거(8) 명령어의 기능을 수행하는 중에 강제적으로 이의 수행을 해지시킬 수 있는 기능을 갖게 된다. 입력된 문자가 재시동을 요구하는 문자가 아니면 명령어 라인의 종료를 나타내는 문자인지를 판별하여(39), 종료 문자가 아니면 디버거(8) 명령어 라인을 보관하는 영역에 입력된 문자를 보관시킨후(40), 문자 입력 인터럽트 처리 기능을 종료시킨다(41). 만약 명령어 종료를 나타내는 문자가 입력되었으면, 기 입력된 문자들을 보관하고 있는 영역을 디버거(8) 명령어 해석기에게 통보하여 명령어 해석 및 입력된 명령어에 맞는 기능을 실행하도록 한다(42). 입력된 명령어의 기능 수행이 종료되면 역시 문자 입력 인터럽트 처리 기능을 종료시킨다. 이 때 수행점은 명령어 종료 문자가 입력되었던 시점으로 되돌아가게 된다.The function of the central processing unit is checked (31). If abnormal, the start of the debugger 8 is stopped, if normal, the main memory is initialized (32), and the character input is performed by using an interrupt. Initialize the function (33). The environment of the debugger 8 is then initialized (34) and enters a state waiting for the user to enter text (35). At this time, when one character is inputted, a character input interrupt is generated to start the interrupt processing routine, and after the character input interrupt processing routine is completed, the character input interrupt is returned to the execution point at the time when the character is inputted. When an input character is generated, the debugger recognizes it (36), checks whether the input character is a special character requiring restart of the debugger 8 (37), and if it is a restart request character, processes the matter for restart (38). ), Branch to MFP 7 initialization step 33 and restart debugger 8. That is, after the user inputs a certain debugger 9 command to start its function, it has a function of forcibly canceling its execution while performing the function of the debugger 8 command. If the input character is not a character requiring a restart, it is determined whether the character indicates the end of the command line (39), and if it is not the end character, the debugger (8) keeps the input character in an area for storing the command line (40). The character input interrupt processing function is terminated (41). If a character indicating the end of the command is input, the debugger 8 command interpreter is notified of the area in which the previously entered letters are stored to execute the command interpretation and the function corresponding to the input command (42). When the function execution of the input command ends, the character input interrupt processing function is also terminated. The execution point then returns to the point where the command termination character was entered.

따라서, 상기와 같은 처리절차로 이루어진 본 발명은 사용자가 프로그램을 주기억장치에 로딩하여, 프로그램을 수행시키는 도중에도 프로그램의 실행을 제어하거나 또는 실행 상태를 확인하는 디버거 명령어를 입력하여 수행시킬 수 있게 되어 디버거의 편리함 및 능률 제고를 유도할 수 있는 적용효과가 있다.Accordingly, the present invention made up of the above-described processing procedure enables the user to load the program into the main memory device and to execute the program by inputting a debugger command for controlling the execution of the program or checking the execution status even while executing the program. There is an application effect that can increase the convenience and efficiency of the debugger.

Claims (1)

시스템 버스에 연결된 상위레벨 프로세서(MP)와, 시스템 버스에 상기 상위레벨 프로세서(1)와 병렬적으로 연결된 하위레벨 프로세서(2) 및 신호메세지 프로세서(3)로 구성되고 상기 각 프로세서(1,2,3)는 CPU(6)와 상기 CPU(6)에 연결된 다기능제어장치(MFP)(7), 디버거(8) 및 주기억장치(9)로 구성되어 롬(ROM) 상주 모니터 디버거를 이용하여 디버깅을 행하는 전자교환기에 있어서, 문자 입력을 인터럽트 방식으로 운영하면서 디버거(8) 명령어 문자가 입력되어 문자 입력 인터럽트가 발생되기를 기다리는 제1단계; 재시동을 요구하는 특수 문자를 두어 기계적으로 마련된 재시동 스위치를 누르지 않고 사용자가 모니터(10)에서 보드의 디버거(8)를 재시동시키는 제2단계; 명령어 종료 문자가 입력될 때 까지 입력되는 문자를 보관하는 제3단계; 명령어 종료 문자가 입력된 후 디버거(8) 명령어 해석기를 구동시키고, 이의 종료 부분을 처리하는 제4단계로 이루어져 사용자 프로그램의 수행 및 실행 오류 검색을 행하는 것을 특징으로 하는 전전자 교환기의 ROM 상주 모니터 디버거 명령어 해석기의 온라인방식 구동 방법.A high level processor (MP) connected to a system bus, a low level processor (2) and a signal message processor (3) connected in parallel with the high level processor (1) to a system bus, wherein each of the processors (1, 2) 3 is composed of a CPU 6, a multi-function control unit (MFP) (7), a debugger (8) and a main memory (9) connected to the CPU (6) debugging using a ROM-resident monitor debugger An electronic switch for performing a step, comprising: a first step of operating a character input in an interrupt manner and waiting for a character input interrupt to be generated by inputting a debugger (8) command character; A second step of the user restarting the debugger 8 of the board in the monitor 10 without pressing a restart switch mechanically provided by placing a special character requesting restart; Storing a character to be input until a command termination character is input; After the command termination character is input, the debugger (8) command interpreter is driven, and the fourth step of processing the termination part thereof is executed. The ROM resident monitor debugger of the electronic switchboard is characterized in that a user program execution and execution error search is performed. How to run the command interpreter online.
KR1019900022884A 1990-12-31 1990-12-31 Electronic exchange KR930007470B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019900022884A KR930007470B1 (en) 1990-12-31 1990-12-31 Electronic exchange

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019900022884A KR930007470B1 (en) 1990-12-31 1990-12-31 Electronic exchange

Publications (2)

Publication Number Publication Date
KR920014109A KR920014109A (en) 1992-07-30
KR930007470B1 true KR930007470B1 (en) 1993-08-11

Family

ID=19309299

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019900022884A KR930007470B1 (en) 1990-12-31 1990-12-31 Electronic exchange

Country Status (1)

Country Link
KR (1) KR930007470B1 (en)

Also Published As

Publication number Publication date
KR920014109A (en) 1992-07-30

Similar Documents

Publication Publication Date Title
KR930007470B1 (en) Electronic exchange
EP0335990B1 (en) Processor-processor synchronization
JPH0410081B2 (en)
KR950010489B1 (en) The method extending debuging orders for electronic exchanger
KR100214125B1 (en) Function parameter tracking method in full electronic switching system
JPH07306800A (en) Debugging system
KR940007827B1 (en) Method of matching between user program and real time os
KR100200712B1 (en) Apparatus for program debugging of no-target system
KR100513027B1 (en) How to Implement Man Machine Language
KR950011476B1 (en) An electronic exchager
KR900015007A (en) Transmission Control Method in Microprocessor System and Microprocessor System
KR100538282B1 (en) Method for debugging realtime parallel program using check point
KR920003909B1 (en) Debugging supporting circuit
JPH02311903A (en) Programmable controller
JP2817473B2 (en) Debug system
JP2659366B2 (en) Debugging method and device
KR970049174A (en) PLC (PLC)
JPH0695910A (en) Interactive debugging control system for abnormality processing
KR100576006B1 (en) Efficient online debugging processing of real-time operating system and process scheduling method for it
JPS59153248A (en) Debugging device
JPH03175539A (en) Debugging microprocessor
JPS61267137A (en) System for controlling interrupting action
KR920022762A (en) How to monitor the operation status of all electronic switch operating commands
JPH05342021A (en) Multitask computer
JPH01295337A (en) Monitor routine control shift system

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: 20070730

Year of fee payment: 15

LAPS Lapse due to unpaid annual fee