KR20100070100A - Method for updating sensor node based on database and method for operating target-node - Google Patents

Method for updating sensor node based on database and method for operating target-node Download PDF

Info

Publication number
KR20100070100A
KR20100070100A KR1020080128698A KR20080128698A KR20100070100A KR 20100070100 A KR20100070100 A KR 20100070100A KR 1020080128698 A KR1020080128698 A KR 1020080128698A KR 20080128698 A KR20080128698 A KR 20080128698A KR 20100070100 A KR20100070100 A KR 20100070100A
Authority
KR
South Korea
Prior art keywords
image
update
node
target node
information
Prior art date
Application number
KR1020080128698A
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 KR1020080128698A priority Critical patent/KR20100070100A/en
Publication of KR20100070100A publication Critical patent/KR20100070100A/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks

Abstract

PURPOSE: A node updating method based on a database and a target node operating method thereof are provided to update an image of a sensor node by communicating only delta information consisting of difference between a present execution image and an image to update of the sensor node. CONSTITUTION: A database storing a node identifier and an execution image about each node is constructed. The execution image of a target node from the database is extracted by using an identifier of the target node(S330). The similarity of data between the execution image and an updating image is compared with reference to an address field. The data includes a record of the updating image which is not similar. Delta information is generated(S350).

Description

데이터베이스 기반 노드 갱신 방법 및 그에 따른 타겟 노드 운용 방법 {Method for updating sensor node based on database and method for operating target-node}Database-based node update method and target node operation method {Method for updating sensor node based on database and method for operating target-node}

본 발명은 센서 네트워크를 구성하는 센서 노드의 갱신 방법에 관한 것으로서, 구체적으로는 각 센서 노드의 실행 이미지에 대한 데이터베이스를 기반으로 갱신할 이미지와 실행 이미지의 차이 정보를 전송하여 노드를 갱신하는 노드 갱신 방법 및 그에 따른 타겟 노드 운용 방법에 관한 것이다.The present invention relates to a method for updating a sensor node constituting a sensor network. Specifically, a node update for updating a node by transmitting difference information between an image to be updated and an execution image based on a database of execution images of each sensor node. It relates to a method and a target node operation method accordingly.

본 발명은 지식경제부 및 정보통신연구진흥원의 연구기반사업의 일환으로 수행한 연구로부터 도출된 것이다 [과제관리번호: 07-기반-10, 과제명: 대구 임베디드S/W기술지원센터 설립 운영].The present invention is derived from a study conducted as part of a research-based project of the Ministry of Knowledge Economy and the Korea Institute of Information and Telecommunication Research and Development. [Task Management No .: 07-Base-10, Project Name: Daegu Embedded S / W Technical Support Center].

최근 무선 통신 기술의 발달과 하드웨어 기술의 발전에 힘입어 저렴한 가격으로 작은 크기의 무선 통신 노드가 개발됨에 따라, 이러한 무선 통신 노드를 사용한 응용의 하나로 무선 센서 네트워크에 관한 연구가 활발히 이루어지고 있다.Recently, due to the development of wireless communication technology and the development of hardware technology, a small sized wireless communication node has been developed at a low price, and research on the wireless sensor network has been actively conducted as one of the applications using the wireless communication node.

무선 센서 네트워크는 데이터를 모아 필요한 정보로 가공하는 역할을 하는 싱크 노드와, 센서를 갖추고 관심 데이터를 수집하는 역할을 하는 센서 노드들로 구성된다. 이러한 센서 노드들은 센서 필드라고 불리는 주로 사람이 활동하기 힘든 위험한 장소에 배치되어 관심 있는 데이터를 수집하고, 그 수집된 데이터를 싱크 노드를 통하여 서버에 전송한다.The wireless sensor network consists of a sink node that collects data and processes it into necessary information, and a sensor node that collects data of interest with a sensor. These sensor nodes are placed in dangerous places, often called human sensor fields, to collect data of interest and transmit the collected data to the server through the sink node.

통상적으로 이러한 센서 노드들은 사람의 활동이나 접근이 용이 하지 않은 장소에 주로 배치되고 있으며, 센서 노드의 실행 이미지에 대한 수정이 필요한 경우 이러한 위치적 요인 때문에 센서 노드가 배치된 장소에 직접가서 센서 노드를 수거하거나 유선 인터페이스로 통신하여 실행 이미지를 수정하기는 매우 어렵다.Typically, these sensor nodes are mainly deployed in places where human activity or access is not easy, and when the execution image of the sensor node needs to be modified, these positional factors cause the sensor node to go directly to the place where the sensor node is placed. It is very difficult to modify the executable image by collecting it or communicating over the wired interface.

따라서 센서 노드에 대하여 무선 통신을 통한 실행 이미지 등의 업데이트가 필요하다. 종래의 무선 통신을 이용한 실행 이미지 업데이트 방법은, 갱신할 실행 이미지를 전체로 전송하여 이를 각 노드에서 다운받아 갱신해야 했으므로, 전송해야 할 데이터가 커서 무선 통신량이 증가하는 문제점이 있으며, 또한 센서 노드 자체가 이미지 교체를 위한 대용량의 메모리를 가지고 있어야 하는 문제점이 있다. Therefore, it is necessary to update the execution image of the sensor node through wireless communication. In the conventional execution image update method using wireless communication, since the execution image to be updated must be transmitted as a whole and downloaded and updated from each node, there is a problem in that the amount of data to be transmitted increases and the wireless communication amount increases, and the sensor node itself. There is a problem that must have a large amount of memory for image replacement.

또한 이러한 무선 통신 데이타의 증가는 전력 소모를 증가시키므로 센서 노드의 전력 유지가 또한 문제되고 있다.In addition, the increase of the wireless communication data increases the power consumption, so the power maintenance of the sensor node is also a problem.

본 발명은 전술한 문제점을 해결하기 위한 것으로, 본 발명이 해결하고자 하는 과제는 센서 노드의 현재 실행 이미지와 갱신할 이미지의 차이로 구성된 델타 정보만을 통신하여 센서 노드의 이미지를 갱신할 수 있는 데이터베이스 기반 노드 갱신 방법 및 그에 따른 타겟 노드 운용 방법을 제공하는 것이다.The present invention is to solve the above problems, the problem to be solved by the present invention is a database-based that can update the image of the sensor node by communicating only the delta information consisting of the difference between the current execution image of the sensor node and the image to be updated It provides a node update method and a target node operation method accordingly.

전술한 과제를 해결하기 위하여, 본 발명의 일면에 따른 노드 갱신 방법은, 업데이트 대상인 타겟 노드의 실행 이미지를 추출하는 단계; 및 상기 실행 이미지와 갱신 이미지의 차이에 대한 델타 정보를 전송하는 단계를 포함하는 것을 특징으로 한다.In order to solve the above problems, the node update method according to an aspect of the present invention, the step of extracting the execution image of the target node to be updated; And transmitting delta information on a difference between the execution image and the update image.

본 발명의 다른 면에 따른 타겟 노드 운용 방법은, 갱신 요청 메시지를 수신하면 갱신의 필요여부를 판단하는 단계; 및 상기 판단결과 갱신이 필요하면 현재 실행 이미지와 갱신 이미지의 차이에 대한 델타 정보를 수신하여 타겟 노드의 메모리에 저장하는 단계를 포함하는 것을 특징으로 한다.According to another aspect of the present invention, there is provided a method of operating a target node, the method comprising: determining whether an update is necessary when receiving an update request message; And receiving delta information on a difference between the current execution image and the update image and updating the delta information about the difference between the current execution image and the update image.

본 발명은, 실행 이미지와 갱신 이미지의 차이를 이용한 델타 정보만을 전송하여 센서 노드의 실행 이미지를 갱신할 수 있으므로, 기존에 비하여 무선 통신 데이터 량을 줄이고도 이미지를 갱신할 수 있는 효과가 있으며, 따라서 센서 노드의 소모 전력도 줄이는 효과가 있다.According to the present invention, since the execution image of the sensor node can be updated by transmitting only delta information using the difference between the execution image and the update image, the image can be updated even though the amount of wireless communication data is reduced compared to the conventional one. It also reduces the power consumption of sensor nodes.

또한 본 발명은, 갱신할 델타 정보는 실행 이미지보다 작으므로 센서 노드는 델타 정보만을 메모리에 저장하여 갱신을 수행할 수 있어, 갱신을 위하여 대용량 메모리가 필요없는 장점이 있다.In addition, in the present invention, since the delta information to be updated is smaller than the execution image, the sensor node can perform update by storing only the delta information in the memory, so that a large capacity memory is not required for the update.

이하, 첨부된 도면을 참조하여 본 발명의 실시예를 상세하게 설명한다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings.

도 1은 본 발명의 실시예에 따른 데이터베이스 기반 노드 갱신 방법 및 그에 따른 타겟 노드 운용 방법을 설명하기 위한 센서 네트워크를 도시한 구성도이다.1 is a block diagram illustrating a sensor network for explaining a database-based node update method and a target node operation method according to an embodiment of the present invention.

도 1을 참조하면, 센서 네트워크는 관리 서버(100)와, 싱크 노드(200)와 타겟 노드(300) 및 데이터베이스(110)를 포함할 수 있다.Referring to FIG. 1, the sensor network may include a management server 100, a sink node 200, a target node 300, and a database 110.

관리 서버(100)는 싱크 노드(200)와 인터넷으로 연결되어 있으며, 싱크 노드(200)를 경유하여 센서 네트워크를 구성하는 센서 노드들과 통신을 수행할 수 있다. The management server 100 is connected to the sink node 200 through the Internet, and may communicate with sensor nodes constituting the sensor network via the sink node 200.

싱크 노드(200)는 센서 노드(300)들과 센서 네트워크를 구성할 수 있으며, 관리 서버(100)와도 통신 경로를 유지할 수 있다.The sink node 200 may configure a sensor network with the sensor nodes 300 and maintain a communication path with the management server 100.

타겟 노드(300)는 소프트웨어 이미지(이하, '실행 이미지'라 칭함)를 업데이트 하려고 하는 대상 노드로서, 센서 네트워크를 구성하는 센서 노드이다. The target node 300 is a target node that attempts to update a software image (hereinafter, referred to as an execution image) and is a sensor node constituting a sensor network.

본 발명의 실시예에 따른 노드 갱신 방법을 간략히 설명하면, 관리 서버(100)는 실행 이미지와 갱신 이미지의 차이를 이용하여 델타 정보를 구성할 수 있고, 이러한 델타 정보를 타겟 노드(300)에 제공함으로써 통신 데이터량을 줄이면서도 타겟 노드(300)가 실행 이미지를 교체하도록 할 수 있다.Briefly explaining a node update method according to an embodiment of the present invention, the management server 100 can configure the delta information by using the difference between the execution image and the update image, and provides such delta information to the target node 300 As a result, the target node 300 may replace the execution image while reducing the amount of communication data.

이하에서는 도 2 내지 도 3을 참조하여 관리 서버(100)의 노드 갱신 방법에 대하여 상세히 설명한다. Hereinafter, a method of updating a node of the management server 100 will be described in detail with reference to FIGS. 2 to 3.

관리 서버(100)는 싱크 노드(200)를 경유하여 센서 네트워크를 구성하는 센서 노드들에 데이터를 제공할 수 있다. 또한 관리 서버(100)는 각 센서 노드들이 현재 실행 중인 실행 이미지에 대한 정보를 보유한 데이터베이스(110)를 더 포함할 수 있다.The management server 100 may provide data to sensor nodes constituting the sensor network via the sink node 200. In addition, the management server 100 may further include a database 110 for holding information on the execution image of each sensor node currently running.

도 2는 데이터베이스의 저장 데이터를 개략적으로 도시한 구성도로서, 도 2에 도시된 바와 같이, 데이터베이스(110)는 센서 네트워크를 구성하는 각 노드에 대한 노드 식별자 및 그 센서 노드가 현재 실행 중인 실행 이미지에 대한 정보를 유지할 수 있다. 델타 정보는 이러한 데이터베이스(110)에 저장된 실행 이미지와 갱신 이미지의 차이를 이용하여 구성될 수 있다.FIG. 2 is a schematic diagram showing stored data of a database. As shown in FIG. 2, the database 110 may include a node identifier for each node constituting a sensor network and an execution image of the sensor node currently running. Keep information about The delta information may be configured using the difference between the execution image and the update image stored in the database 110.

따라서 관리 서버(100)는 데이터베이스(110)를 이용하여 타겟 노드(300)의 현재 실행 이미지를 알 수 있으며, 이러한 현재 실행 이미지와 갱신 이미지의 차이에 대하여 델타 정보를 구성하며 그 구성된 델타 정보를 타겟 노드(300)에 제공함으로써 타겟 노드(300)의 실행 이미지를 갱신할 수 있다. 이하에서는 이러한 관리 서버(100)의 노드 갱신 방법에 대하여 상세히 설명한다.Accordingly, the management server 100 may know the current execution image of the target node 300 using the database 110, configure delta information on the difference between the current execution image and the update image, and target the configured delta information. By providing the node 300, an execution image of the target node 300 may be updated. Hereinafter, the node update method of the management server 100 will be described in detail.

도 3은 본 발명의 실시예에 따른 노드 갱신 방법을 나타내는 순서도이다.3 is a flowchart illustrating a node update method according to an embodiment of the present invention.

관리 서버(100)는 센서 노드를 갱신할 새로운 갱신 이미지를 생성하고(S310), 갱신을 수행할 대상 타겟 노드(300)를 선정한다(S320). 그 후, 관리 서버(100)는 타겟 노드(300)의 식별자를 데이터베이스(110)에 질의하여, 데이터베이 스(110)로부터 타겟 노드(300)가 현재 실행 중인 실행 이미지에 대한 정보를 추출할 수 있다(S330).The management server 100 generates a new update image to update the sensor node (S310), and selects a target target node 300 to perform the update (S320). Thereafter, the management server 100 may query the database 110 for the identifier of the target node 300 to extract information about the execution image currently executed by the target node 300 from the database 110. There is (S330).

또한 관리 서버(100)는 데이터베이스(110)의 실행 이미지 정보를 갱신할 수 있다(S340). 즉, 타겟 노드(300)는 갱신 이미지를 새로운 실행 이미지로 갱신할 것이므로, 이를 반영하여 관리 서버(100)는 데이터베이스(110)를 갱신할 수 있다. 이를 위하여, 관리 서버(100)는, 데이터베이스(110)에 저장되어 있는 타겟 노드(300)의 실행 이미지 정보에 갱신 이미지에 대한 정보를 저장함으로써 갱신을 수행할 수 있다. 이러한 데이터베이스(110)의 갱신 절차를 통하여, 데이터베이스(110)는 각 센서 노드들의 실행 이미지 정보를 유지하고 관리할 수 있으며, 이를 기반으로 델타 정보를 구성하도록 할 수 있는 것이다.In addition, the management server 100 may update the execution image information of the database 110 (S340). That is, since the target node 300 will update the update image with the new execution image, the management server 100 may update the database 110 by reflecting this. To this end, the management server 100 may perform the update by storing information on the update image in the execution image information of the target node 300 stored in the database 110. Through the update procedure of the database 110, the database 110 can maintain and manage the execution image information of each sensor node, it is possible to configure the delta information based on this.

또한 관리 서버(100)는 전술한 바와 같이 데이터베이스(110)에서 추출된, 타겟 노드(300)의 현재 실행 이미지와 새로운 갱신 이미지의 차이를 이용하여 델타 정보를 생성할 수 있다(S350). 이러한 델타 정보의 생성 방법에 대하여는, 도 4를 참조하여 후술한다.In addition, the management server 100 may generate delta information by using a difference between the current execution image of the target node 300 and the new update image extracted from the database 110 as described above (S350). A method of generating such delta information will be described later with reference to FIG. 4.

그리고 관리 서버(100)는 그 생성된 델타 정보를 타겟 노드(300)에 전송함으로써, 타겟 노드(300)의 갱신 절차 수행을 완료할 수 있다(S360). 이때 델타 정보를 전송하기 위하여, 관리 서버(100)는 갱신을 요청하는 메시지(이하, '갱신 요청 메시지'라 칭함)를 타겟 노드(300)에 전송하여, 그에 대한 응답 메시지(이하, '갱신 응답 메시지'라 칭함)을 수신하면 델타 정보를 전송하여 타겟 노드(300)의 갱신을 수행할 수 있다. 이러한 경우, 관리 서버(100)는 전술한 갱신 응답 메시지 또는 델타 정보 전송에 대한 응답 메시지를 일정 시간 동안 대기한 후, 이러한 응답 메시지들이 도달하지 아니하면 해당하는 갱신 요청 메시지 또는 델타 정보를 다시 전송하도록 실시할 수 있다.The management server 100 may complete the update procedure of the target node 300 by transmitting the generated delta information to the target node 300 (S360). At this time, in order to transmit the delta information, the management server 100 transmits a message requesting the update (hereinafter referred to as an "update request message") to the target node 300, and a response message (hereinafter referred to as "update response") Message), the delta information may be transmitted to update the target node 300. In this case, the management server 100 waits for a predetermined time for the above-described update response message or response message for the delta information transmission, and if the response messages do not arrive, transmits the corresponding update request message or delta information again. It can be carried out.

이하에서는, 도 4를 참조하여 델타 정보의 생성 방법에 대하여 설명한다. Hereinafter, a method of generating delta information will be described with reference to FIG. 4.

도 4는 타겟 노드의 실행 이미지의 구조를 나타내는 구성도이다.4 is a configuration diagram illustrating a structure of an execution image of a target node.

도 4에 도시된 바와 같이, 본 발명의 실시예에 따르면, 센서 노드들은 도시된 구조의 실행 이미지를 실행할 수 있다. 이러한 실행 이미지는, 시작 코드, 바이트 카운트, 주소, 데이타 및 체크섬에 대한 필드를 포함할 수 있으며, 도시된 바이트 수는 예시적인 것이다.As shown in FIG. 4, in accordance with an embodiment of the present invention, sensor nodes may execute an executable image of the depicted structure. Such an executable image may include fields for start code, byte count, address, data, and checksum, and the number of bytes shown is exemplary.

이때, 실행 이미지의 주소 필드는 센서 노드의 프로그램 메모리의 주소를 나타낼 수 있다. 즉, 센서 노드에서 실행되는 실행 이미지의 특정 레코드의 주소 필드는 그 센서 노드의 프로그램 메모리의 주소와 대응될 수 있으며, 그 주소 필드를 가지는 레코드의 데이터 필드는 그 센서 노드의 해당 프로그램 메모리 주소에 저장될 데이터를 나타낼 수 있다. In this case, the address field of the execution image may indicate the address of the program memory of the sensor node. That is, the address field of a specific record of an execution image executed in the sensor node may correspond to the address of the program memory of the sensor node, and the data field of the record having the address field is stored in the corresponding program memory address of the sensor node. It can represent the data to be.

이러한 실행 이미지의 구조를 이용하여 관리 서버(100)는 델타 정보를 구성할 수 있다. 즉, 관리 서버(100)는 타겟 노드(300)의 현재 실행 이미지와 갱신 이미지에 대하여, 주소 필드를 기준으로 데이터 필드가 서로 상이한 지를 비교함으로써 두 이미지 사이의 차이점을 추출할 수 있다. 두 이미지 간에 데이터 필드가 서로 상이한 주소 필드가 검색되면, 관리 서버(100)는 갱신 이미지의 해당 레코드를 추출하여 이를 델타 정보에 포함시킬 수 있다. The management server 100 may configure the delta information by using the structure of the execution image. That is, the management server 100 may extract differences between the two images by comparing whether the data field is different from each other based on the address field with respect to the current execution image and the update image of the target node 300. If an address field having a different data field is found between the two images, the management server 100 may extract the corresponding record of the update image and include it in the delta information.

즉, 관리 서버(100)는 실행 이미지와 주소 필드는 동일하나 데이터 필드는 상이한 갱신 이미지의 레코드를 포함하여 델타 정보를 생성할 수 있으며, 타겟 노드(300)는 수신받은 델타 이미지의 각 레코드에 대하여 주소 필드를 기준으로 데이터를 해당 메모리의 주소에 저장함으로써 실행 이미지를 갱신할 수 있다. That is, the management server 100 may generate delta information including records of an update image having the same execution image and address field but different update images, and the target node 300 may generate delta information for each record of the received delta image. The execution image can be updated by storing data in an address of a corresponding memory based on an address field.

이러한 본 발명의 실시예에 따라, 갱신하고자 하는 이미지를 전부 전송할 필요 없이 현재 실행되는 이미지와 차이가 있는 레코드만 전송하여도 실행 중인 이미지를 갱신할 수 있으며, 이를 통하여 센서 노드가 통신해야 할 데이터의 크기를 효율적으로 줄일 수 있으며, 이를 통하여 데이터 트래픽의 최소화와 센서 노드 전력 소모의 최소화를 함께 달성할 수 있다.According to the exemplary embodiment of the present invention, the image being executed can be updated by only transmitting a record that is different from the currently executed image without transmitting all the images to be updated, and thus, the sensor node can update the image. The size can be efficiently reduced, thereby minimizing data traffic and minimizing sensor node power consumption.

또한 이러한 본 발명의 실시예에 따른 실행 이미지를 이용함으로써 관리 서버(100)가 델타 정보를 생성하기 위하여 별도의 인코딩/ 디코딩 작업이 필요하지 않을 수 있다.In addition, by using the execution image according to the embodiment of the present invention, the management server 100 may not need a separate encoding / decoding operation to generate delta information.

도 4에 도시된 실행 이미지의 구조를 적용한 예로서 intel hex 파일이 있으며, 이러한 경우 데이터 필드의 데이터는 16진수(hex)로서 표현될 수 있다.An example of applying the structure of the execution image shown in FIG. 4 is an intel hex file. In this case, data of a data field may be represented as a hexadecimal number (hex).

이하에서는 도 5를 참조하여 본 발명의 실시예에 따른 타겟 노드의 운용 방법에 대하여 설명한다.Hereinafter, a method of operating a target node according to an embodiment of the present invention will be described with reference to FIG. 5.

도 5는 본 발명의 실시예에 따른 타겟 노드의 운용 방법을 도시한 순서도이다.5 is a flowchart illustrating a method of operating a target node according to an embodiment of the present invention.

타겟 노드(300)는 최초 부팅이 시작되면 수신한 갱신 이미지를 반영하여 갱신 기능을 수행하기 위한 갱신 모드인지 또는 일반적인 어플리케이션 모드인지 확 인한다(S510). 즉, 타겟 노드(300)는 전원 인가 시, 비휘발성 메모리(예컨대, Flash, EEPROM 등)에 저장된 정보를 읽어들이게 되는데 이러한 정보를 이용하여 갱신 절차를 수행하는 갱신 모드인지 정상적인 어플리케이션 모드인지를 판단하여 동작을 수행할 수 있다.When the first booting starts, the target node 300 reflects the received update image and checks whether it is an update mode or a general application mode to perform an update function (S510). That is, when power is applied, the target node 300 reads information stored in a nonvolatile memory (for example, Flash, EEPROM, etc.). The target node 300 determines whether the target node 300 is an update mode or a normal application mode to perform an update procedure. You can perform the operation.

이러한 판단 결과 일반적인 어플리케이션 모드이면, 타겟 노드(300)는 센서 노드로서의 일반적인 동작을 수행하고 있다가(S530), 관리 서버(100)가 싱크 노드(200)를 경유하여 센서 네트워크를 이용하여 갱신 요청 메시지를 전송하면, 이를 수신할 수 있다(S540). If the determination result is a general application mode, the target node 300 is performing a general operation as a sensor node (S530), and the management server 100 updates the request message using the sensor network via the sink node 200. When transmitting, it can be received (S540).

갱신 요청 메시지를 수신한 타겟 노드(300)는 갱신이 필요한 지를 확인한다(S550). 이때, 갱신이 필요한 지 확인하기 위하여, 관리 서버(100)는 갱신 요청 메시지에 갱신을 수행할 갱신 이미지의 버전 정보를 포함하여 전송할 수 있고, 이러한 갱신 요청 메시지를 수신한 타겟 노드(300)는 그 갱신 요청 메시지에서 갱신 이미지의 버전 정보를 추출하고, 또한 실행 중인 실행 이미지의 버전 정보를 추출하여 서로 비교함으로써 갱신의 필요여부를 판단할 수 있다.The target node 300 receiving the update request message checks whether an update is necessary (S550). In this case, in order to check whether an update is necessary, the management server 100 may transmit the update request message including the version information of the update image to be updated, and the target node 300 that receives the update request message may transmit the same. It is possible to determine whether the update is necessary by extracting the version information of the update image from the update request message, and also extracting and comparing the version information of the execution image being executed.

갱신이 필요한 경우가 아니면, 어플리케이션 모드로서 일반적인 동작을 계속하여 수행할 수 있다.If it is not necessary to update, general operation can be continued as an application mode.

반면, 갱신이 필요한 경우이면, 타겟 노드(300)는 관리 서버(100)와 통신 채널을 형성하여 전술한 바와 같은 갱신을 위한 델타 정보를 수신하여 갱신을 수행할 수 있다(S560). 즉, 타겟 노드(300)는 관리 서버(100)로부터 전송되어진 델타 정보를 수신하고, 그 수신된 델타 정보를 구성하는 각 레코드의 주소 필드를 추출하고, 그 주소 필드에 대응하는 메모리의 주소에 해당 레코드의 데이터를 저장함으로써 갱신을 실시할 수 있다. 이는 전술한 바와 같이, 센서 노드의 실행 이미지는 도 4에 도시된 구조로 구성되어 있기 때문이며, 따라서 타겟 노드(300)는 어떠한 디코딩 과정이 필요없이 수신받은 델타 정보를 메모리에 저장함으로써 갱신을 수행할 수 있는 것이다.On the other hand, if the update is necessary, the target node 300 may establish a communication channel with the management server 100 to receive the delta information for update as described above and perform the update (S560). That is, the target node 300 receives delta information transmitted from the management server 100, extracts an address field of each record constituting the received delta information, and corresponds to an address of a memory corresponding to the address field. The update can be performed by storing the data of the record. This is because, as described above, the execution image of the sensor node is configured in the structure shown in FIG. 4, therefore, the target node 300 may perform an update by storing the received delta information in a memory without requiring any decoding process. It can be.

이 때, 타겟 노드(300)는 비휘발성 메모리에 델타 정보의 데이터를 저장할 수 있으며, 이를 통하여 타겟 노드(300)가 갱신 모드로 재 부팅되어도 갱신 이미지에 대한 데이터(즉, 델타 정보에 대한 데이터)를 소실하지 않을 수 있다. 또한, 타겟 노드(300)는 델타 정보에 대하여 수신을 완료한 경우, 비휘발성 메모리에 갱신 모드로 재부팅 될 수 있도록 관련 정보를 저장할 수 있으며, 이러한 과정을 완료 후 타겟 노드(300)는 리셋을 실시한다(S570).At this time, the target node 300 may store the data of the delta information in the non-volatile memory, through which the data for the update image (that is, the data for the delta information) even when the target node 300 is rebooted in the update mode. May not be lost. In addition, when the reception of the delta information is completed, the target node 300 may store the related information in the nonvolatile memory so that the target node 300 can be rebooted in the update mode. After completing this process, the target node 300 performs a reset. (S570).

리셋에 따라 재 부팅이 시작된 타겟 노드(300)는, 갱신 기능 수행인지 판단하는 S510 단계에 따라 갱신 모드로 진입하여 갱신 절차를 수행할 수 있다(S520). 이러한 갱신 절차를 통하여 델타 정보를 이용하여 실행 이미지를 갱신 이미지로 갱신할 수 있다. In response to the reset, the target node 300, which has been rebooted, may enter the update mode and perform an update procedure according to step S510 of determining whether to perform an update function (S520). Through this update procedure, the execution image can be updated with the update image using the delta information.

또한 이러한 갱신이 완료되면, 이러한 갱신 이미지의 버전 정보를 현재 실행중인 이미지의 버전 정보로서 기록할 수 있다. 이러한 기록 단계는 전술한 델타 정보의 데이터를 기록한 후에 이루어 질 수도 있다. 이때 갱신 이미지의 버전 정보는 전술한 갱신 요청 메시지에 포함된 정보를 이용할 수도 있고, 또는 델타 정보에 포함되어 전송된 정보를 이용하여 버전 정보를 기록할 수 있다.In addition, when such an update is completed, the version information of the update image can be recorded as the version information of the image currently being executed. This recording step may be performed after recording the data of the above-described delta information. In this case, the version information of the update image may use the information included in the above-described update request message, or may record the version information by using the information transmitted by being included in the delta information.

이상, 본 발명에 대하여 첨부 도면을 참조하여 상세히 설명하였으나, 이는 예시에 불과한 것으로서 본 발명의 기술적 사상의 범위 내에서 다양한 변형과 변경이 가능함은 자명하다. 따라서 본 발명의 보호 범위는, 전술한 실시예에 국한되서는 아니되며 이하의 특허청구범위의 기재에 의한 범위 및 그와 균등한 범위를 포함하여 정하여져야 할 것이다.As mentioned above, although this invention was demonstrated in detail with reference to attached drawing, this is only an illustration, It is clear that various deformation | transformation and a change are possible within the scope of the technical idea of this invention. Therefore, the protection scope of the present invention should not be limited to the above-described embodiment, but should be determined to include the scope according to the description of the following claims and their equivalents.

도 1은 본 발명의 실시예에 따른 데이터베이스 기반 노드 갱신 방법 및 그에 따른 타겟 노드 운용 방법을 설명하기 위한 센서 네트워크를 도시한 구성도.1 is a block diagram illustrating a sensor network for explaining a database-based node update method and a target node operating method according to an embodiment of the present invention.

도 2는 데이터베이스의 저장 데이터를 개략적으로 도시한 구성도.2 is a configuration diagram schematically showing stored data in a database.

도 3은 본 발명의 실시예에 다른 노드 갱신 방법을 나타내는 순서도.3 is a flowchart illustrating a node update method according to an embodiment of the present invention.

도 4는 타겟 노드의 실행 이미지의 구조를 나타내는 구성도.4 is a configuration diagram illustrating a structure of an execution image of a target node.

도 5는 본 발명의 실시예에 따른 타겟 노드의 운용 방법을 도시한 순서도.5 is a flowchart illustrating a method of operating a target node according to an embodiment of the present invention.

Claims (10)

업데이트 대상인 타겟 노드의 실행 이미지를 추출하는 단계; 및Extracting an execution image of a target node to be updated; And 상기 실행 이미지와 갱신 이미지의 차이에 대한 델타 정보를 전송하는 단계를 포함하는 것을 특징으로 하는 노드 갱신 방법.And transmitting delta information on the difference between the execution image and the update image. 제1항에 있어서, 상기 타겟 노드의 상기 실행 이미지 및 상기 갱신 이미지는, The method of claim 1, wherein the execution image and the update image of the target node, 상기 타겟 노드의 메모리 주소를 포함하는 주소 필드를 포함하는 적어도 하나의 레코드로 이루어진 것인 노드 갱신 방법.And at least one record including an address field containing a memory address of the target node. 제2항에 있어서, 상기 델타 정보를 전송하는 단계는,The method of claim 2, wherein the transmitting of the delta information comprises: 상기 주소 필드를 참조하여 상기 실행 이미지와 상기 갱신 이미지의 데이터가 동일한지 비교하는 단계와,Comparing the execution image with the data of the update image by referring to the address field; 상기 비교결과, 데이터가 동일하지 않은 상기 갱신 이미지의 레코드를 포함하여 상기 델타 정보를 생성하는 단계를 포함하는 것인 노드 갱신 방법.And generating the delta information, including the record of the update image, in which the data is not identical as a result of the comparison. 제1항에 있어서, 상기 이미지를 추출하는 단계는,The method of claim 1, wherein the extracting of the image comprises: 각 노드에 대한 노드 식별자및 상기 실행 이미지를 저장하는 데이터베이스를 구성하는 단계와,Configuring a database for storing node identifiers for each node and the execution image; 상기 타겟 노드의 식별자를 이용하여 상기 데이터베이스에서 상기 타겟 노드의 상기 실행 이미지를 추출하는 단계를 포함하는 것인 노드 갱신 방법.Extracting the execution image of the target node from the database using the identifier of the target node. 제4항에 있어서, 상기 이미지를 추출하는 단계는,The method of claim 4, wherein extracting the image comprises: 상기 실행 이미지를 추출한 후에, 상기 갱신 이미지를 상기 타겟 노드의 실행 이미지로서 저장하도록 상기 데이터베이스를 갱신하는 단계를 더 포함하는 것인 노드 갱신 방법.After extracting the execution image, updating the database to store the update image as an execution image of the target node. 제1항에 있어서, 상기 전송하는 단계는,The method of claim 1, wherein the transmitting step, 상기 타겟 노드에 갱신 요청 메시지를 송신하는 단계를 더 포함하며,Sending an update request message to the target node; 상기 갱신 요청 메시지는 상기 실행 이미지의 버전정보를 포함하는 것인 노드 갱신 방법.And the update request message includes version information of the execution image. 갱신 요청 메시지를 수신하면 갱신의 필요여부를 판단하는 단계; 및Determining whether an update is necessary when receiving an update request message; And 상기 판단결과 갱신이 필요하면, 현재 실행 이미지와 갱신 이미지의 차이에 대한 델타 정보를 수신하여 타겟 노드의 메모리에 저장하는 단계를 포함하는 타겟 노드 운용 방법.And if the result of the determination needs to be updated, receiving delta information on the difference between the current execution image and the update image and storing the delta information in a memory of the target node. 제7항에 있어서, 상기 판단하는 단계는,The method of claim 7, wherein the determining step, 상기 수신된 갱신 요청 메시지에 포함된 상기 갱신 이미지의 버전정보를 추 출하는 단계와,Extracting version information of the update image included in the received update request message; 현재 실행 중인 이미지의 버전정보를 추출하여 상기 갱신 이미지의 버전정보와 비교하여 상기 갱신의 필요여부를 판단하는 단계를 포함하는 것인 타겟 노드 운용 방법.And extracting version information of an image currently being executed and comparing it with version information of the update image to determine whether the update is necessary. 제7항에 있어서,The method of claim 7, wherein 상기 델타 정보의 데이터를 기록한 후, 상기 갱신 이미지의 버전정보를 상기 현재 실행 중인 이미지의 버전정보로서 기록하는 단계를 더 포함하는 것인 타겟 노드 운용 방법.And after recording the data of the delta information, recording the version information of the update image as version information of the currently executing image. 제7항에 있어서, 상기 저장하는 단계는,The method of claim 7, wherein the storing step, 상기 델타 정보를 구성하는 각 레코드의 주소 필드에 해당하는 메모리의 주소에, 해당 레코드의 데이터를 저장하는 단계; 및Storing data of a corresponding record at an address of a memory corresponding to an address field of each record constituting the delta information; And 타겟 노드를 리셋하는 단계를 포함하는 것인 타겟 노드 운용 방법.And resetting the target node.
KR1020080128698A 2008-12-17 2008-12-17 Method for updating sensor node based on database and method for operating target-node KR20100070100A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020080128698A KR20100070100A (en) 2008-12-17 2008-12-17 Method for updating sensor node based on database and method for operating target-node

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020080128698A KR20100070100A (en) 2008-12-17 2008-12-17 Method for updating sensor node based on database and method for operating target-node

Publications (1)

Publication Number Publication Date
KR20100070100A true KR20100070100A (en) 2010-06-25

Family

ID=42367971

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020080128698A KR20100070100A (en) 2008-12-17 2008-12-17 Method for updating sensor node based on database and method for operating target-node

Country Status (1)

Country Link
KR (1) KR20100070100A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20160138261A (en) * 2014-03-31 2016-12-02 오라클 인터내셔날 코포레이션 Infrastructure for synchronization of mobile device with mobile cloud service

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20160138261A (en) * 2014-03-31 2016-12-02 오라클 인터내셔날 코포레이션 Infrastructure for synchronization of mobile device with mobile cloud service

Similar Documents

Publication Publication Date Title
CN108038053B (en) A kind of dynamic configuration buries method and apparatus a little
CN107276765B (en) Processing method and device for consensus in block chain
CN104838618B (en) The method and apparatus of authentication-access authorization in a wireless communication system
CN109889589A (en) One kind realizing embedded hardware OTA upgrade-system and method based on block chain
KR101417194B1 (en) Identifier management server, application service platform, method and system for recognizing device using identifier of senser node
KR102288521B1 (en) Apparatus and method for storing data based on blockchain
JP2007524939A (en) Automatic update system and method using meta MIB
CN106790131B (en) Parameter modification method and device and distributed platform
CN101123750A (en) Apparatus and associated method for facilitating background processing of push content
CN110493028A (en) A kind of clustered deploy(ment) method, system, device and computer readable storage medium
CN102301760A (en) Method and apparatus for tracking device management data changes
CN111683066A (en) Heterogeneous system integration method and device, computer equipment and storage medium
KR100651539B1 (en) Method for updaing for function in mobile phone
CN110391940A (en) Response method, device, system, equipment and the storage medium of address of service
CN111767128A (en) Method and device for executing timing task
JP2009231903A (en) Wireless gateway device and wireless gateway system
CN110392012B (en) Method and apparatus for rebooting in lightweight machine-to-machine systems
CN109739665A (en) Interface managerial method, device, server and storage medium
KR20100070100A (en) Method for updating sensor node based on database and method for operating target-node
CN110888892A (en) Block synchronization method, device and storage medium
CN109474683A (en) A kind of node configuration method and relevant apparatus
CN105791350B (en) Project data processing method and system
KR20210128096A (en) Apparatus and method for interworking among internet of things platforms
CN113986423A (en) Bullet frame display method and system, storage medium and terminal equipment
JP2014098988A (en) Control system and control method

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E601 Decision to refuse application