KR20040056460A - Program installation method in switching system - Google Patents

Program installation method in switching system Download PDF

Info

Publication number
KR20040056460A
KR20040056460A KR1020020082753A KR20020082753A KR20040056460A KR 20040056460 A KR20040056460 A KR 20040056460A KR 1020020082753 A KR1020020082753 A KR 1020020082753A KR 20020082753 A KR20020082753 A KR 20020082753A KR 20040056460 A KR20040056460 A KR 20040056460A
Authority
KR
South Korea
Prior art keywords
program
storage unit
program code
stored
version
Prior art date
Application number
KR1020020082753A
Other languages
Korean (ko)
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 KR1020020082753A priority Critical patent/KR20040056460A/en
Publication of KR20040056460A publication Critical patent/KR20040056460A/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M3/00Automatic or semi-automatic exchanges
    • H04M3/22Arrangements for supervision, monitoring or testing
    • H04M3/24Arrangements for supervision, monitoring or testing with provision for checking the normal operation
    • H04M3/241Arrangements for supervision, monitoring or testing with provision for checking the normal operation for stored program controlled exchanges
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M2203/00Aspects of automatic or semi-automatic exchanges
    • H04M2203/05Aspects of automatic or semi-automatic exchanges related to OAM&P

Abstract

PURPOSE: A program installing method in a switching system is provided to prevent stoppage of operation of a system caused by replacement or update of a program by separately storing a program code in a temporary storing and a permanent storing unit. CONSTITUTION: When a hardware is initialized(S20), each lower element checks whether a program code received from a main controller has been stored in a temporary storing unit(S21). If the program has been stored in the temporary storing unit, the program code stored in the temporary storing unit in a permanent storing unit(S22) and then the program code stored in the temporary storing unit is deleted(S23).

Description

교환기 시스템에서의 프로그램 설치 방법{PROGRAM INSTALLATION METHOD IN SWITCHING SYSTEM}PROGRAM INSTALLATION METHOD IN SWITCHING SYSTEM

본 발명은 교환기 시스템에 관한 것으로, 특히 교환기 시스템의 하위장치에 설치된 프로그램을 교체 또는 갱신하기 위하여 하위장치의 하드웨어를 초기화 할 때, IPC(Inter Processor Communication)를 통해 시스템의 주제어부에서 그 하위장치로 프로그램 코드를 전송하는 경우에 있어서, 하위장치로 전송된 프로그램 코드에 대해 오류 검사를 한 후 이를 임시저장부와 영구저장부로 구분하여 저장함으로써, 프로그램의 교체 또는 갱신으로 인한 시스템의 운행중단을 방지함과 아울러, 프로그램 코드의 내려받기 과정 중 하위장치에서 발생하는 오류를 방지하는 교환기 시스템에서의 프로그램 설치 방법에 관한 것이다.The present invention relates to an exchange system, in particular, when initializing the hardware of a sub-device to replace or update a program installed in a sub-unit of the exchange system, the main controller of the system from the main controller to the sub-unit through IPC (Inter Processor Communication). In the case of transmitting the program code, after checking the program code transmitted to the subordinate device, the program code is divided into temporary storage and permanent storage to prevent interruption of the system due to replacement or update of the program. In addition, the present invention relates to a program installation method in an exchange system that prevents an error occurring in a lower device during a process of downloading a program code.

일반적인 교환기 시스템에서, 가입자 회선부는 외부의 다양한 물리적 신호선과 연결되어 다양한 망 접속 기능을 수행하고, 교환부는 상기 가입자 회선부를 통해 입력된 외부 신호를 스위칭하며, 주 제어부는 시스템의 전반적인 운용을 관리 및 감독한다.In a typical switchboard system, the subscriber line section is connected to various external physical signal lines to perform various network access functions, the switching section switches external signals inputted through the subscriber line section, and the main controller manages and supervises the overall operation of the system. do.

그리고, 교환기 시스템의 각 구성 장치는 독립적인 프로세서를 이용하여 각기 독립적인 기능을 수행하고, 이들 각 구성 장치를 제어하기 위한 프로세서는 이에 적합한 운영체제, 응용 소프트웨어, 펌웨어(Firmware) 등이 탑재되어 운용된다.In addition, each component of the switch system performs independent functions using an independent processor, and a processor for controlling each of the components is equipped with an operating system, application software, firmware, and the like suitable for this purpose. .

교환기 시스템은 상당히 멀리 떨어진 여러 곳에 복잡한 망 형태로 구성되어 있으며, 이런 교환기 시스템의 각 장치를 구동시키는 여러 운영체제, 응용 소프트웨어, 펌웨어 등이 새로운 기능 추가 및 기능 보완을 목적으로 교체 또는 갱신되어야 할 때, 시스템 운영자 또는 기술자는 각 장치에 설치된 프로그램을 교체하거나 갱신하기 위하여 두 가지 방식을 사용하고 있다.The exchanger system consists of complex networks in many remote locations, and when the various operating systems, application software, and firmware that drives each device in such an exchanger system need to be replaced or updated for the purpose of adding new functions and supplementing the functions, System operators or technicians use two methods to replace or update programs installed on each device.

하나는, 운용 중인 하위장치를 시스템에서 분리시켜 해당 장치의 프로그램이 저장되어 있는 저장부를 교체하거나, 그 저장부에 새로운 프로그램을 덧씌우는 방식이다.One method is to separate a subordinate device in operation from the system and replace a storage unit in which a program of the corresponding device is stored, or overwrite a new program in the storage unit.

그리고, 두번째는 시스템 운용 중에 주 제어부와 하위장치 사이에 통신을 통해 주 제어부에서 하위장치로 프로그램을 전송하여, 하위장치의 저장부에 저장된 프로그램을 새로운 프로그램으로 교체한 후 재시동하는 방식이다.In the second operation, a program is transferred from the main control unit to the lower device through communication between the main control unit and the lower device during system operation, and the program stored in the storage unit of the lower device is replaced with a new program and then restarted.

상기에서와 같이 종래의 기술에 있어서, 교환기 시스템 및 그 하위장치에 설치된 프로그램을 교체하거나 갱신할 때, 프로그램이 설치된 하위장치를 분리하는 경우 시스템의 일부 기능이 상당 시간 동안 작동하지 못하거나 프로그램 교체에 시간차가 발생하여 시스템 내부적으로 오동작이 발생하는 것은 물론, 모든 하위장치의 프로그램을 교체하기 위해서는 많은 인력과 시간이 소모되는 문제점이 있었다.In the prior art, as described above, when replacing or updating a program installed in the exchanger system and its sub-units, some functions of the system may not work for a considerable time or may fail to replace the program when the sub-installer is installed. There was a problem in that a time lag caused a malfunction in the system, as well as a lot of manpower and time to replace the programs of all the sub-devices.

또한, 시스템 운행 중 주 제어부와 하위장치 사이에 통신을 통해 프로그램을 전송하여 프로그램을 교체하거나 갱신하는 경우, 하위장치의 저장부에서 프로그램 교체 또는 갱신 도중 하위장치의 운영체제가 실행되어, 하위장치의 운영체제와, 교체 또는 갱신 중인 프로그램실행영역 사이에 충돌이 발생함으로써, 하위장치에 발생한 오류에 대해 복구가 불가능하게 되는 문제점이 있었다.In addition, when the program is replaced or updated by transmitting a program through communication between the main control unit and the lower device while the system is running, the operating system of the lower device is executed during the program replacement or update in the storage unit of the lower device. Then, a collision occurs between the program execution area that is being replaced or updated, and there is a problem that recovery of an error occurring in the lower device is impossible.

따라서, 본 발명은 상기와 같은 종래의 문제점을 해결하기 위하여 제안한 것으로, 교환기 시스템 및 그 하위장치에 설치된 프로그램을 교체하거나 갱신하기 위하여 하위장치의 하드웨어를 초기화 할 때, IPC(Inter Processor Communication)를 통해 시스템의 주 제어부에서 하위장치로 전송된 프로그램 코드에 대해, 오류 검사를 한 후 이를 임시저장부와 영구저장부로 구분하여 저장함으로써, 프로그램이 설치된 하위장치를 분리하지 않아도 됨은 물론, 하위장치의 운영체제가 실행되기 전에 수신된 프로그램 코드에 대해 오류 검사를 한 후 임시저장부에서 영구저장부로 저장되도록 하는 방법을 제공함에 그 목적이 있다.Accordingly, the present invention has been proposed to solve the above-described problems, and when initializing the hardware of the sub-device to replace or update the program installed in the exchanger system and the sub-device, through IPC (Inter Processor Communication) By checking the program code transmitted from the main control unit of the system to the subordinate device, the error code is divided into temporary storage and permanent storage so that the operating system of the subordinate device does not have to be separated. Its purpose is to provide a method to check the received program code before execution and store it from temporary storage to permanent storage.

도1은 본 발명 교환기 시스템에서의 프로그램 설치 방법을 구현하기 위한 장치의 구성을 보인 블록도.1 is a block diagram showing a configuration of an apparatus for implementing a program installation method in an exchange system of the present invention;

도2는 본 발명 교환기 시스템에서의 프로그램 설치 방법의 동작 과정을 보인 순서도.Figure 2 is a flow chart showing the operation of the program installation method in the switch system of the present invention.

도3은 본 발명 교환기 시스템에서의 프로그램 설치 방법에서, 하위장치의 요청에 의한 새로운 프로그램 코드를 내려받는 절차를 보인 절차도.3 is a procedure showing a procedure for downloading a new program code by a request of a lower device in the program installation method of the switch system of the present invention.

도4는 본 발명 교환기 시스템에서의 프로그램 설치 방법에서, 주 제어부의 명령에 의한 새로운 프로그램 코드를 내려받는 절차를 보인 절차도.Figure 4 is a procedure showing a procedure for downloading a new program code by the command of the main control in the program installation method in the switch system of the present invention.

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

10-1∼10-8 : 가입자 회선부 11 : 교환부10-1 to 10-8: Subscriber line part 11: Switching part

12 : 주 제어부12: main control unit

이와 같은 목적을 달성하기 위한 본 발명은, 하드웨어 초기화시, 임시저장부에 저장된 프로그램 코드가 있는지 여부를 확인하여, 그 확인결과에 따라 영구저장부에 저장된 프로그램을 프로그램실행영역으로 로딩하여 실행하는 단계와; 상기 실행된 프로그램의 버전을 확인하여, 그 확인결과에 따라 임시저장부 및 영구저장부를 통한 프로그램 코드 내려받기를 수행하는 단계를 포함하는 것을 특징으로 한다.In order to achieve the above object, the present invention, in the case of hardware initialization, checks whether there is a program code stored in the temporary storage unit, and loads and executes the program stored in the permanent storage unit to the program execution region according to the result of the check. Wow; Checking the version of the executed program, characterized in that it comprises the step of downloading the program code through the temporary storage unit and the permanent storage in accordance with the check result.

이하, 본 발명에 따른 일실시예를 첨부한 도면을 참조하여 상세히 설명하면 다음과 같다.Hereinafter, an embodiment according to the present invention will be described in detail with reference to the accompanying drawings.

도1은 본 발명 교환기 시스템에서의 프로그램 설치 방법을 구현하기 위한 장치의 구성을 보인 블록도로서, 이에 도시한 바와 같이, 다수 개의 가입자회선부(10-1∼10-8), 교환부(11), 주 제어부(12)로 구성한다.1 is a block diagram showing the configuration of an apparatus for implementing a program installation method in a switch system of the present invention. As shown in FIG. 1, a plurality of subscriber line units 10-1 to 10-8 and an exchange unit 11 are shown. ) And the main control unit 12.

여기서, 다수 개의 가입자 회선부(10-1∼10-8)는 외부 가입자와 입출력되는 데이터를 인터페이스 하고, 교환부(11)는 상기 다수 개의 가입자 회선부(10-1∼10-8)로부터 입력받은 가입자들의 전송 데이터를 목적지로 전달하기 위해 스위칭하며, 주 제어부(12)는 상기 가입자 회선부(10-1∼10-8) 와 교환부(11)의 상태를 감시하고, 상기 가입자 회선부(10-1∼10-8)에 대한 연결 설정 및 해제를 제어한다.Here, the plurality of subscriber line units 10-1 to 10-8 interface data input and output with external subscribers, and the switching unit 11 inputs from the plurality of subscriber line units 10-1 to 10-8. In order to transfer the transmission data of the received subscribers to the destination, the main control unit 12 monitors the states of the subscriber line units 10-1 to 10-8 and the switching unit 11, and the subscriber line unit ( Controls connection establishment and release for 10-1 to 10-8).

그리고, 상기 주 제어부(12)는 각 하위장치별로 응용 프로그램의 최신 버전과 해당 프로그램 코드를 가지고 있다.The main control unit 12 has a latest version of the application program and a corresponding program code for each subordinate device.

일반적으로, 시스템 내의 여러 운영체제, 응용 소프트웨어, 펌웨어 등이 새로운 기능의 추가 및 기능 보완을 목적으로 교체되어야 할 때, 시스템 전체 또는 시스템 내의 해당 장치에 대하여 하드웨어 초기화를 진행되고, 각 하위장치들은 시스템과의 연결 확인을 거쳐, 하위장치 내부에 저장된 운영체제와 응용 프로그램을 차례로 구동하여 하위장치를 구동시킨다.In general, when various operating systems, application software, and firmware in a system need to be replaced to add new functions and supplement functions, hardware initialization is performed for the entire system or a corresponding device in the system. After the connection is confirmed, the operating system stored in the lower device and the application program are driven in order to drive the lower device.

또한, 각 하위장치는 자신의 현재 프로그램 코드와 현재 버전에 대한 정보를 가지고 있는데, 이를 임시저장부와 영구저장부로 나뉘는 두 개의 응용 프로그램 저장장치에 저장하게 된다.In addition, each sub-device has its current program code and information about its current version, which is stored in two application program storage devices, which are divided into temporary storage and permanent storage.

임시저장부는 전원 오프시에는 그 내용이 삭제되는 저장장치로서, 주 제어부(12)로부터 전송된 프로그램 코드가 최초로 저장되는 곳이고, 영구저장부는 전원이 오프되더라도 그 내용이 삭제되지 않는 저장장치로서, 해당 장치의 초기화 후 상기 임시저장부에 저장된 프로그램 코드를 입력받아 저장한 후, 이를 프로그램실행영역으로 로딩하여 응용 프로그램이 실행되도록 한다.The temporary storage unit is a storage device in which the contents are deleted when the power is turned off, and the program code transmitted from the main control unit 12 is stored for the first time. After initialization of the device, the program code stored in the temporary storage unit is received and stored, and then loaded into the program execution region so that the application program is executed.

한편, 주 제어부(12)와 각 하위장치 사이의 제어 신호 및 새로운 프로그램의 교체를 위한 데이터 전송은 IPC(Inter Processor Communication) 경로를 통해 이루어지며, 하위장치의 초기화가 완료되면 IPC를 통해 주 제어부(12)와 하위장치 사이에 통신이 시작된다.On the other hand, the control signal between the main control unit 12 and each subordinate device and data transmission for the replacement of a new program are performed through an IPC (Inter Processor Communication) path. Communication is started between 12) and the subordinate device.

상기 도1에서, 실선은 가입자 신호의 전송 경로를 나타내고, 점선은 교환기 시스템 내부에서의 각 장치간의 IPC를 위한 전송 경로를 나타낸다.In FIG. 1, the solid line represents the transmission path of the subscriber signal, and the dotted line represents the transmission path for IPC between each device in the exchange system.

각 하위장치의 초기화 후, 프로그램 코드를 프로그램실행영역으로 로딩하여 실행하는 절차를 도2 내지 도4를 참조하여 설명한다.After the initialization of each subordinate device, a procedure of loading and executing the program code into the program execution region will be described with reference to FIGS.

우선, 하드웨어 초기화가 진행되면 각 하위장치는 프로그램 코드가 임시저장부에 저장되어 있는지 여부를 확인하여, 그 확인결과에 따라 프로그램실행영역으로 프로그램을 로딩(Loading)하여 실행한다.First, when hardware initialization proceeds, each subordinate device checks whether the program code is stored in the temporary storage unit, and loads and executes the program into the program execution region according to the check result.

그리고, 상기 실행중인 프로그램의 버전을 확인하여 그 확인결과에 따라 임시저장부 및 영구저장부를 통하여 프로그램 코드 내려받기 절차를 수행한다.Then, the version of the program being executed is checked and the program code download procedure is performed through the temporary storage unit and the permanent storage unit according to the check result.

즉, 하드웨어 초기화가 진행되면, 각 하위장치는 주 제어부(12)로부터 수신된 프로그램 코드가 임시저장부에 저장되어 있는지 여부를 확인하여, 프로그램 코드가 임시저장부에 저장되어 있는 경우에는, 임시저장부에 저장된 프로그램 코드를 영구저장부에 저장한 다음, 상기 임시저장부에 저장된 프로그램 코드를 삭제한다(S20∼S23).That is, when hardware initialization proceeds, each subordinate device checks whether the program code received from the main control unit 12 is stored in the temporary storage unit. If the program code is stored in the temporary storage unit, temporary storage is performed. The program code stored in the storage unit is stored in the permanent storage unit, and then the program code stored in the temporary storage unit is deleted (S20 to S23).

그러나, 상기 임시저장부에 프로그램 코드가 저장되어 있지 않은 경우, 영구저장부에 저장된 프로그램을 프로그램실행영역으로 로딩하여 실행하고(S24), 상기 영구저장부로부터 프로그램실행영역으로 프로그램 코드를 로딩하여 실행하는 중에, 주 제어부(12)로부터 수신된 새로운 프로그램 코드가 임시저장부에 있는지 여부를 확인하는 과정(S21)을 반복한다.However, when the program code is not stored in the temporary storage unit, the program stored in the permanent storage unit is loaded into the program execution region (S24), and the program code is loaded from the permanent storage unit into the program execution region and executed. In the meantime, the process of checking whether the new program code received from the main control unit 12 is in the temporary storage unit (S21) is repeated.

그 다음, 하드웨어를 초기화를 다시 수행한 후, 프로그램 코드가 임시저장부에 저장되어 있는지 여부를 확인하는데, 이때 상기 임시저장부에는 프로그램 코드가 이미 삭제된 상태이므로, 상기 영구저장부에 저장한 프로그램 코드를 프로그램실행영역으로 로딩한다(S24).Next, after re-initializing the hardware, it is checked whether the program code is stored in the temporary storage unit. In this case, since the program code is already deleted in the temporary storage unit, the program stored in the permanent storage unit. The code is loaded into the program execution region (S24).

이상과 같이, 영구저장부에 저장된 프로그램 코드를 프로그램실행영역으로 로딩하여 실행하면 하드웨어의 초기화가 끝나는데, 이때 상기 임시저장부 및 영구저장부를 통한 프로그램 코드 내려받기(Download) 절차가 진행된다.As described above, when the program code stored in the permanent storage unit is loaded into the program execution region and executed, the initialization of the hardware is completed. At this time, the procedure of downloading the program code through the temporary storage unit and the permanent storage unit is performed.

즉, 도3에 도시한 바와 같이, 프로그램실행영역에서 프로그램을 실행하는 중에, 하위장치는 주 제어부(12)로 시스템의 프로그램 버전 확인 요청메시지를 전송하고, 이에 따라 주 제어부(12)는 프로그램 버전 확인 응답메시지를 전송하여 시스템의 프로그램 버전을 하위장치로 알려준다.That is, as shown in FIG. 3, while executing a program in the program execution region, the lower device transmits a program version confirmation request message of the system to the main control unit 12, whereby the main control unit 12 transmits the program version. The acknowledgment message is sent to inform the subsystem of the program version of the system.

그러면, 하위장치에서 상기 주 제어부(12)에서 응답한 프로그램 버전을 입력받아 현재 프로그램실행영역에 실행중인 프로그램의 버전과 비교하여, 프로그램 버전이 동일할 경우에는 현재 로딩된 프로그램의 실행을 계속 진행하고, 프로그램 버전이 상이할 경우에는 주 제어부(12)로 프로그램 코드 내려받기 요청 메시지를 전송하여 새로운 버전의 프로그램 코드를 요청한다.Then, the lower device receives the program version responded by the main control unit 12 and compares it with the version of the program being executed in the current program execution area. If the program version is the same, execution of the currently loaded program is continued. If the program version is different, the program code download request message is transmitted to the main control unit 12 to request a new version of the program code.

이에 따라, 주 제어부(12)가 프로그램 코드 내려받기 응답 메시지를 전송한 후 프로그램 코드를 전송하면, 하위장치가 이를 수신한 경우에는 프로그램 코드 전송 확인 메시지를 전송하고, 이를 수신하지 못하거나 수신된 프로그램 코드에 오류가 있어 재전송이 필요한 경우, 재전송 요구 메시지를 전송하여 주 제어부(12)로부터 프로그램 코드를 내려받기를 한다.Accordingly, when the main controller 12 transmits the program code download response message and then transmits the program code, when the lower device receives the program code, the main control unit 12 transmits the program code transmission confirmation message and fails to receive or receives the received program code. If there is an error in the code and needs to be retransmitted, the program code is downloaded from the main control unit 12 by sending a retransmission request message.

그후, 프로그램 코드 전송이 끝나면, 주 제어부(12)는 프로그램 코드 전송 완료 메시지를 전송하고, 하위장치는 프로그램 코드 전송 완료 확인 메시지를 전송함으로써, 프로그램 코드의 내려받기가 완료된다.Thereafter, when the program code transmission is completed, the main control unit 12 transmits a program code transmission completion message, and the lower device transmits a program code transmission completion confirmation message, thereby completing downloading of the program code.

여기서, 하위장치는 주 제어부(12)로부터 수신되는 프로그램 코드에 대하여 오류 검사를 하여 이상이 없으면, 계속하여 임시저장부로 프로그램 코드 내려받기를 진행하고, 만일 오류가 있으면, 해당 파일에 대하여 주 제어부(12)로 재전송을 요구한다.Here, if there is no error by checking the program code received from the main control unit 12, the lower device continuously proceeds to download the program code to the temporary storage unit. 12) request retransmission.

프로그램 코드 내려받기가 완료되면, 하위장치는 하드웨어 초기화를 한 후, 주 제어부(12)로부터 전송된 새로운 버전의 프로그램 코드가 임시저장부에 저장되어 있는지 여부를 확인하여, 그 확인 결과에 따라 상기 프로그램실행영역으로 프로그램을 로딩하여 실행하는 절차(S20∼S24)를 수행한다.After downloading the program code, the lower device performs hardware initialization and checks whether a new version of the program code transmitted from the main control unit 12 is stored in the temporary storage unit. The procedure (S20 to S24) of loading and executing a program into the execution region is performed.

이때, 상기 수신된 프로그램 코드는 오류 검사를 한 후 임시저장부를 통해 영구저장부로 저장되므로, 하위장치의 하드웨어 초기화 시 하위장치 시스템의 운영체제(Operating System)가 실행되기 전에 오류를 검사한 프로그램 코드가 임시저장부에서 영구저장부로 저장된다.In this case, the received program code is stored in the permanent storage through the temporary storage after the error check, the program code that checks the error before the operating system (operating system) of the lower device system is temporarily executed when the hardware of the lower device is initialized It is stored from the storage to permanent storage.

따라서, 하위장치의 운영체제가 실행된 후에는, 저장부에 프로그램 교체 또는 갱신이 완료되므로, 하위장치의 운영체제와 프로그램실행영역 사이의 충돌로 인하여 하위장치에 발생하는 오류를 방지할 수 있게 된다.Therefore, after the operating system of the lower device is executed, since the program replacement or update is completed in the storage unit, an error occurring in the lower device due to a collision between the operating system of the lower device and the program execution region can be prevented.

한편, 시스템 운용 중, 시스템 운용자가 프로그램의 변경이나 갱신을 위해 주 제어부(12)에서 프로그램 버전 확인을 요청하는 경우에도, 프로그램 코드 내려받기 절차가 수행된다.Meanwhile, even when the system operator requests the program version check from the main controller 12 to change or update the program, the program code download procedure is performed during system operation.

즉, 도4에 도시한 바와 같이, 주 제어부(12)에서 해당 하위장치로 프로그램 버전 확인 요청 메시지를 전송하고, 상기 주 제어부(12)의 요청에 따라 하위장치는 현재 프로그램실행영역에 실행중인 프로그램에 대한 프로그램 버전을 확인하는 프로그램 버전 확인 응답 메시지를 주 제어부(12)로 전송한다.That is, as shown in FIG. 4, the main controller 12 transmits a program version confirmation request message to the corresponding sub-device, and the sub-device is currently executing a program in the program execution region according to the request of the main controller 12. The program version confirmation response message for confirming the program version for the main control unit 12 is transmitted.

이때, 주 제어부(12)는 상기 하위장치로부터 전송된 프로그램 버전과 시스템에 기저장된 프로그램 코드의 버전을 비교하여, 프로그램 버전이 상이할 경우 새로운 버전의 프로그램 코드 내려받기 절차를 수행한다.In this case, the main controller 12 compares the program version transmitted from the lower device with the version of the program code pre-stored in the system, and performs a procedure of downloading a new version of the program code when the program version is different.

즉, 프로그램 버전이 상이할 경우, 주 제어부(12)는 프로그램 코드 내려받기 명령 메시지를 하위장치로 전송하고, 하위장치에서는 그 명령에 대한 프로그램 코드 내려받기 응답 메시지를 전송함으로써, 주 제어부(12)는 하위장치로 새로운 프로그램 코드 전송을 개시한다.That is, when the program versions are different, the main control unit 12 transmits the program code download command message to the lower device, and the lower device transmits the program code download response message for the command, thereby causing the main control unit 12 to transmit. Initiates a new program code transfer to the subordinate device.

그러면, 하위장치는 새로운 버전의 프로그램 코드를 전송받아 임시저장부에 저장한 후 프로그램 코드 전송 확인 메시지를 전송하며, 이를 수신하지 못하거나 수신된 프로그램 코드에 오류가 있어 재전송이 필요한 경우, 재전송 요구 메시지를전송하여 주 제어부(12)로부터 프로그램 코드를 내려받기를 한다.Then, the subordinate device receives the new version of the program code, stores it in the temporary storage, and transmits a program code transmission confirmation message, and if it is not received or there is an error in the received program code, a retransmission request message By transmitting the program code from the main control unit 12 to download.

그후, 프로그램 코드 전송이 끝나면, 주 제어부(12)는 프로그램 코드 전송 완료 메시지를 전송하고, 하위장치는 프로그램 코드 전송 완료 확인 메시지를 전송함으로써, 프로그램 코드의 내려받기가 완료된다.Thereafter, when the program code transmission is completed, the main control unit 12 transmits a program code transmission completion message, and the lower device transmits a program code transmission completion confirmation message, thereby completing downloading of the program code.

프로그램 코드 내려받기가 완료되면, 하위장치는 하드웨어 초기화를 한 후, 주 제어부(12)로부터 전송된 새로운 버전의 프로그램 코드가 임시저장부에 저장되어 있는지 여부를 확인하여, 그 확인 결과에 따라 상기 프로그램실행영역으로 프로그램을 로딩하여 실행하는 절차(S20∼S24)를 수행한다.After downloading the program code, the lower device performs hardware initialization and checks whether a new version of the program code transmitted from the main control unit 12 is stored in the temporary storage unit. The procedure (S20 to S24) of loading and executing a program into the execution region is performed.

이때, 상기 수신된 새로운 버전의 프로그램 코드는 오류 검사를 한 후 임시저장부를 통해 영구저장부로 저장되므로, 하위장치의 하드웨어 초기화 시 하위장치 시스템의 운영체제가 실행되기 전에, 오류를 검사한 프로그램 코드가 임시저장부에서 영구저장부로 저장된다.In this case, the received new version of the program code is stored in the permanent storage through the temporary storage after the error check, so that before the operating system of the sub-device system when the hardware of the lower device is initialized, the program code for checking the error is temporarily It is stored from the storage to permanent storage.

따라서, 하위장치의 운영체제가 실행된 후에는, 저장부에 프로그램 교체 또는 갱신이 완료되므로, 하위장치의 운영체제와 프로그램실행영역 사이의 충돌로 인하여 하위장치에 발생하는 오류를 방지할 수 있게 된다.Therefore, after the operating system of the lower device is executed, since the program replacement or update is completed in the storage unit, an error occurring in the lower device due to a collision between the operating system of the lower device and the program execution region can be prevented.

한편, 프로그램 코드 내려받기 절차는, 주 제어부(12)에서 프로그램 코드를 특정 크기로 분할하여 각 분할된 코드의 일련번호와 CRC(Cyclic Redundancy Check)를 삽입하여 전송하고 각 하위장치에서 수신된 일련번호와 CRC를 확인하여 정상일 경우 그 다음 코드 블록을 요청하는 방식인 핸드쉐이킹(Hand-Shaking) 방식과, 주 제어부(12)에서 프로그램 코드를 전송하기 전에 프로그램 코드의 크기와 분할된 코드의 개수를 알려주고 일방적으로 프로그램 코드를 전송하는 방식 등이 사용될 수 있다.On the other hand, in the program code download procedure, the main control unit 12 divides the program code into a specific size, inserts the serial number of each divided code and the cyclic redundancy check (CRC), and transmits the serial number received from each sub-device. And the hand-shaking method, which checks the CRC and requests the next code block if it is normal, and informs the size of the program code and the number of divided codes before the main control unit 12 transmits the program code. The method of unilaterally transmitting the program code may be used.

이상에서 설명한 바와 같이 본 발명은, 교환기 시스템의 하위장치에 설치된 프로그램의 교체 또는 갱신하기 위하여 하위장치의 하드웨어를 초기화 할 때, IPC를 통해 교환기 시스템에서 그 하위장치로 프로그램 코드를 전송하는 경우에 있어서, 하위장치로 전송된 프로그램 코드에 대해 오류 검사를 한 후 임시저장부와 영구저장부로 구분하여 저장함으로써, 프로그램의 교체 또는 갱신으로 인한 시스템의 운행중단을 방지함과 아울러, 하위장치의 운영체제와 프로그램실행영역 사이의 충돌로 인하여 하위장치에 발생하는 오류를 방지하는 효과가 있다.As described above, the present invention, when initializing the hardware of the sub-device to replace or update the program installed in the sub-unit of the exchange system, when transmitting the program code from the exchange system to the sub-device through the IPC. After checking the program code transmitted to the subordinate device, the program code is divided into temporary storage and permanent storage to prevent the system from shutting down due to the replacement or update of the program. There is an effect of preventing an error occurring in a lower device due to a collision between execution regions.

Claims (5)

하드웨어 초기화시, 임시저장부에 저장된 프로그램 코드가 있는지 여부를 확인하여, 그 확인결과에 따라 영구저장부에 저장된 프로그램을 프로그램실행영역으로 로딩하여 실행하는 단계와; 상기 실행된 프로그램의 버전을 확인하여, 그 확인결과에 따라 임시저장부 및 영구저장부를 통한 프로그램 코드 내려받기를 수행하는 단계를 포함하는 것을 특징으로 하는 교환기 시스템에서의 프로그램 설치 방법.When the hardware is initialized, checking whether there is a program code stored in the temporary storage unit, and loading and executing the program stored in the permanent storage unit into the program execution region according to the checking result; Checking the version of the executed program, and downloading the program code through the temporary storage unit and the permanent storage unit according to the checking result. 제1항에 있어서, 상기 프로그램 코드 내려받기를 수행하는 단계는, 주 제어부로 시스템의 프로그램 버전을 요청하는 단계와; 상기 요청한 프로그램 버전을 입력받아 현재 프로그램실행영역에 실행중인 프로그램의 버전과 비교하여, 프로그램 버전이 동일할 경우 프로그램 실행을 계속 진행하는 단계와; 프로그램 버전이 상이할 경우, 주 제어부로 새로운 버전의 프로그램 코드를 요청하는 단계와; 주 제어부로부터 수신된 새로운 버전의 프로그램 코드에 대해 오류 검사를 한 후 임시저장부에 저장하는 단계와; 하드웨어 초기화를 한 후, 주 제어부로부터 수신된 새로운 버전의 프로그램 코드가 임시저장부에 저장되어 있는지 여부를 확인하여, 그 확인 결과에 따라 영구저장부에 저장된 프로그램을 프로그램실행영역으로 로딩하여 실행하는 단계를 포함하는 것을 특징으로 하는 교환기 시스템에서의 프로그램 설치 방법.The method of claim 1, wherein the downloading of the program code comprises: requesting a program version of a system from a main controller; Receiving the requested program version and comparing the version of the program being executed in the current program execution region, and continuing the program execution if the program version is the same; If the program versions are different, requesting a new version of the program code from the main control unit; Checking the new version of the program code received from the main controller and storing the error code in a temporary storage unit; After initializing the hardware, checking whether the new version of the program code received from the main control unit is stored in the temporary storage unit, and loading and executing the program stored in the permanent storage unit into the program execution region according to the result of the check. Program installation method in the exchange system comprising a. 시스템 운용 중, 주 제어부의 프로그램 버전 확인 요청이 있는 경우, 현재 프로그램실행영역에 실행중인 프로그램에 대한 프로그램 버전을 확인하여 주 제어부로 전송하는 단계와; 주 제어부에서 상기 전송된 프로그램 버전과 시스템에 기저장된 프로그램 코드의 버전을 비교하는 단계와; 상기 비교 결과, 프로그램 버전이 상이할 경우, 주 제어부로부터 새로운 버전의 프로그램 코드 내려받기를 수행하는 단계와; 주 제어부로부터 수신된 새로운 버전의 프로그램 코드에 대해 오류 검사를 한 후 임시저장부에 저장하는 단계와; 하드웨어 초기화를 한 후, 주 제어부로부터 수신된 새로운 버전의 프로그램 코드가 임시저장부에 저장되어 있는지 여부를 확인하여, 그 확인 결과에 따라 영구저장부에 저장된 프로그램을 프로그램실행영역으로 로딩하여 실행하는 단계를 포함하는 것을 특징으로 하는 교환기 시스템에서의 프로그램 설치 방법.Checking a program version of a program currently being executed in a program execution area, and transmitting the program version to the main control unit when a program version confirmation request is received from the main control unit during system operation; Comparing, by a main control unit, the transmitted program version with a version of program code previously stored in a system; If the program version is different as a result of the comparison, downloading a new version of the program code from the main controller; Checking the new version of the program code received from the main controller and storing the error code in a temporary storage unit; After initializing the hardware, checking whether the new version of the program code received from the main control unit is stored in the temporary storage unit, and loading and executing the program stored in the permanent storage unit into the program execution region according to the result of the check. Program installation method in the exchange system comprising a. 제1항 내지 제3항에 있어서, 상기 영구저장부에 저장된 프로그램을 프로그램실행영역으로 로딩하여 실행하는 단계는, 임시저장부에 프로그램 코드가 저장되어 있는지 여부를 확인하여, 임시저장부에 저장되어 있지 않은 경우 영구저장부에 저장된 프로그램을 프로그램실행영역으로 로딩하여 실행하는 단계와; 상기 확인 결과, 프로그램 코드가 임시저장부에 저장되어 있는 경우, 임시저장부에 저장된 프로그램 코드를 영구저장부로 저장함과 아울러, 상기 임시저장부에 저장된 프로그램코드를 삭제하는 단계와; 하드웨어를 초기화한 후, 프로그램 코드가 임시저장부에 저장되어 있는지 여부를 확인하여, 영구저장부에 저장된 프로그램 코드를 프로그램실행영역으로 로딩하여 실행하는 단계를 포함하는 것을 특징으로 하는 교환기 시스템에서의 프로그램 설치 방법.The method of claim 1, wherein the loading of the program stored in the permanent storage unit into the program execution area is executed by checking whether the program code is stored in the temporary storage unit and storing the program code in the temporary storage unit. If not, loading the program stored in the permanent storage into the program execution region and executing the program; If the program code is stored in the temporary storage unit as a result of the checking, storing the program code stored in the temporary storage unit as a permanent storage unit and deleting the program code stored in the temporary storage unit; After initializing the hardware, checking whether the program code is stored in the temporary storage unit, and loading the program code stored in the permanent storage unit into the program execution region and executing the program. How to install. 제4항에 있어서, 상기 임시저장부 및 영구저장부에 저장된 프로그램 코드는, 하위장치 시스템의 운영체제가 실행되기 전에 저장되는 것을 특징으로 하는 교환기 시스템에서의 프로그램 설치 방법.The program installation method of claim 4, wherein the program codes stored in the temporary storage unit and the permanent storage unit are stored before the operating system of the subordinate system is executed.
KR1020020082753A 2002-12-23 2002-12-23 Program installation method in switching system KR20040056460A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020020082753A KR20040056460A (en) 2002-12-23 2002-12-23 Program installation method in switching system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020020082753A KR20040056460A (en) 2002-12-23 2002-12-23 Program installation method in switching system

Publications (1)

Publication Number Publication Date
KR20040056460A true KR20040056460A (en) 2004-07-01

Family

ID=37349140

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020020082753A KR20040056460A (en) 2002-12-23 2002-12-23 Program installation method in switching system

Country Status (1)

Country Link
KR (1) KR20040056460A (en)

Similar Documents

Publication Publication Date Title
EP1713198B1 (en) A method for upgrading software of communication equipment
KR100957900B1 (en) Remote updating system for elevator control programs
EP0687975B1 (en) Method and system for downloading data to network nodes
WO2019073932A1 (en) Information update device and information update method
US20090222497A1 (en) Method, system and apparatus for remote software upgrade of an embedded device
CN101621411B (en) Method and system for remotely updating microcontrollers
US20070270984A1 (en) Method and Device for Redundancy Control of Electrical Devices
CN111913846A (en) Reprogramming device for vehicle, reprogramming method thereof and vehicle comprising same
JPH10190832A (en) Communication system
JP2012230529A (en) Remote maintenance system of fpga loaded device
JP2002049502A (en) Update system for multiprocessor systems
KR20040056460A (en) Program installation method in switching system
EP1371172B1 (en) Method for upgrading network server programming conditions, associated system and software product
JP3778280B2 (en) Firmware download system and method
JP2000174844A (en) Communication controller
CN112532454A (en) FC switching network system network management method
JP2006054804A (en) File downloading method, mobile communication network system, and base station apparatus
JP2004157753A (en) Firmware download system
KR20030041605A (en) Apparatus and method for remote upgrading of program in communication system
JP2818575B2 (en) Wireless base station remote reset system
EP1501012B1 (en) Software replacement method and related software replacement system
JP3282690B2 (en) How to change online communication control software
KR100471497B1 (en) Upgrade method of image file in network system
CN115964071A (en) Software partition upgrading method with historical version saving function
KR100681001B1 (en) Method and apparatus of managing forwarding table in redundant routing system

Legal Events

Date Code Title Description
N231 Notification of change of applicant
A201 Request for examination
E902 Notification of reason for refusal
E90F Notification of reason for final refusal
E601 Decision to refuse application
E801 Decision on dismissal of amendment