KR930010294B1 - User program loading method - Google Patents
User program loading method Download PDFInfo
- Publication number
- KR930010294B1 KR930010294B1 KR1019900022886A KR900022886A KR930010294B1 KR 930010294 B1 KR930010294 B1 KR 930010294B1 KR 1019900022886 A KR1019900022886 A KR 1019900022886A KR 900022886 A KR900022886 A KR 900022886A KR 930010294 B1 KR930010294 B1 KR 930010294B1
- Authority
- KR
- South Korea
- Prior art keywords
- record
- debugger
- host computer
- loading
- loader
- Prior art date
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M3/00—Automatic or semi-automatic exchanges
- H04M3/42—Systems providing special services or facilities to subscribers
Abstract
Description
제1도는 본 발명이 적용되는 하드웨어 구성도.1 is a hardware configuration to which the present invention is applied.
제2도는 본 발명의 전체 흐름도.2 is an overall flow chart of the present invention.
제3도는 호스트 컴퓨터 로더의 레코드 전송 처리 흐름도.3 is a flowchart of a record transfer process of a host computer loader.
* 도면의 주요부분에 대한 부호의 설명* Explanation of symbols for main parts of the drawings
1 : 상위레벨 프로세서 2 : 하위레벨 프로세서1: high level processor 2: low level processor
3 : 신호케세지 프로세서 4 : 호스트 컴퓨터3: signal processor 4: host computer
5 : 메인 보드 6 : 하위레벨 보드5: main board 6: lower level board
7 : 모니터 8 : CPU7: monitor 8: CPU
9 : 디버거 10 : 주기억장치9: debugger 10: main memory
11 : 시리얼 포트 12 : 통신선11: serial port 12: communication line
13 : 호스트 컴퓨터의 시리얼 포트 14 : 로더13: serial port of the host computer 14: loader
15 : 화일 변환기15: file converter
본 발명은 전전자 교환기의 상위레벨 프로세서 및 하위레벨 프로세서의 보드에 탑재되어 동작되는 롬(ROM) 상주 모니터 디버거(이하, 디버거라 함)가 사용자 프로그램을 다운 로딩(down loading)하는 기능을 수행시키는 방법에 관한 것이다.The present invention allows a ROM resident monitor debugger (hereinafter referred to as a debugger) mounted and operated on a board of an upper level processor and a lower level processor of an electronic switch to perform a function of downloading a user program. It is about a method.
사용자가 호스트 컴퓨터(이하, 호스트라 함)로부터 RS-232C시리얼 통신선(이하, 통신선이라 함)을 통하여 전전자 교환기의 특정 보드로 자신의 프로그램을 로딩하기 위하여 본 기능을 이용하기 전에 호스트에서 생성된 실행 가능한 화일(a.out)을 통신선을 통하여 전송 가능한 형태의 화일로 변환해야 한다. 이 형태의 예로는 모토롤라사가 제안한 방법으로 시작 레코드, 내용 레코드 및 종료 레코드와 같이 3종류의 레코드로 구성되는 에스-레코드(S-Record) 화일 형태가 있는데 본 발명은, 이 에스-레코드 형태를 전송 화일 형태로서 채택하였다. 로딩 작업의 수행 과정은 호스트 컴퓨터의 화일 변환기가 전송 가능한 형태로 변환시킨 화일을 호스트의 로더가 로딩 레코드 단위로 송신하면, 이를 디버거에서 수신하여 다시금 실행가능한 화일의 구성 형태인 이진 코드 형태로 변환한 후, 주기억 장치에 수록함으로써 이루어진다.Created by the host before using this function to load his or her program from the host computer (hereinafter referred to as host) to the specific board of the electronic switchboard via the RS-232C serial communication line (hereinafter referred to as the communication line). The executable file (a.out) must be converted into a file that can be transmitted over the communication line. An example of this form is the S-Record file, which is a method proposed by Motorola, which consists of three types of records: a start record, a content record, and an end record. The present invention transmits this S-record form. Adopted as file format. In the loading process, when the host loader sends a file converted into a form that can be transferred by the file converter of the host computer in a loading record unit, the file is received by the debugger and converted into a binary code form, which is a form of an executable file again. This is done by recording in the main memory device.
종래에는 사용자 프로그램의 시험 및 실행을 수행하는데 있어서 보드로의 프로그램 다운 로딩을 위한 별도의 장비가 요구되어 디버깅시 번잡한 절차로 인해 능률상에 문제가 적지않았다.In the related art, in order to perform a test and execution of a user program, a separate device for downloading a program to a board is required, and there are not many problems in efficiency due to complicated procedures during debugging.
본 발명의 목적은 상기 종래 기술의 문제점을 해결하기 위해 안출된 것으로서, 전전자 교환기에 탑재된 디버거에서 통신선을 통하여 호스트로부터 사용자 프로그램을 로딩 받을 수 있도록 함으로써 실제 교환기 보드가 위치한 장소에 가지 않고서도 호스트의 모니터 상에서 다운로딩 기능을 수행할 수 있도록 구성된 사용자 프로그램 로딩방법을 제공하는데 있다.Disclosure of Invention An object of the present invention is to solve the problems of the prior art, by allowing a user program to be loaded from a host through a communication line in a debugger mounted on an electronic switchboard, without having to go to the place where the actual switchboard is located. The present invention provides a method for loading a user program configured to perform a downloading function on a monitor.
상기 목적을 달성하기 위하여 본 발명은 전전자 교환기에서 시스템 버스에 연결된 상위레벨 프로세서(MP)와, 시스템 버스에 연결된 하위레벨 프로세서(PP) 및 No.7 시그날 메세지를 처리하는 신호메세지 프로세서(SMHP)와, 상기 상위레벨 프로세서, 하위레벨 프로세서, 신호메세지 프로세서 각각에 RS-232C 통신선으로 연결된 호스트 컴퓨터로 구성되고 상기 각 프로세서 내에 디버거, 주기억장치 및 시리얼 통신포트를 두어 상기 호스트 컴퓨터로부터 사용자 프로그램을 다운 로딩받아 프로그램을 수행시키거나 디버깅하는 장치에 있어서, 사용자가 입력한 로딩 명령어를 받아 호스트 컴퓨터의 로더에게 다운 로딩의 시작을 알리고 로딩 레코드의 전송을 요구하는 제1단계, 호스트 컴퓨터의 로더에게 레코드를 처리하는 제2단계, 호스트 컴퓨터로부터 로딩 레코드가 수신되면 전송오류를 검사하여 전송오류가 발생하였을 경우 레코드의 재전송을 요구하는 제3단계, 레코드의 내용에 에러가 없으면 시작레코드와 종료레코드의 여부를 파악하여 종료레코드가 수신되었을 때 로딩의 종료를 호스트 컴퓨터의 로더에게 통보하고 모든 수행을 종료하는 제4단계로 이루어진 것을 특징으로 한다.In order to achieve the above object, the present invention provides a high-level processor (MP) connected to the system bus, a low-level processor (PP) connected to the system bus, and a signal message processor (SMHP) for processing No. 7 signal messages. And a host computer connected to each of the upper level processor, the lower level processor, and the signal message processor by an RS-232C communication line, and having a debugger, a main memory device, and a serial communication port in each processor to download a user program from the host computer. A device for executing or debugging a program, the method comprising: receiving a loading command input by a user, informing a loader of a host computer to start downloading and requesting transmission of a loading record; and processing the record to a loader of the host computer Step 2, Loading from the Host Computer The third step is to request the retransmission of the record if a transmission error occurs when the transmission error occurs. If the error is not found in the contents of the record, the start record and the end record are identified. And a fourth step of notifying the loader of the host computer and terminating all executions.
이하, 첨부된 도면을 참조하여 본 발명을 상세히 설명한다.Hereinafter, with reference to the accompanying drawings will be described in detail the present invention.
제1도는 본 발명이 적용되는 하드웨어 구성도로서 도면에서 (1)은 일반 음성 처리를 수행하는 상위레벨 프로세서(MP), (2)는 전화가입자 장치 및 연결 스위치를 제어하고 관리하는 하위레벨 프로세서(PP), (3)은 No.7 시그날 메세지를 처리하는 신호 메세지 프로세서(SMHP), (4)은 호스트 컴퓨터, (5)는 메인보드(MPMA), (6)은 하위레벨 보드(PPPA), (7)은 모니터(CRT), (8)은 중앙처리장치(CPU), (9)는 디버거, (10)은 주기억장치, (11)은 시리얼 포트, (12)는 통신선, (13)은 호스트 시리얼 포트, (14)는 로더, (15)는 화일변환기를 각각 나타낸다.1 is a hardware configuration diagram to which the present invention is applied, in which: (1) a high level processor (MP) for performing general voice processing, and (2) a low level processor for controlling and managing a subscriber unit and a connection switch ( PP), (3) signal message processor (SMHP) for processing No.7 signal messages, (4) host computer, (5) mainboard (MPMA), (6) lower level board (PPPA), (7) is a monitor (CRT), (8) is a central processing unit (CPU), (9) is a debugger, (10) is a main memory, (11) is a serial port, (12) is a communication line, (13) is The host serial port, 14 denotes a loader, and 15 denotes a file converter.
시리얼 포트(13), 로더(14) 및 화일 변환기(15)로 구성되는 호스트에 사용자의 모니터(7)가 연결되어 사용자가 프로그램의 다운 로딩 및 사용자 프로그램의 수행을 제어하게 된다. 상위레벨 프로세서(MP)(1)의 종류로는 정합 교환 프로세서(ASP), 번호 번역 프로세서(NTP), 내부 연결망 프로세서(INP), 입출력 제어 프로세서(MMP), 운용 및 유지보수 프로세서(OMP) 등과 같은 것들이 있다. 하위레벨 프로세서의 종류로는 시분할 스위치 프로세서(TSP), 공간 분할 스위치 프로세서(SSP), 음성 서비스 프로세서(GSP), 애널로그 가입자 정합 프로세서(ASIP), 애널로그 중계선 프로세서(ATIP), 디지탈 중계선 프로세서(DCIP), 디지틀 북미식(T1) 트렁크 프로세서(DTIP), 신호 서비스 프로세서(LSP), 라인계 유지보수 정합 프로세서(ASMP), 중앙 제어 유지보수 정합 프로세서(CCMP), 망동기 프로세서(NSP), 중앙 링크 정합 프로세서(CLIP), 연결망 유지보수 정합 프로세서(INMP), 링크 정합 프로세서(LLIP) 등과 같은 것들이 있다. 각각의 보드내에서 중앙처리장치(8)는 연산 및 시리얼 포트(11)의 제어 기능 그리고 주기억 장치(10)에 대한 참조 기능을 가지고, 시리얼 포트(11)를 통하여 문자 입.출력이 처리되며, 디버거(9)는 기동시 메인 보드(5)를 검증하고 사용자로 하여금 디버거 명령어를 사용하여 사용자 프로그램을 로딩시킨 후, 이의 수행 및 실행 오류 검색을 행할 수 있는 환경을 만들어 준다. 주기억장치는 사용자 프로그램 및 자료를 저장하는 기능을 갖는다. 호스트(4)내의 화일 변환기(15)는 실행화일 형태의 시용자 프로그램을 통신선(12)을 이용한 전송 가능형태의 화일로 변환시키며, 로더(14)는 화일 변환기(15)에 의하여 전송 가능 형태로 변환된 화일을 레코드 단위로 호스트의 시리얼 포트(13)에 기록함으로써 디버거(9)에게 자료를 송신하는 역할을 담당하며, 초당 9600 비트의 전송능력을 갖는 보드와 호스트(4)내의 시리얼 포트(13)가 통신선으로 상호 접속되게 된다. 제2도는 디버거가 사용자 프로그램을 다운 로딩하는 과정을 보여주는 흐름도이다.The monitor 7 of the user is connected to a host consisting of the serial port 13, the loader 14, and the file converter 15, so that the user can control the downloading of the program and the execution of the user program. Types of higher level processor (MP) 1 include matched exchange processor (ASP), number translation processor (NTP), internal network processor (INP), input / output control processor (MMP), operation and maintenance processor (OMP), etc. There are the same things. Types of lower level processors include Time Division Switch Processor (TSP), Space Division Switch Processor (SSP), Voice Service Processor (GSP), Analytics Subscriber Matching Processor (ASIP), Analytics Relay Line Processor (ATIP), Digital Relay 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 Such as link matching processor (CLIP), network maintenance matching processor (INMP), link matching processor (LLIP), and the like. In each board, the central processing unit 8 has arithmetic and control functions of the serial port 11 and a reference function for the main memory device 10, and character input / output is processed through the serial port 11, The debugger 9 verifies the main board 5 at startup and creates an environment in which the user can load the user program using debugger commands and then perform its execution and execution error search. The main memory has a function of storing user programs and data. The file converter 15 in the host 4 converts a user program in the form of an executable file into a file in a transferable form using the communication line 12, and the loader 14 in a transferable form by the file converter 15. It is responsible for transmitting data to the debugger 9 by recording the converted files in the serial port 13 of the host in record units, and having a transmission capacity of 9600 bits per second and the serial port 13 in the host 4. ) Are interconnected by a communication line. 2 is a flowchart showing a process of downloading a user program by the debugger.
디버거(9)가 사용자가 입력할 로딩 명령어를 입력받아, 이를 디버거(9)의 명령어 해석기가 해석하여 다운 로딩 기능을 구동시킴으로써 시작된다. 디버거(9)는 통신선으로 연결되어 동작되는 호스트(4)의 로더(14)에게 다운 로딩 기능의 시작을 알려주고(16), 호스트(4)의 로더(14)에게 로딩 레코드의 전송을 요구하면(17) 호스트(4)의 로더(14)에서 레코드 처리하여(17-1), 로더(14)가 전송화일을 오픈하여 레코드 단위로 송신한 내용, 즉 로딩 레코드가 수신되기를 바란다(18). 로딩 레코드가 수신되면(19), 레코드내의 전송 오류 검출을 위한 검색 부분을 조사하여 전송 오류가 발생하였는가를 검사하여(20), 전송 오류가 발생하였다면 수신한 레코드의 재전송을 호스트(4)의 로더(14)에게 요구하고(21), 로딩 레코드 수신 대기상태로 간다. 수신된 레코드의 내용이 자료 손상없이 수신되었다면, 수신된 레코드의 형태가 시작 레코드인가를 검사하여(22), 시작 레코드이면 디커버(9)의 로딩 기능을 제어하는 변수들을 초기화한 후(23), 새로운 레코드를 전송하도록 호스트(4)의 로더(14)에게 요구하고, 레코드 수신을 위한 대기상태로 들어간다. 수신된 레코드가 시작 레코드가 아니면, 종료 레코드인가를 검사하여(24), 종료 레코드일 경우 디버거(9)의 로딩 기능이 종료되었음을 호스트(4)의 로더(14)에게 알리어(25), 호스트(4)로부터 전전자 교환기 보드로의 프로그램 다운 로딩 기능을 끝마칠 수 있게 한다. 수신된 레코드가 시작 및 종료 레코드가 아니면, 수신된 레코드에 실려있는 자료를 실행 가능한 형태인 이진 코드 형태로 변환시킨 후(26), 레코드의 주소 부분이 가르키는 기억장소에 변환된 자료를 수록함(27)으로써 수신된 레코드의 내용을 보드의 주기억장치(10)에 다운 로딩한 결과가 된다. 상기한 바와같이 시작 및 종료 레코드는 로딩의 시작과 종료시에 한번씩만 전송되나 내용 레코드는 보드의 실제 기억 장소에 수록될 정도를 내포한 것으로써 다운 로딩되는 프로그램의 양에 따라 갯수가 달라지게 된다.The debugger 9 is started by receiving a loading command to be input by the user, interpreting it by the command interpreter of the debugger 9 to start the downloading function. The debugger 9 informs the loader 14 of the host 4, which is connected and operated by a communication line, to start the download function 16, and requests the loader 14 of the host 4 to transmit a loading record ( 17) Record processing is performed by the loader 14 of the host 4 (17-1), and the loader 14 opens the transmission file and transmits the content, that is, the loading record, in units of records (18). When a loading record is received (19), the search portion for detecting a transmission error in the record is examined to see if a transmission error has occurred (20). (14), the process goes to the waiting state for receiving a loading record. If the contents of the received record are received without data corruption, it is checked if the type of the received record is a start record (22), and if it is a start record, after initializing the variables controlling the loading function of the Discover 9 (23). It requests the loader 14 of the host 4 to transmit a new record, and enters the standby state for receiving the record. If the received record is not a start record, it is checked whether it is an end record (24), and if it is an end record, the loader 14 of the host 4 is informed that the loading function of the debugger 9 has been terminated (25). This completes the program download function from 4) to the electronic switchboard. If the received record is not a start or end record, the data contained in the received record is converted into an executable form of binary code (26), and then the converted data is stored in the storage pointed to by the address portion of the record. This results in downloading the contents of the received record to the main memory 10 of the board. As described above, the start and end records are transmitted only once at the beginning and the end of the loading, but the content records are included in the actual storage space of the board, and the number varies depending on the amount of programs downloaded.
제3도는 호스트의 로더가 수행하는 로딩용 레코드 전송 처리(17-1)에 관한 세부 흐름도이다.3 is a detailed flowchart of the loading record transfer process 17-1 performed by the host loader.
호스트(4)의 로더(14)는 디버거(9)로부터 로딩 레코드의 전송 또는 재전송을 요구하는 전송 제어 특수문자를 기다리다가(28) 전송 또는 재전송 요구를 인지하면(29), 수신된 요구가 레코드 전송요구인가를 검사하여(30) 만족하면 이미 화일 변환기에 의하여 변환된 전송화일의 레코드 1개를 읽어 전송 버퍼에 보관시키고(31), 전송 버퍼의 내용을 디버거(9)로 전송시킨다(32). 요구된 형태가 레코드 재전송이면 현재 버퍼에 보관되어 있는 레코드의 내용을 3번 연속 재요구하였는가를 검사하여(33), 아니면 동일 레코드에 대한 디버거(9)로부터의 재요구 회수가 3번 미만일 경우이므로 전송 버퍼에 저장되어 있는 레코드를 재전송함으로써 전에 발생되었던 전송 오류를 극복하도록 하며, 디버거(9)로부터 동일 레코드에 대하여 3번 연속하여 재전송이 요구되었다면 로딩 레코드내의 자료 또는 전송 경로 및 통신선 상에 회복 불가능한 오류가 발생한 것으로 간주하여 로딩 실패 처리를 하여(34) 로더(14)로 하여금 로딩 절차에서 빠져나가도록 한 후 종료한다.The loader 14 of the host 4 waits for a transfer control special character requesting the transfer or retransmission of the loading record from the debugger 9 (28) and if it recognizes the transfer or retransmission request (29), the received request is recorded. If it is satisfied that the transfer request is satisfied (30), it reads one record of the transfer file already converted by the file converter and stores it in the transfer buffer (31), and transfers the contents of the transfer buffer to the debugger (32). . If the requested form is a record retransmission, it is determined whether the content of the record currently stored in the buffer has been reclaimed three times consecutively (33), or if the number of re-requests from the debugger (9) for the same record is less than three By retransmitting the record stored in the transmission buffer, the transmission error that occurred before is overcome, and if retransmission is requested three times consecutively for the same record from the debugger 9, it is impossible to recover the data in the loading record or on the transmission path and communication line. It is assumed that an error has occurred and the loading failure process (34) causes the loader 14 to exit the loading procedure and then terminates.
이와 같은 기능을 구현함으로써 사용자가 프로그램을 주기억장치에 로딩하여 이를 수행시킬 수 있는 기반을 마련하여 줌으로써 디버거 명령어를 이용하여 디버깅하고자 하는 프로그램을 사용자가 직접 주기억 장치에 수록하는 불편함을 해소시키게 되어 프로그램 디버깅 능률을 향상시키는 효과가 있다.By implementing such a function, the user can load the program into the main memory device and prepare the basis to execute it, thereby eliminating the inconvenience that the user directly writes the program to be debugged using the debugger command in the main memory device. This has the effect of improving debugging efficiency.
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019900022886A KR930010294B1 (en) | 1990-12-31 | 1990-12-31 | User program loading method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1019900022886A KR930010294B1 (en) | 1990-12-31 | 1990-12-31 | User program loading method |
Publications (2)
Publication Number | Publication Date |
---|---|
KR920014111A KR920014111A (en) | 1992-07-30 |
KR930010294B1 true KR930010294B1 (en) | 1993-10-16 |
Family
ID=19309301
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1019900022886A KR930010294B1 (en) | 1990-12-31 | 1990-12-31 | User program loading method |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR930010294B1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100430422B1 (en) * | 2000-11-09 | 2004-05-04 | 엘지전자 주식회사 | Method for Synchronizing Overlapped Program Loading Data among Main Processors in Exchanging System |
-
1990
- 1990-12-31 KR KR1019900022886A patent/KR930010294B1/en not_active IP Right Cessation
Also Published As
Publication number | Publication date |
---|---|
KR920014111A (en) | 1992-07-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5630049A (en) | Method and apparatus for testing software on a computer network | |
KR950002709B1 (en) | Information transfer method and arragnement | |
US5715387A (en) | Method and system for loading and confirming correct operation of an application program in a target system | |
EP0217351A2 (en) | Communication control apparatus | |
JP2002510412A (en) | Data download process and device from server computer to client computer | |
US5896535A (en) | Method and system for testing computer system software | |
JP2709705B2 (en) | Program management method in multi-computer system | |
KR930010294B1 (en) | User program loading method | |
US6442587B1 (en) | Client/server system which automatically ensures the correct and exclusive supervision of data against faults | |
CN100472987C (en) | Communication system program fault detecting method | |
US7020600B2 (en) | Apparatus and method for improvement of communication between an emulator unit and a host device | |
KR0118994B1 (en) | The cross debugging method for parallel chill using communication line | |
KR920003279B1 (en) | Method for loading os & nos in data processing device | |
KR930010293B1 (en) | User program loading method | |
KR940000453B1 (en) | Low-hevel processor loading method in electronic exchange | |
JPH07306800A (en) | Debugging system | |
US20050033542A1 (en) | Debugger apparatus and debugging method | |
KR100462585B1 (en) | How to handle download information | |
KR920010410B1 (en) | Testing program management method | |
KR0151921B1 (en) | Cross debugging method in electronic switching system | |
JPH0749819A (en) | Communicating method of server/client system | |
JP2000076158A (en) | Application downloading resume method and system therefor | |
KR100208268B1 (en) | Method for outputing error information in a full-electronic exchange | |
KR20040011072A (en) | File update system and method | |
KR0154488B1 (en) | Method for dumping system package using pc in the full electronic switching system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
N231 | Notification of change of applicant | ||
E902 | Notification of reason for refusal | ||
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: 19980929 Year of fee payment: 6 |
|
LAPS | Lapse due to unpaid annual fee |