KR101228410B1 - Automatic rainfall alarm system with cascade vhf wireless communication network - Google Patents
Automatic rainfall alarm system with cascade vhf wireless communication network Download PDFInfo
- Publication number
- KR101228410B1 KR101228410B1 KR1020120092467A KR20120092467A KR101228410B1 KR 101228410 B1 KR101228410 B1 KR 101228410B1 KR 1020120092467 A KR1020120092467 A KR 1020120092467A KR 20120092467 A KR20120092467 A KR 20120092467A KR 101228410 B1 KR101228410 B1 KR 101228410B1
- Authority
- KR
- South Korea
- Prior art keywords
- packet
- station apparatus
- receiver
- sender
- field
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G08—SIGNALLING
- G08B—SIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
- G08B21/00—Alarms responsive to a single specified undesired or abnormal condition and not otherwise provided for
- G08B21/18—Status alarms
- G08B21/20—Status alarms responsive to moisture
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01W—METEOROLOGY
- G01W1/00—Meteorology
- G01W1/14—Rainfall or precipitation gauges
-
- G—PHYSICS
- G08—SIGNALLING
- G08B—SIGNALLING OR CALLING SYSTEMS; ORDER TELEGRAPHS; ALARM SYSTEMS
- G08B25/00—Alarm systems in which the location of the alarm condition is signalled to a central station, e.g. fire or police telegraphic systems
- G08B25/01—Alarm systems in which the location of the alarm condition is signalled to a central station, e.g. fire or police telegraphic systems characterised by the transmission medium
- G08B25/08—Alarm systems in which the location of the alarm condition is signalled to a central station, e.g. fire or police telegraphic systems characterised by the transmission medium using communication transmission lines
Abstract
Description
본 발명은 통제국 장치에서 우량국 장치 또는 수위국 장치의 관측 정보를 수집하여 산악지역의 기상 변화에 따른 위험 상황이 발생할 것으로 예측될 경우에 경보국 장치를 통해 경보를 발령하는 자동우량경보시스템에 관한 것으로서, 더욱 상세하게는, 전송자, 수신자, 다음 수신자 및 최초송신자의 아이디를 포함한 패킷으로 통신하여 1단 중계까지 가능하였던 종래 방식의 패킷 프레임을 그대로 사용하면서 2단 중계 또는 3단 중계로 확장하여 우량국 장치, 수위국 장치 및 경보국 장치와의 통신망을 구축할 수 있는 다단중계 브이에이치에프망을 이용한 자동우량경보시스템에 관한 것이다.The present invention collects observation information of a superior station apparatus or a water level station apparatus from a control station apparatus, and provides an automatic rain alert system that issues an alarm through an alarm station apparatus when it is predicted that a dangerous situation due to a weather change in a mountainous region occurs. In more detail, it is possible to expand to a two-stage relay or a three-stage relay while using a packet frame of a conventional method which was able to communicate up to the first stage by communicating with a packet including the ID of the sender, the receiver, the next receiver, and the first sender. The present invention relates to an automatic rain alarm system using a multi-stage VH network capable of establishing a communication network with a rain station device, a water level station device, and an alarm station device.
일반적으로 산악지역의 기상은 일반 평지에서 관측하는 기상과는 다르게 매우 변화가 심하여 일반적인 기상관측 방식으로는 이를 예측하여 경보하는 것이 대단히 어렵다. 이는 산악지역에서 집중 호우의 발생 여부를 사전에 예측하기 어렵고, 발생하는 집중 호우가 매우 짧은 시간에 국지적으로 내리고 강우량의 예측도 불가능에 가까워 강우량도 예측하기 어렵기 때문이다. 더욱이, 산악지역에 내린 비는 경사가 심한 깊은 계곡을 따라 빠른 유속으로 흐르므로 상류지역의 강우변화에 의한 하류의 영향이 매우 급속하게 이루어진다.In general, the weather in the mountainous region is very different from the weather observed on the plain, so it is very difficult to predict and alarm the weather using the general weather observation method. This is because it is difficult to predict the occurrence of heavy rainfall in the mountainous region in advance, and it is difficult to predict the rainfall because the occurring heavy rainfall falls locally in a very short time and it is impossible to predict rainfall. Moreover, the rain on mountainous regions flows at high velocity along the steep, deep valleys, so the downstream effects of upstream rainfall changes are very rapid.
이와 같이 산악지역에서 발생하는 강우는 일반적인 기상관측 방식으로 예측하기 어려운 집중 호우로 급변할 수 있고, 하류에 미치는 영향이 매우 크고 매우 짧은 시간 내에 미치므로, 강우 관측 시간을 세분화하여 지속적으로 관측함은 물론이고 강우 변화에 따라 신속하게 경보를 발령하여 하류의 피해를 최소화하여야 하며, 이를 위해서 자동우량경보시스템을 산악지역에 설치한다.Rainfall occurring in mountainous areas can be rapidly changed into heavy rains that are difficult to predict by general weather observation methods, and the impact on downstream is very large and affects within a very short time. Of course, it is necessary to promptly issue an alarm according to the change of rainfall to minimize the downstream damage. For this purpose, an automatic rainfall alarm system is installed in the mountainous region.
일반적으로 자동우량정보시스템은 도 1에 예시된 바와 같이 산악지역의 곳곳에 설치하여 우량을 관측하는 우량국 장치(31,32, 41, 42, 51, 52), 계곡수의 수위를 관측하는 수위국 장치(61), 또는 경보 발령이 필요한 개소에 설치하여 경보를 발령하는 경보국 장치(21, 22, 23)로 이루어지는 지국장치들, 및 지국장치들과 통신하여 우량 정보 또는 수위 정보를 시시각각 수집하고 수집하는 관측 정보의 변화에 따라 경보 발령의 여부를 판단하고 경보 발령이 필요할 시에 신속하게 경보국 장치와 통신하여 경보를 발령하게 지령하는 통제국 장치(10)를 포함하여 구성된다.In general, the automatic rain information system is installed in various places in the mountain region as illustrated in Figure 1, the rainwater station device (31, 32, 41, 42, 51, 52) for observing rainwater, the water level for observing the water level of the valley water Station equipment consisting of the
그리고, 각각의 지국장치는 통제국 장치(10)와 직접 통신하거나 아니면 다른 지국장치의 중계로 1단 중계 통신하도록 통신망이 구축된다. 도 1의 예시도를 참조하여 설명하면, 지국장치 21, 31, 22, 23은 통제국 장치(10)와 직접 통신하고 지국장치 32, 33은 지국장치 31의 중계로 1단 중계 통신하고 지국장치 41, 42, 61은 지국장치 22의 중계로 1단 중계 통신하고 지국장치 51, 52는 지국장치 23의 중계로 1단 중계 통신한다. 자동우량경보시스템의 운영은 통제국 장치(10)에서 각각의 우량국 장치에 우량 관측정보를 전송하도록 지령을 전송하고 지령을 전송받은 우량국 장치로부터 우량 관측정보를 전송받으며, 경보를 발령할 시에는 경보를 발령하라는 지령을 경보국 장치에 전송하는 통신 방식으로 이루어진다. 여기서, 1단 중계 통신은 통신하는 통제국 장치(10)와 지국장치 사이에 중계하는 지국장치가 1개인 경우이다. Each station apparatus communicates directly with the
이와 같은 통신 방식에서 송수신되는 패킷은 도 2의 (a)에 도시된 프레임 구조를 갖는다. 상기 도 2의 (a)를 참조하면 패킷은 지령을 기입하는 명령코드 필드(CMD), 데이타를 기입하는 데이타 필드(DATA)를 기본적으로 갖추고, 송신자 아이디 필드(SID), 수신자 아이디 필드(DID), 다음 수신자 아이디 필드(NID) 및 최초 송신자 아이디 필드(FID)를 프레임 헤더로 포함하게 된다. 여기서, 송신자 아이디는 패킷을 송신하는 장치의 아이디이고, 수신자 아이디는 패킷을 수신하는 장치의 아이디이고, 다음 수신자 아이디는 수신자의 중계로 패킷을 수신하게 되는 장치의 아이디이고, 최초 송신자 아이디는 패킷을 최초 생성하여 송신하는 장치의 아이디로서, 이러한 아이디들을 통해 통신 경로 및 패킷의 최종 도착지를 지정할 수 있다.Packets transmitted and received in such a communication scheme have a frame structure shown in FIG. Referring to (a) of FIG. 2, the packet basically includes a command code field (CMD) for writing a command and a data field (DATA) for writing data, and includes a sender ID field (SID) and a receiver ID field (DID). Next, the next receiver ID field (NID) and the original sender ID field (FID) will be included as the frame header. Here, the sender ID is the ID of the device transmitting the packet, the receiver ID is the ID of the device receiving the packet, the next receiver ID is the ID of the device receiving the packet through the receiver's relay, and the first sender ID is the packet. As an ID of a device that is initially generated and transmitted, these IDs may designate a communication path and a final destination of a packet.
이에 대해서, 도 2의 (b)에 예시된 패킷의 전송 과정을 참조하여 설명한다. 도 2의 (b)는 통제국 장치 10과 지국장치 52가 지국장치 23의 중계로 통신하게 되는 과정을 보여준다. 이에 따르면, 통제국 장치 10은 자신의 아이디(10)를 송신자 아이디 필드(SID) 및 최초 송신자 아이디 필드(FID)에 각각 기입하고 수신자 아이디 필드에 지국장치 23의 아이디(23)를 기입하고, 다음 수신자 아이디 필드에 지국장치 52의 아이디(52)를 기입한 패킷을 송신한다. 다음으로, 지국장치들 중에 수신자 아이디 필드에 기입된 아이디(23)를 갖는 지국장치 23이 패킷을 수신하고, 패킷에서 자신의 아이디인 수신자 아이디(23)를 송신자 아이디 필드에 기입하고 다음 수신자 아이디(52)를 수신자 아이디 필드에 기입하고 다음 수신자 아이디 필드를 비워둔 후에, 패킷을 재송출한다. 이에 따라 재송출한 패킷은 수신자 아이디 필드에 기입된 아이디(52)를 갖는 지국장치 52에 전달된다. 여기서, 지국장치 52는 다음 아이디 필드가 비워둔 패킷을 수신하였으므로 자신을 패킷의 최종 도착지로 인지하여 패킷에 포함된 지령 또는 데이타에 따라 동작한다.This will be described with reference to the packet transmission process illustrated in FIG. 2B. FIG. 2 (b) shows a process in which the
패킷의 최종 도착지인 지국장치 52는 패킷에 포함됨 지령에 따라 통제국 장치에게 회신하여야 할 경우에, 자신의 아이디(52)를 송신자 아이디 필드 및 최초 송신자 아이디 필드에 각각 기입하고 송신자 아이디(23)를 수신자 아이디 필드에 기입하고 최초 송신자 아이디를 다음 수신자 아이디 필드에 기입한 패킷에 회신 데이타를 포함시켜 송신한다. 이에 따라, 회신용으로 송신되는 패킷은 수신자 아이디 필드에 기입된 아이디(23)를 갖는 지국장치 23이 수신하여서 패킷에서 수신자 아이디를 송신자 아이디 필드에 기입하고 다음 수신자 아이디를 수신자 아이디 필드에 기입하고 다음 수신자 아이디 필드를 비워두어 재송출함으로써 통제국 장치에서 이를 수신하게 한다.When the
한편, 통제국 장치는 중계 없이 직접 통신할 수 있는 지국장치(예를 들면 지국장치 23)와 통신할 경우에 다음 수신자 아이디 필드를 비워두어서 수신자 아이디 필드에 기입된 아이디를 갖는 지국장치가 패킷을 수신하여 패킷에 포함된 지령 또는 데이타에 따라 동작하게 하고, 회신할 때에도 다음 수신자 아이디 필드를 비워둔 패킷으로 회신하게 된다.On the other hand, when the control station apparatus communicates with a station apparatus (for example, station apparatus 23) capable of directly communicating without relaying, the station apparatus having an ID written in the receiver ID field is left empty by leaving the next receiver ID field empty. It receives and operates according to the command or data included in the packet, and when replying, it returns the packet with the next receiver ID field empty.
이와 같이 송신자, 수신자, 다음 수신자 및 최초 송신자의 아이디를 패킷에 담아 통신함으로써 1단 중계가 되어, 설치 간격 또는 지형 장애에 의해 통제국 장치와 직접 통신하기 어려운 곳에도 지국장치를 설치할 수 있게 된다. 한편, 설치 간격 또는 지형 장애에 의해 통제국 장치와 직접 통신하기 어렵고, 중간에 지국장치를 설치할 필요가 없는 경우에는, 중간에 패킷의 중계만 하는 중계국 장치를 별도 설치하여 자동우량경보시스템을 구성하기도 한다.In this way, the ID of the sender, the receiver, the next receiver, and the first sender is communicated in a packet so that the first station is relayed, and the station apparatus can be installed even where it is difficult to directly communicate with the control station apparatus due to an installation interval or a terrain failure. On the other hand, when it is difficult to directly communicate with the control station device due to the installation interval or terrain obstacle, and there is no need to install the station device in the middle, an automatic rain alarm system may be configured by separately installing a relay station device that only relays packets in the middle. do.
하지만, 상기한 종래기술에 따른 자동우량경보시스템은 1단 중계로만 이루어져서 2단 중계(두개의 지국장치에 의한 순차적인 중계로 이루어지는 다단 중계) 또는 3단 중계(3개의 지국장치에 의한 순차적인 중계로 이루어지는 다단 중계)가 필요한 지점에 지국장치를 추가 설치할 필요성이 발생하거나 아니면 그런 산악지역에 자동우량경보시스템을 구축하여야 할 경우에는, 상기한 패킷으로 통신할 수 없게 된다. 다시 말해서, 2단 중계 또는 3단 중계를 위한 패킷의 프레임을 재구성해야 하고 지국장치들도 그 패킷을 처리하도록 재구성해야 하는 어려움을 갖게 되는 것이다. However, the automatic rain alarm system according to the prior art is composed of only one-stage relay, so that two-stage relay (multi-stage relay consisting of sequential relaying by two stations) or three-stage relay (sequential relay by three stations) If a need arises to install an additional station apparatus at a point where multi-stage relaying is required, or if it is necessary to establish an automatic rain alarm system in such a mountain area, it cannot communicate with the above-mentioned packet. In other words, it is difficult to reconstruct a frame of a packet for two-stage relay or three-stage relay, and the station apparatuses also have to reconfigure to process the packet.
더욱이, 이미 구축된 자동우량경보시스템에서 통신 불량이 발생하는 지국장치의 통신 품질을 높여야 하는 경우에도 어려움을 갖게 된다. 이에 대해서 도 1의 예시 도면을 참조하여 설명하면, 지국장치 23의 중계에 의해 통신하는 지국장치 52가 산악 지형의 영향을 받아 지국장치 23과의 통신 품질이 낮으면, 거리상 통제국 장치 10과 멀리 떨어져 있어서 별도의 중계국 장치를 설치해야만 한다. 이때, 지국장치 52는 지국장치 51과 양질의 품질로 통신할 수 있는 상황이라면 지국장치 51을 경유하여 통제국 장치와 통신하는 것이 바람직하지만, 지국장치 51이 지국장치 23의 중계로 통신하므로, 상기한 패킷의 프레임 구조로는 지국장치 51을 통한 2단 중계의 통신 경로를 구축할 수 없다.In addition, it is difficult to improve the communication quality of the station apparatus in which the communication failure occurs in the already built automatic rain alarm system. This will be described with reference to the exemplary diagram of FIG. 1. When the
따라서, 자동우량경보시스템을 산악지역에 설치함에 있어서, 통제국 장치와의 거리 또는 산악 지형의 장애에 의해 2단 중계 또는 3단 중계로 통신하는 지국장치를 설치할 수 있게 하면서, 상기한 프레임 구조를 갖는 패킷을 그대로 사용할 수 있게 하는 것이 요구된다.Therefore, in installing the automatic rain alarm system in a mountain area, the frame structure described above can be installed while allowing the station device to communicate in two-stage relay or three-stage relay due to the distance from the control station device or the obstacle of the mountainous terrain. It is required to be able to use a packet as it is.
따라서, 본 발명의 목적은 송신자, 수신자, 다음 수신자 및 최초 송신자의 아이디를 포함한 프레임 구조의 패킷으로 통신하여 1단 중계로 우량 정보 또는 수위 정보를 수집하여 경보를 발령함에 있어서, 패킷의 프레임 구조를 그대로 사용하면서 2단 중계 또는 3단 중계로 확장하여 지국장치와 통제국 장치 간에 통신하게 하는 자동우량경보시스템을 제공하는 것이다.Accordingly, an object of the present invention is to communicate the packet of the frame structure including the ID of the sender, the receiver, the next receiver, and the first sender to collect the excellent information or the water level information in one step and to issue an alert, thereby to determine the frame structure of the packet. It is to provide an automatic rain alarm system that can be used as it is and expands to a two-stage relay or a three-stage relay to communicate between the station apparatus and the control station apparatus.
상기 목적을 달성하기 위해 본 발명은, 우량국 장치, 수위국 장치 및 경보국 장치로 이루어지는 복수의 지국장치와 통제국 장치를 포함하며, 전송자, 수신자, 다음 수신자 및 최초송신자의 아이디를 기입하는 필드가 포함된 통신 패킷의 송수신으로 통제국 장치와 지국장치 간에 직접 통신 또는 다른 지국장치의 중계에 의한 간접 통신이 이루어지게 하여 통제국 장치가 우량국 장치 또는 수위국 장치에 각각 우량 정보 또는 수위 정보를 요청하여 수신하고 수신한 정보에 따라 경보국 장치에게 요청하여 경보 발령하게 하는 자동우량경보시스템에 있어서, In order to achieve the above object, the present invention includes a plurality of station apparatuses and control station apparatuses comprising a superior station apparatus, a water level station apparatus, and an alarm station apparatus, and a field for filling in an ID of a sender, a receiver, a next receiver, and an original sender. The control station device transmits the superior information or the water level information to the superior station device or the water station device, respectively, by direct communication between the control station device and the station device or indirect communication by relay of another station device by the transmission and reception of the communication packet. In the automatic rain alarm system for requesting the alarm station apparatus according to the received information received and received, the alarm is issued,
각각의 지국장치는, 자신의 아이디를 수신자 아이디로 하는 패킷을 수신한 후에, 패킷에 다음 수신자 아이디가 있으면, 수신자 아이디를 전송자 아이디 필드에 기입하고 다음 수신자 아이디를 수신자 아이디 필드에 기입하며 다음 수신자 아이디 필드는 비워두게 한 패킷을 재송신하여 중계 동작하고, 패킷에 다음 수신자 아이디가 없으면, 패킷에 담긴 정보에 따라 동작하고, 그 정보에 따른 회신이 필요한 경우에, 자신의 아이디인 수신자 아이디를 전송자 아이디 필드 및 최초 송신자 아이디 필드에 기입하고 전송자 아이디를 수신자 아이디 필드에 기입함과 동시에, 최초 송신자 아이디가 전송자 아이디와 같지 아니하면 최초 송신자 아이디를 다음 수신자 아이디 필드에 기입하고 최초 송신자 아이디가 전송자 아이디와 같으면 다음 수신자 아이디 필드를 비워둔 패킷으로 송신하여 회신 동작하되, Each station apparatus, after receiving a packet whose ID is a receiver ID, if the packet has a next receiver ID, enters the receiver ID in the sender ID field, the next receiver ID in the receiver ID field, and the next receiver ID field. If the packet does not have the next receiver ID, the relay operation is performed by retransmitting the empty packet. If the packet does not have a next receiver ID, it operates according to the information contained in the packet. Fill in the first sender ID field and the sender ID in the receiver ID field, and if the first sender ID is not the same as the sender ID, enter the first sender ID in the next receiver ID field and the next receiver if the first sender ID is the same as the sender ID. ID Peel Reply by sending the packet with empty code,
통제국 장치와 직접 통신하는 지국 장치들 중에 그 지국 장치를 경유하여 통제국 장치와 2단 중계로 통신할 지국 장치가 통신망으로 연결되는 지국 장치는, 가상 아이디와, 패킷이 전달되어야 할 지국장치의 아이디인 단말 아이디와, 단말 아이디를 갖는 지국장치와 자신의 사이를 중계하는 지국장치의 아이디인 중계 아이디와, 통제국 장치의 아이디를 중계경로 테이블로 부여받아 메모리에 저장하되, 중계 아이디는 단말 아이디를 갖는 지국장치와의 중계 여부에 따라 선택적으로 부여받아서, 통제국 장치에서 중계경로 테이블에 근거하여 통신하려는 지국장치를 단말 아이디로 하는 가상 아이디를 수신자 아이디 필드에 기입하여 패킷을 송신함에 따라 이 패킷을 수신하는 경우에, 가상 아이디를 송신자 아이디 필드 및 최초 송신자 아이디 필드에 기입하는 한편, 중계 아이디가 있으면 중계 아이디를 수신자 아이디 필드에 기입함과 동시에 단말 아이디를 다음 수신자 아이디 필드에 기입하고, 중계 아이디가 없으면 다음 수신자 아이디 필드를 비워둠과 동시에 단말 아이디를 수신자 아이디 필드에 기입하여 이루어지는 패킷을 송신하여 단말 아이디를 갖는 지국장치에서 수신하게 하며, Among the station devices directly communicating with the control station device, the station device to which the station device to communicate in two-stage relay with the control station device via the station device is connected to the communication network. The terminal ID which is an ID, the relay ID which is the ID of the station apparatus relaying between itself and the station apparatus having the terminal ID, and the ID of the control station apparatus are received in the relay path table and stored in the memory, but the relay ID is the terminal ID. The packet is selectively received depending on whether or not it is relayed with a station apparatus having a network, and the control station apparatus transmits the packet by filling in the receiver ID field a virtual ID having the station apparatus to communicate with based on the relay path table in the receiver ID field. Is received, the virtual ID is written to the sender ID field and the original sender ID field. On the other hand, if there is a relay ID, the relay ID is entered in the receiver ID field and the terminal ID is entered in the next receiver ID field. If there is no relay ID, the next receiver ID field is left blank and the terminal ID is entered in the receiver ID field. Transmits the packet to be received by the station apparatus having the terminal ID,
가상 아이디를 수신자 아이디로 한 패킷을 단말 아이디를 갖는 지국장치 측으로부터 수신하면, 가상 아이디를 송신자 아이디 필드 및 최초 송신자 아이디 필드에 기입하고 수신자 아이디 필드에 통제국 아이디를 기입하여 패킷을 송신하여 통제국 장치에서 회신 패킷을 수신하게 함을 특징으로 한다.When receiving the packet with the virtual ID as the receiver ID from the station apparatus having the terminal ID, the virtual ID is entered in the sender ID field and the original sender ID field, and the control station ID is entered in the receiver ID field to transmit the packet. Receive a reply packet at the device.
우량국 장치, 수위국 장치 및 경보국 장치로 이루어지는 복수의 지국장치와 통제국 장치를 포함하며, 전송자, 수신자, 다음 수신자 및 최초송신자의 아이디를 기입하는 필드가 포함된 통신 패킷의 송수신으로 통제국 장치와 지국장치 간에 직접 통신 또는 다른 지국장치의 중계에 의한 간접 통신이 이루어지게 하여 통제국 장치가 우량국 장치 또는 수위국 장치에 각각 우량 정보 또는 수위 정보를 요청하여 수신하고 수신한 정보에 따라 경보국 장치에게 요청하여 경보 발령하게 하는 자동우량경보시스템에 있어서, The control station includes a plurality of station devices and a control station device comprising a superior station device, a water level station device, and an alarm station device, and includes a field for filling in the ID of the sender, the recipient, the next recipient, and the first sender. Direct communication between device and station device or indirect communication by relay of other station device is performed so that control station device requests rainfall information or water level information from superior station device or level station device, respectively and receives alarm according to received information. In the automatic rain alarm system to request the station device to issue an alarm,
각각의 지국장치는, 자신의 아이디를 수신자 아이디로 하는 패킷을 수신한 후에, 패킷에 다음 수신자 아이디가 있으면, 수신자 아이디를 전송자 아이디 필드에 기입하고 다음 수신자 아이디를 수신자 아이디 필드에 기입하며 다음 수신자 아이디가 있던 필드는 비워두게 한 패킷을 재송신하여 중계 동작하고, 패킷에 다음 수신자 아이디가 없으면, 패킷에 담긴 정보에 따라 동작하고, 그 정보에 따른 회신이 필요한 경우에, 자신의 아이디인 수신자 아이디를 전송자 아이디 필드 및 최초 송신자 아이디 필드에 기입하고 전송자 아이디를 수신자 아이디 필드에 기입함과 동시에, 최초 송신자 아이디가 전송자 아이디와 같지 아니하면 최초 송신자 아이디를 다음 수신자 아이디 필드에 기입하고 최초 송신자 아이디가 전송자 아이디와 같으면 다음 수신자 아이디 필드를 비워둔 패킷으로 송신하여 회신 동작하되, After receiving the packet whose ID is the receiver ID, each station apparatus fills in the receiver ID field in the sender ID field and the next receiver ID in the receiver ID field if the packet has the next receiver ID. If there is no next receiver ID in the packet, it operates according to the information contained in the packet. If a reply is required based on the information, the receiver ID, which is its own ID, is transmitted. Field and the original sender ID field and the sender ID in the receiver ID field, and if the original sender ID is not the same as the sender ID, enter the original sender ID in the next receiver ID field and the first sender ID is the same as the sender ID. The next recipient Oh Reply by sending the packet with empty EID field,
통제국 장치와 1단 중계로 간접 통신하는 지국장치들 중에 그 지국장치를 경유하여 통제국 장치와 2단 중계 또는 3단 중계로 통신할 지국장치가 통신망으로 연결되는 지국장치는, 가상 아이디와, 패킷이 전달되어야 할 지국장치의 아이디인 단말 아이디와, 단말 아이디를 갖는 지국장치와 자신의 사이를 중계하는 지국장치의 아이디인 중계 아이디와, 통제국 장치의 아이디를 중계경로 테이블로 부여받아 메모리에 저장하되, 중계 아이디는 단말 아이디를 갖는 지국장치와의 중계 여부에 따라 선택적으로 부여받아서, 통제국 장치에서 중계경로 테이블에 근거하여 통신하려는 지국장치의 아이디를 단말 아이디로 하는 가상 아이디를 다음 수신자 아이디 필드에 기입하여 패킷을 송신함에 따라 다른 하나의 지국장치의 중계로 수신자 아이디 필드에 가상 아이디를 기입한 패킷을 중계받는 경우에, 수신한 패킷의 송신자 아이디를 임시 저장한 후에 가상 아이디를 송신자 아이디 필드 및 최초 송신자 아이디 필드에 기입하는 한편, 중계 아이디가 있으면 중계 아이디를 수신자 아이디 필드에 기입함과 동시에 단말 아이디를 다음 수신자 아이디 필드에 기입하고, 중계 아이디가 없으면 다음 수신자 아이디 필드를 비워둠과 동시에 단말 아이디를 수신자 아이디 필드에 기입하여 이루어지는 패킷을 송신하여 단말 아이디를 갖는 지국장치에서 수신하게 하며, Among the station apparatuses indirectly communicating with the control station apparatus in one-stage relay, the station apparatus connected to the control station apparatus and the two-stage relay or three-stage relay via the network is connected to the communication network by means of a virtual ID and a packet. The terminal ID, which is the ID of the station apparatus to be transmitted, the relay ID, which is the ID of the station apparatus relaying between itself and the station apparatus having the terminal ID, and the ID of the control station apparatus, are assigned to the relay path table and stored in the memory. However, the relay ID is selectively assigned depending on whether the relay station has a terminal ID having a terminal ID, and the virtual ID having the terminal ID as the terminal ID of the station apparatus to communicate with the control station apparatus based on the relay path table. As the packet is transmitted by filling in the packet, the virtual ID is transmitted to the other station device. When relaying a packet containing an ID, the virtual ID is written in the sender ID field and the original sender ID field after temporarily storing the sender ID of the received packet, and the relay ID is entered in the receiver ID field if there is a relay ID. At the same time, the terminal ID is entered in the next receiver ID field. If there is no relay ID, the next receiver ID field is left blank and the terminal ID is entered in the receiver ID field. ,
가상 아이디를 수신자 아이디로 한 패킷을 단말 아이디를 갖는 지국장치 측으로부터 수신하면, 가상 아이디를 송신자 아이디 필드 및 최초 송신자 아이디 필드에 기입하고 수신자 아이디 필드에 상기 임시 저장한 아이디를 기입하고 다음 수신자 아이디 필드에 통제국 아이디를 기입한 패킷을 송신하여 통제국 장치에서 회신 패킷을 수신하게 함을 특징으로 한다.When receiving a packet with the virtual ID as the receiver ID from the station apparatus having the terminal ID, the virtual ID is written in the sender ID field and the original sender ID field, and the temporary stored ID is entered in the receiver ID field and the next receiver ID field. Send a packet in which the control station ID is written to the control station apparatus so as to receive a reply packet.
상기 중계경로 테이블을 부여받은 지국장치는, 패킷에 기입된 최초 송신자가 통제국이면 통제국장치 측에서 송신한 패킷으로 판단하고, 최초 송신자가 통제국이 아니면 중계경로 테이블의 단말 아이디를 갖는 지국장치로부터 회신한 패킷으로 판단함을 특징으로 한다.The station apparatus which has received the relay path table is determined to be a packet transmitted by the control station apparatus if the first sender written in the packet is the control station, and from the station apparatus having the terminal ID of the relay path table if the first sender is not the control station. It is characterized by determining that the packet returned.
복수의 지국장치들은 그룹으로 나뉘어 그룹별로 아이디를 할당받되, 다른 지국장치를 통해 중계 통신하는 지국장치는, 자신을 중계하는 지국장치와 동일한 그룹 아이디를 할당받고, 그룹 아이디를 패킷에 포함시켜서, 지국장치가 자신의 그룹 아이디와 동일한 그룹 아이디를 포함하는 패킷만 수신하게 함을 특징으로 한다.A plurality of station apparatuses are divided into groups and assigned IDs for each group, but the station apparatus relaying through other station apparatuses is assigned the same group ID as the station apparatus relaying itself, and includes the group ID in the packet. Characterized in that only the packets containing the same group ID as its own group ID.
상기와 같이 구성되는 본 발명은, 전송자, 수신자, 다음 수신자 및 최초 송신자의 아이디를 패킷에 담아 통신하면서, 통신망의 구성상 2단 또는 3단 중계 통신이 필요한 통신경로 상의 지국장치에 중계경로 테이블을 부여함으로써, 패킷의 프레임 구조를 변경하지 아니하면서 다단계 중계 통신망으로 확장할 수 있는 이점을 갖춘다. According to the present invention configured as described above, a relay path table is provided to a station apparatus on a communication path that requires two-stage or three-stage relay communication in the configuration of a communication network while communicating in a packet containing IDs of a transmitter, a receiver, a next receiver, and an original sender. In this case, it is possible to extend the multi-stage relay network without changing the frame structure of the packet.
또한, 본 발명은 중계경로 테이블을 부여한 지국장치가 패킷을 중계할 때에, 가상 아이디를 최초 송신자 아이디로 하여 최초 송신자처럼 중계경로 테이블의 아이디를 패킷에 기입하므로, 아이디의 기입방식에 변화가 없고, 패킷의 회신 시에 필요한 임시 저장 아이디만 설정하면 되므로, 중계경로 테이블의 부여에 따라 필요한 추가 동작의 복잡도를 낮출 수 있다.In the present invention, when the station apparatus to which the relay path table is assigned relays a packet, the ID of the relay path table is written in the packet as the first sender with the virtual ID as the original sender ID, so that there is no change in the method of writing the ID. Since only the temporary storage ID required for the reply of the packet needs to be set, the complexity of the additional operation required according to the provision of the relay path table can be reduced.
도 1은 종래 자동우량경보시스템의 통신 경로를 보여주는 도면.
도 2는 종래 자동우량경보시스템에서 송수신되는 패킷의 프레임 구조(a)와, 상기 도 1에서 지국장치 23의 중계로 지국장치 52와 통제국 장치 10 사이에 송수신되는 패킷을 보여주는 도면(b).
도 3은 본 발명의 실시예에 따른 자동우량경보시스템에서 지국장치들 간의 통신 경로를 보여주는 통신망 구성도.
도 4는 본 발명의 실시예에 따른 자동우량경보시스템에서 송수신되는 패킷의 프레임 구조.
도 5는 본 발명의 실시예에 따른 자동우량경보시스템에서 각각의 지국장치가 자신을 수신자로 한 패킷을 수신하였을 때의 동작 순서를 보여주는 순서도 도면.
도 6은 상기 도 5에 도시된 패킷 수용/회신 단계(S120)의 상세 순서도 도면.
도 7은 상기 도 5에 도시된 패킷 1단 중계 단계(S130)의 상세 순서도 도면.
도 8은 상기 도 3의 자동우량경보시스템을 구성하는 지국장치들 중에, 지국장치 41 및 지국장치 23에 예시적으로 부여된 중계경로 테이블을 보여주는 도면.
도 9는 본 발명의 실시예에 따른 자동우량경보시스템에서 중계경로 테이블을 부여받은 지국장치가 자신을 수신자로 한 패킷을 수신하였을 때의 동작 순서를 보여주는 순서도 도면.
도 10은 상기 도 9에 도시된 패킷 다단중계 동작(S200)의 상세 순서도.
도 11은 상기 도 10에 도시된 회신 중계 단계(S240)의 상세 순서도.
도 12는 상기 도8에 예시된 지국장치 41에 의한 3단 중계 과정에서 패킷의 아이디가 바뀌는 순서를 보여주는 도면.
도 13은 상기 도 8에 예시된 지국장치 41에 의한 2단 중계 과정에서 패킷의 아이디가 바뀌는 순서를 보여주는 도면.
도 14는 상기 도 8에 예시된 지국장치 23에 의한 2단 중계 과정에서 패킷의 아이디가 바뀌는 순서를 보여주는 도면.
도 15는 상기 도 8에 예시된 지국장치 23에 의한 1단 중계 과정에서 패킷의 아이디가 바뀌는 순서를 보여주는 도면.1 is a view showing a communication path of a conventional automatic rain alarm system.
2 is a view illustrating a frame structure (a) of a packet transmitted and received in a conventional automatic rain alarm system, and a packet transmitted and received between the
3 is a diagram illustrating a communication network showing communication paths between stations in an automatic rain alarm system according to an embodiment of the present invention.
4 is a frame structure of a packet transmitted and received in the automatic rain alarm system according to an embodiment of the present invention.
FIG. 5 is a flowchart illustrating an operation sequence when each station apparatus receives a packet whose receiver is a receiver in an automatic rain alarm system according to an embodiment of the present invention. FIG.
FIG. 6 is a detailed flowchart of the packet receiving / replying step S120 shown in FIG.
7 is a detailed flowchart of the packet one-stage relay step S130 shown in FIG.
8 is a view showing a relay path table exemplarily given to the
9 is a flowchart illustrating an operation sequence when a station apparatus that receives a relay path table in the automatic rain alarm system according to an embodiment of the present invention receives a packet whose receiver is a receiver;
10 is a detailed flowchart of the packet multi-stage relay operation (S200) shown in FIG.
FIG. 11 is a detailed flowchart of the reply relay step S240 shown in FIG.
12 is a view showing a sequence of changing the ID of the packet in the three-stage relaying process by the
FIG. 13 is a view illustrating a procedure of changing a packet ID in a two-stage relaying process by the
14 is a view showing a sequence of changing the ID of the packet in the two-stage relaying process by the
FIG. 15 is a view illustrating a procedure of changing a packet ID in a first stage relay process by the
이하, 본 발명의 바람직한 실시 예를 첨부한 도면을 참조하여 당해 분야에 통상의 지식을 가진 자가 용이하게 실시할 수 있도록 설명한다. 첨부된 도면들에서 구성 또는 작용에 표기된 참조번호는, 다른 도면에서도 동일한 구성 또는 작용을 표기할 때에 가능한 한 동일한 참조번호를 사용하고 있음에 유의하여야 한다. 또한, 하기에서 본 발명을 설명함에 있어, 관련된 공지의 기능 또는 공지의 구성에 대한 구체적인 설명이 본 발명의 요지를 불필요하게 흐릴 수 있다고 판단되는 경우에는 그 상세한 설명을 생략한다.
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings. It should be noted that, in the drawings, the same reference numerals are used to denote the same or similar components in other drawings. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS In the following description of the present invention, detailed description of known functions and configurations incorporated herein will be omitted when it may make the subject matter of the present invention rather unclear.
도 3은 본 발명의 실시예에 따른 자동우량경보시스템의 통신 경로를 보여주는 통신망 구성도이다.3 is a diagram illustrating a communication network showing the communication path of the automatic rain alarm system according to the embodiment of the present invention.
상기 도 3에 도시된 자동우량경보시스템은, 통제국 장치(10), 복수의 우량국 장치(31,32,33,41,42,43,44,45,46,51,52,53), 복수의 경보국 장치(21,22,23) 및 수위국 장치(61)를 포함하여 구성되며, 우량국 장치, 경보국 장치 및 수위국 장치를 지국장치로 하여 통제국 장치(10)에서 각각의 지국장치와 통신하도록 통신망으로 연결된다. 이와 같이 구성되는 자동우량경보시스템은 일반적으로 VHF 통신 방식을 채용한다.The automatic rain alarm system shown in FIG. 3 includes a
우량국 장치는 우량을 관측하는 강우량센서, 전원을 공급하는 전원공급장치 및 통신을 위한 송수신기를 구비하여서, 관측 기록하는 우량 관측정보를 통제국 장치의 지시에 따라 전송하여 통제국 장치에 전달되게 한다. 수위국 장치는 계곡수의 수위를 관측하는 수위측정센서, 전원을 공급하는 전원공급장치 및 통신을 위한 송수신기를 구비하여서, 관측 기록하는 수위 관측정보를 통제국 장치의 지시에 따라 전송하여 통제국 장치에 전달되게 한다. 상기한 수위국 장치는 자동우량경보시스템을 구성함에 있어서 산악지형의 특성상 계곡수의 수위를 측정할 필요가 없으면 시설하지 아니하기도 한다. 경보국 장치는 주변에 경보 상황을 알리기 위한 경보장치, 전원을 공급하는 전원공급장치 및 통신을 위한 송수신기를 구비하여서, 통제국 장치의 지시에 따라 경보를 발령한다. 그리고, 통제국 장치는, 우량국 장치 및 수위국 장치에게 관측정보의 전송을 요청하여 우량 관측정보 및 수위 관측정보를 수집하고, 수집한 정보를 모니터링하여 위험 상황이 발생할 것으로 예측되면 경보국 장치에게 지시하여 경보를 발령한다.The superior station apparatus includes a rainfall sensor for monitoring rainfall, a power supply for supplying power, and a transceiver for communication, and transmits the excellent observation information recorded and recorded according to the instructions of the control station apparatus to be transmitted to the control station apparatus. . The water level station device is equipped with a water level sensor for observing the water level of the valley water, a power supply for supplying power, and a transceiver for communication, and transmits the observation level recording information recorded according to the instructions of the control station device. To be delivered to. The water level station apparatus may not be installed if it is not necessary to measure the water level of the valley water in the nature of the mountainous terrain in configuring the automatic rain alarm system. The alarm station apparatus is provided with an alarm device for notifying an alarm condition to the surroundings, a power supply device for supplying power, and a transceiver for communication, to issue an alarm in accordance with the instruction of the control station device. The control station apparatus requests the transmission of the observation information to the superior station apparatus and the water level station apparatus to collect the rainfall observation information and the water level observation information, and monitors the collected information to alert the alarm station apparatus if a dangerous situation is expected to occur. Instructs to issue an alarm.
아울러, 통제국 장치는 일반적으로 우량국 장치, 수위국 장치 및 경보국 장치와 통신 장애 없이 양호하게 통신하면서 관리자가 출입하여 유지관리하기에 적합한 개소에 시설된다. 그리고, 우량국 장치, 수위국 장치 및 경보국 장치는 산악지형 및 민간인 거주지역 등을 고려하여 필요한 개소에 각각 시설된다.In addition, the control station apparatus is generally installed in a location suitable for the administrator to enter and maintain while communicating well with the superior station apparatus, the water level apparatus and the alarm station apparatus without a communication failure. The superior station apparatus, the water level station apparatus, and the alarm station apparatus are respectively installed in necessary places in consideration of mountainous terrain and civilian living area.
이와 같이 시설되는 우량국 장치, 수위국 장치 또는 경보국 장치로 이루어지는 지국 장치는 각각 고유의 식별자인 아이디를 부여받은 상태에서 통제국 장치와 1단 중계로 통신하기 위해 일반적으로 채용하는 패킷의 프레임 구조를 사용하더라도 본 발명에 의해서 2단 또는 3단 중계로 통신하도록 통신망를 구성할 수 있으므로, 필요한 개소에 시설할 시에 제약을 받지 아니한다. The station apparatus composed of the superior station apparatus, the water station apparatus, or the alarm station apparatus installed in this way is a frame structure of a packet which is generally employed to communicate with the control station apparatus in one-stage relay with an ID which is a unique identifier. Even if it is used, since the communication network can be configured to communicate in two-stage or three-stage relay according to the present invention, it is not restricted when it is installed in a necessary place.
구체적으로 설명하면, 지국장치 21,22,23,31은 통제국 장치(10)와 직접 통신하고, 지국장치 32,33은 지국장치 31의 중계에 의해 통제국 장치(10)와 1단 중계 통신하고, 지국장치 41,42,61은 지국장치 22의 중계에 의해 통제국 장치(10)와 1단 중계 통신하고, 지국장치 51은 지국장치 23의 중계에 의해 통제국 장치(10)와 1단 중계 통신한다. 이에 따라, 상기한 지국장치는 하기의 도 4에 도시된 바와 같이 전송자, 수신자, 다음 수신자 및 최초 송신자의 아이디만을 갖는 1단 중계용 패킷을 사용하여 통제국 장치와 통신하도록 통신망으로 연결할 수 있다. Specifically, the station apparatuses 21, 22, 23, 31 communicate directly with the
하지만, 본 발명의 실시예를 설명하기 위해 첨부한 상기 도 3을 참조하면, 지국장치 43,44는 지국장치 22에 의해 중계되는 지국장치 41과 통신하여 통제국 장치와 2단 중계로 통신해야 하고, 지국 장치 45,46은 통제국 장치와 2단 중계로 통신하는 지국 장치 43과 통신하므로 통제국 장치와 3단 중계로 통신해야 한다. 또한, 지국 장치 52,53은 통제국 장치와 1단 중계 통신하는 지국 장치 51과 통신하여 통제국 장치와 2단 중계로 통신해야 한다. 따라서, 전송자, 수신자, 다음 수신자 및 최초 송신자의 아이디만을 갖는 1단 중계용 패킷을 사용하면 2단 중계 및 3단 중계가 필요한 지국 장치와 통제국 장치 간에 통신할 수 없다. However, referring to the accompanying FIG. 3 for explaining an embodiment of the present invention, the
이와 같이 지국 장치 간의 거리 또는 산악지형에 의한 전파방해 등의 원인으로 1단 중계 통신에 의해 통신망을 구성하지 못하고 2단 중계 또는 3단 중계 통신 망를 구성하여야 하는 자동우량경보시스템에서, 본 발명은 후술하는 바와 같이 2단 중계 또는 3단 중계 통신 경로 상에 있는 지국 장치에게 가상 아이디와 중계 경로 상의 아이디를 매칭시킨 중계경로 테이블을 부여하여서, 가상 아이디를 이용하여 2단 중계 또는 3단 중계를 가능하게 한다.As described above, the present invention will be described later in an automatic rain alarm system in which a communication network cannot be formed by one-stage relay communication but a two-stage relay or three-stage relay communication network due to the distance between the station apparatuses or the interference of the mountainous terrain. As described above, a relay path table in which the virtual ID matches the ID on the relay path is given to the station apparatus on the two-stage relay or the three-stage relay communication path, thereby enabling two-stage relay or three-stage relay using the virtual ID. do.
이하, 본 발명의 실시예에 따른 자동우량경보시스템에 대해 설명하기에 앞서서, 1단 중계, 2단 중계, 3단 중계라는 용어는, 통제국 장치와 지국 장치 간에 통신할 때에 중간에 경유하는 지국 장치가 존재하여 간접 통신하는 것으로, 통신 경로 상에 지국 장치가 1개가 있어 1개의 지국 장치를 경유하여 통신하면 1단 중계, 지국 장치가 2개가 있어 2개의 지국 장치를 순차적으로 경유하여 통신하면 2단 중계, 지국 장치가 3개가 있어 3개의 지국 장치를 순차적으로 경유하여 통신하면 3단 중계를 의미한다.
Hereinafter, before describing the automatic rain alarm system according to the embodiment of the present invention, the term 1 st relay, 2 st relay, and 3 st relay refers to a branch station that is intervening in the middle of communication between the control station apparatus and the station apparatus. The device exists and communicates indirectly. If there is one station device on the communication path, and communicates through one station device, there are two stage relay devices and two station devices. However, since there are three relay and three station apparatuses, communication through three station apparatuses sequentially means three-stage relay.
먼저, 각 지국 장치들은 인접하는 장치와 직접 통신하거나 아니면 인접하는 다른 장치에게 1단 중계하는 중계기로 동작할 수 있게 구성되며, 이에 대해서 하기의 도 4 내지 도 7을 참조하여 설명한다.First, each station apparatus is configured to be able to directly communicate with an adjacent apparatus or to operate as a repeater for one-stage relay to another neighboring apparatus, which will be described with reference to FIGS. 4 to 7.
도 4는 본 발명의 실시예에 따른 자동우량경보시스템에서 송수신되는 패킷(100)의 프레임 구조이다.4 is a frame structure of a
상기 도 4를 참조하면, 패킷(100)은 시작 구분자(110), 그룹 아이디 필드(120), 장치 아이디 필드(130), 데이터 길이(140), 명령코드 필드(150), 데이타 필드(160), 종료 구분자(170), 패킷 검증자(180)를 포함하여 이루어지는 한편, 상기 장치 아이디 필드(130)는 송신자 아이디 필드(131), 수신자 아이디 필드(132), 다음 수신자 아이디 필드(133) 및 최초 송신자 아이디 필드(134)로 세분화되며, 이를 다음 표로 요약할 수 있다. Referring to FIG. 4, the
장치 아이디
필드(130)
Device id
Field (130)
필드(131, SID)Sender ID
필드(132, DID)Receiver ID
필드(133, NID)Next recipient ID
필드(134, FID)First sender ID
Field (134, FID)
예를 들면, 관측정보 요청, 경보 발령 요청, 장치의 상태정보 요청 등Control command code
For example, requesting observation information, requesting alarm, requesting status information of device, etc.
예를 들면, 우량국 또는 수위축 장치에서 통제국 장치의 요청에 따라 회신 패킷에 담는 관측정보, 통제국 장치가 경보국 장치에게 패킷을 전송할 때에 담는 경계, 대피, 중대피 등의 경보 발령 정보, 또는 패킷의 정상 수신 여부를 알리는 정보 등Field to write data to
For example, observation information contained in a reply packet in response to a request of a control station device from a superior station or a water level reduction device, alarm notification information such as a boundary, evacuation, and severe evacuation included when the control station device transmits a packet to an alarm station device, Or information indicating whether a packet is normally received
상기 표와 같은 형태의 통신 프레임을 갖는 패킷은 패킷을 송신하는 전송자 장치에 의해 생성되어 송신되거나 아니면 중계하는 장치에 의해 재송출되는 것으로서, 일반적으로 1단 중계 통신을 하도록 구성되는 네트워크에서 일반적으로 채용하는 것이므로 각 필드에 대한 상세한 설명은 생략하고, 본 발명에 직접적으로 관련된 필드에 대해서만 설명한다. A packet having a communication frame of the type shown in the above table is generated by the sender apparatus that transmits the packet and retransmitted by the relaying apparatus, and is generally employed in a network configured for one-stage relay communication. Since the detailed description of each field is omitted, only the fields directly related to the present invention will be described.
먼저, 1단 중계 통신을 위해 장치 아이디를 기입하는 필드는 전송자 아이디 필드(131), 수신자 아이디 필드(132), 다음 수신자 아이디 필드(133) 및 최초 송신자 아이디 필드(134)로 세분화되며, 여기서, 전송자 아이디는 패킷을 송신하는 전송자 장치의 아이디이고, 수신자 아이디는 전송자가 송신한 패킷을 수신하게 되는 수신자 장치의 아이디이고, 다음 수신자 장치는 수신자 장치를 경유하여 패킷을 수신하게 되는 장치이며, 최초 송신자는 명령코드 또는 데이터를 포함한 패킷을 생성하여 최초로 송신하는 장치이다. 여기서, 상기 다음 수신자 아이디 필드(133)는 빈칸(또는 '0')으로 남겨둘 수 있다. 즉, 다음 수신자 아이디 필드가 빈칸으로 된 패킷은 수신자를 최종 도착지로 하는 것이고, 다음 수신자 아이디 필드에 아이디가 기입되어 있으면 수신자가 다음 수신자 아이디를 갖는 장치에게 전달해달라는 것이다. 최초 송신자 아이디는 패킷이 최종적으로 도착하는 장치에서 패킷의 최초 송신자가 어느 장치인지를 알 수 있게 하여 회신할 시에 최종 도착지로 지정할 수 있게 하는 아이디이다. First, the field for writing the device ID for the first relay communication is subdivided into a
이와 같은 프레임 구조는 갖는 패킷으로 정보를 송수신하는 과정을 하기의 도 5 내지 도 7을 참조하여 설명한다.Such a frame structure will be described with reference to FIGS. 5 to 7 below for a process of transmitting and receiving information in a packet having.
도 5는 본 발명의 실시예에 따른 자동우량경보시스템에서 각각의 지국장치가 자신을 수신자로 한 패킷을 수신하였을 때의 동작 순서를 보여주는 순서도 도면이고, 도 6은 상기 도 5에 도시된 패킷 수용/회신 단계(S120)의 상세 순서도 도면이고, 도 7은 상기 도 5에 도시된 패킷 1단 중계 단계(S130)의 상세 순서도 도면이다.FIG. 5 is a flowchart illustrating an operation sequence when each station apparatus receives a packet whose receiver is a receiver in the automatic rain alarm system according to an embodiment of the present invention, and FIG. 6 is a diagram illustrating the packet acceptance shown in FIG. Is a detailed flowchart of the reply step (S120), and FIG. 7 is a detailed flowchart of the packet one-stage relay step (S130) shown in FIG.
상기 도 5 내지 도 7을 참조하면, 각각의 지국 장치는 다른 장치(통제국 장치 또는 다른 지국 장치)로부터 송신되는 패킷을 수신하여(S10) 패킷에 담긴 그룹 아이디를 확인한 후에 자신에게 부여된 그룹 아이디와 일치하는 지를 확인하고(S20), 그룹 아이디가 일치하지 아니하면 패킷을 무시하고 다른 패킷이 수신될 때까지 대기하고, 그룹 아이디가 일치하면 패킷에 담긴 수신자 아이디를 확인하여 자신에게 부여된 아이디와 일치하는 지를 확인하여(S30) 자신의 아이디와 일치하지 아니하면 패킷을 무시하고 대기 상태로 돌아간다. 여기서, 자신의 아이디와 패킷에 담기 수신자 아이디가 일치하면, 수신한 패킷을 받아들여 다음과 같이 패킷수용/1단중계 동작(S100)을 수행한다. 즉, 각각의 지국 장치는 자신에게 부여된 그룹 아이디 필드(120)에 기입된 그룹 아이디와 수신자 아이디 필드(132)에 기입된 수신자 아이디가 각각 자신에 부여된 그룹 아이디 및 아이디와 일치하는 패킷만 수신하여 받아들여 패킷에 담긴 사항에 따라 다음과 같이 패킷수용/1단중계 동작(S100)을 수행한다.5 to 7, each station apparatus receives a packet transmitted from another apparatus (control station apparatus or another station apparatus) (S10) and checks the group ID contained in the packet, and then assigns the group ID assigned to itself. (S20), if the group ID does not match, ignores the packet and waits until another packet is received, and if the group ID matches, checks the receiver ID contained in the packet and the ID given to the user If it does not match (S30) and does not match their ID, the packet is ignored and returns to the standby state. Here, if their ID and the receiver ID included in the packet match, the received packet is received and the packet acceptance / relay operation (S100) is performed as follows. That is, each station apparatus receives only packets in which the group ID written in the
상기 패킷수용/1단중계 동작(S100)은, 다음 수신자 아이디 필드(133)에 다음 수신자 아이디가 기입되어 있는지 확인하는 단계(S110), 다음 수신자 아이디가 기입되어 있지 아니하면 패킷 수용/회신단계(S120)를 수행하고 다음 수신자 아이디가 기입되어 있으면 패킷 1단 중계단계(S130)를 수행한다.The packet receiving / single relay operation (S100) may include checking whether the next receiver ID is entered in the next receiver ID field 133 (S110), and if the next receiver ID is not entered, accepting / replying the packet ( If the S120 is performed and the next receiver ID is written, the first step of relaying the packet (S130) is performed.
구체적으로 설명하면, 상기 패킷 1단 중계단계(S130)는, 수신한 패킷에서 수신자 아이디를 전송자 아이디 필드에 옮겨 기입하고 다음 수신자 아이디를 수신자 아이디 필드에 옮겨 기입하며, 다음 수신자 아이디 필드를 비워둔 후에(S131), 패킷을 재송출하는(S132) 단계이다. 이때 최초 송신자 아이디 필드에 기입된 아이디는 그대로 둔다. 이에 따라, 재송출하는 패킷은 수신한 패킷의 다음 수신자 아이디 필더에 기입되었던 아이디를 수신자 아이디로 변경하고 다음 수신자 아이디 필드를 비워둔 패킷이므로, 상기 패킷 1단 중계단계(S130)에 의한 재송출로 다음 수신자에서 수신자로 변경된 장치가 이를 수신하게 되는 것이며, 이때의 수신자가 다른 지국 장치이면 상기 패킷 수용 및 회신단계(S120)를 수행하게 되고, 이때의 수신자가 통제국 장치이면 패킷을 수용하게 된다.In detail, in the packet first-stage relaying step (S130), the receiver ID is transferred from the received packet to the sender ID field, the next receiver ID is transferred into the receiver ID field, and the next receiver ID field is left blank. In step S131, the packet is resent (S132). At this time, the ID written in the original sender ID field is left as it is. Accordingly, the retransmitted packet is a packet in which the ID written in the next receiver ID field of the received packet is changed to the receiver ID and the next receiver ID field is left blank, so that the packet is resent by the first step of the relay step (S130). The device changed from the next receiver to the receiver will receive it. If the receiver is another station apparatus, the packet accepting and returning step (S120) will be performed. If the receiver is the controlling station apparatus, the packet will be accepted.
상기 패킷 수용 및 회신단계(S120)는, 수신한 패킷에 다음 수신자 아이디가 없을 경우에 실행되므로, 자신이 패킷의 최종 도착지인 것으로 판단하여 패킷을 수용하여 패킷에 담긴 정보(명령코드 또는 데이타)에 따라 동작하고(S121), 회신이 필요한 경우에 회신할 데이타를 생성하고(S122) 아이디를 지정하여 회신할 데이타와 지정한 아이디를 포함한 패킷을 송신한다(S123, S124, S125, S126). 이때의 패킷 송신은 수신한 패킷의 최초 송신자에게 회신하는 것에 해당된다. The packet accepting and returning step (S120) is executed when there is no next receiver ID in the received packet. Therefore, it is determined that the packet is the final destination of the packet. In response to the request (S121), if a reply is required, data to be returned is generated (S122), and an ID is designated to transmit a packet including the data to be returned and the specified ID (S123, S124, S125, and S126). Packet transmission at this time corresponds to returning to the original sender of the received packet.
여기서, 패킷의 아이디를 지정하는 과정(S122, S124, S125)은, 수신한 패킷에 기입된 최초 송신자가 전송자 아이디와 일치하는 지를 확인하여(S123), 일치하면 회신할 패킷의 다음 수신자 아이디 필드를 비워두고(S124), 일치하지 아니하면 수신한 패킷에 기입된 최초 송신자 아이디를 회신할 패킷의 다음 수신자 아이디 필드에 기입하는(S125) 과정을 포함한다. 아울러, 회신할 패킷에서 전송자 아이디 필드 및 최초 송신자 아이디 필드는 자신의 아이디를 기입하고, 수신자 아이디 필드는 수신한 패킷에 기입된 전송자 아이디를 기입한다. 여기서, 최초 송신자 아이디 필드에 자신의 아이디를 기입하는 것은 패킷을 생성하는 장치가 자신이기 때문이다.Here, the process of specifying the ID of the packet (S122, S124, S125) checks whether the first sender written in the received packet matches the sender ID (S123), and if it matches, determines the next receiver ID field of the packet to be returned. Leave blank (S124), and if not matched, writes the first sender ID written in the received packet in the next receiver ID field of the packet to be returned (S125). In addition, in the packet to be returned, the sender ID field and the first sender ID field input their own ID, and the receiver ID field input the sender ID written in the received packet. Here, the reason why the ID is entered in the first sender ID field is because the device generating the packet is itself.
상술한 바와 같이 동작하도록 각각의 지국 장치를 구성하고, 각 지국 장치 간에 이루어질 통신 경로를 사전에 데이타베이스화하여 통제국 장치(10)에 설정함으로써, 통신 경로의 데이타베이스에 따라 패킷을 최종 전달받게 할 지국 장치를 지정하여 패킷을 송신하게 되면, 패킷은 지정한 지국 장치에 전달되고 그 지국 장치로부터 회신 패킷을 전달받을 수 있다. 즉, 통제국 장치(10)는 자신을 전송자 및 최초 송신자로 하고 패킷을 최종 전달받게 할 지국 장치를 지정하여 수신자 및 다음 수신자를 지정하는 데, 이때, 통신 경로의 데이타베이스에 근거하여 패킷을 최종 전달받을 지국 장치가 통제국 장치(10)와 직접 통신하는 지국 장치이면 수신자로 하고 다음 수신자를 비워두며, 다른 지국 장치의 중계에 의해 1단 중계 통신하는 지국 장치이면 다음 수신자로 함과 동시에 그 중계하는 지국 장치를 수신자로 함으로써, 지국 장치와 직접 통신 또는 1단 중계 통신을 할 수 있다.Each station apparatus is configured to operate as described above, and a communication path to be made between each station apparatus is databased in advance and set in the
여기서, 상기 도 4에 도시된 프레임 구조로 이루어진 패킷은 통제국 장치에서 송신됨에 따라 다음 수신자 아이디의 기입 여부로 수신자가 패킷의 최종 도착지인지 아니면 중계자인지를 판단하여 수신자가 수용하던지 아니면 중계하여 다음 수신자가 최종 도착지로서 수용하게 한다. 그리고, 상기한 프레임 구조의 패킷은, 최종 도착지에서 회신할 시에는 최초 송신자의 아이디를 이용하여 회신할 수 있게 하되, 최초 송신자와 전송자의 일치 여부에 따라 통제국 장치와 직접 통신하는 위치 아니면 1단 중계에 의한 간접 통신하는 위치에 있는지를 알 수 있게 하여 회신용 패킷의 다음 수신자 아이디를 기입할 것인지 아니면 빈칸으로 할 것인지를 결정하게 한다.In this case, the packet having the frame structure shown in FIG. 4 is transmitted from the control station apparatus to determine whether the receiver is the final destination of the packet or the relay based on whether the next receiver ID is written, and the receiver accepts or relays the next receiver. To be accepted as the final destination. The packet having the above-described frame structure may be replyed by using the ID of the first sender when the packet is returned from the final destination. It allows the user to know whether he is in the position of indirect communication by relay, so that he or she can decide whether to fill in the next recipient ID of the reply packet or leave it blank.
상술한 바와 같이 도 4에 도시된 프레임 구조의 패킷으로 통신하면, 통제국 장치(10)는 중계 없이 직접 통신하는 지국 장치 및 1단 중계에 의해 통신하는 지국 장치에게만 관측 정보를 요청하여 수신할 수 있고(경보국인 경우 경보발령을 요청할 수 있고), 2단 또는 3단 중계가 필요한 거리 또는 1단 중계로는 지형적 장애로 통신 품질이 낮은 개소에 설치하여야 할 지국 장치와는 통신할 수 없다. As described above, when communicating in the packet of the frame structure shown in FIG. 4, the
이에, 본 발명에 따르면, 상기한 바와 같이 통제국 장치(10)와 직접 또는 1단 중계로 통신하는 지국 장치들로 구성되는 자동우량경보시스템을 구성함에 있어서, 상기 도 4에 도시된 바와 같이 전송자, 수신자, 다음 수신자 및 최초 송신자의 아이디를 기입하는 패킷을 사용하면서, 통제국 장치(10)와 직접 통신하는 지국 장치 또는 통제국 장치(10)와 직접 통신하는 지국 장치를 경유하여 통제국 장치(10)와 1단 중계하는 지국 장치에게, 하기의 도 8에 예시된 중계경로 테이블을 부여하여 메모리에 저장하게 한다. 먼저 밝혀두면, 통제국 장치(10)와 직접 통신하는 지국 장치에 중계경로 테이블을 부여함으로써 그 지국 장치를 경유하여 통제국 장치(10)와 2단 중계로 통신할 수 있는 지국 장치를 시설할 수 있고, 통제국 장치(10)와 1단 중계로 간접 통신하는 지국장치에 중계경로 테이블을 부여함으로써 그 지국 장치를 경유하여 통제국 장치(10)와 2단 중계 또는 3단 중계로 통신할 수 있는 지국 장치를 시설할 수 있다.
Therefore, according to the present invention, in the automatic rain alarm system composed of the station devices that communicate with the
도 8은 상기 도 3의 자동우량경보시스템을 구성하는 지국장치들 중에, 지국장치 41 및 지국장치 23에 예시적으로 부여된 중계경로 테이블을 보여주는 도면이다.FIG. 8 is a diagram illustrating a relay path table exemplarily provided to the
먼저, 지국 장치 22,41을 순차적으로 경유하여서 통제국 장치와 통신하는 지국 장치 43,44,45,46 중에, 지국 장치 43,44는 지국 장치 22,41를 경유하여 통제국 장치와 2단 중계 통신하여야 하고, 지국 장치 45,46은 지국 장치 22,41,43을 경유하여 통제국 장치와 3단 중계 통신하여야 한다. First, among the
여기서, 도 8의 (a)에 도시된 바와 같이 통제국 장치와 1단 중계 통신하는 지국 장치 41에는, 지국 장치 41을 경유하여 통신하는 지국 장치 43,44,45,46의 아이디로 하는 단말 아이디(220), 단말 아이디별로 할당되는 가상 아이디(210), 지국 장치 41을 경유하여 통신하는 지국 장치 43,44,45,46 중에 중계도 하는 지국 장치 43의 아이디로서 지정되는 것으로서 중계받는 지국 장치의 단말 아이디별로 지정되는 중계 아이디(230), 및 통제국 장치(10)의 아이디인 통제국 아이디(240)로 구성되는 통신경로를 테이블 자료로 부여받아서, 지국 장치 41에 마련되는 메모리에 저장된다. Here, as shown in (a) of FIG. 8, the
따라서, 지국 장치 41을 경유하여 통신하는 지국 장치 43,44,45,46은 가상 아이디(210)로 식별할 수 있으므로, 통제국 장치(10)는 패킷의 최종 도착지로 지정할 지국 장치의 아이디를 대신하여 가상 아이디로 지정하고, 그 가상 아이디를 지국 장치 41에 전달하면, 지국 장치 41은 통신경로 테이블 상에서 가상 아이디에 대응되는 단말 아이디 및 중계 아이디를 통신 패킷에 담아 재송출함으로써 단말 아이디를 갖는 지국 장치에게 패킷을 전달할 수 있다. 그리고, 지국 장치 41과의 1단 중계 통신의 여부로 중계 아이디(230)의 유무도 알 수 있다. 한편, 도 8의 (a)에서 보여준 통신경로 테이블 살펴보면, 통제국 아이디(240)가 각각의 가상 아이디(210)별로 동일하게 부여되었는 데, 이는 본 발명의 실시예가 동일한 통제국 장치(10)와 통신하게 구성되기 때문이다.Accordingly, since the
다음으로, 도 8의 (b)에서 보여주는 통신경로 테이블은 통제국 장치(10)와 직접 통신하는 지국 장치 23에 부여된 것으로서, 지국 장치 23을 경유하여 통제국 장치(10)와 1단 중계 통신하는 지국 장치 51 및 2단 중계 통신하는 지국 장치 52,53에게 각각 가상아이디를 부여하고 지국 장치 52,53은 지국 장치 51을 경유하여 지국 장치 23과 통신하므로 지국 장치 51의 아이디 51을 중계 아이디로서 51을 지정받는다. 통제국 아이디는 동일하게 통제국 장치의 아이디를 지정받는다.Next, the communication path table shown in (b) of FIG. 8 is given to the
이와 같이 중계경로 테이블을 부여받는 지국장치는 통제국 장치(10)와 직접 통신하는 지국 장치 또는 1단 중계 통신하는 지국 장치이며, 본 발명의 실시예로 설명하는 자동우량경보시스템은 통제국 장치(10)와 직접 통신하는 지국 장치로서 중계경로 테이블을 부여받는 지국 장치, 및 1단 중계 통신하는 지국 장치로서 중계경로 테이블을 부여받는 지국 장치 모두를 갖추지만, 어느 하나만을 갖추도록 구성할 수도 있다. 예를 들면, 도 3에서 지국 장치 23을 대신하여 지국 장치 51에 중계경로 테이블을 부여하는 것도 가능하다. 다만, 통제국 장치(10)로부터 가지 상으로 뻗어나가는 형태로 이루어지는 통신 경로 중에 3단 중계가 필요한 통신 경로에는, 통제국 장치(10)와 1단 중계 통신하는 지국장치에게 중계경로 테이블을 부여하여야 하고, 2단 중계가 필요한 통신 경로에는 통제국 장치(10)와 직접 통신하는 지국 장치 및 1단 중계 통신하는 지국 장치 중에 어느 하나에 선택적으로 중계경로 테이블을 부여할 수 있다.
In this way, the station apparatus receiving the relay path table is a station apparatus that directly communicates with the
그리고, 중계경로 테이블을 부여받는 지국장치는, 통제국 장치에서 수신자 아이디 필드나 아니면 다음 수신자 아이디 필드에 가상 아이디를 기입한 패킷으로 송신함에 따라 그 패킷을 수신할 수 있다. 앞서 언급하였듯이, 통제국 장치는 패킷의 최종 목적지에 해당되는 지국장치에 부여된 가상 아이디를 상기 중계경로 테이블에 근거하여 지정할 수 있으므로, 통제국 장치는 중계경로 테이블에서 가상 아이디와 지국장치 간의 대응관계를 데이터베이스로서 저장하고 있어야 한다.The station apparatus receiving the relay path table can receive the packet as the control station apparatus transmits the packet in which the virtual ID is written in the receiver ID field or the next receiver ID field. As mentioned above, since the control station apparatus can designate a virtual ID assigned to the station apparatus corresponding to the final destination of the packet based on the relay path table, the control station apparatus corresponds to the correspondence between the virtual ID and the station apparatus in the relay path table. Must be stored as a database.
아울러, 통제국 장치(10)가 패킷을 최종 전달받게 하려는 지국 장치의 가상 아이디를 수신자 아이디 필드에 기입한 패킷을 송신하면, 통제국 장치(10)와 직접 통신하면서 중계경로 테이블을 부여받은 지국장치가 그 패킷을 수신할 수 있고, 통제국 장치(10)가 가상 아이디를 다음 수신자 아이디 필드에 기입한 패킷을 송신하면 패킷의 수신자 아이디 필드에 기입된 수신자가 이를 수신하여 가상 아이디를 수신자 아이디 필드에 옮겨 기입한 패킷으로 재송출하므로 그 재송출한 패킷을 수신할 수 있다.In addition, when the
이와 같이 중계경로 테이블을 부여받은 지국장치는 가상 아이디를 수신자로 한 패킷을 수신하는 경우에 다음의 도 9 내지 도 11의 순서도에 따라 동작한다.
In this way, the station apparatus having received the relay path table operates according to the flowcharts of FIGS. 9 to 11 when receiving a packet having a virtual ID as a receiver.
도 9는 본 발명의 실시예에 따른 자동우량경보시스템에서 중계경로 테이블을 부여받은 지국장치가 자신을 수신자로 한 패킷을 수신하였을 때의 동작 순서를 보여주는 순서도 도면이고, 도 10은 상기 도 9에 도시된 패킷 다단중계 단계(S200)의 상세 순서도 도면이고, 도 11은 상기 도 10에 도시된 회신 중계 단계(S240)의 상세 순서도 도면이다.FIG. 9 is a flowchart illustrating an operation sequence when a station apparatus that receives a relay path table in the automatic rain alarm system according to an embodiment of the present invention receives a packet whose receiver is a receiver, and FIG. 10 is shown in FIG. 9. FIG. 11 is a detailed flowchart of the packet multi-stage relay step S200, and FIG. 11 is a detailed flowchart of the reply relay step S240 shown in FIG.
상기 도 9 내지 도 11을 참조하면, 중계경로 테이블을 부여받은 지국 장치는, 패킷을 수신하는 경우에 다음과 같이 동작한다. 9 to 11, when receiving a packet, the station apparatus granted the relay path table operates as follows.
먼저, 패킷을 수신하여(S10) 패킷에 기입된 그룹 아이디가 자신에게 부여된 그룹 아이디와 일치하는지 확인하고(S20) 그룹 아이디가 일치하지 아니하면 무시하고 다음 패킷이 수신될 때까지 대기한다. First, the packet is received (S10) to check whether the group ID written in the packet matches the group ID given to it (S20). If the group ID does not match, it is ignored and waits until the next packet is received.
만약, 그룹 아이디가 일치하면 패킷에 기입된 수신자가 자신에게 부여된 아이디인지를 확인한다(S30). 이때, 자신에게 부여된 아이디는 장치로서의 고유의 아이디뿐만 아니라 중계경로 테이블로서 부여된 가상 아이디를 포함하므로, 수신한 패킷의 수신자 아이디를 가상 아이디와도 비교하여 일치하는지 확인하다. 그리고, 수신한 패킷의 수신자 아이디가 자신의 고유 아이디와 일치하지 아니할뿐만 아니라 가상 아이디와도 일치하지 아니하면, 그 수신한 패킷을 무시하고 다음 패킷이 수신될 때까지 대기한다.If the group ID matches, the receiver checks whether the receiver written in the packet is the ID given to the user (S30). At this time, since the ID given to the user includes not only a unique ID as a device but also a virtual ID assigned as a relay path table, the receiver ID of the received packet is compared with the virtual ID to check whether the ID is matched. If the receiver ID of the received packet does not match the unique ID of the received packet and does not match the virtual ID, the received packet is ignored and waits until the next packet is received.
만약, 수신한 패킷의 수신자 아이디가 자신의 고유한 아이디인지 아니면 가상 아이디인지를 분별하여(S31) 자신의 고유한 아이디이면 상기 도 5에 도시하고 설명한 패킷 수용/1단중계 과정(S100)을 수행하고, 중계경로 테이블로서 부여된 가상 아이디이면 다음의 패킷 다단중계 과정(S200)을 수행한다. If the receiver ID of the received packet is its own unique ID or a virtual ID (S31), and if it is its own unique ID, the packet acceptance / relay process shown in FIG. 5 is performed (S100). If the virtual ID is assigned as the relay path table, the following packet multi-stage relay process (S200) is performed.
패킷 다단중계 과정(S200)은, 먼저 중계경로 테이블을 확인하여 가상 아이디에 대응되는 단말 아이디, 중계 아이디 및 통제국 아이디를 메모리로부터 불러들인다(S210). The packet multi-stage relay process (S200), first checks the relay path table and retrieves the terminal ID, relay ID and control station ID corresponding to the virtual ID from the memory (S210).
다음으로, 수신한 패킷의 최초 송신자가 중계경로 테이블의 통제국 아이디와 일치하는지는 확인하여서(S220), 일치하면 수신한 패킷이 통제국 장치(10) 측으로부터 전송한 것으로 판단하여 송신 중계 단계(S230)를 수행하고, 일치하지 아니하면 수신한 패킷이 다른 지국장치 측으로부터 전송한 것(즉, 다른 지국장치가 회신하기 위해 송신한 패킷)으로 판단하여 회신 중계 단계(S240)를 수행한다. 이는, 통제국 장치에서 패킷을 송신할 때에 통제국 장치 자신을 최초 송신자로 하여 송신하기도 하지만, 지국 장치에서 패킷을 회신할 때에 지국 장치 자신을 최초 송신자로 하여 송신하므로, 패킷의 최초 송신자를 확인하면 그 패킷이 통제국 장치에서 송신한 것인지 아니면 지국 장치에서 회신용으로 송신한 것이지 분별할 수 있기 때문이다.Next, it is checked whether or not the first sender of the received packet matches the control station ID in the relay path table (S220). If there is a match, it is determined that the received packet is transmitted from the
상기 송신 중계 단계(S230)은 도 10에 도시된 바와 같이 중계 동작(S234, S235, S236, S237)을 수행하기에 앞서서 패킷의 전송자가 최초 송신자인지를 확인한다(S231). 만약, 수신한 패킷에서 전송자가 최초 송신자와 일치하지 아니하면 수신한 패킷의 전송자 아이디를 임시 저장 아이디로 저장하고(S233), 전송자가 최초 송신자와 일치하면 전송자 아이디를 임시 저장 아이디로 저장하지 아니한다(S232). 이는 수신한 패킷에서 전송자가 최초 송신자와 일치하지 아니하면 이 패킷을 수신하는 지국 장치가 다른 지국 장치의 중계로 통제국 장치와 통신하도록 통신경로가 설정된 것이 때문이며, 결국, 패킷에 기입할 수 있는 아이디가 전송자, 수신자, 다음 수신자 및 최초 송신자로 한정되어 그 중계하는 지국 장치를 패킷에 담을 수 없기 때문이다. 이에 따라, 가상 아이디를 기입한 패킷을 다른 지국 장치의 중계로 통제국 장치 측으로부터 수신할 때에는 그 중계하는 지국 장치의 아이디를 임시 저장하여 후술하는 회신 중계 단계(S240)에서 임시 저장 아이디를 사용해 통제국 장치에게 회신 중계하게 한다.The transmission relay step S230 confirms whether the sender of the packet is the first sender before performing the relay operations S234, S235, S236, and S237 as shown in FIG. 10 (S231). If the sender does not match the original sender in the received packet, the sender ID of the received packet is stored as the temporary storage ID (S233). If the sender matches the original sender, the sender ID is not stored as the temporary storage ID ( S232). This is because if the sender does not match the original sender in the received packet, the communication path is set up so that the receiving station apparatus communicates with the control station apparatus by relaying another station apparatus. This is because is limited to the sender, the receiver, the next receiver, and the first sender, so that the relaying station apparatus cannot be contained in the packet. Accordingly, when receiving a packet containing a virtual ID from the control station apparatus side as a relay of another station apparatus, the ID of the relay station apparatus is temporarily stored and communicated using the temporary storage ID in the reply relay step (S240) described later. Have the imperial device relay the reply.
이와 같이 수신한 패킷의 전송자 아이디를 임시 저장할 것인지 판단하여 그에 따라 임시 저장하거나 아니면 임지 저장하지 아니하는 동작을 수행한 이후에, 패킷의 중계동작을 수행한다. 패킷을 중계할 때에는 먼저, 가상 아이디에 대응되는 중계 아이디가 있는지 확인하고(S234), 중계 아이디가 있으면 중계 아이디를 수신자 아이디 필드에 기입함과 동시에 단말 아이디를 다음 수신자 아이디 필드에 기입하고(S235), 중계 아이디가 없으면 단말 아이디를 수신자 아이디 필드에 기입함과 동시에 다음 수신자 아이디 필드는 비워두며(S236), 전송자 아이디 필드 및 최초 송신자 아이디 필드에는 각각 가상 아이디를 기입한다. 이와 같이 아이디를 기입한 패킷은 수신한 패킷에 담긴 정보(명령코드 또는 데이타)를 그대로 담되 송신용으로 변환되어서 재송출된다(S237). As described above, after determining whether to temporarily store the sender ID of the received packet, the packet relay operation is performed after temporarily storing or temporarily not storing the sender ID. When relaying a packet, first, check whether there is a relay ID corresponding to the virtual ID (S234). If there is a relay ID, the relay ID is written in the receiver ID field and the terminal ID is written in the next receiver ID field (S235). If there is no relay ID, the terminal ID is written in the receiver ID field and the next receiver ID field is left blank (S236), and the virtual ID is written in the sender ID field and the original sender ID field, respectively. The packet in which the ID is written in this way contains the information (command code or data) contained in the received packet as it is, and is converted for transmission and resent (S237).
여기서, 살펴볼 것은 중계경로 테이블을 부여받은 지국장치가 가상 아이디를 기입한 패킷을 수신하면 수신한 패킷에 담긴 정보는 그대로 하되, 패킷을 생성하여 최초 송신하는 자로서 동작하여 패킷을 재송출하고, 이에 따라, 단말 아이디로부터 회신되는 패킷이 자신에게 돌아오게 함을 알 수 있다. 다시 말해서, 재송출할 패킷에서 전송자, 수신자, 다음 수신자 및 최초 송신자를 기입할 때에 가상 아이디를 자신의 식별용 아이디로 하여 자신이 최초 송신자처럼 아이디를 기입함으로써, 통제국 장치처럼 단말 아이디를 갖는 지국장치가 회신용 패킷을 자신에게 보내라고 요청하는 것이다. Here, when the station apparatus receiving the relay path table receives the packet containing the virtual ID, the information contained in the received packet remains as it is, but the packet is generated and operated as the first sender to resend the packet. Accordingly, it can be seen that the packet returned from the terminal ID is returned to itself. In other words, when writing a sender, a receiver, a next recipient, and an original sender in a packet to be resent, the station having the terminal ID as the control station device by writing the ID as the original sender using the virtual ID as its identification ID. The device is requesting to send a reply packet to itself.
이와 같이 재송출한 패킷은 상기 도 5 내지 도 7을 참조하여 설명하는 바와 같이 단말 아이디를 갖는 지국장치에게 전달되어 회신용 패킷을 송신하게 하고, 결국 가상 아이디를 중계경로 테이블로 부여받은 지국장치에서 회신용 패킷을 수신할 수 있다. 물론, 중계 아이디가 있으면 중계 아이디를 갖는 지국장치의 중계로 단말 아이디를 갖는 지국장치와 통신하게 되고, 중계 아이디가 없으면 단말 아이디를 갖는 지국장치와 직접 통신하게 된다. As described above with reference to FIGS. 5 to 7, the retransmitted packet is transmitted to the station apparatus having the terminal ID to transmit a packet for reply, and finally, in the station apparatus receiving the virtual ID as the relay path table. A packet for reply can be received. Of course, if there is a relay ID, it communicates with the station apparatus having the terminal ID as a relay of the station apparatus having the relay ID. If there is no relay ID, the station apparatus directly communicates with the station apparatus having the terminal ID.
단말 아이디 측으로부터 수신하는 패킷은 가상 아이디를 수신자로 한 패킷이므로 통신경로 테이블을 갖는 지국장치에서 이를 인지하여 수신할 수 있고, 아울러, 수신하는 패킷은 단말 아이디를 최초 송신자 아이디로 한 회신용 패킷이므로, 상술한 바와 같이 최초 송신자가 통제국인지 확인하는 단계(S220)에 의해서 회신 중계(S240)를 수행하게 된다. Since the packet received from the terminal ID side is a packet having a virtual ID as a receiver, the station apparatus having a communication path table can recognize and receive the packet, and the received packet is a reply packet having the terminal ID as the original sender ID. As described above, the reply relay (S240) is performed by the step (S220) of checking whether the first sender is the control station.
상기 회신 중계 단계(S240)는 도 11에 도시된 바와 같이 먼저 임시 저장 아이디로서 저장한 아이디가 있는지를 확인한다(S241). 그리고, 임시 저장 아이디가 있으면 통제국 장치 측으로 송신할 패킷에서 수신자 아이디 필드에 임시 저장 아이디를 기입함과 동시에 다음 수신자 아이디 필드에 중계경로 테이블의 통제국 아이디를 기입하고(S242), 임시 저장 아이디가 없으면 수신자 아이디 필드에 중계경로 테이블의 통제국 아이디를 기입한다(S243). 여기서, 임시 저장 아이디가 있다는 것은 임시 저장 아이디를 갖는 지국장치를 경유하여 통제국 장치와 통신하는 것이므로, 이에 맞는 1단 중계로 통제국 장치에게 회신용 패킷이 전달되게 하기 위한 것임은 자명하다.The reply relay step (S240) first checks whether there is an ID stored as a temporary storage ID as shown in FIG. 11 (S241). If there is a temporary storage ID, the temporary storage ID is entered in the receiver ID field in the packet to be transmitted to the control station device and the control station ID of the relay path table is entered in the next receiver ID field (S242). If not, enter the control station ID of the relay path table in the receiver ID field (S243). Here, since the temporary storage ID is communicated with the control station apparatus via the station apparatus having the temporary storage ID, it is obvious that the reply packet is transmitted to the control station apparatus in the first stage according to this.
물론, 통제국 장치 측으로 송신할 패킷에서 전송자 아이디 필드 및 최초 송신자 아이디 필드에는 가상 아이디를 기입하고, 패킷에 담기는 정보(명령코드 또는 데이타)는 수신한 패킷의 정보와 동일하게 한다. 그리고, 이와 같이 완성된 패킷은 재송출되어(S244) 통제국 장치에게 전달된다.
Of course, in the packet to be transmitted to the control station apparatus side, a virtual ID is written in the sender ID field and the first sender ID field, and the information (command code or data) contained in the packet is the same as the information of the received packet. The packet thus completed is retransmitted (S244) and delivered to the control station apparatus.
이하, 상기 도 8에 도시된 중계경로 테이블에 근거하여 통제국 장치와 지국장치 간에 다단 통신하는 구체적인 예를 설명한다. 이하의 구체적인 예에 대한 설명에서 그룹 아이디를 확인하는 동작에 대해서는 설명을 생략하였으나 그룹 아이디를 사용하는 경우라면 당연히 확인하여야 함에 유의해야 한다.Hereinafter, a specific example of multi-stage communication between the control station apparatus and the branch apparatus based on the relay path table shown in FIG. 8 will be described. In the following description of the specific example, the description of the operation of checking the group ID is omitted, but it should be noted that if the group ID is used, it should be checked.
도 12는 상기 도 8에 예시된 지국장치 41에 의한 3단 중계 과정에서 패킷의 아이디가 바뀌는 순서를 보여주는 도면이다.FIG. 12 is a diagram illustrating a procedure of changing a packet ID in a three-stage relaying process by the
상기 도 12에 도시된 도면을 참조하면, 통제국 장치 10이 지국 장치 45에게 관측정보를 송신하라는 패킷을 전송하여 지국 장치 45로부터 관측정보를 담은 패킷을 전송받는 과정을 보여준다. Referring to the diagram shown in FIG. 12, the
도 3의 지국장치 간의 통신망 구성도에 따르면 지국 장치 45는 지국 장치 22,41,43에 의한 3단 중계로 통신하여야 하고, 도 8(a)에 중계경로 테이블에 따라 지국 장치 41에 가상 아이디 41-1로 할당되어 있다. 여기서, 지국 장치 41은 지국 장치 22를 경유하여 1단 중계 통신하다.According to the communication network configuration diagram of the station apparatus of FIG. 3, the
따라서, 통제국 장치는 자신의 아이디 10을 전송자 및 최초 송신자 아이디로 하고, 지국 장치 22의 아이디를 수신자 아이디로 하고, 가상 아이디 41-1을 다음 수신자 아이디로 하며, 관측정보의 전송요청 메세지를 담은 패킷을 생성하여 송출한다. Therefore, the control station apparatus sets its
그러면, 수신자 아이디 22를 갖는 지국 장치 22가 이를 수신한 후에, 수신한 패킷에서 수신자 아이디 22를 전송자 아이디 필드에 옮겨 기입하고, 다음 수신자 아이디(가상 아이디 41-1)를 수신자 아이디 필드에 옮겨 기입하고, 다음 수신자 아이디 필드를 비워 둔 다음, 패킷을 송신용으로 변환하여 재송출한다. 지국 장치 22에서 재송출하는 패킷의 수신자 아이디 필드에는 가상 아이디 41-1이 기입되어 있다.Then, after receiving the
다음으로, 지국 장치 41은 가상 아이디 41-1이 부여되어 있으므로, 지국 장치 22에서 재송출한 패킷을 수신하게 되고, 수신한 패킷의 수신자 아이디 필드에 기입된 가상 아이디 41-1에 대응되는 단말 아이디 45, 중계 아이디 43 및 통제국 아이디 10을 메모리로부터 읽어들인다. Next, since the
그리고, 지국 장치 41은 수신한 패킷에서 최초 송신자 10이 통제국 아이디 10과 일치하는지 확인하며, 확인한 결과 일치하므로 수신한 패킷이 통제국 장치 10으로부터 송신한 것으로 판단하여 도 10에 도시된 송신 중계단계(S230)를 수행한다. 지국 장치 41은 송신 중계단계(S230)를 수행함에 있어서 수신한 패킷의 전송자와 최초 송신자가 일치하는지 확인하고, 여기서 일치하지 않게 되므로 수신한 패킷의 전송자 아이디 22를 임시 저장 아이디로 저장한다. Then, the
다음으로, 지국 장치 41은 통신경로 테이블 상에서 가상 아이디에 대응되는 중계 아이디가 있음을 확인할 수 있으므로 재송출할 패킷에서 수신자 아이디 필드에 중계 아이디 43을 기입하고 다음 수신자 아이디 필드에 단말 아이디 45를 기입하며, 전송자 및 최초 송신자 아이디 필드에 가상 아이디 41-1을 기입한 후에, 패킷을 재송출한다.Next, since the
이에 따라, 지국 장치 41에서 재송출한 패킷은 지국장치 43(중계경로 테이블 상에서 중계 아이디를 갖는 지국장치)을 경유하여 지국장치 45(중계경로 테이블에서 단말 아이디를 갖는 지국장치)에 도달되고, 지국 장치 45에서 패킷을 수용하여 패킷에 담긴 정보(명령코드 또는 데이타)에 따라 회신 정보를 생성하여 패킷에 담아 회신한다. 이때, 지국 장치 45에서 회신용으로 송신하는 패킷은 자신의 아이디 45를 전송자 및 최초 송신자 아이디로 하고 수신자 아이디를 43으로 하고 다음 수신자 아이디를 41-1(가상 아이디)로 하므로, 지국 장치 43을 경유하여 지국 장치 41에 전달된다. Accordingly, the packet resent by the
다음으로, 지국 장치 41은 전송자, 수신자, 다음 수신자 및 최초 송신자 아이디를 각각 43, 41-1, 0, 45로 하는 패킷을 수신하게 되므로, 패킷의 수신자 아이디로 하는 가상 아이디 41-1을 인지하여 자신에 송신된 패킷임을 알게 되고, 최소 송신자 아이디 45와 통제국 아이디 10이 서로 다르므로 수신한 패킷이 지국 장치에게 전달할 패킷임도 알게 되어 상기한 회신 중계단계(S240)를 수행한다.Next, since the
다음으로, 지국 장치 41은 임시 저장 아이디가 존재하는 지는 확인하고, 앞서 임시 저장 아이디로 22를 저장하였으므로, 수신자 아이디를 임시 저장 아이디 22로 하고, 다음 수신자 아이디를 통제국 아이디 10으로 하고 전송자 및 최초 송신자 아이디를 가상 아이디 41-1로 한 패킷으로 재송출한다. Next, the
따라서, 지국 장치 41에서 재송출한 패킷을 수신자 아이디 22를 갖는 지국 장치를 경유하여 통제국 장치 10에게 전달된다.
Therefore, the packet resent by the
도 13은 상기 도 8에 예시된 지국장치 41에 의한 2단 중계 과정에서 패킷의 아이디가 바뀌는 순서를 보여주는 도면이다.FIG. 13 is a diagram illustrating a procedure of changing a packet ID in a two-stage relaying process by the
상기 도 13은 통제국 장치 10에서 지국 장치 43에 관측정보를 요청하여 관측정보가 담긴 패킷을 회신받는 과정을 보여주며, 상기 도 3 및 도 8에 의하면 지국 장치 43은 지국 장치 22, 41을 경유하여 2단 중계로 통신하고, 가상 아이디 41-3으로 한 중계경로 테이블로서 지국 장치 41에 부여된다.FIG. 13 illustrates a process in which the
따라서, 통제국 장치 10은 전송자, 수신자, 다음 수신자, 최초 송신자 아이디를 각각 10, 22, 41-3, 10으로 한 패킷을 송출하고, 지국 장치 22는 이 패킷을 중계하여 지국 장치 41에 전달한다. 이때 지국 장치 22에서 중계하여 송출하는 패킷은 전송자, 수신자, 다음 수신자, 최초 송신자 아이디를 각각 22, 41-3, 0, 10으로 하는 패킷이므로, 지국 장치 41은 수신자 아이디로 기입된 가상 아이디 41-3을 인지하여 패킷을 수신하고, 최초 송신자가 통제국이므로 통제국에서 송출한 패킷으로 인지하여 송신 단계(S230)를 수행한다. Therefore, the
송신 단계(S230)를 수행할 때에는, 수신한 패킷에서 전송자 아이디 22와 최초 송신자 아이디 10이 서로 다르므로 전송자 아이디 22를 임시 저장 아이디로 저장한다. 그리고, 중계경로 테이블에서 가상 아이디 41-3에 대응되는 중계 아이디가 없으므로, 단말 아이디 43을 수신자 아이디 필드에 기입하고 다음 수신자 아이디 필드를 비워두며, 전송자 및 최초 송신자 아이디를 가상 아이디 41-3을 기입한 패킷으로 재송출한다.When performing the transmission step (S230), since the
지국 장치 41에서 재송출한 패킷을 단말 아이디 43을 갖는 지국장치에서 수신하여 회신 패킷을 송출하게 되는 데, 이때 회신용으로 송출하는 패킷의 전송자, 수신자, 다음 수신자, 최초 송신자 아이디는 43, 41-3, 0, 43로 된다. The
따라서, 지국 장치 41은 가상 아이디 41-3을 인지하여 패킷을 수신하고 최초 송신자 아이디 43이 통제국 아이디 10과 일치하지 아니하므로 회신 중계 단계(S240)를 수행한다.Accordingly, the
회신 중계 단계(S240)는 앞서서 저장한 임시 저장 아이디를 이용하여, 전송자, 수신자, 다음 수신자, 최초 송신자 아이디를 가상 아이디 41-3, 임시 저장 아이디 22, 통제국 아이디 10, 가상 아이디 41-3으로 한 패킷으로 재송출하므로, 임시 저장 아이디 22를 갖는 지국 장치를 경유하여 통제국 장치에게 전달된다.
The reply relay step (S240) uses the previously stored temporary storage ID to transfer the sender, the receiver, the next receiver, and the first sender ID to the virtual ID 41-3, the
도 14는 상기 도 8에 예시된 지국장치 23에 의한 2단 중계 과정에서 패킷의 아이디가 바뀌는 순서를 보여주는 도면이다.FIG. 14 is a diagram illustrating a procedure of changing a packet ID in a two-stage relaying process by the
상기 도 14를 참조하면 통제국 장치 10에서 지국장치 52에게 관측정보를 요청하여 수신하는 과정을 보여주며, 도 3 및 도 8을 참조하면, 지국 장치 52는 지국장치 23,51의 중계에 의한 2단 중계 통신을 하고, 지국장치 52에 대응되는 가상 아이디 23-1이 중계경로 테이블로서 지국장치 23에 부여되고, 이때 지국장치 23은 통제국 장치 10과 직접 통신한다.Referring to FIG. 14, the
따라서, 통제국 장치 10은 전송자, 수신자, 다음 수신자, 최초 송신자의 아이디를 10, 23-1, 0, 10으로 한 패킷을 송출한다. 여기서, 다음 수신자 아이디는 0으로 함을 알 수 있다. Therefore, the
그러면, 지국 장치 23은 가상 아이디 23-1을 인지하여 자신에게 송출한 패킷임을 인지하고 가상 아이디 23-1에 대응되는 중계경로 테이블 상의 데이터를 불러들인다. 그리고, 지국 장치 23은 최초 송신자가 통제국이므로 통제국장치에서 송출한 패킷으로 인지하게 되어 송신 중계 단계(S230)을 수행한다. 송신 중계 단계(S230)를 수행할 때에는 수신한 패킷에서 전송자 아이디와 최초 송신자 아이디가 일치하므로 전송자 아이디를 임시 저장 아이디로 저장할 필요가 없다. 이하, 가상 아이디 23-1에 대응되는 중계 아이디 51이 중계경로 테이블 상에 있으므로, 전송자, 수신자, 다음 수신자, 최초 송신자의 아이디를 가상 아이디 23-1, 단말 아이디 52, 중계 아이디 51, 가상 아이디 23-1로 한 패킷을 송출하여서, 단말 아이디 52로부터 회신 패킷을 전달받는다. 회신 패킷을 전달받아 통제국 장치 측으로 재송출하는 과정은 임시 저장 아이디로서 저장한 아이디가 없으므로, 전송자, 수신자, 최초 송신자의 아이디를 중계경로 테이블에 근거하여 가상 아이디 23-1, 통제국 아이디 10, 가상 아이디 23-1로 하고 다음 수신자 아이디가 기입되는 필드는 비워둔 패킷으로 재송출하여서, 통제국 장치에서 직접 수신하게 한다.
Then, the
도 15는 상기 도 8에 예시된 지국장치 23에 의한 1단 중계 과정에서 패킷의 아이디가 바뀌는 순서를 보여주는 도면이다.FIG. 15 is a diagram illustrating a procedure of changing a packet ID in a one-stage relaying process by the
상기 도 15를 참조하면 통제국 장치 10에서 지국장치 51에게 관측정보를 요청하여 관측정보가 담긴 패킷을 회신함을 알 수 있으며, 이때 지국장치 51은 지국 장치 23의 중계에 의한 1단 중계로 통제국 장치 10과 통신한다. Referring to FIG. 15, it can be seen that the
따라서, 통제국 장치 10과 1단 중계로 통신하는 지국 장치 51과는 가상 아이디를 사용하지 아니하고 지국장치마다 고유하게 부여된 아이디를 이용하여 통신할 수 있으나, 상기 도 15에 도시된 바와 같이 지국 장치 51을 단말 아이디로 하고 가상 아이디 23-3로 할당한 중계경로 테이블을 작성하고 중간에 1단 중계하는 지국장치 23에 부여하여서, 가상 아이디를 이용하여 통신하게 하는 것도 가능하다. 이때, 중계 아이디는 없으므로 비워둔다.Accordingly, the
이에 따라, 통제국 장치 10은 전송자, 수신자, 다음 수신자, 최초 송신자의 아이디를 통제국 아이디 10, 가상 아이디 23-3, 통제국 아이디 10으로 하고 다음 수신자를 비워둔 패킷으로 송신한다. Accordingly, the
중계경로 테이블이 부여된 지국장치 23은 통제국 장치 10에서 송출한 패킷에서 최초 송신자가 통제국이므로 송신 중계 단계(S230)를 수행하여 전송자, 수신자, 다음 수신자, 최초 송신자의 아이디를 가상 아이디 23-3, 단말 아이디 51, 0, 가상 아이디 23-3으로 한 패킷으로 재송출한다. 이때, 통제국 장치 10으로부터 수신한 패킷에서 전송자와 최초 송신자가 동일하므로 전송자 아이디를 임시 저장 아이디로 저장하지는 아니한다.Since the first sender is the control station in the packet transmitted from the
지국장치 23에서 송출한 패킷에 대해 단말 아이디를 갖는 지국장치 51에서 회신하는 패킷은 전송자, 수신자, 최초 송신자를 단말 아이디 51, 가상 아이디 23-3, 단말 아이디 51로 하고 다음 수신자를 비워둔 패킷이므로, 지국장치 23은 최초 송신자가 통제국이 아님을 인지하고 임시 저장한 아이디도 없으므로 전송자, 수신자, 다음 수신자, 최초 송신자의 아이디를 가상 아이디 23-3, 통제국 아이디 10, 0, 가상 아이디 23-3으로 한 패킷으로 재송출하여 통제국 장치 10에서 이 패킷을 수신하게 한다.
The packet returned by the
한편, 본 발명의 실시예를 설명함에 있어서, 지국 장치는 우량국 장치, 수위국 장치, 아니면 경보국 장치로 구성된다고 하였으나, 패킷의 중계만 하는 중계국 장치를 포함하여 구성될 수도 있다. 예를 들면, 도 3에 도시된 통신망 구성도에서 지국 장치 41이 시설되는 개소가 우량 관측, 수위 관측 및 경보발령의 필요성이 없는 개소이지만, 다른 지국장치 43,44,45,46의 통신 중계를 위해 필요한 개소일 경우에, 중계국 장치로서 지국 장치 41을 시설하는 것이다.
On the other hand, in the description of the embodiment of the present invention, the station apparatus is said to be composed of a superior station apparatus, a water level station apparatus, or an alarm station apparatus, but may also be configured to include a relay station apparatus that only relays packets. For example, although the location where the
이상에서 본 발명의 기술적 사상을 예시하기 위해 구체적인 실시 예로 도시하고 설명하였으나, 본 발명은 상기와 같이 구체적인 실시 예와 동일한 구성 및 작용에만 국한되지 않고, 여러가지 변형이 본 발명의 범위를 벗어나지 않는 한도 내에서 실시될 수 있다. 따라서, 그와 같은 변형도 본 발명의 범위에 속하는 것으로 간주해야 하며, 본 발명의 범위는 후술하는 특허청구범위에 의해 결정되어야 한다.While the present invention has been particularly shown and described with reference to exemplary embodiments thereof, it is to be understood that the invention is not limited to the disclosed exemplary embodiments, . ≪ / RTI > Accordingly, such modifications are deemed to be within the scope of the present invention, and the scope of the present invention should be determined by the following claims.
10 : 통제국 장치 21,22,23 : 경보국 장치
31,32,33,41,42,43,44,45,46,51,52,53:우량국 장치 61 : 수위국 장치
100 : 패킷 110 : 시작 구분자 120 : 그룹 아이디 필드
130 : 장치 아이디 필드
131 : 송신자 아이디 필드 132 : 수신자 아이디 필드
133 : 다음 수신자 아이디 필드 134 : 최초 송신자 아이디 필드
140 : 데이터 길이 150 : 명령코드 필드 160 : 데이타 필드
170 : 종료 구분자 180 : 패킷 검증자
200 : 중계경로 테이블 210 : 가상 아이디 220 : 단말 아이디
230 : 중계 아이디 240 : 통제국 아이디10:
31, 32, 33, 41, 42, 43, 44, 45, 46, 51, 52, 53: Superior station apparatus 61: Water station apparatus
100: packet 110: start delimiter 120: group ID field
130: device ID field
131: sender ID field 132: receiver ID field
133: Next recipient ID field 134: First sender ID field
140: data length 150: command code field 160: data field
170: end separator 180: packet verifier
200: relay path table 210: virtual ID 220: terminal ID
230: relay ID 240: control station ID
Claims (5)
각각의 지국장치는, 자신의 아이디를 수신자 아이디로 하는 패킷을 수신한 후에,
패킷에 다음 수신자 아이디가 있으면, 수신자 아이디를 전송자 아이디 필드에 기입하고 다음 수신자 아이디를 수신자 아이디 필드에 기입하며 다음 수신자 아이디 필드는 비워두게 한 패킷을 재송신하여 중계 동작하고,
패킷에 다음 수신자 아이디가 없으면, 패킷에 담긴 정보에 따라 동작하고, 그 정보에 따른 회신이 필요한 경우에, 자신의 아이디인 수신자 아이디를 전송자 아이디 필드 및 최초 송신자 아이디 필드에 기입하고 전송자 아이디를 수신자 아이디 필드에 기입함과 동시에, 최초 송신자 아이디가 전송자 아이디와 같지 아니하면 최초 송신자 아이디를 다음 수신자 아이디 필드에 기입하고 최초 송신자 아이디가 전송자 아이디와 같으면 다음 수신자 아이디 필드를 비워둔 패킷으로 송신하여 회신 동작하되,
통제국 장치와 직접 통신하는 지국 장치들 중에 그 지국 장치를 경유하여 통제국 장치와 2단 중계로 통신할 지국 장치가 통신망으로 연결되는 지국 장치는,
가상 아이디와, 패킷이 전달되어야 할 지국장치의 아이디인 단말 아이디와, 단말 아이디를 갖는 지국장치와 자신의 사이를 중계하는 지국장치의 아이디인 중계 아이디와, 통제국 장치의 아이디를 중계경로 테이블로 부여받아 메모리에 저장하되, 중계 아이디는 단말 아이디를 갖는 지국장치와의 중계 여부에 따라 선택적으로 부여받아서,
통제국 장치에서 중계경로 테이블에 근거하여 통신하려는 지국장치를 단말 아이디로 하는 가상 아이디를 수신자 아이디 필드에 기입하여 패킷을 송신함에 따라 이 패킷을 수신하는 경우에, 가상 아이디를 송신자 아이디 필드 및 최초 송신자 아이디 필드에 기입하는 한편, 중계 아이디가 있으면 중계 아이디를 수신자 아이디 필드에 기입함과 동시에 단말 아이디를 다음 수신자 아이디 필드에 기입하고, 중계 아이디가 없으면 다음 수신자 아이디 필드를 비워둠과 동시에 단말 아이디를 수신자 아이디 필드에 기입하여 이루어지는 패킷을 송신하여 단말 아이디를 갖는 지국장치에서 수신하게 하며,
가상 아이디를 수신자 아이디로 한 패킷을 단말 아이디를 갖는 지국장치 측으로부터 수신하면, 가상 아이디를 송신자 아이디 필드 및 최초 송신자 아이디 필드에 기입하고 수신자 아이디 필드에 통제국 아이디를 기입하여 패킷을 송신하여 통제국 장치에서 회신 패킷을 수신하게 함을 특징으로 하는 다단중계 브이에이치에프망을 이용한 자동우량경보시스템.
The control station includes a plurality of station devices and a control station device comprising a superior station device, a water level station device, and an alarm station device, and includes a field for filling in the ID of the sender, the recipient, the next recipient, and the first sender. Direct communication between device and station device or indirect communication by relay of other station device is performed so that control station device requests rainfall information or water level information from superior station device or level station device, respectively and receives alarm according to received information. In the automatic rain alarm system to request the station device to issue an alarm,
Each station apparatus receives a packet whose ID is a receiver ID.
If the packet has the next receiver ID, the receiver ID is entered in the sender ID field, the next receiver ID is entered in the receiver ID field, and the next receiver ID field is relayed by retransmitting the packet.
If the packet does not have the next receiver ID, it operates according to the information contained in the packet, and if a reply is required based on the information, the receiver ID, which is its own ID, is entered in the sender ID field and the original sender ID field, and the sender ID is set to the receiver ID. If the original sender ID is not the same as the sender ID and the first sender ID is written in the next receiver ID field, if the first sender ID is the same as the sender ID, the next sender ID field is sent in a blank packet. ,
Among the station devices directly communicating with the control station device, the station device to which the station device to communicate in two-stage relay with the control station device via the station device is connected to the communication network.
The virtual ID, the terminal ID which is the ID of the station apparatus to which the packet is to be delivered, the relay ID which is the ID of the station apparatus relaying between the station apparatus having the terminal ID and its own, and the ID of the control station apparatus as the relay path table. Received and stored in the memory, the relay ID is selectively given according to whether or not relaying with the station apparatus having a terminal ID,
When the control station device receives the packet by sending a packet by filling in the receiver ID field with a virtual ID of the station device to communicate with based on the relay path table, the control station device sends the virtual ID to the sender ID field and the original sender. Fill in the ID field, if there is a relay ID, enter the relay ID into the receiver ID field and at the same time, enter the terminal ID into the next receiver ID field. If there is no relay ID, leave the next receiver ID field and leave the terminal ID. Transmits a packet written in a field to be received by a station apparatus having a terminal ID;
When receiving the packet with the virtual ID as the receiver ID from the station apparatus having the terminal ID, the virtual ID is entered in the sender ID field and the original sender ID field, and the control station ID is entered in the receiver ID field to transmit the packet. Automatic rain alarm system using a multi-stage VH network characterized in that the device receives the reply packet.
각각의 지국장치는, 자신의 아이디를 수신자 아이디로 하는 패킷을 수신한 후에,
패킷에 다음 수신자 아이디가 있으면, 수신자 아이디를 전송자 아이디 필드에 기입하고 다음 수신자 아이디를 수신자 아이디 필드에 기입하며 다음 수신자 아이디가 있던 필드는 비워두게 한 패킷을 재송신하여 중계 동작하고,
패킷에 다음 수신자 아이디가 없으면, 패킷에 담긴 정보에 따라 동작하고, 그 정보에 따른 회신이 필요한 경우에, 자신의 아이디인 수신자 아이디를 전송자 아이디 필드 및 최초 송신자 아이디 필드에 기입하고 전송자 아이디를 수신자 아이디 필드에 기입함과 동시에, 최초 송신자 아이디가 전송자 아이디와 같지 아니하면 최초 송신자 아이디를 다음 수신자 아이디 필드에 기입하고 최초 송신자 아이디가 전송자 아이디와 같으면 다음 수신자 아이디 필드를 비워둔 패킷으로 송신하여 회신 동작하되,
통제국 장치와 1단 중계로 간접 통신하는 지국장치들 중에 그 지국장치를 경유하여 통제국 장치와 2단 중계 또는 3단 중계로 통신할 지국장치가 통신망으로 연결되는 지국장치는,
가상 아이디와, 패킷이 전달되어야 할 지국장치의 아이디인 단말 아이디와, 단말 아이디를 갖는 지국장치와 자신의 사이를 중계하는 지국장치의 아이디인 중계 아이디와, 통제국 장치의 아이디를 중계경로 테이블로 부여받아 메모리에 저장하되, 중계 아이디는 단말 아이디를 갖는 지국장치와의 중계 여부에 따라 선택적으로 부여받아서,
통제국 장치에서 중계경로 테이블에 근거하여 통신하려는 지국장치의 아이디를 단말 아이디로 하는 가상 아이디를 다음 수신자 아이디 필드에 기입하여 패킷을 송신함에 따라 다른 하나의 지국장치의 중계로 수신자 아이디 필드에 가상 아이디를 기입한 패킷을 중계받는 경우에, 수신한 패킷의 송신자 아이디를 임시 저장한 후에 가상 아이디를 송신자 아이디 필드 및 최초 송신자 아이디 필드에 기입하는 한편, 중계 아이디가 있으면 중계 아이디를 수신자 아이디 필드에 기입함과 동시에 단말 아이디를 다음 수신자 아이디 필드에 기입하고, 중계 아이디가 없으면 다음 수신자 아이디 필드를 비워둠과 동시에 단말 아이디를 수신자 아이디 필드에 기입하여 이루어지는 패킷을 송신하여 단말 아이디를 갖는 지국장치에서 수신하게 하며,
가상 아이디를 수신자 아이디로 한 패킷을 단말 아이디를 갖는 지국장치 측으로부터 수신하면, 가상 아이디를 송신자 아이디 필드 및 최초 송신자 아이디 필드에 기입하고 수신자 아이디 필드에 상기 임시 저장한 아이디를 기입하고 다음 수신자 아이디 필드에 통제국 아이디를 기입한 패킷을 송신하여 통제국 장치에서 회신 패킷을 수신하게 함을 특징으로 하는 다단중계 브이에이치에프망을 이용한 자동우량경보시스템.
The control station includes a plurality of station devices and a control station device comprising a superior station device, a water level station device, and an alarm station device, and includes a field for filling in the ID of the sender, the recipient, the next recipient, and the first sender. Direct communication between device and station device or indirect communication by relay of other station device is performed so that control station device requests rainfall information or water level information from superior station device or level station device, respectively and receives alarm according to received information. In the automatic rain alarm system to request the station device to issue an alarm,
Each station apparatus receives a packet whose ID is a receiver ID.
If the packet has the next receiver ID, the receiver ID is entered in the sender ID field, the next receiver ID is entered in the receiver ID field, and the field containing the next receiver ID is relayed by retransmitting the packet.
If the packet does not have the next receiver ID, it operates according to the information contained in the packet, and if a reply is required based on the information, the receiver ID, which is its own ID, is entered in the sender ID field and the original sender ID field, and the sender ID is set to the receiver ID. If the original sender ID is not the same as the sender ID and the first sender ID is written in the next receiver ID field, if the first sender ID is the same as the sender ID, the next sender ID field is sent in a blank packet. ,
Among the station devices indirectly communicating with the control station device in one-stage relay, the station device to which the control station device communicates with the control station device in two-stage relay or three-stage relay via the network is connected to the network.
The virtual ID, the terminal ID which is the ID of the station apparatus to which the packet is to be delivered, the relay ID which is the ID of the station apparatus relaying between the station apparatus having the terminal ID and its own, and the ID of the control station apparatus as the relay path table. Received and stored in the memory, the relay ID is selectively given according to whether or not relaying with the station apparatus having a terminal ID,
As the control station device transmits a packet by filling in the next receiver ID field with a virtual ID that uses the ID of the station apparatus to communicate based on the relay path table in the next receiver ID field, the virtual station ID in the receiver ID field is relayed to another station apparatus. In case of relaying a packet containing the message, the virtual ID is written in the sender ID field and the original sender ID field after temporarily storing the sender ID of the received packet, and the relay ID is entered in the receiver ID field if there is a relay ID. At the same time, the terminal ID is entered in the next receiver ID field, and if there is no relay ID, the next receiver ID field is left blank and the terminal ID is entered in the receiver ID field to transmit a packet to be received by the station apparatus having the terminal ID.
When receiving a packet with the virtual ID as the receiver ID from the station apparatus having the terminal ID, the virtual ID is written in the sender ID field and the original sender ID field, and the temporary stored ID is entered in the receiver ID field and the next receiver ID field. The automatic rain alarm system using the multi-stage VHF network, characterized in that a control station apparatus receives a reply packet by transmitting a packet including a control station ID.
상기 중계경로 테이블을 부여받은 지국장치는, 패킷에 기입된 최초 송신자가 통제국이면 통제국장치 측에서 송신한 패킷으로 판단하고, 최초 송신자가 통제국이 아니면 중계경로 테이블의 단말 아이디를 갖는 지국장치로부터 회신한 패킷으로 판단함을 특징으로 하는 다단중계 브이에이치에프망을 이용한 자동우량경보시스템.
3. The method according to claim 1 or 2,
The station apparatus which has received the relay path table is determined to be a packet transmitted by the control station apparatus if the first sender written in the packet is the control station, and from the station apparatus having the terminal ID of the relay path table if the first sender is not the control station. Automatic rain alarm system using a multi-stage VH network characterized in that judged by the packet returned.
복수의 지국장치들은 그룹으로 나뉘어 그룹별로 아이디를 할당받되,
다른 지국장치를 통해 중계 통신하는 지국장치는, 자신을 중계하는 지국장치와 동일한 그룹 아이디를 할당받고,
그룹 아이디를 패킷에 포함시켜서, 지국장치가 자신의 그룹 아이디와 동일한 그룹 아이디를 포함하는 패킷만 수신하게 함을 특징으로 하는 다단중계 브이에이치에프망을 이용한 자동우량경보시스템.
The method of claim 3, wherein
A plurality of station devices are divided into groups and assigned an ID for each group.
The station apparatus relaying through another station apparatus is assigned the same group ID as the station apparatus relaying itself,
Automatic rain alarm system using a multi-stage BH network characterized by including the group ID in the packet, so that the station apparatus receives only the packet containing the same group ID as its own group ID.
상기 중계경로 테이블이 부여되는 지국장치는, 패킷의 중계만 하는 중계국 장치로 구성될 수 있음을 특징으로 하는 다단중계 브이에이치에프망을 이용한 자동우량경보시스템.The method of claim 3, wherein
The station apparatus to which the relay path table is provided may be configured as a relay station apparatus for relaying packets only. The automatic rain alarm system using a multi-stage BH network.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020120092467A KR101228410B1 (en) | 2012-08-23 | 2012-08-23 | Automatic rainfall alarm system with cascade vhf wireless communication network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020120092467A KR101228410B1 (en) | 2012-08-23 | 2012-08-23 | Automatic rainfall alarm system with cascade vhf wireless communication network |
Publications (1)
Publication Number | Publication Date |
---|---|
KR101228410B1 true KR101228410B1 (en) | 2013-02-15 |
Family
ID=47898683
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020120092467A KR101228410B1 (en) | 2012-08-23 | 2012-08-23 | Automatic rainfall alarm system with cascade vhf wireless communication network |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR101228410B1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101319830B1 (en) * | 2013-04-02 | 2013-10-29 | 주식회사 한성전자산업 | Driving method of rain measuring apparatus and auto alarm system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20050018297A (en) * | 2003-08-16 | 2005-02-23 | 삼성전자주식회사 | BCMCS Service Method for supporting the relay model in High Rate Packet Data System |
KR100649716B1 (en) | 2004-12-14 | 2006-11-27 | 한국전자통신연구원 | Method and apparatus for multicast forwarding in broadcast service based on multicast packet |
KR100688459B1 (en) | 2005-02-02 | 2007-03-02 | 주식회사 한성전자산업개발 | Auto-rainfall alarm system with TTS and the control method thereof |
KR100813611B1 (en) | 2004-02-18 | 2008-03-17 | 가부시키가이샤 엔티티 도코모 | Packet transfer system, radio base station, and packet transfer route optimization method |
-
2012
- 2012-08-23 KR KR1020120092467A patent/KR101228410B1/en active IP Right Grant
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20050018297A (en) * | 2003-08-16 | 2005-02-23 | 삼성전자주식회사 | BCMCS Service Method for supporting the relay model in High Rate Packet Data System |
KR100813611B1 (en) | 2004-02-18 | 2008-03-17 | 가부시키가이샤 엔티티 도코모 | Packet transfer system, radio base station, and packet transfer route optimization method |
KR100649716B1 (en) | 2004-12-14 | 2006-11-27 | 한국전자통신연구원 | Method and apparatus for multicast forwarding in broadcast service based on multicast packet |
KR100688459B1 (en) | 2005-02-02 | 2007-03-02 | 주식회사 한성전자산업개발 | Auto-rainfall alarm system with TTS and the control method thereof |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101319830B1 (en) * | 2013-04-02 | 2013-10-29 | 주식회사 한성전자산업 | Driving method of rain measuring apparatus and auto alarm system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7653465B1 (en) | System and method for remote control of locomotives | |
US6867708B2 (en) | Communications system and method for interconnected networks having a linear topology, especially railways | |
US8515484B1 (en) | System and method for communications of cargo containers in a container security system using wireless ad-hoc networking techniques | |
US20050143874A1 (en) | Intelligent communications, command and control system for a land-based vehicle | |
AU2018220617B2 (en) | Vehicle communication system | |
EP2677835A1 (en) | Wi-fi mesh fire detection system | |
CN102036423A (en) | Wireless communication system for railway transportation | |
CN115299175A (en) | LORAWAN gateway network and method | |
US8228847B2 (en) | Multihop radio hazard reporting system | |
KR101228410B1 (en) | Automatic rainfall alarm system with cascade vhf wireless communication network | |
CN106101253A (en) | In-vehicle networking communication system | |
JP5853227B2 (en) | Multi-hop communication method, multi-hop communication system, and communication terminal | |
KR101262030B1 (en) | Rainfall gauge apparatus in automatic rainfall alarm system using cascade vhf wireless communication network | |
KR101260393B1 (en) | Disaster forecasting and warning system with cascade vhf wireless communication network | |
JP5870286B2 (en) | Multi-hop communication method, multi-hop communication system, and communication terminal | |
JP6270504B2 (en) | Train radio system | |
CN109849971A (en) | A kind of temporary speed limitation control method suitable for low-density railway | |
KR101262026B1 (en) | Water level measuring apparatus in automatic rainfall alarm system using cascade vhf wireless communication network | |
KR101262024B1 (en) | Relay apparatus of automatic rainfall alarm system for cascade vhf wireless communication network | |
KR101262025B1 (en) | Alarm apparatus of automatic rainfall alarm system for cascade vhf wireless communication network | |
JP7316909B2 (en) | Optical communication system, communication device and communication method | |
JP4072290B2 (en) | Wireless communication system | |
CN114845925B (en) | Method for transmitting data in a rail traffic system, data transmission system, rail traffic system with a data transmission system, and use of a communication unit on a field element | |
US20220410948A1 (en) | Method and device for monitoring the configuration of a train | |
AU2002301910B2 (en) | Methods of determining the order of railcars in a train |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
A302 | Request for accelerated examination | ||
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant | ||
FPAY | Annual fee payment |
Payment date: 20151028 Year of fee payment: 4 |
|
FPAY | Annual fee payment |
Payment date: 20161024 Year of fee payment: 5 |
|
FPAY | Annual fee payment |
Payment date: 20171222 Year of fee payment: 6 |
|
FPAY | Annual fee payment |
Payment date: 20181023 Year of fee payment: 7 |