KR101784268B1 - Automatic recognize method of a protocol check a meter terminal - Google Patents

Automatic recognize method of a protocol check a meter terminal Download PDF

Info

Publication number
KR101784268B1
KR101784268B1 KR1020170069547A KR20170069547A KR101784268B1 KR 101784268 B1 KR101784268 B1 KR 101784268B1 KR 1020170069547 A KR1020170069547 A KR 1020170069547A KR 20170069547 A KR20170069547 A KR 20170069547A KR 101784268 B1 KR101784268 B1 KR 101784268B1
Authority
KR
South Korea
Prior art keywords
pulse
uart
meter
water meter
meter reading
Prior art date
Application number
KR1020170069547A
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 KR1020170069547A priority Critical patent/KR101784268B1/en
Application granted granted Critical
Publication of KR101784268B1 publication Critical patent/KR101784268B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/26Special purpose or proprietary protocols or architectures
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D4/00Tariff metering apparatus
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/40Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass for recovering from a failure of a protocol instance or entity, e.g. service redundancy protocols, protocol state redundancy or protocol service redirection
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S20/00Management or operation of end-user stationary applications or the last stages of power distribution; Controlling, monitoring or operating thereof
    • Y04S20/30Smart metering, e.g. specially adapted for remote reading

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

본 발명은 검침단말기의 프로토콜을 수도미터에서 자동으로 인식하는 방법에 관한 것으로, 디지탈 수도미터에서 RX핀이 하이에서 로우로 변하는 폴링 에지를 감지하여 검침명령 개시를 인식함으로써 검침단말기의 통신이 시작됨을 인식하여 수도미터에서는 UART 방식 인식절차와 펄스 방식 인식절차를 동시에 개시하도록 한 것이다.
본 발명은 수도미터의 RX핀 라이징 에지에서 UART방식 인식시, 타임아웃을 설정하고 타임아웃이면 초기상태로 돌아가고, 타임아웃이 아니면 펄스검침이 트루우인가를 판단하여 펄스검침이 트루우이면 초기상태로 돌아가며 트루우가 아니면, 검침메시지 수신완료인가를 판단하여 검침메시지 수신완료이면 UART검침으로 판단하여 UART검침 응답을 전송하는 단계를 수행함과 동시에, 상기 수도미터의 RX핀의 라이징 에지에서 펄스방식 인식시 펄스폭이 비정상이면 초기상태로 돌아가고 펄스폭이 정상이면 UART검침인가를 판단하여 UART검침이 아니면 필요한 만큼 펄스를 수신할 것인가를 판단하여 필요한 만큼 펄스를 수신한 경우에는 펄스검침으로 판단하고 펄스 검침 응답 전송을 수행함으로써 완료된다.
The present invention relates to a method of automatically recognizing a protocol of a meter terminal by a water meter, wherein the digital water meter senses a falling edge at which the RX pin changes from high to low to recognize the start of the meter reading command, And the water meter starts the UART recognition process and the pulse recognition process at the same time.
The present invention sets a timeout when recognizing the UART method at the RX pinning edge of the water meter, returns to the initial state when the timeout occurs, determines whether the pulse measurement is true if the timeout is not performed, If it is determined that the readout of the meter reading message has been completed, if the reading of the meter reading message is not completed, the UART meter reading is determined to be UART reading and the UART meter reading response is transmitted. At the rising edge of the RX pin of the water meter, If the pulse width is abnormal, it returns to the initial state. If the pulse width is normal, it is determined whether the UART is a U-meter or not. If the pulse width is not UART, it is determined whether to receive the pulse as much as necessary. Transmission is completed.

Description

검침단말기의 프로토콜을 수도미터에서 자동으로 인식하는 방법{Automatic recognize method of a protocol check a meter terminal}[0001] The present invention relates to a method of automatically recognizing a protocol of a meter reading terminal from a water meter,

본 발명은 검침단말기의 프로토콜을 수도미터에서 자동으로 인식하는 방법에 관한 것으로, 특히 디지탈 수도미터에서 RX핀이 하이에서 로우로 변하는 폴링 에지를 감지하여 검침명령 개시를 인식함으로써 검침단말기의 통신이 시작됨을 인식하여 수도미터에서는 검침명령이 어느 방식으로 전송될지 알 수 없으므로 UART 방식 인식절차와 펄스(Pulse) 방식 인식절차를 동시에 개시하도록 한 것이다. The present invention relates to a method of automatically recognizing a protocol of a meter reading terminal by a water meter, and in particular, a digital water meter detects a falling edge where the RX pin changes from high to low, And the water meter can not know in which way the meter reading command is to be transmitted. Therefore, the UART method recognition procedure and the pulse (pulse) method recognition procedure are simultaneously started.

일반적으로 국내 상수도 원격검침에 사용되는 디지털 수도미터에는 서로 다른 프로토콜이 적용된 몇 가지 종류의 디지털 수도 미터가 사용될 수 있는 것으로, 이러한 수도 미터의 프로토콜에는 크게 2가지가 있다.In general, digital water meters used in domestic waterworks remote meter reading can use several kinds of digital water meters with different protocols, and there are two kinds of protocols of such water meters.

즉, 디지털 수도미터에서 검침데이터를 읽어오는 역할을 하는 검침단말기도 2가지 프로토콜을 지원하여야 하는데 각 장치가 지원하고 있는 프로토콜이 서로 맞지 않으면 고장이 없어도 원활하게 동작하지 않게 된다.In other words, the meter reading terminal that reads the meter reading data from the digital water meter should also support two protocols. If the protocols supported by the respective devices do not match each other, the meter reader does not operate smoothly even if there is no trouble.

이들 디지털 수도미터로부터 정확한 지침값을 읽어내기 위해서 검침 단말기는 현재 연결되어 있는 수도미터가 어떤 타입인지 정확히 알아야 한다.In order to read the correct instruction value from these digital water meters, the meter terminal must know exactly what type of water meter it is currently connected to.

발주처의 요구에 의해 처음부터 서로 다른 타입의 수도 미터가 섞여 사용될 수 있으며, 이 검침단말기와 수도미터는 처음에는 동일 프로토콜이 수도미터에 적용되어 원활하게 동작할 수 있는 형태로 설치되나, 이후 고장 등으로 수도미터를 교체하는 과정에서 한쪽의 장치가 바뀌면 상호 프로토콜이 맞지 않는 다른 타입이 섞이는 문제가 발생한다.According to the request of the client, different types of water meters can be mixed and used from the beginning. The meter terminal and the water meter are installed in the form that the same protocol can be applied to the water meter at first to operate smoothly, In the process of replacing the water meter, if one device is changed, there is a problem that the other type that does not match the mutual protocol mixes.

이때, 달라진 수도미터 타입을 검침 단말기에게 입력시켜 주지 않으면 검침 단말기는 결국 검침에 실패하게 된다.At this time, if the meter type is not inputted to the meter reading terminal, the meter reading terminal eventually fails to meter reading.

따라서, 검침 단말기에 수도 미터 타입을 입력시키기 위해서는 특별한 장치가 필요하지만, 일반적으로 수도 미터 교체작업은 이런 장치들에 익숙하지 않은 지역의 수도 설치업체에 의해 주로 이루어지는 경우가 많다. Therefore, in order to input the water meter type into the meter terminal, a special device is required. However, in many cases, the water meter replacement work is mainly performed by a local water supply installer who is not familiar with these devices.

이런 이유로, 이 설정 작업은 실제보다 어려운 과정으로 여겨지는 경향이 있으며, 사용자에게는 검침 업무에 지장을 초래하고, 설치업체에게는 불필요한 원거리 출장 요구가 생기는 문제가 있다.For this reason, this setting work tends to be regarded as a more difficult process than the actual one, causing trouble for the meter reading work to the user, and there is a problem that unnecessary long distance travel is required for the installer.

즉, 검침단말기와 수도미터간 프로토콜이 맞지 않으면 설치업체 직원이 원거리의 현장까지 직접 방문하여 어느 한쪽의 장치를 교체하거나 설정을 변경해야 하므로 많은 시간과 비용이 들며 장치를 교체하는 동안에는 서비스가 중단되는 문제가 있다.In other words, if the protocol between the meter terminal and the water meter is not correct, the installer's employee must visit the remote site to change the one of the devices or change the setting, so that it takes a lot of time and money and the service is interrupted while the device is being replaced there is a problem.

공개특허 제10-2015-0043815호Published Japanese Patent Application No. 10-2015-0043815 등록특허 제10-0829350호Patent No. 10-0829350

본 발명은 이와 같은 종래의 결점을 해결하기 위한 것으로, 본 발명의 목적은, 수도 미터에서 RX핀이 하이에서 로우로 변하는 폴링 에지를 감지하여 검침명령 개시를 인식하며, 검침단말기의 통신이 시작된 것으로 인식되면 수도미터는 UART 방식 인식절차와 펄스 방식 인식절차를 동시에 개시하도록 한 검침단말기의 프로토콜을 수도미터에서 자동으로 인식하는 방법을 제공하는데 있다.SUMMARY OF THE INVENTION It is an object of the present invention to provide a water meter in which the RX pin senses a falling edge in which the RX pin changes from high to low and recognizes the start of the meter reading command, The water meter is provided with a method of automatically recognizing the protocol of the meter reading terminal which simultaneously starts the UART recognition process and the pulse recognition process.

이와 같은 목적을 달성하기 위한 본 발명은, 수도미터의 RX핀 라이징 에지시 UART방식 인식절차일 경우, 타임아웃을 설정하고 타임아웃인가를 판단하여 타임아웃이면 초기상태로 돌아가는 단계(S1,S2), 상기 S2단계에서 타임아웃이 아니면 펄스검침이 트루우인가를 판단하여 펄스검침이 트루우이면 초기상태로 돌아가는 단계(S3), 상기 S3단계에서 펄스검침이 트루우가 아니면, 검침메시지 수신완료인가를 판단하여 검침메시지 수신완료가 아니면 상기 S2 단계로 돌아가고 검침메시지 수신완료이면 UART검침으로 판단하여 UART검침 응답을 전송하는 단계(S5,S6), 상기 수도미터의 RX핀의 라이징 에지시 펄스방식 인식절차에서 펄스폭이 비정상인가를 판단하여 펄스폭이 비정상이면 초기상태로 돌아가는 단계(S7), 상기 S7단계에서 펄스폭이 정상이면 UART검침인가를 판단하여 UART검침이면 초기상태로 돌아가는 단계(S8), 상기 S8단계에서 UART검침이 아니면 필요한 만큼 펄스를 수신할 것인가를 판단하여 필요한 만큼 펄스를 수신하지 않을 경우에는 상기 S7단계로 돌아가고(S9), 필요한 만큼 펄스를 수신한 경우에는 펄스검침으로 판단하고 펄스 검침 응답 전송을 수행하는 단계(S10,S11)로 이루어짐을 특징으로 한다.According to another aspect of the present invention, there is provided a method of detecting a UART method, the method comprising the steps of: setting a timeout and determining a timeout and returning to an initial state when the timeout occurs; If it is determined in step S2 that the pulse measurement is not true, the process returns to the initial state when the pulse measurement is true (step S3). If the pulse measurement is not true in step S3, (S5, S6) of determining that the UART meter reading is completed if the meter reading message is not completed and returning to step S2 if it is determined that the meter reading message has not been received, (S7). If the pulse width is normal in step S7, it is determined whether the pulse width is abnormal. (S8). If it is not UART inspection in step S8, it is determined whether a pulse is received as much as necessary. If the pulse is not received as much as necessary, the process returns to step S7 (step S9) (S10, S11) when it is determined that the pulses have been received as much as necessary and that the pulse inspection response transmission is performed.

상기 UART방식 인식절차와 펄스방식 인식절차에서 모두 UART검침도 아니고 펄스 검침도 아닐 경우에는 초기 상태로 돌아간다(S12).If both the UART recognition procedure and the pulse recognition procedure are neither UART meter nor pulse measurement, the initial state is returned (S12).

이상과 같은 본 발명의 검침단말기의 프로토콜을 수도미터에서 자동으로 인식하는 방법은 수도미터나 검침단말기 중 어느 한쪽의 프로토콜이 바뀌었을 때 자동으로 프로토콜을 맞추어 잘못된 설정으로 인한 오동작 발생 가능성을 미연에 차단할 수 있으며, 수도 미터 교체시 이전에 적용되었던 프로토콜에 구애되지 않는 효과가 있다.In the method of automatically recognizing the protocol of the meter reading terminal of the present invention as described above, when the protocol of either the water meter or the meter reading terminal is changed, the protocol is automatically adjusted to prevent the possibility of malfunction due to erroneous setting And it has no effect on the protocol that was previously applied when replacing the water meter.

도 1은 본 발명 검침단말기의 프로토콜을 수도미터에서 자동으로 인식하는 방법에따른 동작 흐름도이다.1 is a flowchart illustrating a method of automatically recognizing a protocol of a meter reading terminal according to the present invention by a water meter.

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

도 1은 본 발명의 검침단말기의 프로토콜을 수도미터에서 자동으로 인식하는 방법의 동작 흐름도로 먼저, 수도미터는 검침단말기로부터 검침명령신호를 수신할 때 그 신호가 어떤 프로토콜로 보내지는지 자동으로 인식한 뒤 그에 맞는 적절한 방법으로 응답한다. FIG. 1 is a flowchart of a method of automatically recognizing a protocol of the meter reading terminal according to the present invention. Referring to FIG. 1, when a water meter reads a meter reading command signal from a meter reading terminal, Then respond in the appropriate way.

이 과정은 수도미터가 검침명령신호를 비트 단위로 분석하여 판단하는 것으로, 2개의 프로토콜 중에서 프로토콜 A는 1200bps UART신호에 의해 구성되고, 프로토콜 B는 지정된 너비를 갖는 펄스 시퀀스로 구성된다.In this process, the water meter analyzes the meter reading command signal bit by bit. Of the two protocols, the protocol A is constituted by a 1200bps UART signal and the protocol B is constituted by a pulse sequence having a specified width.

검침단말기와 수도미터 사이는 수도미터에서 검침단말기로 응답을 전송하기 위한 선(TX)과, 검침단말기가 수도미터로 명령을 전달하기 위해 사용하는 선(RX)과, 공통접지선(GND) 등 3가닥으로 이루어진다.A line (TX) for transmitting a response from the water meter to the meter reading terminal, a line (RX) used by the meter reading meter to transmit the command to the water meter, and a common ground line (GND) Lt; / RTI >

펄스 검침방식은 물론이고, UART 통신 방식에서 일반적인 UART 통신 방식과 달리 아무런 데이터를 전송하고 있지 않은 아이들(Idle) 상태이면, Tx/Rx 핀이 하이를 유지하도록 되어 있으나, 디지털 수도미터의 경우 예상치 못한 쇼트 상태에서 전력 손실을 방지하기 위해 로우상태를 유지한다. In contrast to the UART communication method, the Tx / Rx pin is maintained in the idle state in which no data is transmitted, as in the UART communication method, as well as the pulse reading method. However, in the case of the digital water meter, It is held low to prevent power loss in the shorted state.

따라서, 검침단말기는 통신 전 로우 상태인 통신선을 수십 ms동안 하이로 제어했다가 로우로 제어하여 통신 개시를 알린다.Accordingly, the meter terminal controls the communication line in the low state before the communication is high for several tens of ms, and controls the communication line to be low for the communication start.

디지털 수도미터는 검침단말기가 신호를 보내오는 통신선(즉, RX핀)의 폴링 에지를 감지하면 UART와 펄스의 두 가지 방식 중 어느 것인지 알 수 없으므로 두 가지 방식을 동시에 확인한다. When the digital water meter detects the polling edge of the communication line (that is, the RX pin) to which the meter terminal sends a signal, it can not know which of two methods UART and pulse.

UART 방식에 사용되는 신호 펄스의 폭은 펄스 방식에 사용되는 것보다 현격히 작으므로(예를 들어, 1/1000 이하) 수백 ms 정도의 시간이 지나면 두 가지 방식 중 어느 방식인지를 알 수 있다.Since the width of the signal pulse used in the UART method is significantly smaller than that used in the pulse method (for example, 1/1000 or less), a time of several hundreds of milliseconds indicates either of two methods.

현재 사용 중인 프로토콜을 알면 수도 미터는 그 방식으로 응답 메시지를 구성하여 전송한다.Knowing the current protocol, the water meter constructs and transmits a response message in that way.

즉, 검침단말기로부터 검침명령신호를 수신할 때 수도미터는 그 신호가 어떤 방식(프로토콜)으로 검침 응답을 원하는지 자동으로 인식하여 그에 맞는 응답을 전송하는 것이다.That is, when the meter reading command signal is received from the meter reading terminal, the water meter automatically recognizes in what way (protocol) the signal the meter reading response is desired and transmits a corresponding response.

2개의 서로 다른 검침방식 중 UART 검침방식은 1,200bps의 속도를 갖는 UART신호(1비트폭은 1/1,200초 = 833 마이크로초)에 의해 검침 명령을 전송하며, 펄스 검침방식은 수백 밀리초 정도의 지정된 너비를 갖는 펄스 시퀀스에 의해 검침명령을 전송한다.Of the two different meter reading methods, the UART meter reading method transmits a meter reading command by a UART signal having a speed of 1,200 bps (1 bit width is 1 / 1,200 second = 833 microseconds) And transmits the inspection command by the pulse sequence having the specified width.

또한, 수신측에서 이 두 가지 방식을 구분하는 방법은 여러 가지가 있을 수 있으나 본 발명에서는 두 가지 방식에 대한 인식절차를 동시에 진행하는 방법을 적용한다. In addition, although there are various methods for distinguishing the two methods at the receiving side, the present invention applies a method of simultaneously performing the recognition procedures for the two methods.

첫째, 펄스 검침방식을 사용하는 경우에는, RX핀은 로우를 유지하다가 일정 횟수 하이/로우를 반복하는 형태로 동작한다.First, when the pulse meter reading method is used, the RX pin maintains a low level and repeats high and low for a predetermined number of times.

둘째, UART 검침방식을 사용하는 경우에는, UART 통신을 하기 직전 RX핀을 일정 시간 하이로 유지한 뒤 다시 로우로 제어하여 데이터 통신을 개시한다. Second, in the case of using the UART meter reading method, the RX pin is held high for a predetermined time immediately before the UART communication is performed, and then controlled to be low again to start data communication.

따라서, 디지탈 수도 미터에서는 RX핀이 하이에서 로우로 변하는 폴링 에지를 감지하여 검침명령 개시를 인식하며, 검침단말기의 통신이 시작된 것으로 판단되면 수도 미터는 UART 방식 인식절차와 펄스 방식 인식절차를 동시에 그리고 독립적으로 진행한다. Accordingly, in the digital water meter, the RX pin senses a falling edge that changes from high to low and recognizes the start of the meter reading command. When it is determined that the meter reading communication is started, the water meter simultaneously detects the UART method and the pulse method Proceed independently.

이 두 절차간의 연관은 단 하나, 어느 절차에서 검침명령이 정상적으로 인식되면 그 순간 진행 중인 다른 절차는 당연히 무의미하므로 이를 중단시킬 수 있는 수단이 강구된다. There is only one link between these two procedures. If the procedure is normally recognized in a procedure, the other procedure in progress at that moment is meaningless, of course.

이하, 검침단말기의 프로토콜을 수도미터에서 자동으로 인식하기 위한 동작 순서를 도 1을 참고로 설명한다.Hereinafter, an operation procedure for automatically recognizing the protocol of the meter reading terminal by the water meter will be described with reference to FIG.

먼저, 검침명령 인식절차는 RX핀의 링 에지를 판단하여 RX핀의 링 에지가 아니면 초기상태로 돌아가고 RX핀이 링 에지이면 디지탈 수도 미터에서는 UART 방식 인식절차와 펄스 방식 인식절차를 동시에 수행하게 된다.First, the probe command recognition process determines the ring edge of the RX pin, returns to the initial state if it is not the ring edge of the RX pin, and if the RX pin is at the ring edge, the digital water meter simultaneously performs the UART recognition process and the pulse recognition process .

즉, RX핀의 라이징 에지에서, UART 방식으로 검침신호가 전송되어 오면, 그 속도(1200bps)와 검침명령의 길이로부터 메시지 전송에 어느 정도 시간이 걸릴 것인지 계산하는데 UART 방식 인식 절차는 이 시간을 타임아웃(timeout)으로 설정하는 것으로 시작한다(S1). That is, when the meter reading signal is transmitted in the UART method at the rising edge of the RX pin, the UART method recognizing procedure calculates the time to calculate the time required to transmit the message from the speed (1200bps) and the length of the meter reading command Quot; time out " (S1).

만일, 이 시간이 다 지나도록 정상적인 검침메시지가 수신되지 않으면 UART 방식 검침이 아니거나 검침명령이 전송되는 도중 소실된 것이기 때문에 더 진행하지 않고 절차를 종료하고 초기 상태로 복귀한다(S2). If the normal meter reading message is not received within this time, the procedure is terminated and the system returns to the initial state (S2) because it is not the UART system meter reading or the meter reading command is lost during transmission.

이 절차 진행 도중 다른쪽의 펄스방식 인식절차가 완료된 것으로 판명되면 UART 방식은 아니므로 더 이상의 절차를 진행하지 않고 초기 상태로 되돌아 간다(S3).If it is determined that the other pulse type recognition procedure is completed during the procedure, the system returns to the initial state (S3) without further processing because it is not the UART system.

그리고 UART 방식에 의해 검침 명령이 완전히 수신완료된 것으로 판단되면(S4), 펄스 방식 인식절차를 중단시키기 위해 UART검침 플래그(Flag)를 트루우(true)로 두고(S5), UART 방식의 검침 응답을 전송한 후(S6) 초기 상태로 돌아간다.If it is determined by the UART method that the meter-reading instruction has been completely received (S4), the UART meter flag is set to true to stop the pulse-type recognition process (S5) (S6) and returns to the initial state.

한편, 상기 RX핀의 링 에지시 UART방식 인식절차와 동시에 진행되는 펄스 방식 인식 절차는 다음과 같다.Meanwhile, a pulse type recognition procedure that proceeds simultaneously with the UART method recognition procedure at the ring edge of the RX pin is as follows.

이러한 펄스방식 인식절차에서는 RX핀의 변화를 감시하여 하이 또는 로우 펄스의 폭을 측정하는데, 측정된 값이 지정된 펄스 폭의 허용 범위를 벗어나 너무 길거나 너무 짧으면 펄스 방식 검침이 아닌 것으로 판단하여 초기 상태로 돌아간다(S7). In this pulse type recognition procedure, the width of the high or low pulse is monitored by monitoring the change of the RX pin. If the measured value is too long or too short beyond the allowable range of the designated pulse width, (S7).

또한, 펄스 인식 절차 수행 도중 UART 검침이 완료되면, 당연히 펄스 방식 검침은 아니므로 더 이상의 절차를 진행하지 않고 초기 상태로 돌아간다(S8).In addition, if the UART measurement is completed during the pulse recognition procedure, since the pulse measurement is not performed, the process returns to the initial state without further processing (S8).

다음에 일정 개수 이상의 허용 범위 내의 펄스가 인식되면 정상적인 펄스 방식 검침으로 판단하고(S9), UART 방식 인식 절차를 중단시키기 위해 펄스 검침 플래그를 트루우로 둔 뒤(S10) 펄스 방식 검침에 맞는 응답을 전송하고 초기 상태로 돌아간다(S11). Next, when a pulse within a predetermined number of allowable ranges is recognized, it is determined that the pulse measurement is normal (S9), and the pulse measurement flag is set to the true state to stop the UART recognition process (S10) And returns to the initial state (S11).

또한, 상기 S6 단계나 S12 단계 이후에는 UART 점검과 펄스 점검을 폴스(false)로 두고 초기상태로 돌아간다(S12).After step S6 and step S12, the UART check and the pulse check are set to false and the process returns to the initial state (S12).

Claims (7)

수도미터의 RX핀 라이징 에지에서 UART방식 인식시, 타임아웃을 설정하고 타임아웃인가를 판단하여 타임아웃이면 초기상태로 돌아가는 단계(S1,S2),
상기 S2단계에서 타임아웃이 아니면 펄스검침이 트루우인가를 판단하여 펄스검침이 트루우이면 초기상태로 돌아가는 단계(S3),
상기 S3단계에서 펄스검침이 아니면, 검침메시지 수신완료인가를 판단하여 검침메시지 수신완료가 아니면 상기 S2 단계로 돌아가고 검침메시지 수신완료이면 UART검침으로 판단하여 UART검침 응답을 전송하는 단계(S5,S6),
상기 수도미터의 RX핀의 라이징 에지에서 펄스방식 인식시, 펄스폭이 비정상인가를 판단하여 비정상이면 초기상태로 돌아가는 단계(S7),
상기 S7단계에서 펄스폭이 정상이면 UART검침인가를 판단하여 UART검침이면 초기상태로 돌아가는 단계(S8),
상기 S8단계에서 UART검침이 아니면 필요한 만큼 펄스를 수신할 것인가를 판단하여 필요한 만큼 펄스를 수신하지 않을 경우에는 상기 S8단계로 돌아가고(S9), 필요한 만큼 펄스를 수신한 경우에는 펄스검침으로 판단하고 펄스 검침 응답 전송을 수행하는 단계(S10, S11)로 이루어진 것을 특징으로 하는 검침단말기의 프로토콜을 수도미터에서 자동으로 인식하는 방법.
(S1, S2) of setting a timeout and returning to an initial state when a timeout is determined by recognizing the UART method at the RX pinning edge of the water meter,
If it is determined in step S2 that the pulse measurement is not a timeout, a step S3 is performed to return to the initial state if the pulse measurement is true.
If it is determined in step S3 that the measurement message has not been received, the process returns to step S2 if the measurement message has not been received. If the measurement message has not been received yet, the UART measurement response is transmitted (S5 and S6) ,
(S7) of determining whether the pulse width is abnormal when recognizing the pulse type at the rising edge of the RX pin of the water meter and returning to the initial state when the pulse width is abnormal,
If it is determined in step S7 that the pulse width is normal, it is determined whether the UART is inspected,
If it is not UART inspection in step S8, it is determined whether or not a pulse is received as much as necessary. If the pulse is not received as much as necessary, the process returns to step S8 (step S9) And performing a meter reading response transmission (S10, S11). The method of automatically recognizing a protocol of a meter reading terminal by a water meter.
제1항에 있어서, 상기 UART방식은, 1,200bps의 속도를 갖는 UART신호에 의해 검침 명령을 전송하며, 상기 펄스 방식은 수백 밀리초 정도의 지정된 너비를 갖는 펄스 시퀀스에 의해 검침명령을 전송하는 것을 특징으로 하는 검침단말기의 프로토콜을 수도미터에서 자동으로 인식하는 방법.The method of claim 1, wherein the UART scheme transmits a meter reading command by a UART signal having a speed of 1,200 bps, and the pulse scheme transmits a meter reading command by a pulse sequence having a predetermined width of several hundreds of milliseconds A method of automatically recognizing a protocol of a meter terminal as a feature by a water meter. 제1항에 있어서, 상기 수도 미터는, RX핀이 하이에서 로우로 변하는 폴링 에지를 감지하여 검침명령 개시를 인식하며, 검침단말기의 통신이 시작된 것으로 인식되면 UART 방식 인식절차와 펄스 방식 인식절차를 동시에 개시하도록 검침단말기의 프로토콜을 수도미터에서 자동으로 인식하는 방법.The method as claimed in claim 1, wherein the water meter detects a polling edge at which the RX pin changes from high to low to recognize the start of a probe command, and if it is recognized that communication of the probe terminal has been started, A method for automatically recognizing a protocol of a meter reading terminal so that the water meter starts simultaneously. 제1항에 있어서, 상기 펄스방식 인식절차에서, RX핀은 로우를 유지하다가 일정 횟수 하이/로우를 반복하는 형태로 동작하는 것을 특징으로 하는 검침단말기의 프로토콜을 수도미터에서 자동으로 인식하는 방법.2. The method of claim 1, wherein in the pulse-type recognition procedure, the RX pin operates in a state in which the RX pin maintains a low level and repeats a high / low period a certain number of times. 제1항에 있어서, 상기 UART 방식 인식절차에서, UART 통신을 하기 직전 RX핀을 일정 시간 하이로 유지한 뒤 다시 로우로 제어하여 데이터 통신을 개시하는 것을 특징으로 하는 검침단말기의 프로토콜을 수도미터에서 자동으로 인식하는 방법.The method according to claim 1, wherein, in the UART method recognition procedure, data communication is started by maintaining the RX pin at a high level for a predetermined time, How to recognize automatically. 제1항에 있어서, 상기 S3단계의 절차 진행 도중 펄스방식 인식절차가 완료된 것으로 판명되면 UART방식은 아니므로 더 이상의 절차를 진행하지 않고 초기 상태로 돌아가는 것을 특징으로 하는 검침단말기의 프로토콜을 수도미터에서 자동으로 인식하는 방법.The method as claimed in claim 1, wherein if the pulse type recognition procedure is found to be completed during the procedure of step S3, the method returns to the initial state without proceeding with the further process because it is not a UART method. How to recognize automatically. 제1항에 있어서, 상기 S8단계의 펄스 인식 절차 수행 도중 UART 검침이 완료되면, 펄스 방식 검침이 아닌 것으로 판단하여 더 이상의 절차를 진행하지 않고 초기 상태로 돌아가는 것을 특징으로 하는 검침단말기의 프로토콜을 수도미터에서 자동으로 인식하는 방법.2. The method according to claim 1, wherein when the UART measurement is completed during the pulse recognition procedure in step S8, it is determined that the measurement is not the pulse system measurement, and the process returns to the initial state without proceeding any more. How the meter automatically recognizes it.
KR1020170069547A 2017-06-05 2017-06-05 Automatic recognize method of a protocol check a meter terminal KR101784268B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020170069547A KR101784268B1 (en) 2017-06-05 2017-06-05 Automatic recognize method of a protocol check a meter terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020170069547A KR101784268B1 (en) 2017-06-05 2017-06-05 Automatic recognize method of a protocol check a meter terminal

Publications (1)

Publication Number Publication Date
KR101784268B1 true KR101784268B1 (en) 2017-10-12

Family

ID=60139862

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020170069547A KR101784268B1 (en) 2017-06-05 2017-06-05 Automatic recognize method of a protocol check a meter terminal

Country Status (1)

Country Link
KR (1) KR101784268B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109698813A (en) * 2017-10-23 2019-04-30 中兴通讯股份有限公司 A kind of intelligent meter data recording system and method

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100829350B1 (en) 2008-02-22 2008-05-13 김진오 Water meter automatic check system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100829350B1 (en) 2008-02-22 2008-05-13 김진오 Water meter automatic check system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109698813A (en) * 2017-10-23 2019-04-30 中兴通讯股份有限公司 A kind of intelligent meter data recording system and method

Similar Documents

Publication Publication Date Title
CN101520744B (en) Self-checking serial communication system and self-checking method thereof
US6629059B2 (en) Hand held diagnostic and communication device with automatic bus detection
US7027952B2 (en) Data transmission method for a multi-protocol handheld field maintenance tool
EP3291195B1 (en) Hazard detector, test device for hazard detector, hazard monitoring system and method for testing a hazard detector
CA3017632C (en) Nfc enabled wireless process communication gateway
CN102840992A (en) Satellite-borne self-testing method based on satellite network
KR101784268B1 (en) Automatic recognize method of a protocol check a meter terminal
EP1522178B1 (en) Method and adapter for protocol detection in a field bus network
CN105676052B (en) A kind of method and system of serial ports line sequence identification
US9935731B2 (en) Communication apparatus, lens apparatus and image pickup apparatus including the same
US20130082847A1 (en) Telemeter System, Vending Machine, and Method for Terminal Device
CN107305141A (en) Oil tank gauging system
JPWO2020095420A1 (en) Information processing equipment and abnormality visualization system
US11272384B2 (en) Systems and methods for increasing the reliability of a wireless communication connection
EP2214386A1 (en) Communication apparatus
US20160132416A1 (en) Communication monitoring system
US20170059390A1 (en) Method for Testing a Measuring Device
CN110830105A (en) Troubleshooting device based on optical fiber communication transceiver
KR200429305Y1 (en) A portable serial loop testing device for the local control unit of radiation monitoring system in nuclear power plants
JP2008135902A (en) Line quality checking apparatus for optical signal transmission system
CN108833213B (en) Ethernet link detection method and device
KR100504671B1 (en) Wire checking method, wire checking system, and wire checker
CN113037592A (en) Environment detection equipment, moving-loop monitoring system and method for automatically detecting communication baud rate of moving-loop monitoring equipment
CN111855222A (en) Test control method and device for vehicle water pump
CN116170480A (en) Data acquisition system and method of magnetic suspension equipment

Legal Events

Date Code Title Description
E701 Decision to grant or registration of patent right
GRNT Written decision to grant