KR100296035B1 - Method for setting and changing internet protocol address and ethernet address for embedded system - Google Patents

Method for setting and changing internet protocol address and ethernet address for embedded system Download PDF

Info

Publication number
KR100296035B1
KR100296035B1 KR1019990022912A KR19990022912A KR100296035B1 KR 100296035 B1 KR100296035 B1 KR 100296035B1 KR 1019990022912 A KR1019990022912 A KR 1019990022912A KR 19990022912 A KR19990022912 A KR 19990022912A KR 100296035 B1 KR100296035 B1 KR 100296035B1
Authority
KR
South Korea
Prior art keywords
data
ethernet address
received
address
variable
Prior art date
Application number
KR1019990022912A
Other languages
Korean (ko)
Other versions
KR20010002869A (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 KR1019990022912A priority Critical patent/KR100296035B1/en
Publication of KR20010002869A publication Critical patent/KR20010002869A/en
Application granted granted Critical
Publication of KR100296035B1 publication Critical patent/KR100296035B1/en

Links

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07FCOIN-FREED OR LIKE APPARATUS
    • G07F15/00Coin-freed apparatus with meter-controlled dispensing of liquid, gas or electricity
    • G07F15/003Coin-freed apparatus with meter-controlled dispensing of liquid, gas or electricity for electricity
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J7/00Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries
    • H02J7/02Circuit arrangements for charging or depolarising batteries or for supplying loads from batteries for charging batteries from ac mains by converters

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Small-Scale Networks (AREA)

Abstract

가. 청구범위에 기재된 발명이 속한 기술분야end. The technical field to which the invention described in the claims belongs

내장 시스템(Embedded System)의 IP 및 Ethernet의 주소를 설정하는 방법에 관한 기술이다.It is a technique for setting the IP and Ethernet address of the embedded system.

나. 발명이 해결하고자 하는 기술적 과제I. The technical problem to be solved by the invention

내장 시스템에서 기존의 방법들을 수용하면서 모든 장비에 공통적으로 사용할 수 있는 주소 설정 방법을 제공한다.The built-in system accommodates existing methods and provides an addressing method common to all devices.

다. 발명의 해결방법의 요지All. Summary of Solution of the Invention

본 발명은 내장 시스템의 아이피 및 에더넷 주소를 설정 및 변경하는 방법으로서, 상기 내장 시스템의 전원이 온되면 운용자로부터 아이피 또는 에더넷 주소에 따른 데이터가 수신되는가를 검사하여 아이피 또는 에더넷 주소에 따른 데이터가 수신될 경우 이를 비휘발성 메모리에 저장하는 쉘모드 수행 단계와, 상기 쉘모드 수행 후 상기 비휘발성 메모리에 저장된 아이피를 읽어와 변수에 적용하는 겟아이피 수행 단계와, 상기 겟아이피 수행 후 상기 읽어온 변수가 값을 가지고 있는가를 검사하여 변수에 적용된 값이 없는 경우 서버로 아이피 데이터를 요구하여 수신하는 알에이알피 수행 단계와, 상기 알에이알피 수행 후 타겟 보드와 호스트간의 통신채널을 만들어 주는 응용을 수행할 수 있도록 디버깅채널을 제공하는 엑스트레이스 수행 단계로 이루어짐을 특징으로 한다.The present invention is a method for setting and changing the IP and Ethernet address of the embedded system, and when the power of the built-in system is turned on by checking whether data according to the IP or Ethernet address is received from the operator according to the IP or Ethernet address A shell mode performing step of storing data in a non-volatile memory when data is received, A get IP performing step of reading an IP stored in the non-volatile memory after the shell mode is performed and applying it to a variable, and the reading after performing the get IP. In the step of checking whether the on-variable has a value and if there is no value applied to the variable, the server performs an RLP request for receiving IP data from the server and an application for creating a communication channel between the target board and the host after performing the RLP. This is an Xtrace execution step that provides a debugging channel for execution. It is characterized by loosening.

라. 발명의 중요한 용도la. Important uses of the invention

브이티알엑스(VTRX)를 사용하는 모든 내장 시스템에 사용한다.It is used in all embedded systems that use VTRX.

Description

내장 시스템의 아이피 및 에더넷 주소 설정 및 변경 방법 {METHOD FOR SETTING AND CHANGING INTERNET PROTOCOL ADDRESS AND ETHERNET ADDRESS FOR EMBEDDED SYSTEM}How to set and change IP and Ethernet address of the built-in system {METHOD FOR SETTING AND CHANGING INTERNET PROTOCOL ADDRESS AND ETHERNET ADDRESS FOR EMBEDDED SYSTEM}

본 발명은 내장 시스템(Embedded System)에서 유일한 아이피(Internet Protocol:이하 IP라 함) 주소와 에더넷(Ethernet) 주소를 설정 및 변경하는 방법에 관한 것으로, 특히 브이티알엑스(VTRX)의 오에스(OS)를 사용하는 내장 시스템에서 IP 주소와 에더넷 주소를 설정 및 변경하는 방법에 관한 것이다.The present invention relates to a method of setting and changing a unique IP address and an ethernet address in an embedded system, in particular, OS of VTRX. To configure and change the IP address and the Ethernet address in an embedded system that uses.

통상적으로 내장 시스템의 각 보드가 특정한 망(Network)에서 데이터를 송수신하며, 사용하기 위해서는 각 보드에 주소가 할당되어 있어야 한다. 이러한 주소는 IP 주소와 에더넷 주소로 구분되며, 인터넷 통신을 사용하는 경우 각 보드의 메모리에 IP 주소를 저장하고 있어야 하며, 에더넷 통신을 사용하는 경우 에더넷 주소를 저장하고 있어야 한다. 따라서 각 보드간 데이터를 송수신하는 경우 데이터 송수신 방법에 따라 해당하는 보드의 주소로 데이터를 송신하게 된다. 그런데 이러한 보드는 각 시스템에 내장된 보드마다 사용되고 있으므로 고유한 번호를 가지게 된다. 그러므로 현재 VTRX를 실시간 운영체계(Real Time Operating System)로 사용하는 내장 시스템에서 IP 주소를 각 보드마다 달리 할당하기 위해서는 하기위 세가지 방법을 사용하고 있다.In general, each board of the embedded system sends and receives data in a specific network, and each board needs to be assigned an address. These addresses are divided into IP addresses and Ethernet addresses. When using Internet communication, the IP address must be stored in each board's memory, and when using Ethernet communication, the Ethernet address must be stored. Therefore, when transmitting and receiving data between boards, data is transmitted to the address of the corresponding board according to the data transmission and reception method. However, since these boards are used for each board embedded in each system, they have a unique number. Therefore, in the embedded system using VTRX as a real time operating system, the following three methods are used to allocate IP addresses differently for each board.

첫 번째 방법은 시스템에 내장될 보드에 하드코딩(Hard Coding)을 하는 방법이며, 두 번째 방법은 VTRX의 환경변수인 IP 주소 변수에 값을 설정하는 방법이며, 세 번째 방법은 알에이알피(Reverse Address Resolution Protocol:이하 RARP라 함) 서버(Sever)를 이용하여 IP 주소를 할당받아 사용하는 방법이 있다.The first method is to hard code the board to be embedded in the system. The second method is to set the value in the IP address variable, which is an environment variable of the VTRX, and the third method is Reverse. Address Resolution Protocol (hereinafter referred to as RARP) There is a method of assigning an IP address using a server.

먼저 특정한 시스템에 실장될 보드를 하드코딩하는 방법을 설명한다. 하드코딩은 소스 코드를 생성하는 구성 파일(configuration file)에 다음과 같은 환경변수를 정의한다.First, we describe how to hardcode a board that will be mounted on a particular system. Hardcoding defines the following environment variables in the configuration file that generates the source code.

boot.env.variable: ip_addrboot.env.variable: ip_addr

또한 각 환경변수는 이름과 값을 가져야 한다. 이를 예로 나타내면 하기와 같다.Each environment variable must also have a name and a value. This is shown as an example.

boot.env.ip_addr.envname: IP_ADDRboot.env.ip_addr.envname: IP_ADDR

boot.env.ip_addr.value: 165.213.227.212boot.env.ip_addr.value: 165.213.227.212

그러면 Xconfig가 실행된 이후에 IP_ADDR의 값은 165.213.227.212로 정의되고 부트 프로그램(Boot Program)은 이 값을 boot_bridge_ip_addr이라는 전역 변수에 설정한다. 이러한 내용을 가지는 구성 파일이 bootconfig.def 파일로 가정하면, 하기와 같이 Xconfig를 실행한다.Then, after Xconfig is executed, the value of IP_ADDR is defined as 165.213.227.212, and the boot program sets this value in a global variable called boot_bridge_ip_addr. Assuming that the configuration file containing these contents is the bootconfig.def file, execute Xconfig as follows.

xconfig bootconf.def m147def microtes.defxconfig bootconf.def m147def microtes.def

이는 다음과 같은 데이터 구조를 갖는 bootconf.c 파일을 생성하고 컴파일되어 부트업 코드(boot up code)에 하기 표 1과 같이 저장된다.This creates and compiles a bootconf.c file having the following data structure and is stored in the boot up code as shown in Table 1 below.

char *boot_environ_rom{} = {'IP_ADDR=165.213.227.212',…};char * boot_environ_rom {} = {'IP_ADDR = 165.213.227.212',… };

그러나 이와 같이 장비에 하드코딩하는 방법은 각 보드마다 서로 다른 IP 주소를 설정하기 위해 부트업 메모리(boot up ROM)이 전부 달라야 하므로 제품의 양산시 적용이 어러운 문제가 있었다. 또한 네트워크의 체계나 도메인(Domain)이 변경되면 사용할 수 없는 문제가 있었다.However, this method of hardcoding the device has a problem that it is difficult to apply when the product is mass-produced because the boot up memory must be different in order to set different IP addresses for each board. In addition, there was a problem that can not be used when the network structure or domain (Domain) is changed.

다음으로 IP_ADDR 환경변수에 값을 설정하는 방법은 장비 부트 업(boot up)을 할 경우 부트 쉘(boot shell) 상에서 setenv 명령을 이용하여 IP 주소를 설정하거나 변경할 수 있다. 이와 같이 IP 주소를 165.213.227.212로 설정하는 방법을 예시하면 하기 표 2와 같다.Next, the IP_ADDR environment variable can be set using the setenv command on the boot shell when the device is booted up. As such, a method of setting the IP address to 165.213.227.212 is shown in Table 2 below.

boot> setnv IP ADDR 165.213.227.212boot> setnv IP ADDR 165.213.227.212

그러면 IP_ADDR 값을 boot_bgidge_ip_addr에 설정하여 휘발성 메모리인 램(RAM)에 저장된다. 그러므로 두 번째 방법을 사용할 경우 장비의 보드에 전원이 오프될 경우 매번 휘발성 메모리에 저장된 데이터는 지워진다. 따라서 다시 전원을 온시킬 경우 운용자는 매번 IP 주소를 입력하여 설정해야하는 불편함이 있었다.Then, the IP_ADDR value is set in boot_bgidge_ip_addr and stored in RAM, which is volatile memory. Therefore, with the second method, every time the device's board is powered off, the data stored in volatile memory is erased each time. Therefore, when the power is turned on again, the operator had to set the IP address every time.

마지막으로 RARP를 이용하는 방법을 설명한다. RARP를 이용하는 경우 RARP 서버(Server)를 구비해야 한다. 그리고 해당하는 보드는 랜 포트를 통해 자신의 에더넷 주소를 브로드케스트(broadcast)한다. 일반적으로 보드의 에더넷 주소는 하드코딩 되어 있으므로 내장 시스템의 경우 딥(DIP) 스위치를 이용하여 에더넷 주소를 설정한다. 그러므로 이미 에더넷 주소는 설정된 것으로 가정한다. 이에 RARP 서버가 응답하면, 부트 프로그램이 동작한 해당 보드로 IP 주소를 전달한다. 이에 따라 상기 보드의 부트 프로그램은 IP 주소를 설정한다. 상기한 방법은 네트워크 상에 RARP 서버가 존재해야만 해당하는 보드에 IP 주소를 할당할 수 있는 문제가 있었다.Finally, we explain how to use RARP. In case of using RARP, RARP server should be provided. The board then broadcasts its Ethernet address via the LAN port. In general, since the ethernet address of the board is hardcoded, the ethernet address is set by using a dip (DIP) switch in an embedded system. Therefore, it is assumed that the Ethernet address has already been set. When the RARP server responds, it sends the IP address to the board where the boot program is running. Accordingly, the boot program of the board sets the IP address. The above method has a problem in that an IP address can be assigned to a corresponding board only when a RARP server exists on a network.

따라서 본 발명의 목적은 내장 시스템의 보드에 IP 주소와 에더넷 주소를 설정 및 변경을 용이하게 하는 방법을 제공함에 있다.Accordingly, an object of the present invention is to provide a method for easily setting and changing an IP address and an Ethernet address on a board of an embedded system.

본 발명의 다른 목적은 내장 시스템의 보드에 IP 주소와 에더넷 주소를 설정함에 있어서, 종래의 방법을 모두 수용하며, IP 주소의 설정 및 변경시 사용자와 인터페이스를 용이하게 하며, 전원의 온/오프시 영향을 받지 않는 IP 주소 및 에더넷 주소를 설정 및 연결하는 방법을 제공함에 있다.Another object of the present invention, in setting the IP address and the Ethernet address on the board of the embedded system, accommodates all the conventional methods, facilitates the user and the interface when setting and changing the IP address, power on / off It provides a method of setting and connecting an IP address and an Ethernet address that are not affected.

도 1은 내장 시스템 방식으로 구현된 전송 시스템의 블록 구성도,1 is a block diagram of a transmission system implemented by an embedded system scheme;

도 2는 전송 시스템의 보드에서 본 발명에 따른 주요부의 블록 구성도,Figure 2 is a block diagram of a main part according to the present invention in the board of the transmission system,

도 3은 본 발명의 바람직한 실시예에 따라 내장 시스템의 보드에서 수행되는 제어 흐름도,3 is a control flowchart performed on a board of an embedded system according to a preferred embodiment of the present invention;

도 4는 본 발명의 바람직한 실시예에 따른 쉘 서브 루틴의 제어 흐름도,4 is a control flowchart of a shell subroutine in accordance with a preferred embodiment of the present invention;

도 5는 본 발명의 바람직한 실시예에 따른 겟아이피 서브 루틴의 제어 흐름도,5 is a control flowchart of a get IP subroutine according to a preferred embodiment of the present invention;

도 6은 본 발명의 바람직한 실시예에 따른 알에이알피 서브 루틴의 제어 흐름도.6 is a control flowchart of an RLP subroutine in accordance with a preferred embodiment of the present invention.

상기한 목적들을 달성하기 위한 본 발명은 내장 시스템의 아이피 및 에더넷 주소를 설정 및 변경하는 방법으로서, 상기 내장 시스템의 전원이 온되면 운용자로부터 아이피 또는 에더넷 주소에 따른 데이터가 수신되는가를 검사하여 아이피 또는 에더넷 주소에 따른 데이터가 수신될 경우 이를 비휘발성 메모리에 저장하는 쉘모드 수행 단계와, 상기 쉘모드 수행 후 상기 비휘발성 메모리에 저장된 아이피를 읽어와 변수에 적용하는 겟아이피 수행 단계와, 상기 겟아이피 수행 후 상기 읽어온 변수가 값을 가지고 있는가를 검사하여 변수에 적용된 값이 없는 경우 서버로 아이피 데이터를 요구하여 수신하는 알에이알피 수행 단계와, 상기 알에이알피 수행 후 타겟 보드와 호스트간의 통신채널을 만들어 주는 응용을 수행할 수 있도록 디버깅채널을 제공하는 엑스트레이스 수행 단계로 이루어짐을 특징으로 한다.The present invention for achieving the above object is a method for setting and changing the IP and Ethernet address of the embedded system, by checking whether the data according to the IP or Ethernet address is received from the operator when the power is turned on the embedded system A shell mode performing step of storing data in accordance with an IP or Ethernet address in a nonvolatile memory, and a step of executing a get IP after reading the IP stored in the nonvolatile memory and applying the variable to a variable after performing the shell mode; After performing the get IP, checking whether the read-out variable has a value, and if there is no value applied to the variable, performing RLP requesting and receiving IP data from a server, and after performing RLP, between the target board and the host. Provide a debugging channel to perform an application that creates a communication channel. Is characterized by consisting of the step of performing the trace.

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

도 1은 내장 시스템 방식으로 구현된 전송 시스템의 블록 구성도이다. 이하 도 1을 참조하여 본 발명이 적용되는 전송 시스템의 블록 구성을 설명한다.1 is a block diagram of a transmission system implemented in an embedded system scheme. Hereinafter, a block configuration of a transmission system to which the present invention is applied will be described with reference to FIG. 1.

제1수신부(10)는 좌측의 전송 시스템과 연결된 선로를 통해 데이터를 수신하여 분기 결합부(30)로 출력하며, 제1송신부(20)는 분기 결합부(30)로부터 수신되는 데이터를 좌측의 전송 시스템과 연결된 선로를 통해 좌측의 전송 시스템으로 전송한다. 제어부(60)는 전송 시스템의 전반적인 동작을 제어하며, 특히 해당하는 장비의 각 IP를 참조하여 제어를 수행한다. 데이터 처리부(70)는 좌측 또는 우측에 연결된 전송 시스템으로부터 수신되는 데이터를 검출하여 선로를 감시하며, 망관리에 따른 데이터를 처리한다. 분기 결합부(30)는 제어부(60)의 제어에 의해 하위 시스템으로 전송될 데이터 및 다른 전송 시스템으로 전송될 데이터 등을 분리하여 제1송신부(20) 또는 제2송신부(40)으로 데이터를 출력하거나 또는 하위 시스템으로 데이터를 출력한다. 제2송신부(40)는 우측에 연결된 선로를 통해 우측의 전송 시스템과 연결되며, 상기 분기 결합부(30)로부터 수신되는 데이터를 우측의 전송 시스템으로 출력한다. 제2수신부(50)는 우측의 전송 시스템과 연결된 선로로부터 수신된 데이터를 전기적인 신호로 변환하여 분기 결합부(30)로 출력한다.The first receiver 10 receives data through a line connected to the transmission system on the left side and outputs the data to the branch combiner 30, and the first transmitter 20 transmits data received from the branch combiner 30 on the left side. It transmits to the transmission system on the left through the line connected to the transmission system. The controller 60 controls the overall operation of the transmission system, and in particular, performs the control with reference to each IP of the corresponding equipment. The data processor 70 detects data received from a transmission system connected to the left or right side, monitors the line, and processes data according to network management. The branch combiner 30 separates data to be transmitted to the sub system and data to be transmitted to another transmission system under the control of the controller 60 and outputs the data to the first transmitter 20 or the second transmitter 40. Or output data to the subsystem. The second transmitter 40 is connected to the right transmission system through a line connected to the right side, and outputs data received from the branch coupling unit 30 to the right transmission system. The second receiver 50 converts the data received from the line connected to the transmission system on the right into an electrical signal and outputs the electrical signal to the branch coupling unit 30.

도 2는 전송 시스템의 보드에서 본 발명에 따른 주요부의 블록 구성도이다. 이하 도 2를 참조하여 아이피 주소의 설정에 필요한 블록 구성과 그 동작을 상세히 설명한다.Figure 2 is a block diagram of the main part of the board of the transmission system according to the present invention. Hereinafter, a block configuration and its operation required for setting an IP address will be described in detail with reference to FIG. 2.

운용자는 운용자 컴퓨터를 이용하여 전송 시스템의 특정한 보드와 연결된다. 이때 운용자 컴퓨터와 전송 시스템의 특정한 보드간의 연결은 랜(LAN:Local AreaNetwork)을 이용하여 연결되며, 운용자 컴퓨터와 연결되는 보드는 랜을 통해 연결되기 위한 랜 접속부(12)를 구비한다. 이하의 설명에서 도 1의 제1수신부(10)가 운용자 컴퓨터와 연결되는 것을 예로서 설명한다. 제1수신부(10)는 운용자 컴퓨터와 데이터를 송수신하기 위한 랜 접속부(12)를 구비하며, 제1수신부(10)의 동작을 제어하기 위한 프로세서(11)를 구비한다. 또한 프로세서(11)의 동작에 필요한 데이터를 저장하며, 동작시 발생되는 데이터를 임시 저장하기 위한 메모리부(13)와, 본 발명에 따라 아이피 주소를 저장하기 위한 NVRAM(14)를 구비한다. 그리고 상기 프로세서(11)는 제1수신부(10)의 다른 장치와 연결되어 있다.The operator connects to a specific board of the transmission system using the operator computer. At this time, the connection between the operator computer and a specific board of the transmission system is connected by using a local area network (LAN), and the board connected to the operator computer has a LAN connection 12 for connecting via a LAN. In the following description, an example in which the first receiver 10 of FIG. 1 is connected to an operator computer will be described. The first receiver 10 includes a LAN connection 12 for transmitting and receiving data to and from an operator computer, and includes a processor 11 for controlling the operation of the first receiver 10. In addition, a memory unit 13 for storing data necessary for the operation of the processor 11, temporarily storing data generated during operation, and NVRAM 14 for storing an IP address according to the present invention. The processor 11 is connected to another device of the first receiver 10.

도 3은 본 발명의 바람직한 실시예에 따라 내장 시스템의 보드에서 수행되는 제어 흐름도이다. 이하 도 1 내지 도 3을 참조하여 본 발명에 따라 내장 시스템의 보드에서 수행되는 제어 과정을 상세히 설명한다.3 is a control flowchart performed on a board of an embedded system according to a preferred embodiment of the present invention. Hereinafter, a control process performed on a board of an embedded system according to the present invention will be described in detail with reference to FIGS. 1 to 3.

전송 시스템의 각 보드는 전원이 온(Power On)되면, (100)단계로 진행하여 쉘(Shell)모드를 수행한다. 쉘모드에 따른 서브 루틴의 동작은 도 4를 참조하여 설명한다. 도 4는 본 발명의 바람직한 실시예에 따른 쉘 서브 루틴의 제어 흐름도이다. 이하 도 4를 참조하여 쉘모드의 서브 루틴의 동작을 설명한다.When each board of the transmission system is powered on, the board proceeds to step 100 to perform a shell mode. The operation of the subroutine according to the shell mode will be described with reference to FIG. 4. 4 is a control flowchart of a shell subroutine according to a preferred embodiment of the present invention. Hereinafter, the operation of the subroutine in shell mode will be described with reference to FIG. 4.

쉘모드로 진행하면, 프로세서(11)는 내부에 내장된 타이머를 소정의 시간으로 세팅한다. 그리고, 랜 접속부(12)를 통해 데이터가 수신되는가를 검사한다. 상기 검사결과 데이터가 수신되는 경우 (116)단계로 진행하며, 데이터가 수신되지 않는 경우 (114)단계로 진행하여 타임아웃 신호가 수신되는가를 검사한다. 상기 프로세서(11)는 내부 타이머로부터 타임아웃 신호가 수신되는 경우 쉘모드를 종료하고,도 3의 (200)단계인 겟아이피(Get IP)단계로 진행한다.In the shell mode, the processor 11 sets the internal timer to a predetermined time. Then, it is checked whether data is received through the LAN connection unit 12. If the test result data is received, the process proceeds to step 116. If the data is not received, the process proceeds to step 114 to check whether a timeout signal is received. When the timeout signal is received from the internal timer, the processor 11 ends the shell mode and proceeds to a get IP step (200) of FIG. 3.

이때 상기 운용자 컴퓨터에서 운용자가 셋아이피(Set IP)명령을 입력하여 아이피 주소 예를 들어 '165.213.227.212'를 입력하는 경우 상기 입력된 아이피 주소는 랜 접속부(12)를 통해 상기 프로세서(11)로 입력된다. 그러면 상기 프로세서는 (116)단계로 진행하여 수신된 데이터를 검사한다. 그리고 (118)단계로 진행하여 상기 프로세서(11)는 셋아이피(Set IP) 데이터인가를 검사한다. 상기 프로세서(11)는 셋아이피 데이터가 수신된 경우 (120)단계로 진행하여 상기 NVRAM(14)에 아이피에 대한 데이터를 저장하고 (128)단계로진행한다.In this case, when the operator inputs an IP address, for example, '165.213.227.212' in the operator computer by inputting a Set IP command, the input IP address is transferred to the processor 11 through the LAN connection unit 12. Is entered. The processor then proceeds to step 116 to examine the received data. In operation 118, the processor 11 checks whether the set IP data is set. When the set IP data is received, the processor 11 proceeds to step 120 to store data about the IP in the NVRAM 14 and proceeds to step 128.

이와 달리 상기 수신된 데이터가 셋아이피 데이터가 아닌 경우 프로세서(11)는 (122)단계로 진행하여 셋에더 데이터가 수신되었는가를 검사한다. 상기 검사결과 셋에더 데이터가 수신된 경우 (124)단계로 진행하며, 셋에더(Set Ether) 데이터가 수신되지 않은 경우 (126)단계로 진행한다. 여기서 셋에더 데이터는 운용자가 운용자 컴퓨터를 이용하여 에너넷을 통한 데이터를 사용할 것을 명령하는 데이터를 입력한 경우로 이를 예를 들어 설명하면, 운용자가 setether '0:0:f0:ff:1:2'를 입력하는 경우이다. 상기 검사결과 셋에더 데이터가 수신된 경우 (124)단계로 진행하여 상기 NVRAM(14)에 에더 데이터를 저장한 후 쉘모드를 종료한다. 그러나 상기 검사결과 에더에 따른 데이터가 아닌 경우 (126)단계로 진행하여 종료에 따른 데이터가 수신되었는가를 검사한다. 상기 검사결과 종료에 따른 데이터가 수신된 경우 상기 쉘모드를 종료하고 도 3의 (200)단계인 겟아이피로 진행한다. 그러나 종료 데이터가 아닌 경우 상기 (112)단계에서 입력된 데이터가 잘못 입력된 데이터로 인식하여 (128)단계로 진행한다. 상기 프로세서(11)는 (128)단계에서 데이터가 수신되는가를 검사한다. 상기 검사결과 데이터가 수신되는 경우 (115)단계로 진행하며, 데이터가 수신되지 않는 경우 (114)단계로 진행한다. 이와 같은 과정을 거쳐 아이피 데이터를 수신하거나 또는 에더 데이터를 수신하거나 또는 타임아웃에 의해 상기 NVRAM(14)에 기존에 저장된 데이터를 사용하도록 한다.In contrast, if the received data is not set IP data, the processor 11 proceeds to step 122 and checks whether set-eder data has been received. If the set result data is received, the process proceeds to step 124, and if no set ether data is received, the process proceeds to step 126. Here, the set-ether data refers to a case in which the operator inputs data instructing the operator to use the data through the energynet by using the operator's computer. For example, the operator setsset '0: 0: f0: ff: 1: This is the case when 2 'is input. If the test result set data is received, the process proceeds to step 124 where the data is stored in the NVRAM 14 and the shell mode is terminated. However, if it is not the data according to the test result, the process proceeds to step 126 to check whether the data according to the termination is received. When the data according to the end of the test result is received, the shell mode is terminated and the process proceeds to Get IP of step 200 of FIG. 3. However, if it is not the end data, the data input in step 112 is recognized as incorrectly input data and the process proceeds to step 128. The processor 11 checks whether data is received in step 128. When the test result data is received, the process proceeds to step 115, and when no data is received, the process proceeds to step 114. Through such a process, the IP data is received, the Ether data is received, or the time-out is used to use the data previously stored in the NVRAM 14.

상기 도 4와 같은 과정을 거쳐 쉘모드의 수행이 종료되면, 상기 프로세서(11)는 (200)단계의 겟아이피 단계로 진행한다. 그러면 겟아이피의 단계를 도 5를 참조하여 설명한다. 도 5는 본 발명의 바람직한 실시예에 따른 겟아이피 서브 루틴의 제어 흐름도이다. 이하 도 2 및 도 5를 참조하여 겟아이피의 서브 루틴을 상세히 설명한다.After the execution of the shell mode through the process as shown in FIG. 4, the processor 11 proceeds to the get IP step of step 200. Next, the steps of the Get IP will be described with reference to FIG. 5. 5 is a control flowchart of a get IP subroutine according to a preferred embodiment of the present invention. Hereinafter, the subroutine of Get IP will be described in detail with reference to FIGS. 2 and 5.

상기 프로세서(11)는 (210)단계로 진행하면, 상기 쉘모드에서 저장된 데이터 또는 그 이전에 저장된 아이피(IP) 또는 에더(ETHER) 데이터를 상기 NVRAM(14)으로부터 읽어온다. 그리고 프로세서(11)는 상기 읽어온 데이터를 변수에 설정한다. 즉, 아이피 데이터가 존재하는 경우 아이피 데이터를 읽어와 사용하며, 아이피 데이터가 상기 NVRAM(14)에 저장되어 있지 않고, 에더 데이터만 저장되어 있는 경우 에더 데이터를 읽어와 사용한다. 상기 NVRAM(14)는 비휘발성 메모리이므로 전원의 온/오프에 따라 데이터가 삭제되지 않음으로써 한번 저장된 데이터는 운용자가 다시 삭제하기 전에는 지워지지 않는다. 따라서 사용자는 한번의 입력으로 아이피 또는 에더 데이터를 입력하여 사용할 수 있다. 상기와 같은 과정을 거쳐 변수에 읽어온 데이터를 설정한 후 상기 겟아이피 서브 루틴을 종료하고, (300)단계의 알에이알피(RARP)로 진행한다.The processor 11 proceeds to step 210, and reads data stored in the shell mode or previously stored IP or Ether data from the NVRAM 14. The processor 11 sets the read data in a variable. That is, the IP data is read and used when the IP data exists, and when the IP data is not stored in the NVRAM 14 and only the Ether data is stored, the Ether data is read and used. Since the NVRAM 14 is a non-volatile memory, data is not deleted when the power is turned on or off, so that the data once stored is not erased until the operator deletes it again. Therefore, the user can input and use IP or Ether data with one input. After setting the data read to the variable through the above process, the get IP subroutine is terminated, and the RRP of step 300 is performed.

그러면 알에이 알피 서브 루틴은 도 6을 참조하여 설명한다. 도 6은 본 발명의 바람직한 실시예에 따른 알에이알피 서브 루틴의 제어 흐름도이다.The ALPH subroutine will now be described with reference to FIG. 6. 6 is a control flowchart of an AL subroutine according to a preferred embodiment of the present invention.

상기 프로세서(11)는 (310)단계에서 변수에 설정된 아이피가 존재하는가를 검사한다. 이때 아이피가 없는 경우 즉, 상기 NVRAM(14)에 미리 저장되어 있는 아이피가 없거나 또는 운용자로부터 미리 입력된 아이피가 없어 변수에 설정하지 못한 경우가 된다. 이러한 경우 상기 프로세서(11)는 (312)단계로 진행하고, 그렇지 않은 경우 프로세서는 알에이알피 서브 루틴을 종료한다.The processor 11 checks whether the IP set in the variable exists in step 310. In this case, there is no IP, that is, there is no IP previously stored in the NVRAM 14 or there is no IP previously input from an operator, and thus the IP cannot be set to a variable. In this case, the processor 11 proceeds to step 312, otherwise the processor terminates the RLP subroutine.

상기 프로세서(11)는 (312)단계로 진행하면, 상기 전송 시스템의 서버로 아이피 데이터를 요구하는 신호를 생성하여 전송한다. 그리고 (314)단계로 진행하여 서버로부터 아이피 데이터가 수신되었는가를 검사한다. 상기 검사결과 아이피 데이터가 수신되는 경우 (316)단계로 진행하여 아이피 데이터를 상기 NVRAM(14)에 저장한 후 (318)단계로 진행하여 변수에 적용한다. 그리고 상기 알에이알피 서브 루틴을 종료한다. 이와 같이 알에이알피 서브 루틴이 종료되면, 상기 프로세서는 다시 도 3의 (400)단계인 엑스트레이스(xtrace) 모드로 진행한다. 여기서 엑스트레이스란, VRTX RTOS의 개발환경인 SPECTRA에서 타겟 보드(traget board)와 개발 호스트와 통신채널을 만들어 주는 단계로서 응용(Application)을 수행할 수 있도록 디버깅(Debugging) 채널을 제공하는 것을 말한다. 즉, 이러한 과정을 거쳐 아이피 및 에더넷 주소를 환경에 따라 자유로이 설정하거나 변경하여 사용할 수 있게 된다.When the processor 11 proceeds to step 312, the processor 11 generates and transmits a signal for requesting IP data to a server of the transmission system. In step 314, it is checked whether IP data is received from the server. If the IP data is received, the process proceeds to step 316 to store the IP data in the NVRAM 14, and then proceeds to step 318 to apply to the variable. And the RLP subroutine ends. As such, when the RLP subroutine ends, the processor proceeds back to the xtrace mode in step 400 of FIG. 3. Here, the X-trace is a step of making a communication channel with a target board and a development host in SPECTRA, which is a development environment of the VRTX RTOS, and provides a debugging channel so that an application can be performed. That is, through this process, IP and Ethernet addresses can be freely set or changed according to the environment.

상술한 바와 같이 하나의 특정한 아이피 또는 에더넷 주소를 고정하여 사용하는 것이 아니라 시스템이 설치되는 환경에 따라 또는 운용자의 입력에 따라 자유로이 설정 및 변경하여 사용할 수 있는 잇점이 있다. 또한 아이피 주소를 매번 운용자가 입력하지 않아도 되는 잇점이 있다.As described above, rather than fixing one specific IP or Ethernet address, there is an advantage in that the system can be freely set and changed according to the environment in which the system is installed or the input of the operator. It also has the advantage of not having to enter an IP address every time.

Claims (3)

내장 시스템의 아이피 및 에더넷 주소를 설정 및 변경하는 방법에 있어서,In the method of setting and changing the IP and Ethernet address of the built-in system, 상기 내장 시스템의 전원이 온되면 운용자로부터 아이피 또는 에더넷 주소에 따른 데이터가 수신되는가를 검사하여 아이피 또는 에더넷 주소에 따른 데이터가 수신될 경우 이를 비휘발성 메모리에 저장하는 쉘모드 수행 단계와,A shell mode performing step of checking whether data according to an IP or Ethernet address is received from an operator when the embedded system is powered on and storing the data according to the IP or Ethernet address in a nonvolatile memory; 상기 쉘모드 수행 후 상기 비휘발성 메모리에 저장된 아이피를 읽어와 변수에 적용하는 겟아이피 수행 단계와,Performing a get IP after reading the IP stored in the nonvolatile memory after the shell mode is executed; 상기 겟아이피 수행 후 상기 읽어온 변수가 값을 가지고 있는가를 검사하여 변수에 적용된 값이 없는 경우 서버로 아이피 데이터를 요구하여 수신하는 알에이알피 수행 단계와,A step of performing an ALP requesting and receiving IP data from a server if there is no value applied to the variable by checking whether the read-out variable has a value after performing the get IP; 상기 알에이알피 수행 후 타겟 보드와 호스트간의 통신채널을 만들어 주는 응용을 수행할 수 있도록 디버깅채널을 제공하는 엑스트레이스 수행 단계로 이루어짐을 특징으로 하는 내장 시스템의 아이피 및 에더넷 주소 설정 및 변경 방법.Method of setting and changing the IP and Ethernet address of the embedded system, characterized in that the step of performing the X trace to provide a debugging channel to perform the application to make a communication channel between the target board and the host after performing the RLP. 제1항에 있어서, 상기 쉘모드 수행단계가,The method of claim 1, wherein the shell mode execution step, 쉘모드 수행시간에 따른 타이머를 소정의 시간으로 세트하는 단계와,Setting a timer according to a shell mode execution time to a predetermined time; 상기 타이머의 타임아웃 이전에 셋아이피 또는 셋에더 데이터가 수신되는가를 검사하는 단계와,Checking whether the set IP or set-eder data is received before timeout of the timer; 상기 검사결과 셋아이피 또는 셋에더 데이터가 수신되는 경우 이를 상기 비휘발성 메모리에 저장한 후 쉘모드를 종료하는 단계와,If the set IP or set-adder data is received as a result of the test, storing the data in the nonvolatile memory and ending the shell mode; 상기 셋아이피 또는 셋에더 데이터가 수신되기 이전에 타임아웃 신호가 수신되는 경우 상기 쉘모드를 종료하는 단계로 이루이짐을 특징으로 하는 내장 시스템의 에더넷 주소 설정 및 변경 방법.And exiting the shell mode when a timeout signal is received before the set IP or set ether data is received. 제1항 또는 제2항에 있어서, 상기 알에이알피 수행 단계가,According to claim 1 or 2, wherein the step of performing ALLP, 상기 비휘발성 메모리에 저장된 아이피 및 에더 데이터가 없는가를 검사하는 단계와,Checking whether there is no IP and Ether data stored in the nonvolatile memory; 상기 비휘발성 메모리에 저장된 아이피 및 에더 데이터가 존재하는 경우 알에이알피 수행루틴을 종료하는 단계와,Terminating the RLP execution routine when there are IP and Ether data stored in the nonvolatile memory; 상기 검사결과 아이피 및 에더 데이터가 없는 경우 시스템에 연결된 서버로 아이피 데이터를 요구하는 단계와,Requesting IP data to a server connected to the system if there is no IP and Ether data as a result of the inspection; 상기 서버로부터 아이피 데이터를 수신하면 이를 상기 비휘발성 메모리에 저장하는 단계와,Receiving the IP data from the server and storing the IP data in the nonvolatile memory; 상기 비휘발성 메모리에 저장된 데이터를 변수에 적용하는 단계로 이루어짐을 특징으로 하는 내장 시스템의 아이피 및 에더넷 주소 설정 및 변경 방법.And applying the data stored in the non-volatile memory to the variable IP and Ethernet address of the embedded system.
KR1019990022912A 1999-06-18 1999-06-18 Method for setting and changing internet protocol address and ethernet address for embedded system KR100296035B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019990022912A KR100296035B1 (en) 1999-06-18 1999-06-18 Method for setting and changing internet protocol address and ethernet address for embedded system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019990022912A KR100296035B1 (en) 1999-06-18 1999-06-18 Method for setting and changing internet protocol address and ethernet address for embedded system

Publications (2)

Publication Number Publication Date
KR20010002869A KR20010002869A (en) 2001-01-15
KR100296035B1 true KR100296035B1 (en) 2001-07-12

Family

ID=19593327

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019990022912A KR100296035B1 (en) 1999-06-18 1999-06-18 Method for setting and changing internet protocol address and ethernet address for embedded system

Country Status (1)

Country Link
KR (1) KR100296035B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008123736A1 (en) 2007-04-10 2008-10-16 Amotech Co., Ltd. Stator for aspiration motor, aspiration motor and in-car sensor using the same

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008123736A1 (en) 2007-04-10 2008-10-16 Amotech Co., Ltd. Stator for aspiration motor, aspiration motor and in-car sensor using the same

Also Published As

Publication number Publication date
KR20010002869A (en) 2001-01-15

Similar Documents

Publication Publication Date Title
US7007077B1 (en) Remote maintenance method of an information processing apparatus
US6609151B1 (en) System for configuring a computer with or without an operating system to allow another computer to remotely exchange data and control the computer
US20030088650A1 (en) Using a diskless client network topology for disk duplication and configuration
US20070169076A1 (en) Methods and systems for updating a BIOS image
US20020046399A1 (en) Interface device
CN106874032B (en) Method and device for upgrading optical module firmware and optical module
US20030140153A1 (en) Automatic initialization of a protocol stack
CN111600972B (en) Configuration method of double-stack address, server and readable storage medium
CN108804313B (en) Method and device for remotely debugging program and server
KR20040042820A (en) Software upgrade over a usb connection
CN107247596B (en) Starting method and device and electronic equipment
CN114115917A (en) Operating system installation method and device
KR100296035B1 (en) Method for setting and changing internet protocol address and ethernet address for embedded system
US8806435B2 (en) Remote logging mechanism
CN115333933B (en) Automatic management method, medium and equipment for servers on machine room
WO2006069357A1 (en) Network interface with remote control functionality
Cisco Configuring Cisco Mainframe Channel Connection Adapters
TW201351128A (en) A pre-boot execute environment device and method and system for testing pre-boot execute environment
CN112363743A (en) User program updating method based on internet access transmission
CN107920004B (en) Network connection method, device and system of gateway
WO1999040520A1 (en) Computer adapter card
CN106445571B (en) Mainboard and starting method
KR100216375B1 (en) Cpu duallization method using dual port memory
KR100357637B1 (en) Image loading method of internet communication equipment
MacMahon et al. LightWeight IP (lwIP) Application Examples

Legal Events

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

Payment date: 20070409

Year of fee payment: 7

LAPS Lapse due to unpaid annual fee