TWI831489B - Water flow transmitter and management method for flowmeters - Google Patents

Water flow transmitter and management method for flowmeters Download PDF

Info

Publication number
TWI831489B
TWI831489B TW111145601A TW111145601A TWI831489B TW I831489 B TWI831489 B TW I831489B TW 111145601 A TW111145601 A TW 111145601A TW 111145601 A TW111145601 A TW 111145601A TW I831489 B TWI831489 B TW I831489B
Authority
TW
Taiwan
Prior art keywords
water meter
water
identification code
meters
lookup table
Prior art date
Application number
TW111145601A
Other languages
Chinese (zh)
Other versions
TW202422014A (en
Inventor
張良琪
林楚雄
陳彤
Original Assignee
桓達科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 桓達科技股份有限公司 filed Critical 桓達科技股份有限公司
Priority to TW111145601A priority Critical patent/TWI831489B/en
Priority to CN202310592575.6A priority patent/CN118118816A/en
Application granted granted Critical
Publication of TWI831489B publication Critical patent/TWI831489B/en
Publication of TW202422014A publication Critical patent/TW202422014A/en

Links

Images

Landscapes

  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

A water flow transmitter and management method for flowmeters are provided. The water flow transmitter stores a lookup table recording a first flowmeter number and a first identifier of multiple flowmeters. The processor is configured to transmit a setting command to the multiple flowmeters; receive a second flowmeter number and update the first flowmeter number of each flowmeter of the lookup table by the second first flowmeter number; sort the first flowmeter number to obtain an order value and respectively update the first identifier by the order value; transmit the first identifier to each flowmeter for updating the second identifier of each flowmeter, such that the second identifier is the same with the first identifier; and manage the multiple flowmeters by the first identifier.

Description

水表傳訊器及水表管理方法Water meter transmitter and water meter management method

本案係有關於一種傳訊器及傳訊器執行的管理方法,特別是有關於一種水表傳訊器及傳訊器管理水表的方法。 This case relates to a transmitter and a method of managing the transmitter, in particular, to a water meter transmitter and a method of managing the water meter through the transmitter.

自來水的使用量仰賴水表來記錄,由自來水業者派員至現場逐一配置水表。由於人工配置水表設定花費相當多的時間及勞力,當水表的數量龐大時,人工配置水表的效率便大幅下降。 The usage of tap water is recorded by water meters, and the water company sends personnel to the site to install water meters one by one. Since manual configuration of water meter settings takes a lot of time and labor, when the number of water meters is huge, the efficiency of manual configuration of water meters drops significantly.

再者,水表的運作通常不具有資料安全的保護機制,若有心人士欲竊取水表中敏感資料或者竄改水表資料,難以達成資料安全的保密性。 Furthermore, the operation of water meters usually does not have a data security protection mechanism. If an intentional person wants to steal sensitive data in the water meter or tamper with the water meter data, it will be difficult to maintain confidentiality of data security.

據此,基於人工配置水表造成的人力資源浪費以及無法保護水表設定資料的資料安全的情況,如何達成裝置的快速設定與資料繼承遂成為本案所欲解決的技術問題。 Accordingly, based on the waste of human resources caused by manual configuration of water meters and the inability to protect the data security of water meter setting data, how to achieve rapid setting and data inheritance of the device has become a technical problem to be solved in this case.

本發明建構在設定過程中執行自動排序程序,並可對於損毀或有異常的水表可定址隔離,避免人工設定的資源浪費及損壞的裝置在網路內造成讀取的時間等待所造成效率低落的問題。 The structure of the present invention executes an automatic sorting process during the setting process, and can addressable and isolate damaged or abnormal water meters, avoiding the waste of manual setting resources and the low efficiency caused by the time waiting for reading caused by damaged devices in the network. problem.

根據本案的一實施例,揭示一種水表傳訊器,包括一通訊模組、一儲存模組及一處理器。通訊模組經配置以連接於多個水表。儲存模組經配置以儲存一查找表,其中該查找表記錄該多個水表的一第一水表號碼及一第一識別碼。處理器耦接該通訊模組及該儲存模組,其中該處理器經配置以:透過該通訊模組傳送一設定指令至該多個水表,其中各該水表於收到該設定指令後基於一隨機時間分別先後送出各自的一第二水表號碼;透過該通訊模組接收該第二水表號碼並分別更新至該查找表中的各該水表的該第一水表號碼;一個排序程序使該第一水表號碼以得到一排序值並根據該排序值更新該第一識別碼;透過該通訊模組傳送該第一識別碼至各該水表,各該水表根據收到的該第一識別碼來更新各該水表的一第二識別碼,使該第二識別碼相同於該第一識別碼;以及透過該第一識別碼來管理該多個水表。 According to an embodiment of the present invention, a water meter sensor is disclosed, including a communication module, a storage module and a processor. The communication module is configured to connect to multiple water meters. The storage module is configured to store a lookup table, wherein the lookup table records a first water meter number and a first identification code of the plurality of water meters. The processor is coupled to the communication module and the storage module, wherein the processor is configured to: send a setting instruction to the plurality of water meters through the communication module, wherein each water meter is based on a setting instruction after receiving the setting instruction. A second water meter number is sent out successively at random times; the second water meter number is received through the communication module and updated to the first water meter number of each water meter in the lookup table; a sorting process makes the first water meter number The water meter number is used to obtain a sorting value and update the first identification code according to the sorting value; the first identification code is sent to each water meter through the communication module, and each water meter updates each water meter according to the received first identification code. A second identification code of the water meter makes the second identification code the same as the first identification code; and the plurality of water meters are managed through the first identification code.

根據本案的一實施例,揭示一種水表管理方法,應用於一水表傳訊器,該方法包括:透過該水表傳訊器連接於該多個水表,其中該水表傳訊器儲存一查找表,該查找表記錄該多個水表的一第一水表號碼及一第一識別碼;傳送一設定指令至多個水表,使各該水表於收到該設定指令後基於一隨機時間分別先後送出各自的一第二水表號碼;接收該第二水表號碼並分別記錄於該查找表中的各該水表的該第一水表號碼;排序該第一水表號碼以得到一排序值並根據該排序值更新該第一識別碼;透過該通訊模組傳送該第一識別碼至各該水表,各 該水表根據收到的該第一識別碼來更新各該水表的一第二識別碼,使該第二識別碼相同於該第一識別碼;以及透過該第一識別碼來管理該多個水表。 According to an embodiment of the present case, a water meter management method is disclosed, which is applied to a water meter sensor. The method includes: connecting to the plurality of water meters through the water meter sensor, wherein the water meter sensor stores a lookup table, and the lookup table records A first water meter number and a first identification code of the plurality of water meters; sending a setting command to the plurality of water meters, so that each water meter successively sends a respective second water meter number based on a random time after receiving the setting command. ; Receive the second water meter number and record the first water meter number of each water meter in the lookup table respectively; sort the first water meter number to obtain a sorting value and update the first identification code according to the sorting value; by The communication module sends the first identification code to each water meter, and each The water meter updates a second identification code of each water meter according to the received first identification code, so that the second identification code is the same as the first identification code; and manages the plurality of water meters through the first identification code. .

100:水表傳訊器 100:Water meter transmitter

110:通訊模組 110: Communication module

120:處理器 120: Processor

130:儲存模組 130:Storage module

133:查找表 133:Lookup table

1332:第一水表號碼 1332:First water meter number

1334:第一識別碼 1334: First identification code

300:水表 300:Water meter

310:第二水表號碼 310: Second water meter number

320:第二識別碼 320: Second identification code

500:中控裝置 500:Central control device

710、720、730、740:通訊序列 710, 720, 730, 740: communication sequence

a1~a8:位置 a1~a8: position

S210~S260、S310~S370、S410~S480:步驟 S210~S260, S310~S370, S410~S480: steps

圖1為根據本案一實施例所繪示的水表管理架構的示意圖。 Figure 1 is a schematic diagram of a water meter management architecture according to an embodiment of this case.

圖2為根據本案一實施例所繪示的水表管理方法的流程圖。 Figure 2 is a flow chart of a water meter management method according to an embodiment of this case.

圖3為根據本案一實施例所繪示的水表管理方法的流程圖。 Figure 3 is a flow chart of a water meter management method according to an embodiment of this case.

圖4為根據本案一實施例所繪示的選擇性讀表及水表配置位置的示意圖。 Figure 4 is a schematic diagram of selective meter reading and water meter arrangement positions according to an embodiment of the present invention.

圖5為根據本案一實施例所繪示的偵測到異常水表之處理的流程圖。 FIG. 5 is a flow chart of processing an abnormal water meter detected according to an embodiment of the present case.

茲就本案之一實施例配合圖式,詳細說明如後。 One embodiment of this case is described in detail below with reference to the drawings.

請參閱圖1,其為根據本案一實施例所繪示的水表管理架構的示意圖。如圖1所示,水表傳訊器100電性連接或通訊連接於多個水表300及中控裝置500。於一實施例中,水表傳訊器100透過串型通訊協定(Modbus)(例如RS485)連接於多個水表300。水表傳訊器100可以為一路由器接收多個水表300的水表資料,並作為水表300的中繼傳輸裝置(Router,例如水表傳訊器100可以傳送水表資料至自來水公用事業系統)。 Please refer to Figure 1, which is a schematic diagram of a water meter management structure according to an embodiment of this case. As shown in FIG. 1 , the water meter transmitter 100 is electrically or communicatively connected to multiple water meters 300 and the central control device 500 . In one embodiment, the water meter transmitter 100 is connected to multiple water meters 300 through a serial communication protocol (Modbus) (such as RS485). The water meter transmitter 100 can be a router that receives water meter data from multiple water meters 300 and serves as a relay transmission device (Router) for the water meters 300. For example, the water meter transmitter 100 can transmit water meter data to a water utility system.

於一實施例中,水表傳訊器100包括通訊模組110、處理器120及儲存模組130。處理器120電性連接於通訊模組110及儲存模組130。儲存模組130包 括查找表133。查找表133用以記錄每一個水表300的第一水表號碼1332及第一識別碼1334。 In one embodiment, the water meter sensor 100 includes a communication module 110, a processor 120 and a storage module 130. The processor 120 is electrically connected to the communication module 110 and the storage module 130 . Storage module 130 packs Includes lookup table 133. The lookup table 133 is used to record the first water meter number 1332 and the first identification code 1334 of each water meter 300 .

於一實施例中,通訊模組110經配置以連接於多個水表300。多個水表300可以為相同或不同的廠商所製造的產品。於一實施例中,水表300包括第二水表號碼310及第二識別碼320。第二水表號碼310例如是水表300於出廠時的機器碼。第二識別碼320例如是串型通訊協定的識別碼(Modbus ID)。值得一提的是,第一水表號碼係指儲存於查找表133的水表號碼,第二水表號碼係指儲存在水表300的水表號碼。 In one embodiment, the communication module 110 is configured to connect to multiple water meters 300 . The multiple water meters 300 may be products manufactured by the same or different manufacturers. In one embodiment, the water meter 300 includes a second water meter number 310 and a second identification code 320 . The second water meter number 310 is, for example, the machine code of the water meter 300 when it leaves the factory. The second identification code 320 is, for example, an identification code (Modbus ID) of the serial communication protocol. It is worth mentioning that the first water meter number refers to the water meter number stored in the lookup table 133 , and the second water meter number refers to the water meter number stored in the water meter 300 .

於一實施例中,當所有水表300首次被配置時,由於水表傳訊器100尚未取得水表300的第二水表號碼310,因此查找表133中第一水表號碼1332的欄位的值為空(null)。 In one embodiment, when all water meters 300 are configured for the first time, since the water meter transmitter 100 has not yet obtained the second water meter number 310 of the water meter 300, the value of the field of the first water meter number 1332 in the lookup table 133 is null. ).

於一實施例中,通訊模組110接收來自多個水表300的第二水表號碼310。通訊模組110於收到第二水表號碼310之後,處理器120會將所收到的水表300的第二水表號碼310分別更新至查找表133的第一水表號碼1332。 In one embodiment, the communication module 110 receives the second water meter numbers 310 from the plurality of water meters 300 . After the communication module 110 receives the second water meter number 310, the processor 120 updates the received second water meter number 310 of the water meter 300 to the first water meter number 1332 of the lookup table 133 respectively.

於一實施例中,通訊模組110可以為支援全球行動通訊(Global System for Mobile communication,GSM)、長期演進通訊(Long Term Evolution,LTE)、全球互通微波存取(Worldwide interoperability for Microwave Access,WiMAX)、無線保真(Wireless Fidelity,Wi-Fi)、藍牙技術或有線網路的通訊晶片。 In one embodiment, the communication module 110 may support Global System for Mobile communication (GSM), Long Term Evolution (LTE), and Worldwide interoperability for Microwave Access (WiMAX). ), wireless fidelity (Wireless Fidelity, Wi-Fi), Bluetooth technology or wired network communication chip.

於一實施例中,處理器120可以為中央處理器(central processing unit,CPU)、系統單晶片(System on Chip,SoC)、應用處理器、數位訊號處理器(digital signal processor)或特定功能的處理晶片或控制器。 In one embodiment, the processor 120 may be a central processing unit (CPU), a system on chip (SoC), an application processor, a digital signal processor (digital signal processor) or a specific function Handle wafers or controllers.

於一實施例中,儲存模組130可以為隨機存取記憶體(Random Access Memory,RAM)或非揮發性記憶體(例如快閃記憶體(Flash memory)、唯讀記憶體(Read Only Memory,ROM)、硬碟機(Hard Disk Drive,HDD)、固態硬碟(Solid State Drive,SSD)或光儲存器。 In one embodiment, the storage module 130 may be a random access memory (Random Access Memory, RAM) or a non-volatile memory (such as flash memory, read only memory, ROM), Hard Disk Drive (HDD), Solid State Drive (SSD) or optical storage.

於一實施例中,中控裝置500透過串型通訊協定(例如RS485)連接於水表傳訊器100。中控裝置500用以存取水表傳訊器100中的資料,並透過中控裝置500的圖形化介面來分析水表資料(例如流量資料)。中控裝置500可以為平板電腦、筆記型電腦,或具備處理器及儲存媒體而可執行相關應用程式之電子裝置。 In one embodiment, the central control device 500 is connected to the water meter transmitter 100 through a serial communication protocol (such as RS485). The central control device 500 is used to access the data in the water meter sensor 100 and analyze the water meter data (such as flow data) through the graphical interface of the central control device 500 . The central control device 500 can be a tablet computer, a notebook computer, or an electronic device equipped with a processor and a storage medium that can execute related applications.

在水表300尚未被使用的狀態下,其第二識別碼320為一初始值(例如Modbus ID的值為1)。換言之,當多個水表300連接於水表傳訊器100時,水表傳訊器100無法透過第二識別碼320來區分管理多個水表300,而是僅能使用水表300的第二水表號碼310來操作水表300。此外,由於第二水表號碼310的長度通常相當長(例如長度為16碼,自來水公用事業的用戶管理代碼),對使用者而言依據第二水表號碼310來管理水表300相當不方便。若使用者不使用第二水表號碼310來管理水表300,只能逐一設定水表300的第二識別碼320,然而逐一設定水表300的第二識別碼320相當花費時間。因此,本案於一些實施例中提出以自動化識別碼(Auto ID),來設定水表300的第二識別碼320來消除人工設定的程序以提升管理效益。 When the water meter 300 is not in use, its second identification code 320 is an initial value (for example, the value of the Modbus ID is 1). In other words, when multiple water meters 300 are connected to the water meter transmitter 100, the water meter transmitter 100 cannot distinguish and manage the multiple water meters 300 through the second identification code 320, but can only use the second water meter number 310 of the water meter 300 to operate the water meter. 300. In addition, since the length of the second water meter number 310 is usually quite long (for example, the length is 16 digits, a user management code of a water utility), it is quite inconvenient for users to manage the water meter 300 based on the second water meter number 310 . If the user does not use the second water meter number 310 to manage the water meter 300, he can only set the second identification codes 320 of the water meters 300 one by one. However, it takes quite a long time to set the second identification codes 320 of the water meters 300 one by one. Therefore, in some embodiments, this project proposes to use an automated identification code (Auto ID) to set the second identification code 320 of the water meter 300 to eliminate the manual setting process and improve management efficiency.

為進一步說明本案的水表傳訊器100如何自動化設定多個水表300的第二識別碼320,以下內容請一併參閱圖1及圖2。圖2為根據本案一實施例 所繪示的水表管理方法的流程圖。圖2所示的水表管理方法可由圖1的水表傳訊器100來執行。 To further explain how the water meter transmitter 100 in this case automatically sets the second identification codes 320 of multiple water meters 300, please refer to Figure 1 and Figure 2 for the following content. Figure 2 shows an embodiment of this case A flow chart of a water meter management method is shown. The water meter management method shown in FIG. 2 can be executed by the water meter transmitter 100 of FIG. 1 .

於步驟S210,水表傳訊器100透過通訊模組110連接多個水表300。 In step S210, the water meter transmitter 100 connects to multiple water meters 300 through the communication module 110.

於一實施例中,水表傳訊器100可以透過通訊模組110同時連接的水表300的數量為20-50台。於另一實施例中,水表傳訊號100可以透過通訊模組110同時連接的水表300的數量為32台,但不加以限定。 In one embodiment, the number of water meters 300 that the water meter transmitter 100 can connect to at the same time through the communication module 110 is 20-50. In another embodiment, the number of water meters 300 that the water meter signal 100 can be connected to at the same time through the communication module 110 is 32, but is not limited.

於步驟S220,處理器120透過通訊模組110傳送一設定指令至多個水表300。 In step S220, the processor 120 sends a setting command to the plurality of water meters 300 through the communication module 110.

於一實施例中,水表300收到設定指令之後會計算一個隨機時間,並等待該隨機時間之後發送自己的第二水表號碼310至水表傳訊器100。舉例而言,若隨機時間為50毫秒,則水表300會計數50毫秒後才送出自己的第二水表號碼310。本案藉由令多個水表300計算出的隨機時間都不相同,來確保水表傳訊器100可以在不同的時間點分別收到不同水表300的封包(攜帶有第二水表號碼310),而可避免多個水表300同時回傳封包而造成封包丟失(packet loss)的問題。 In one embodiment, the water meter 300 calculates a random time after receiving the setting command, and waits for the random time before sending its second water meter number 310 to the water meter transmitter 100 . For example, if the random time is 50 milliseconds, the water meter 300 will count for 50 milliseconds before sending its second water meter number 310. This case ensures that the water meter transmitter 100 can receive packets (carrying the second water meter number 310) from different water meters 300 at different time points by making the random times calculated by multiple water meters 300 different, thereby avoiding the problem of Multiple water meters 300 return packets at the same time, causing packet loss.

於一實施例中,隨時機間是分別基於水表權重值及時間亂數來計算產生。 In one embodiment, time is calculated and generated based on the weight value of the water meter and the time random number respectively.

於一實施例中,水表300可基於公式(1)來計算隨機時間:隨機時間=(水表號碼的後3碼% N×10)+(R % 50)+C...公式(1) In one embodiment, the water meter 300 can calculate the random time based on formula (1): random time = (last 3 digits of the water meter number % N × 10) + (R % 50) + C...Formula (1)

於公式(1)中,參數N為水表傳訊器100的水表連接數量(例如規劃欲配置水表300的總數量),參數R為水表300產生的一時間亂數(可自行設定亂數範圍),符號%為模數(Mod)運算子,參數C為一自然數(例如水表傳訊器100及水 表300之間的傳輸延遲時間)。舉例而言,若水表號碼的後3碼為“789”、參數N為“32”、參數R為“6893”且參數C為“4”,則隨機時間為257毫秒。 In formula (1), the parameter N is the number of water meter connections of the water meter transmitter 100 (for example, the total number of water meters 300 to be configured), and the parameter R is a random number generated by the water meter 300 (the random number range can be set by yourself), The symbol % is the modulus (Mod) operator, and the parameter C is a natural number (such as water meter transmitter 100 and water meter transmitter 100). transmission delay time between table 300). For example, if the last three digits of the water meter number are "789", parameter N is "32", parameter R is "6893" and parameter C is "4", the random time is 257 milliseconds.

於一實施例中,水表權重值可以為公式(1)中的“%N×10”數值。 In one embodiment, the water meter weight value may be the "%N×10" value in formula (1).

為便於說明,以下段落的參數N以數值32為範例以及參數C以數值4來說明,惟本案不限於此。 For the convenience of explanation, the parameter N in the following paragraphs is illustrated with a value of 32 and the parameter C is illustrated with a value of 4, but the case is not limited thereto.

於公式(1)中,隨機時間的數值範圍為4至363毫秒。若考慮每一台水表300送出資料至通訊模組110收到資料所需的傳輸時間長度為9毫秒,則水表傳訊器100所需的總時間為288毫秒(32台×9毫秒)。因此,公式(1)中的[水表號碼的後3碼%32×10]的數值範圍為0至310,此數值範圍可接近於水表傳訊器100逐一輪流接收32台水表300的資料所需的時間。 In formula (1), the value of the random time ranges from 4 to 363 milliseconds. If it is considered that the transmission time required for each water meter 300 to send data to the communication module 110 to receive the data is 9 milliseconds, then the total time required for the water meter transmitter 100 is 288 milliseconds (32 units × 9 milliseconds). Therefore, the numerical range of [the last three digits of the water meter number %32×10] in formula (1) is 0 to 310. This numerical range can be close to the time required for the water meter transmitter 100 to receive the data of 32 water meters 300 one by one. time.

然而,公式(1)中的[水表號碼的後3碼%32×10]存在數值為0的情況,因此公式(1)另外加上[(R % 50)+C]的數值,以避免計算出來的隨機時間為0的情況。 However, the [last 3 digits of the water meter number %32×10] in formula (1) has a value of 0, so formula (1) additionally adds the value of [(R % 50) + C] to avoid calculation The random time that comes out is 0.

據此,基於公式(1)設計的隨機時間,本案可以分配多個水表300的輪流傳送時間,並且不會造成時間間隔過長或過短,同時也可保證水表傳訊器100會收到所有水表300的資料,而可達成最佳化傳送水表資料的功效。 Accordingly, based on the random time designed by formula (1), this case can allocate the transmission time of multiple water meters 300 in turn without causing the time interval to be too long or too short. At the same time, it can also ensure that the water meter transmitter 100 will receive all water meters. 300 data, and can achieve the best effect of transmitting water meter data.

步驟S230,透過通訊模組110接收第二水表號碼310,並分別更新至查找表133中水表300的第一水表號碼1332。 Step S230, receive the second water meter number 310 through the communication module 110, and update it to the first water meter number 1332 of the water meter 300 in the lookup table 133 respectively.

於一實施例中,水表傳訊器100收到第一數量的第二水表號碼310,其中第一數量可以為小於水表連接數量。換言之,水表傳訊器100在尚未收到全部水表300之前會持續把所收到且尚未記錄至查找表133的第二水表號碼 310更新至查找表133中的第一水表號碼1332,使查找表133記錄一實際連接的水表的號碼。 In one embodiment, the water meter transmitter 100 receives a first number of second water meter numbers 310, where the first number may be less than the number of water meter connections. In other words, before the water meter transmitter 100 has received all the water meters 300, it will continue to receive the second water meter number that has not been recorded in the lookup table 133. 310 updates the first water meter number 1332 in the lookup table 133 so that the lookup table 133 records the number of an actually connected water meter.

於步驟S240,處理器120排序第一水表號碼1332以得到一排序值,並根據排序值變更第一識別碼1334。 In step S240, the processor 120 sorts the first water meter number 1332 to obtain a sorting value, and changes the first identification code 1334 according to the sorting value.

於一實施例中,處理器120排序已收到的第一數量的第一水表號碼1332,例如依據第一水表號碼1332的大小進行排序,使得每一個水表300關聯至該排序值。舉例而言,第一水表號碼1332大者,其排序值越小。 In one embodiment, the processor 120 sorts the received first number of first water meter numbers 1332, for example, sorting according to the size of the first water meter numbers 1332, so that each water meter 300 is associated with the sorting value. For example, the larger the first water meter number 1332, the smaller the sorting value.

於一實施例中,排序值可被用來更新水表300的第一識別碼1334,例如若水表300的排序值為數值2,則該水表300的第一識別碼1334會被更新為數值2。於此步驟中,因為查找表133中有第一數量的第一水表號碼1332,故有第一數量的第一識別碼1334被更新。 In one embodiment, the sort value can be used to update the first identification code 1334 of the water meter 300. For example, if the sort value of the water meter 300 is the value 2, then the first identification code 1334 of the water meter 300 will be updated to the value 2. In this step, because there are a first number of first water meter numbers 1332 in the lookup table 133, a first number of first identification codes 1334 are updated.

於步驟S250,透過通訊模組110傳送第一識別碼1334至水表300,水表300根據收到的第一識別碼1334來更新自己的第二識別碼320,使第二識別碼320相同於第一識別碼1334。於此步驟中,第一數量的水表300會更新自己的第二識別碼320。 In step S250, the first identification code 1334 is sent to the water meter 300 through the communication module 110. The water meter 300 updates its second identification code 320 according to the received first identification code 1334, so that the second identification code 320 is the same as the first identification code 320. Identification code 1334. In this step, the first number of water meters 300 will update their second identification codes 320 .

為便於理解,以下實施例針對步驟S230至步驟S250進行說明。另一方面,為簡化實施例說明,水表300的連線數量以7台作為範例說明,惟本案不限於此數量。 For ease of understanding, the following embodiment describes steps S230 to S250. On the other hand, in order to simplify the description of the embodiment, the number of connections of the water meters 300 is 7 as an example, but this case is not limited to this number.

於步驟S220,水表傳訊器100傳送設定指令至7台水表(如下表一所示),因此7台水表都會根據前述公式(1)計算自己的隨機時間,並計數自己的隨機時間之後送出第二水表號碼310及第二識別碼320。每一台水表得到的隨機時間 都彼此不同,因此水表傳訊器100會於不同的時間點收到7台水表的第二水表號碼310。 In step S220, the water meter transmitter 100 sends setting instructions to 7 water meters (as shown in Table 1 below). Therefore, the 7 water meters will calculate their own random time according to the aforementioned formula (1), count their own random time and then send the second Water meter number 310 and second identification code 320. The random time obtained by each water meter They are all different from each other, so the water meter transmitter 100 will receive the second water meter numbers 310 of the seven water meters at different points in time.

於一實施例中,水表傳訊器100於第一時間內收到第一數量(例如3台)的水表300所回傳的第二水表號碼310。水表傳訊器100會先針對第一數量的水表300的第二水表號碼310作排序。於一實施例中,水表傳訊器100是依據第二水表號碼310的大小作排序。舉例而言,水表傳訊器100於第一時間內收到7台水表中的水表B、水表D及水表E的資料,而根據第二水表號碼310的大小排序出一排序值,即水表D的排序值為1、水表B的排序值為2,及水表E的排序值為3。 In one embodiment, the water meter transmitter 100 receives the second water meter number 310 returned by the first number (for example, 3) of water meters 300 within the first time. The water meter transmitter 100 will first sort the second water meter numbers 310 of the first number of water meters 300 . In one embodiment, the water meter transmitter 100 is sorted according to the size of the second water meter number 310 . For example, the water meter transmitter 100 receives the data of water meter B, water meter D and water meter E among the seven water meters in the first time, and sorts out a sorting value according to the size of the second water meter number 310, that is, the value of water meter D. The sorting value is 1, the sorting value of water meter B is 2, and the sorting value of water meter E is 3.

水表傳訊器100於獲得排序值後,即獲得第一輪的排序值,接著將此排序值分別寫入查找表133中水表B、D及E的識別碼的值,如下表一所示。 After obtaining the sorting value, the water meter transmitter 100 obtains the first round of sorting values, and then writes the sorting values into the values of the identification codes of water meters B, D, and E in the lookup table 133, as shown in Table 1 below.

Figure 111145601-A0305-02-0011-1
Figure 111145601-A0305-02-0011-1

於一實施例中,水表傳訊器100會於接收第二水表號碼310之前,於查找表133中將所有水表300的第一識別碼1334的值設定為一初始值(例如0),即查找表133中所有水表300的第一識別碼1334為相同的初始值。 In one embodiment, before receiving the second water meter number 310, the water meter transmitter 100 sets the values of the first identification codes 1334 of all water meters 300 to an initial value (for example, 0) in the lookup table 133, that is, the lookup table The first identification codes 1334 of all water meters 300 in 133 are the same initial value.

欲說明的是,不同的廠商所製造的水表300包括用以記錄第二識別碼320之資料欄位。此外,每一個水表於出廠時的第二識別碼320為一初始值(例如1),因此水表傳訊器100於設定查找表133的第一識別碼1334的初始值時可依據實際情況來設定(例如數值1)。 It should be noted that water meters 300 manufactured by different manufacturers include data fields for recording the second identification code 320 . In addition, the second identification code 320 of each water meter is an initial value (for example, 1) when it leaves the factory. Therefore, when the water meter sensor 100 sets the initial value of the first identification code 1334 of the lookup table 133, it can be set according to the actual situation ( For example value 1).

承上述舉例,於第一輪的排序之後(即排序第一時間內收到第一數量的第二水表號碼310),由於查找表133中的水表B、D及E的第一識別碼1334已經從初始值(數值0)被更新為排序值,因此其更新後第一識別碼1334不等於初始值。其餘的4個水表(水表A、C、F、G)的識別碼的值仍維持為初始值。 Following the above example, after the first round of sorting (that is, the first number of second water meter numbers 310 are received within the first time of sorting), since the first identification codes 1334 of water meters B, D, and E in the lookup table 133 have been It is updated from the initial value (value 0) to the sorting value, so the updated first identification code 1334 is not equal to the initial value. The values of the identification codes of the remaining four water meters (water meters A, C, F, and G) remain at their initial values.

於一實施例中,水表傳訊器100讀取查找表133中的第一識別碼1334等於初始值的個數小於一門檻值時,判定所有水表300的第二識別碼320已全部更新完畢。舉例而言,若初始值為數值0,則當查找表133中所有第一識別碼1334都不為數值0時,所有水表300的第二識別碼320都已經完成更新。 In one embodiment, when the number of first identification codes 1334 read in the lookup table 133 equal to the initial value is less than a threshold value, the water meter sensor 100 determines that all the second identification codes 320 of all water meters 300 have been updated. For example, if the initial value is 0, then when all the first identification codes 1334 in the lookup table 133 are not 0, the second identification codes 320 of all water meters 300 have been updated.

於步驟S260,水表傳訊器100透過第一識別碼1334來對多個水表300執行連線及管理。 In step S260, the water meter transmitter 100 uses the first identification code 1334 to connect and manage multiple water meters 300.

於一實施例中,由於水表傳訊器100對所有水表300完成第二識別碼320的設定,並且查找表133的第一識別碼1334對應於所連接的所有水表300的第二識別碼320,因此水表傳訊器100可以使用查找表133來識別所有水表300並做後續的操作,例如讀取水表300的流量資料。 In one embodiment, since the water meter transmitter 100 completes the setting of the second identification codes 320 for all water meters 300, and the first identification code 1334 of the lookup table 133 corresponds to the second identification codes 320 of all connected water meters 300, therefore The water meter transmitter 100 can use the lookup table 133 to identify all water meters 300 and perform subsequent operations, such as reading the flow data of the water meters 300 .

請參照圖3,其為根據本發明一實施例所繪示的水表管理方法的流程圖。圖3的水表管理方法可由圖1的水表傳訊器100所執行。相較於圖2,圖3揭示設定水表300的第二識別碼320的流程。 Please refer to FIG. 3 , which is a flow chart of a water meter management method according to an embodiment of the present invention. The water meter management method in FIG. 3 can be executed by the water meter transmitter 100 in FIG. 1 . Compared with FIG. 2 , FIG. 3 reveals the process of setting the second identification code 320 of the water meter 300 .

於步驟S310中,水表傳訊器100將查找表133中各水表300的第一識別碼1334設定為一初始值。 In step S310, the water meter transmitter 100 sets the first identification code 1334 of each water meter 300 in the lookup table 133 as an initial value.

於一實施例中,初始值可以為數值0。 In one embodiment, the initial value may be a value of 0.

於步驟S320中,處理器120透過通訊模組110傳送一設定指令至多個水表300。此步驟的說明相似於圖2的步驟S220,故不再重述。 In step S320, the processor 120 sends a setting command to the plurality of water meters 300 through the communication module 110. The description of this step is similar to step S220 in Figure 2, so it will not be repeated again.

於步驟S330中,通訊模組110接收第二水表號碼310,並分別更新至查找表133中水表300的第一水表號碼1332。此步驟的說明相似於圖2的步驟S230,故不再重述。 In step S330, the communication module 110 receives the second water meter number 310 and updates it to the first water meter number 1332 of the water meter 300 in the lookup table 133 respectively. The description of this step is similar to step S230 in Figure 2, so it will not be repeated again.

於步驟S340中,處理器120排序第一水表號碼1332以得到一排序值並將第一識別碼1334從初始值更新為排序值。 In step S340, the processor 120 sorts the first water meter number 1332 to obtain a sorting value and updates the first identification code 1334 from the initial value to the sorting value.

承上述實施例,水表傳訊器100於第一時間內收到3台的水表300所回傳的第二水表號碼310,並且於獲得第一輪的排序值後,將排序值更新查找表133(如上表一)。 Following the above embodiment, the water meter transmitter 100 receives the second water meter number 310 returned by the three water meters 300 within the first time, and after obtaining the first round of sorting values, updates the lookup table 133 with the sorting values ( As shown in Table 1 above).

於步驟S350中,透過通訊模組110傳送第一識別碼1334至水表300,水表300根據收到的第一識別碼1334來更新自己的第二識別碼320,使第二識別碼320相同於第一識別碼1334。此步驟的說明相似於圖2的步驟S250,故不再重述。 In step S350, the first identification code 1334 is sent to the water meter 300 through the communication module 110. The water meter 300 updates its second identification code 320 according to the received first identification code 1334, so that the second identification code 320 is the same as the first identification code 320. An identification code of 1334. The description of this step is similar to step S250 in Figure 2, so it will not be repeated again.

於步驟S360中,水表傳訊器100判斷是否已經更新完所有水表300的識別碼。 In step S360, the water meter transmitter 100 determines whether the identification codes of all water meters 300 have been updated.

於一實施例中,水表傳訊器100計算查找表133中所有水表300的第一識別碼1334等於初始值的個數。當第一識別碼1334等於初始值的個數小於一門檻值時,代表所有水表300的第二識別碼320已經被更新完畢,則執行步驟S370。當第一識別碼1334等於初始值的個數不小於一門檻值時,代表所有水表300的第二識別碼320尚未被更新完畢,則需回到步驟S330。 In one embodiment, the water meter transmitter 100 calculates the number of first identification codes 1334 of all water meters 300 in the lookup table 133 that are equal to the initial values. When the number of first identification codes 1334 equal to the initial value is less than a threshold, it means that the second identification codes 320 of all water meters 300 have been updated, and step S370 is executed. When the number of first identification codes 1334 equal to the initial value is not less than a threshold value, it means that the second identification codes 320 representing all water meters 300 have not been updated, and it is necessary to return to step S330.

舉例而言,門檻值可以為1。承上述舉例,查找表133(表一)中第一輪時水表300的第一識別碼1334等於初始值的個數為4(包含水表A、C、F、G)。 由於個數4不小於門檻值的數值1,因此於目前階段尚有水表的第二識別碼320未被更新,則需回到步驟S330。 For example, the threshold value can be 1. Following the above example, the number of first identification codes 1334 of the water meters 300 in the first round in the lookup table 133 (Table 1) is equal to the initial value, which is 4 (including water meters A, C, F, and G). Since the number 4 is not less than the threshold value 1, the second identification code 320 of the water meter has not been updated at this stage, and it is necessary to return to step S330.

於一實施例中,水表傳訊器100於第二時間內收到第二數量(例如4台)的水表300所回傳的第二水表號碼310並且將第二水表號碼310更新至查找表133(步驟S330),其中第二時間於第一時間之後。值得一提的是,水表傳訊器100於第二時間收到的一部份第二水表號碼310有可能已於第一時間收到過,因此水表傳訊器100只需要對尚未收到的第二水表號碼310更新至查找表133。 In one embodiment, the water meter transmitter 100 receives the second water meter number 310 returned by the second number (for example, 4) water meters 300 within the second time and updates the second water meter number 310 to the lookup table 133 ( Step S330), wherein the second time is after the first time. It is worth mentioning that part of the second water meter number 310 received by the water meter transmitter 100 at the second time may have been received at the first time. Therefore, the water meter transmitter 100 only needs to respond to the second water meter number 310 that has not yet been received. Water meter number 310 is updated to lookup table 133.

於一實施例中,水表傳訊器100會針對目前所有已更新的第一水表號碼1332進行排序,並以新得到的排序值更新現有的第一識別碼1334(步驟S340)。 In one embodiment, the water meter transmitter 100 sorts all currently updated first water meter numbers 1332 and updates the existing first identification code 1334 with the newly obtained sorting value (step S340).

舉例而言,水表傳訊器100於第二時間更新了7台水表300中的水表A、水表C、水表F及水表G的第一水表號碼1332,而可根據所有已更新的第一水表號碼1332的大小排序出另一排序值,例如水表A至水表G的排序值之序列為“7-4-1-5-2-6-3”,其中水表A的排序值為“7”。 For example, the water meter transmitter 100 updates the first water meter numbers 1332 of water meters A, water meter C, water meter F and water meter G among the seven water meters 300 at the second time, and can be based on all updated first water meter numbers 1332 The sequence of the sorting values from water meter A to water meter G is "7-4-1-5-2-6-3", among which the sorting value of water meter A is "7".

水表傳訊器100於獲得新的排序值(第二輪)後,將此排序值分別寫入查找表133中,如下表二所示。 After obtaining the new sorting value (second round), the water meter transmitter 100 writes the sorting values into the lookup table 133 respectively, as shown in Table 2 below.

Figure 111145601-A0305-02-0014-2
Figure 111145601-A0305-02-0014-2

舉例而言,水表傳訊器100於第一時間收到水表B的第二水表號碼310,故水表B的第二水表號碼310會加入排序並得到水表B在第一輪的排序值為“2”。此時,查找表133中水表B在第一輪的第一識別碼1334會從初始值“0”更新為排序值“2”。 For example, the water meter transmitter 100 receives the second water meter number 310 of water meter B at the first time, so the second water meter number 310 of water meter B will be added to the sorting and the sorting value of water meter B in the first round is obtained as "2" . At this time, the first identification code 1334 of water meter B in the first round in the lookup table 133 will be updated from the initial value "0" to the sorting value "2".

水表傳訊器100於第二時間會收到其他的水表的第二水表號碼310。因為有其他水表號碼加入排序,使水表B在第二輪的第一識別碼1334會改變,例如得到水表B在第二輪的排序值為“4”。此時,查找表133中水表B在第二輪的第一識別碼1334從原本的值“2”更新為第二輪的排序值“4”。 The water meter transmitter 100 will receive the second water meter number 310 of other water meters at the second time. Because other water meter numbers are added to the sorting, the first identification code 1334 of water meter B in the second round will change. For example, the sorting value of water meter B in the second round is "4". At this time, the first identification code 1334 of water meter B in the second round in the lookup table 133 is updated from the original value "2" to the second round sorting value "4".

如上述說明,水表傳訊器100是以目前已收到的所有水表號碼進行排序。若水表號碼於第一輪已被排序過而使對應的識別碼被更新(例如水表B於第一輪的識別碼為2),則於第二輪時因為有新的其他水表號碼加入排序,而使該水表號碼再度被排序並使對應的識別碼再度被更新為新的排序值(例如水表B於第二輪的識別碼被更新為4)。換言之,在所有水表300的識別碼被完成更新之前,每個水表300於每一輪的識別碼的值(排序值)可能會不同。 As explained above, the water meter transmitter 100 sorts all the water meter numbers that have been received so far. If the water meter numbers have been sorted in the first round and the corresponding identification code has been updated (for example, the identification code of water meter B in the first round is 2), then in the second round because other new water meter numbers are added to the sorting, The water meter numbers are sorted again and the corresponding identification codes are updated to new sorting values (for example, the identification code of water meter B in the second round is updated to 4). In other words, before the identification codes of all water meters 300 are completely updated, the value (sorting value) of the identification code of each water meter 300 in each round may be different.

於一實施例中,水表傳訊器100透過所有水表300的隨機時間的時間差來盡可能地提升每一輪收到的水表資料的數量。 In one embodiment, the water meter transmitter 100 uses a random time difference between all water meters 300 to maximize the amount of water meter data received in each round.

值得一提的是,第一時間及第二時間可以為自行設計的時間長度,使得處理器120根據該時間長度來執行每一輪的排序。於另一實施例中,處理器120可於收到數個第二水表號碼(例如5個)後執行一輪的排序。 It is worth mentioning that the first time and the second time can be a self-designed time length, so that the processor 120 performs each round of sorting according to the time length. In another embodiment, the processor 120 may perform one round of sorting after receiving several second water meter numbers (eg, 5).

若所有水表300的第二識別碼320已完成更新,則於步驟S370,水表傳訊器100完成所有水表300的設定程序。 If the second identification codes 320 of all water meters 300 have been updated, in step S370, the water meter transmitter 100 completes the setting process of all water meters 300.

水表傳訊器100完成設定程序,代表所有水表300的第二識別碼320皆已被更新,並且水表300的第二識別碼320彼此不同,使得使用者於管理水表300時,可針對第二識別碼320來區分水表300。據此,本案可自動化地設置水表300,而解決了人工逐一設定水表300所造成人力資源浪費,並提升管理水表300的效能。 The water meter sensor 100 completes the setting process, which means that the second identification codes 320 of all water meters 300 have been updated, and the second identification codes 320 of the water meters 300 are different from each other, so that the user can target the second identification codes when managing the water meters 300 320 to distinguish the water meter 300. Accordingly, this case can automatically set the water meters 300, thus solving the waste of human resources caused by manually setting the water meters 300 one by one, and improving the efficiency of managing the water meters 300.

值得一提的是,於步驟S370中完成設定所有水表300的程序後,所有水表300的第二識別碼320皆設定有不同的識別碼,並且查找表133中記錄的第一識別碼1334相同於第二識別碼320,使得水表傳訊器100可依據查找表133的第一識別碼1334來管理具有相同於第一識別碼1334的第二識別碼320的水表300。以下說明內容中於一些情況下,因為第一識別碼1334及第二識別碼320為相同數值,而可交換地使用。 It is worth mentioning that after completing the process of setting all water meters 300 in step S370, the second identification codes 320 of all water meters 300 are set with different identification codes, and the first identification codes 1334 recorded in the lookup table 133 are the same as The second identification code 320 enables the water meter transmitter 100 to manage the water meter 300 having the second identification code 320 that is the same as the first identification code 1334 according to the first identification code 1334 of the lookup table 133 . In the following description, in some cases, the first identification code 1334 and the second identification code 320 are used interchangeably because they have the same numerical value.

於一實施例中,步驟S240及步驟S340中排序第一水表號碼1332的演算法可以為氣泡排序演算法、選擇排序演算法、插入排序演算法、快速排序演算法、堆積排序演算法或任何其他的排序演算法。 In one embodiment, the algorithm for sorting the first water meter number 1332 in step S240 and step S340 may be a bubble sort algorithm, a selection sort algorithm, an insertion sort algorithm, a quick sort algorithm, a stacking sort algorithm, or any other algorithm. sorting algorithm.

於一實施例中,水表傳訊器100可使用一通訊序列來設定欲輪詢(即輪流讀取)水表300的順序,該通訊序列為欲讀取的水表300的第二識別碼320之序列。舉例而言,通訊序列記錄的第二識別碼320之序列為“1-2-3-4-5-6-7”,則水表傳訊器100則依序輪詢水表C-E-G-B-D-F-A(如上表二所示)。 In one embodiment, the water meter transmitter 100 can use a communication sequence to set the order in which the water meters 300 are to be polled (ie, read in turn). The communication sequence is the sequence of the second identification codes 320 of the water meters 300 to be read. For example, the sequence of the second identification code 320 recorded in the communication sequence is "1-2-3-4-5-6-7", then the water meter transmitter 100 polls the water meter C-E-G-B-D-F-A in sequence (as shown in Table 2 above) ).

請參閱圖4,其為根據本案一實施例所繪示的選擇性讀表及水表配置位置的示意圖。水表傳訊器100可以設計不同的通訊序列模式(pattern)來選擇性地讀取對應的水表300的水表資料。水表資料包括流量資料、第二水表號碼310及第二識別碼320。 Please refer to FIG. 4 , which is a schematic diagram of selective meter reading and water meter placement according to an embodiment of the present invention. The water meter transmitter 100 can design different communication sequence patterns to selectively read the water meter data of the corresponding water meter 300 . The water meter data includes flow data, a second water meter number 310 and a second identification code 320.

於一實施例中,水表傳訊器110在完成水表300的第二識別碼320的設定後,查找表133中記錄的第一識別碼1334可對應於多個水表300的設置位置。如圖4所示,對應第一識別碼為數值“4”的水表(同時此水表的第二識別碼也為數值“4”)係設置在位置a1。對應第一識別碼為數值“8”的水表(同時此水表的第二識別碼也為數值“8”)係設置在位置a2。對應第一識別碼為數值“12”的水表(同時此水表的第二識別碼也為數值“12”)係設置在位置a3,以此類推。 In one embodiment, after the water meter transmitter 110 completes the setting of the second identification code 320 of the water meter 300, the first identification code 1334 recorded in the lookup table 133 may correspond to the installation locations of multiple water meters 300. As shown in Figure 4, the water meter corresponding to the first identification code having the numerical value "4" (and the second identification code of this water meter also having the numerical value "4") is set at position a1. The water meter corresponding to the first identification code having the numerical value "8" (and the second identification code of this water meter also having the numerical value "8") is set at position a2. The water meter corresponding to the first identification code having the numerical value "12" (and the second identification code of this water meter also having the numerical value "12") is set at position a3, and so on.

於一實施例中,水表傳訊器100可根據通訊序列模式的一數值序列依序地讀取具有與該數值序列相同的第二識別碼230的水表,以選擇性地讀取多個水表中的數個。 In one embodiment, the water meter sensor 100 can sequentially read water meters having the same second identification code 230 as the numerical sequence according to a numerical sequence of the communication sequence mode, so as to selectively read multiple water meters. several.

舉例而言,通訊序列模式以公式(2)表示:通訊序列模式=A×n+B...公式(2) For example, the communication sequence mode is expressed by formula (2): Communication sequence mode = A×n+B. . . Formula (2)

其中,第一參數A與第二參數B為預先設定的自然數,以及變數n為自然數。 Among them, the first parameter A and the second parameter B are preset natural numbers, and the variable n is a natural number.

舉例而言,通訊序列模式可以為4n+1或3n+2等。當處理器120使用的通訊序列模式為4n+1時,數值序列為1-5-9-13,其中變數n為0,1,2及3。第一參數A與第二參數B的數值及變數n的終止值可依情況而作不同設計。 For example, the communication sequence mode can be 4n+1 or 3n+2, etc. When the communication sequence mode used by the processor 120 is 4n+1, the numerical sequence is 1-5-9-13, in which the variable n is 0, 1, 2 and 3. The values of the first parameter A and the second parameter B and the end value of the variable n can be designed differently depending on the situation.

於一實施例中,通訊序列記錄欲讀取的多個水表300之第二識別碼320,通訊序列模式為表示通訊序列的規則或模式。舉例而言,若通訊序列模式為4n+1,則通訊序列例如為1-5-9-13-17-21-25-29。若水表300的總數為32個,則水表傳訊器100可不需讀取所有的水表,而是依據通訊序列的順序來選擇性地讀取部分的水表300,例如以通訊序列1-5-9-13-17-21-25-29來讀取第二識別碼分別為1、5、9、13、17、21、25及29的水表。如此一來,水表傳訊器100可以先跳 過部分水表(例如還不需要結算水費),僅讀取需要其資料的部分水表即可,而可大幅下降讀取水表資料所需的時間。 In one embodiment, the communication sequence records the second identification codes 320 of the plurality of water meters 300 to be read, and the communication sequence pattern is a rule or pattern representing the communication sequence. For example, if the communication sequence mode is 4n+1, the communication sequence is, for example, 1-5-9-13-17-21-25-29. If the total number of water meters 300 is 32, the water meter transmitter 100 does not need to read all water meters, but selectively reads some of the water meters 300 according to the order of the communication sequence, for example, with the communication sequence 1-5-9- 13-17-21-25-29 to read the water meters with the second identification codes 1, 5, 9, 13, 17, 21, 25 and 29 respectively. In this way, the water meter transmitter 100 can jump first Through partial water meters (for example, water bills do not need to be settled yet), only the part of the water meters whose data is needed can be read, and the time required to read the water meter data can be greatly reduced.

如圖4所示,通訊序列710之通訊序列模式為4n+1;通訊序列720之通訊序列模式為4n+2;通訊序列730之通訊序列模式為4n+3;以及通訊序列740之通訊序列模式為4n。其中,變數n可以為自然數0至8。 As shown in Figure 4, the communication sequence mode of communication sequence 710 is 4n+1; the communication sequence mode of communication sequence 720 is 4n+2; the communication sequence mode of communication sequence 730 is 4n+3; and the communication sequence mode of communication sequence 740 is 4n. Among them, the variable n can be a natural number from 0 to 8.

於一實施例中,通訊序列710至740可以分別對應至不同讀取頻率的位置(例如攤位)。舉例而言,位置a1至位置a8被規劃為臨時租客(例如日租)的攤位,且分別被配置了第二識別碼為4、8、12、16、20、24、28、32的水表300,其中位置a1對應至識別碼為4的水表,位置a2對應至識別碼為8的水表,以此類推。本實施例中,通訊序列740基於其通訊序列模式(即,4n)來指示識別碼為4、8、12、16、20、24、28及32的這八個水表300。 In one embodiment, the communication sequences 710 to 740 can respectively correspond to locations (such as booths) with different reading frequencies. For example, locations a1 to a8 are planned as stalls for temporary tenants (such as daily rent), and are respectively configured with water meters with second identification codes of 4, 8, 12, 16, 20, 24, 28, and 32. 300, where position a1 corresponds to the water meter with an identification code of 4, position a2 corresponds to a water meter with an identification code of 8, and so on. In this embodiment, the communication sequence 740 indicates the eight water meters 300 with identification codes 4, 8, 12, 16, 20, 24, 28 and 32 based on their communication sequence pattern (ie, 4n).

於一實施例中,水表傳訊器100根據多個水表的讀取頻率來選擇通訊序列模式,以使用通訊序列模式的通訊序列來讀取多個水表中的數個。 In one embodiment, the water meter transmitter 100 selects a communication sequence mode according to the reading frequencies of multiple water meters, so as to use the communication sequence of the communication sequence mode to read several of the multiple water meters.

舉例而言,設置於位置a1至a8的水表的讀取頻率為每半小時一次。由於臨時租客的用水量需較頻繁地統計,因此可將臨時租客的攤位設置於位置a1至a8。當水表傳訊器100需每半小時讀取臨時租客的攤位的用水量並統計一日的總用水量時,可使用通訊序列740來讀取位置a1至a8的八台水表300。如此一來,水表傳訊器100不需要為了讀取位置a1至a8的八台水表而頻繁地讀取所有水表300的資料(例如位置a1至a8的8台水表以外的其他24台水表的資料並沒有被讀取的需求),藉由選擇性地優先處理所需的水表,可以最大效益化水表傳訊器100的通訊速度,而可快速地計算水費。 For example, the reading frequency of the water meters located at positions a1 to a8 is once every half hour. Since the water consumption of temporary tenants needs to be counted more frequently, the stalls of temporary tenants can be set up at locations a1 to a8. When the water meter sensor 100 needs to read the water consumption of the temporary tenant's stall every half hour and calculate the total water consumption for a day, the communication sequence 740 can be used to read the eight water meters 300 at locations a1 to a8. In this way, the water meter transmitter 100 does not need to frequently read the data of all water meters 300 in order to read the eight water meters at positions a1 to a8 (for example, the data of the other 24 water meters except the 8 water meters at positions a1 to a8 are not required). There is no need to be read), by selectively prioritizing the required water meters, the communication speed of the water meter transmitter 100 can be maximized, and the water bill can be quickly calculated.

於一實施例中,水表傳訊器100依據通訊序列輪詢水表300。水表300於正常運作的情況下,會回傳水表資料至水表傳訊器100。 In one embodiment, the water meter transmitter 100 polls the water meter 300 according to the communication sequence. Under normal operation, the water meter 300 will return water meter data to the water meter transmitter 100.

於一實施例中,若水表傳訊器100於一段時間內沒有收到水表300的回應,則會再次發出請求給未回應的水表300,並記錄為一次的未回應次數。若未回應次數達一累積次數(例如3次),則水表傳訊器100會將未回應的水表300列為異常水表並從通訊序列中移除異常水表的第一識別碼1334。 In one embodiment, if the water meter transmitter 100 does not receive a response from the water meter 300 within a period of time, it will send the request again to the non-responding water meter 300 and record the number of non-responses as one. If the number of unresponsive times reaches a cumulative number (for example, 3 times), the water meter transmitter 100 will classify the unresponsive water meter 300 as an abnormal water meter and remove the first identification code 1334 of the abnormal water meter from the communication sequence.

於一實施例中,水表傳訊器100會備份異常水表的水表資料(例如異常水表自啟用以來的所有流量資料、第二水表號碼310及第二識別碼320)至儲存模組130。 In one embodiment, the water meter transmitter 100 will back up the water meter data of the abnormal water meter (such as all flow data since the abnormal water meter was activated, the second water meter number 310 and the second identification code 320) to the storage module 130.

由於從通訊序列中移除異常水表的第一識別碼1334,水表傳訊器100下次依據通訊序列輪詢水表300時不會讀取到異常水表。據此,水表傳訊器100可避免因讀取異常水表造成的等待時間,並確保水表傳訊器100與其他正常水表的通訊不會受到異常水表的影響,藉以提升水表傳訊器100讀取水表的效能。 Since the first identification code 1334 of the abnormal water meter is removed from the communication sequence, the water meter transmitter 100 will not read the abnormal water meter the next time it polls the water meter 300 according to the communication sequence. Accordingly, the water meter sensor 100 can avoid the waiting time caused by reading abnormal water meters, and ensure that the communication between the water meter sensor 100 and other normal water meters will not be affected by abnormal water meters, thereby improving the performance of the water meter sensor 100 in reading water meters. .

於一實施例中,水表傳訊器100從通訊序列中移除異常水表的第一識別碼1334之後,可於一天後再度嘗試讀取異常水表。若水表傳訊器100得到異常水表的回應,則後續的步驟說明如圖5。 In one embodiment, after the water meter transmitter 100 removes the first identification code 1334 of the abnormal water meter from the communication sequence, it can try to read the abnormal water meter again one day later. If the water meter transmitter 100 receives a response from an abnormal water meter, the subsequent steps are illustrated in Figure 5 .

請參照圖5,其為根據本案一實施例所繪示的偵測到異常水表之處理的流程圖。當已有異常水表被排除於通訊序列之外時,該異常水表可能已經損壞無法繼續使用而需要使用一替換水表進行更換。或者,該異常水表經過維修之後仍可繼續使用。 Please refer to FIG. 5 , which is a flow chart of processing an abnormal water meter detected according to an embodiment of the present case. When an abnormal water meter is excluded from the communication sequence, the abnormal water meter may be damaged and cannot be used anymore and needs to be replaced with a replacement water meter. Alternatively, the abnormal water meter can continue to be used after repair.

於一實施例中,替換水表被設置於異常水表的位置。替換水表可以為全新的水表或者維修後仍可使用的舊水表。若水表傳訊器100得到原先設置於異常水表的位置的水表的回應,則回應的水表可能為替換水表或者維修後的舊水表。 In one embodiment, the replacement water meter is installed at the location of the abnormal water meter. The replacement water meter can be a brand new water meter or an old water meter that can still be used after repair. If the water meter transmitter 100 obtains a response from a water meter originally installed at the location of the abnormal water meter, the responding water meter may be a replacement water meter or an old water meter after repair.

於一實施例中,查找表133已記錄多個正常水表的第一水表號碼1332。欲說明的是,若替換水表為全新的水表,則查表133中沒有替換水表的任何資料(例如第一水表號碼1332及第一識別碼1334)。 In one embodiment, the lookup table 133 has recorded the first water meter numbers 1332 of multiple normal water meters. It should be noted that if the replacement water meter is a brand new water meter, the lookup table 133 does not contain any information about the replacement water meter (such as the first water meter number 1332 and the first identification code 1334).

於步驟S410中,水表傳訊器100發送一修復指令至一替換水表。於一實施例中,中控裝置500連接於水表傳訊器100,並透過人機介面發出修復指令,並透過水表傳訊器100將修復指令發送至所有水表300。替換水表收到修復指令之後會送出自己的第二水表號碼310至水表傳訊號100。此步驟的說明相似於前述步驟S220(步驟S320),於此不再重述。 In step S410, the water meter transmitter 100 sends a repair command to a replacement water meter. In one embodiment, the central control device 500 is connected to the water meter transmitter 100, and sends the repair command through the human-machine interface, and sends the repair command to all water meters 300 through the water meter transmitter 100. After receiving the repair command, the replacement water meter will send its second water meter number 310 to the water meter signal 100. The description of this step is similar to the aforementioned step S220 (step S320) and will not be repeated here.

於步驟S420中,水表傳訊器100更新替換水表的第二水表號碼至查找表133的第一水表號碼。此步驟的說明相似於前述步驟S230(步驟S330),於此不再重述。 In step S420 , the water meter transmitter 100 updates the second water meter number of the replacement water meter to the first water meter number of the lookup table 133 . The description of this step is similar to the aforementioned step S230 (step S330) and will not be repeated here.

於步驟S430,水表傳訊器100排序多個正常水表及替換水表的第一水表號碼1332以得到排序值,並根據排序值分別更新查找表133中多個正常水表及替換水表的第一識別碼1334。此步驟的說明相似於前述步驟S230(步驟S330)及步驟S240(步驟S340),於此不再重述。 In step S430, the water meter transmitter 100 sorts the first water meter numbers 1332 of the multiple normal water meters and the replacement water meters to obtain the sorting values, and updates the first identification codes 1334 of the multiple normal water meters and the replacement water meters in the lookup table 133 respectively according to the sorting values. . The description of this step is similar to the aforementioned step S230 (step S330) and step S240 (step S340), and will not be repeated here.

於一實施例中,水表傳訊器100分別回傳第一識別碼1334至各正常水表及替換水表,使各正常水表及替換水表分別依據第一識別碼1334來更新 各自的第二識別碼320。此步驟的說明相似於前述步驟S250(步驟S350),於此不再重述。 In one embodiment, the water meter transmitter 100 returns the first identification code 1334 to each normal water meter and the replacement water meter respectively, so that each normal water meter and the replacement water meter are updated according to the first identification code 1334. Respective second identification code 320. The description of this step is similar to the aforementioned step S250 (step S350) and will not be repeated here.

於步驟S440,水表傳訊器100判斷是否已更新完所有水表300的第二識別碼320。此步驟的說明相似於前述步驟S360,於此不再重述。 In step S440, the water meter transmitter 100 determines whether the second identification codes 320 of all water meters 300 have been updated. The description of this step is similar to the aforementioned step S360 and will not be repeated here.

於步驟S450,水表傳訊器100判斷查找表133中異常水表的第一水表號碼1332是否不同於替換水表的第一水表號碼1332。 In step S450, the water meter transmitter 100 determines whether the first water meter number 1332 of the abnormal water meter in the lookup table 133 is different from the first water meter number 1332 of the replacement water meter.

於一實施例中,當水表傳訊器100判定某一水表發生異常時,會間隔一段時間(例如一日)之後再次讀取該水表。若異常水表於維修後可恢復正常運作,則不需使用全新的水表。 In one embodiment, when the water meter sensor 100 determines that an abnormality occurs in a certain water meter, it will read the water meter again after a period of time (such as one day). If the abnormal water meter can return to normal operation after repair, there is no need to use a new water meter.

在步驟S450中,若所述替換水表為原本的水表,則替換水表的第一水表號碼1332會相同於異常水表的第一水表號碼1332。此時,處理異常水表的步驟執行至步驟S480。 In step S450, if the replacement water meter is the original water meter, the first water meter number 1332 of the replacement water meter will be the same as the first water meter number 1332 of the abnormal water meter. At this time, the step of processing the abnormal water meter proceeds to step S480.

於步驟S480,水表傳訊器100不將所備份的異常水表的流量資料寫入替換水表。由於替換水表為經過修復後的水表,為原本的水表而具有所有的水表資料,故水表傳訊器100不需要將備份的資料回寫至替換水表中。 In step S480, the water meter transmitter 100 does not write the backed up flow data of the abnormal water meter into the replacement water meter. Since the replacement water meter is a repaired water meter and has all the water meter data as the original water meter, the water meter transmitter 100 does not need to write back the backup data to the replacement water meter.

於一實施例中,若異常水表於維修後仍無法恢復正常運作,則需要新的水表來替換掉異常水表。在步驟S450中,若所述替換水表為新的水表,則替換水表的第一水表號碼1332會不同於異常水表的第一水表號碼1332。此時,處理異常水表的步驟執行至步驟S460。 In one embodiment, if the abnormal water meter still cannot return to normal operation after repair, a new water meter is needed to replace the abnormal water meter. In step S450, if the replacement water meter is a new water meter, the first water meter number 1332 of the replacement water meter will be different from the first water meter number 1332 of the abnormal water meter. At this time, the step of processing the abnormal water meter proceeds to step S460.

於步驟S460,水表傳訊器100使用替換水表的第一識別碼1334連線至替換水表並將所備份的異常水表的流量資料寫入替換水表。於一實施例中,替換水表設置在異常水表的位置以替換異常水表。於前述步驟S430中,替換水表 已更新第一識別碼1334,並且於步驟S460中替換水表從水表傳訊器100接收所備份的異常水表的流量資料,故替換水表可以繼承舊有水表(即異常水表)的資料及設定值,而確保所有水表的資料都具有延續性及替代性。 In step S460, the water meter transmitter 100 uses the first identification code 1334 of the replacement water meter to connect to the replacement water meter and writes the backed up flow data of the abnormal water meter into the replacement water meter. In one embodiment, the replacement water meter is installed at the location of the abnormal water meter to replace the abnormal water meter. In the aforementioned step S430, replace the water meter The first identification code 1334 has been updated, and in step S460, the replacement water meter receives the backup flow data of the abnormal water meter from the water meter transmitter 100, so the replacement water meter can inherit the data and setting values of the old water meter (i.e., the abnormal water meter), and Ensure that all water meter data are consistent and replaceable.

於步驟S470,水表傳訊器100完成所有水表300的設定程序。此步驟的說明相似於前述步驟S370,於此不再重述。 In step S470, the water meter transmitter 100 completes the setting procedures of all water meters 300. The description of this step is similar to the aforementioned step S370 and will not be repeated here.

於一實施例中,水表傳訊器100及水表300之間的傳輸會經過資料加密處理。舉例而言,水表傳訊器100發出任一資料封包之前會先對資料封包進行加密,故水表300收到的資料封包為加密資料,以避免水表300的資料被竄改。另一方面,水表300發出任一資料封包之前也會先對資料封包進行加密處理,避免水表傳訊器100以外的裝置攔截水表300的資料,據以防止水表300的敏感性資料遭到偷竊。加密演算法包括對稱式加密演算法。於另一些實施例中,加密演算法包括十六進制(HEX)碼的加密演算法(例如雜湊)、哈希(Harsh)加密演算法及運用物件導向安全協定(OSCOAP,Object Security of Constrained Application Protocol)的加密演算法。於一實施例中,水表傳訊器100可以對水表300的資料封包進行解密,以及水表300可對水表傳訊器100的資料封包進行解密。據此,本案可以提升水表傳訊器100與水表300之間的資料安全,避免水表300的資料被竄改及敏感性資料遭到偷竊。依循上述的概念,本案提供具有資料的加密格式與加密方法,使得在上述的設定過程中,具有資料安全的保密性,不會被竄改設定。 In one embodiment, the transmission between the water meter transmitter 100 and the water meter 300 will be encrypted. For example, the water meter transmitter 100 will encrypt the data packet before sending any data packet, so the data packet received by the water meter 300 is encrypted data to prevent the data of the water meter 300 from being tampered with. On the other hand, the water meter 300 will also encrypt the data packet before sending any data packet to prevent devices other than the water meter transmitter 100 from intercepting the data of the water meter 300, thereby preventing the sensitive data of the water meter 300 from being stolen. Encryption algorithms include symmetric encryption algorithms. In other embodiments, the encryption algorithm includes a hexadecimal (HEX) code encryption algorithm (such as hashing), a hash (Harsh) encryption algorithm, and the use of Object Security of Constrained Application (OSCOAP). Protocol) encryption algorithm. In one embodiment, the water meter transmitter 100 can decrypt the data packet of the water meter 300, and the water meter 300 can decrypt the data packet of the water meter transmitter 100. Accordingly, this case can improve the data security between the water meter transmitter 100 and the water meter 300, preventing the data of the water meter 300 from being tampered with and sensitive data from being stolen. Following the above concept, this case provides a data encryption format and encryption method, so that during the above setting process, the data is kept confidential and the settings will not be tampered with.

綜上所述,本案的水表傳訊器100及水表管理方法可達成自動化設定水表300的第二識別碼320來提升管理效益,並且藉由設計隨機時間而可保證水表傳訊器100不漏接任何水表300的資料,而不需要再由管理人員後續人工確認未被設定的水表300,故可達成全面性自動化配置水表300的功效。 In summary, the water meter transmitter 100 and the water meter management method of this case can automatically set the second identification code 320 of the water meter 300 to improve management efficiency, and can ensure that the water meter transmitter 100 does not miss any water meter by designing random times. 300's data, there is no need for the manager to manually confirm the unset water meter 300 later, so the effect of comprehensive automatic configuration of the water meter 300 can be achieved.

以上所述僅為本案的具體實例,非因此即侷限本案的申請專利範圍,故舉凡運用本案內容所為的等效變化,均同理皆包含於本案的範圍內,合予陳明。 The above are only specific examples of this case, and do not limit the scope of the patent application in this case. Therefore, all equivalent changes made by applying the content of this case are similarly included in the scope of this case and are hereby stated.

S210~S260:步驟 S210~S260: steps

Claims (21)

一種水表傳訊器,包括: 一通訊模組,經配置以連接於多個水表; 一儲存模組,經配置以儲存一查找表,其中該查找表用以記錄該多個水表的一第一水表號碼及一第一識別碼; 一處理器,耦接該通訊模組及該儲存模組,其中該處理器經配置以: 透過該通訊模組傳送一設定指令至該多個水表,其中各該水表於收到該設定指令後基於一隨機時間分別先後送出各自的一第二水表號碼; 透過該通訊模組接收該第二水表號碼並分別更新至該查找表中的各該水表的該第一水表號碼; 排序該第一水表號碼以得到一排序值並根據該排序值更新該第一識別碼; 透過該通訊模組傳送更新後的該第一識別碼至各該水表,各該水表根據收到的該第一識別碼來更新各該水表的一第二識別碼,使該第二識別碼相同於該第一識別碼;以及 透過該第一識別碼來管理該多個水表。 A water meter transmitter, including: a communication module configured to connect to multiple water meters; A storage module configured to store a lookup table, wherein the lookup table is used to record a first water meter number and a first identification code of the plurality of water meters; A processor coupled to the communication module and the storage module, wherein the processor is configured to: Send a setting command to the plurality of water meters through the communication module, wherein each water meter successively sends its own second water meter number based on a random time after receiving the setting command; Receive the second water meter number through the communication module and update the first water meter number to each water meter in the lookup table respectively; Sort the first water meter number to obtain a sorting value and update the first identification code according to the sorting value; The updated first identification code is sent to each water meter through the communication module, and each water meter updates a second identification code of each water meter based on the received first identification code, so that the second identification code is the same. at the first identification code; and The plurality of water meters are managed through the first identification code. 如請求項1所述之水表傳訊器,其中該隨機時間是分別基於一水表權重值及一時間亂數計算產生。The water meter transmitter of claim 1, wherein the random time is calculated and generated based on a water meter weight value and a time random number respectively. 如請求項1所述之水表傳訊器,其中該處理器經配置以: 於接收該第二水表號碼之前,於該查找表中將各該水表的該第一識別碼設定為一初始值; 於產生該排序值之後,將該查找表中的該第一識別碼從該初始值更新為該排序值;以及 當該查找表中的該第一識別碼等於該初始值的個數小於一門檻值時,判定各該水表的該第二識別碼已全部更新。 The water meter transmitter of claim 1, wherein the processor is configured to: Before receiving the second water meter number, set the first identification code of each water meter in the lookup table to an initial value; After generating the sorting value, updating the first identification code in the lookup table from the initial value to the sorting value; and When the number of the first identification codes in the lookup table equal to the initial value is less than a threshold value, it is determined that all the second identification codes of each water meter have been updated. 如請求項1所述之水表傳訊器,其中該處理器經配置以: 於一第一時間排序該第一水表號碼以得到一第一排序值,並根據該排序值變更該第一識別碼; 當判定該多個水表的該第一識別碼尚未全部更新時,持續接收該多個水表基於該隨機時間所傳送的該第二水表號碼並分別更新該查找表中的該第一水表號碼;以及 於一第二時間排序該第一水表號碼以得到一第二排序值,並根據該第二排序值更新該第一識別碼,其中各該水表的該第一排序值不同於該第二排序值,以及該第二時間於該第一時間之後。 The water meter transmitter of claim 1, wherein the processor is configured to: Sort the first water meter number at a first time to obtain a first sorting value, and change the first identification code according to the sorting value; When it is determined that the first identification codes of the plurality of water meters have not all been updated, continue to receive the second water meter numbers transmitted by the plurality of water meters based on the random time and update the first water meter numbers in the lookup table respectively; and Sorting the first water meter numbers at a second time to obtain a second sorting value, and updating the first identification code according to the second sorting value, wherein the first sorting value of each water meter is different from the second sorting value , and the second time is after the first time. 如請求項1所述之水表傳訊器,其中該處理器經配置以於該多個水表中偵測到一異常水表時,備份該異常水表的一流量資料及該第二水表號碼,其中當該處理器判定未收到該多個水表的回應的次數達一預定次數時,標註未回應的該水表為該異常水表。The water meter sensor as described in claim 1, wherein the processor is configured to back up a flow rate data of the abnormal water meter and the second water meter number when an abnormal water meter is detected among the plurality of water meters, wherein when the abnormal water meter is detected, When the processor determines that the number of responses from the multiple water meters has not been received for a predetermined number of times, it marks the water meter that has not responded as an abnormal water meter. 如請求項5所述之水表傳訊器,其中該多個水表包括多個正常水表及一替換水表,該查找表記錄該多個正常水表的該第一水表號碼,該替換水表設置於該異常水表的位置,並且該處理器經配置以: 發送一修復指令至一替換水表,使該替換水表送出該第二水表號碼,以及記錄該替換水表的該第二水表號碼於該查找表的該第一水表號碼; 排序該多個正常水表及該替換水表的該第一水表號碼以得到該排序值並根據該排序值分別變更該查找表中該多個正常水表及該替換水表的該第一識別碼; 透過該通訊模組傳送該第一識別碼至該多個正常水表及該替換水表,使該多個正常水表及該替換水表根據收到的該第一識別碼來更新該第二識別碼,使該第二識別碼相同於該第一識別碼。 The water meter sensor as described in claim 5, wherein the plurality of water meters include a plurality of normal water meters and a replacement water meter, the lookup table records the first water meter number of the plurality of normal water meters, and the replacement water meter is set on the abnormal water meter. is located, and the processor is configured to: Send a repair command to a replacement water meter, causing the replacement water meter to send the second water meter number, and record the second water meter number of the replacement water meter in the first water meter number of the lookup table; Sorting the first water meter numbers of the multiple normal water meters and the replacement water meter to obtain the sorting value and changing the first identification codes of the multiple normal water meters and the replacement water meter in the lookup table respectively according to the sorting value; The first identification code is sent to the plurality of normal water meters and the replacement water meter through the communication module, so that the plurality of normal water meters and the replacement water meter update the second identification code according to the received first identification code, so that The second identification code is the same as the first identification code. 如請求項6所述之水表傳訊器,其中該處理器經配置以當判定該查找表中的該替換水表的該第一水表號碼不同於該異常水表的該第一水表號碼時,使用該替換水表的該第一識別碼連線至該替換水表並將該異常水表的該流量資料寫入該替換水表。The water meter transmitter of claim 6, wherein the processor is configured to use the replacement when it is determined that the first water meter number of the replacement water meter in the lookup table is different from the first water meter number of the abnormal water meter. The first identification code of the water meter is connected to the replacement water meter and the flow data of the abnormal water meter is written into the replacement water meter. 如請求項1所述之水表傳訊器,其中該處理器經配置以根據該第一水表號碼的大小排序該第一水表號碼。The water meter transmitter of claim 1, wherein the processor is configured to sort the first water meter numbers according to the size of the first water meter numbers. 如請求項1所述之水表傳訊器,其中該第一識別碼對應於該多個水表的設置位置,並且該處理器經配置以: 根據一通訊序列模式的一通訊序列依序地讀取具有與該通訊序列相同的該第二識別碼之該多個水表,以選擇性地讀取該多個水表中的數個。 The water meter transmitter of claim 1, wherein the first identification code corresponds to the installation locations of the plurality of water meters, and the processor is configured to: The plurality of water meters having the same second identification code as the communication sequence are sequentially read according to a communication sequence of a communication sequence mode, so as to selectively read several of the plurality of water meters. 如請求項9所述之水表傳訊器,其中該處理器經配置以根據該多個水表的一讀取頻率選擇該通訊序列模式以使用該通訊序列模式的該通訊序列來讀取該多個水表中的數個。The water meter transmitter of claim 9, wherein the processor is configured to select the communication sequence mode according to a reading frequency of the plurality of water meters to use the communication sequence of the communication sequence mode to read the plurality of water meters. of several. 一種水表管理方法,應用於一水表傳訊器,該方法包括: 透過該水表傳訊器連接於該多個水表,其中該水表傳訊器儲存一查找表,該查找表用以記錄該多個水表的一第一水表號碼及一第一識別碼; 傳送一設定指令至多個水表,使各該水表於收到該設定指令後基於一隨機時間分別先後送出各自的一第二水表號碼; 接收該第二水表號碼並分別記錄於該查找表中的各該水表的該第一水表號碼; 排序該第一水表號碼以得到一排序值並根據該排序值更新該第一識別碼; 透過該通訊模組傳送更新後的該第一識別碼至各該水表,各該水表根據收到的該第一識別碼來更新各該水表的一第二識別碼,使該第二識別碼相同於該第一識別碼;以及 透過該第一識別碼來管理該多個水表。 A water meter management method, applied to a water meter transmitter, the method includes: Connected to the plurality of water meters through the water meter transmitter, wherein the water meter transmitter stores a lookup table for recording a first water meter number and a first identification code of the plurality of water meters; Send a setting command to a plurality of water meters, so that each water meter successively sends a second water meter number based on a random time after receiving the setting command; Receive the second water meter number and record the first water meter number of each water meter in the lookup table; Sort the first water meter number to obtain a sorting value and update the first identification code according to the sorting value; The updated first identification code is sent to each water meter through the communication module, and each water meter updates a second identification code of each water meter based on the received first identification code, so that the second identification code is the same. at the first identification code; and The plurality of water meters are managed through the first identification code. 如請求項11所述之水表管理方法,其中該隨時機間是分別基於一水表權重值及一時間亂數計算產生。The water meter management method as claimed in claim 11, wherein the time-varying time is calculated based on a water meter weight value and a time random number respectively. 如請求項11所述之水表管理方法,更包括: 於接收該第二水表號碼之前,將該查找表中各該水表的該第一識別碼設定為一初始值; 於產生該排序值之後,將該查找表中的該第一識別碼從該初始值更新為該排序值;以及 當該查找表中的該第一識別碼等於該初始值的個數小於一門檻值時,判定各該水表的該第二識別碼已全部更新。 The water meter management method described in request item 11 further includes: Before receiving the second water meter number, set the first identification code of each water meter in the lookup table to an initial value; After generating the sorting value, updating the first identification code in the lookup table from the initial value to the sorting value; and When the number of the first identification codes in the lookup table equal to the initial value is less than a threshold value, it is determined that all the second identification codes of each water meter have been updated. 如請求項11所述之水表管理方法,更包括: 於一第一時間排序該第一水表號碼以得到一第一排序值,並根據該排序值變更該第一識別碼; 當判定該多個水表的該第一識別碼尚未全部更新時,持續接收該多個水表基於該隨機時間所傳送的該第二水表號碼並分別記錄於該查找表中的該第一水表號碼;以及 於一第二時間排序該第一水表號碼以得到一第二排序值,並根據該第二排序值更新該第一識別碼,其中各該水表的該第一排序值不同於該第二排序值,以及該第二時間於該第一時間之後。 The water meter management method described in request item 11 further includes: Sort the first water meter number at a first time to obtain a first sorting value, and change the first identification code according to the sorting value; When it is determined that the first identification codes of the plurality of water meters have not all been updated, continue to receive the second water meter numbers transmitted by the plurality of water meters based on the random time and record the first water meter numbers in the lookup table respectively; as well as Sorting the first water meter numbers at a second time to obtain a second sorting value, and updating the first identification code according to the second sorting value, wherein the first sorting value of each water meter is different from the second sorting value , and the second time is after the first time. 如請求項11所述之水表管理方法,更包括: 當偵測到該多個水表中的一異常水表時,備份該異常水表的一流量資料及該第二水表號碼,其中當該水表傳訊器未收到該水表傳訊器的回應的次數達一預定次數時,標註未回應的該水表為該異常水表。 The water meter management method described in request item 11 further includes: When an abnormal water meter among the plurality of water meters is detected, a flow data of the abnormal water meter and the second water meter number are backed up, wherein the water meter sensor does not receive a response from the water meter sensor for a predetermined number of times. times, the water meter that has not responded is marked as an abnormal water meter. 如請求項15所述之水表管理方法,更包括: 設置一替換水表至該異常水表的位置,其中該查找表記錄多個正常水表的該第一水表號碼; 發送一修復指令至一替換水表,使該替換水表送出該第二水表號碼; 記錄該替換水表的該第二水表號碼於該查找表的該第一水表號碼; 排序該多個正常水表及該替換水表的該第一水表號碼以得到該排序值並根據該排序值分別變更該查找表中該多個正常水表及該替換水表的該第一識別碼; 傳送該第一識別碼至該多個正常水表及該替換水表,使該多個正常水表及該替換水表根據收到的該第一識別碼來更新該第二識別碼,使該第二識別碼相同於該第一識別碼。 The water meter management method described in claim 15 further includes: Set a replacement water meter to the location of the abnormal water meter, wherein the lookup table records the first water meter number of multiple normal water meters; Send a repair command to a replacement water meter to cause the replacement water meter to send the second water meter number; record the second water meter number of the replacement water meter in the first water meter number of the lookup table; Sorting the first water meter numbers of the multiple normal water meters and the replacement water meter to obtain the sorting value and changing the first identification codes of the multiple normal water meters and the replacement water meter in the lookup table respectively according to the sorting value; Send the first identification code to the plurality of normal water meters and the replacement water meter, so that the plurality of normal water meters and the replacement water meter update the second identification code according to the received first identification code, so that the second identification code Same as the first identification code. 如請求項16所述之水表管理方法,更包括: 當該查找表中的該替換水表的該第一水表號碼不同於該異常水表的該第一水表號碼時,使用該替換水表的該第一識別碼連線至該替換水表並將該異常水表的該流量資料寫入該替換水表。 The water meter management method as described in request item 16 further includes: When the first water meter number of the replacement water meter in the lookup table is different from the first water meter number of the abnormal water meter, the first identification code of the replacement water meter is used to connect to the replacement water meter and the abnormal water meter is connected to the first water meter number of the abnormal water meter. The flow data is written to the replacement water meter. 如請求項11所述之水表管理方法,其中排序該水表號碼的步驟更包括: 根據該第一水表號碼的大小排序該第一水表號碼。 The water meter management method as described in claim 11, wherein the step of sorting the water meter numbers further includes: The first water meter numbers are sorted according to the size of the first water meter numbers. 如請求項11所述之水表管理方法,其中該水表傳訊器與該多個水表間的資料交換使用一加密演算法,該加密演算法包括十六進制(HEX)碼的加密演算法、哈希(Harsh)加密演算法及運用物件導向安全協定(OSCOAP)的加密演算法。The water meter management method as described in claim 11, wherein the data exchange between the water meter transmitter and the plurality of water meters uses an encryption algorithm, and the encryption algorithm includes a hexadecimal (HEX) code encryption algorithm, hash code Harsh encryption algorithm and encryption algorithm using Object Oriented Security Protocol (OSCOAP). 如請求項11所述之水表管理方法,其中該第一識別碼對應於該多個水表的設置位置,完成該識別碼的設定的步驟之後包括: 根據一通訊序列模式的一通訊序列依序地讀取具有與該通訊序列相同的該第二識別碼之該多個水表,以選擇性地讀取該多個水表中的數個。 The water meter management method as claimed in claim 11, wherein the first identification code corresponds to the installation locations of the plurality of water meters. After completing the step of setting the identification code, the step includes: The plurality of water meters having the same second identification code as the communication sequence are sequentially read according to a communication sequence of a communication sequence mode, so as to selectively read several of the plurality of water meters. 如請求項20所述之水表管理方法,更包括: 根據該多個水表的一讀取頻率選擇該通訊序列模式以使用該通訊序列模式的該通訊序列來讀取該多個水表中的數個。 The water meter management method described in claim 20 further includes: The communication sequence mode is selected according to a reading frequency of the plurality of water meters to read several of the plurality of water meters using the communication sequence of the communication sequence mode.
TW111145601A 2022-11-29 2022-11-29 Water flow transmitter and management method for flowmeters TWI831489B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
TW111145601A TWI831489B (en) 2022-11-29 2022-11-29 Water flow transmitter and management method for flowmeters
CN202310592575.6A CN118118816A (en) 2022-11-29 2023-05-24 Water meter signaling device and water meter management method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW111145601A TWI831489B (en) 2022-11-29 2022-11-29 Water flow transmitter and management method for flowmeters

Publications (2)

Publication Number Publication Date
TWI831489B true TWI831489B (en) 2024-02-01
TW202422014A TW202422014A (en) 2024-06-01

Family

ID=90824632

Family Applications (1)

Application Number Title Priority Date Filing Date
TW111145601A TWI831489B (en) 2022-11-29 2022-11-29 Water flow transmitter and management method for flowmeters

Country Status (2)

Country Link
CN (1) CN118118816A (en)
TW (1) TWI831489B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101055619A (en) * 2007-05-11 2007-10-17 刘军海 Image identification method and device for mechanical instrument window display figure
US20170085555A1 (en) * 2015-07-14 2017-03-23 Fmr Llc Point-to-Point Transaction Guidance Apparatuses, Methods and Systems
US9799204B2 (en) * 2009-05-22 2017-10-24 Mueller International, Llc Infrastructure monitoring system and method and particularly as related to fire hydrants and water distribution
CN110411538A (en) * 2019-07-22 2019-11-05 湖南省计量检测研究院 The intelligent measurement data monitoring method and system of a kind of water meter, gas meter, flow meter

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101055619A (en) * 2007-05-11 2007-10-17 刘军海 Image identification method and device for mechanical instrument window display figure
US9799204B2 (en) * 2009-05-22 2017-10-24 Mueller International, Llc Infrastructure monitoring system and method and particularly as related to fire hydrants and water distribution
US20170085555A1 (en) * 2015-07-14 2017-03-23 Fmr Llc Point-to-Point Transaction Guidance Apparatuses, Methods and Systems
CN110411538A (en) * 2019-07-22 2019-11-05 湖南省计量检测研究院 The intelligent measurement data monitoring method and system of a kind of water meter, gas meter, flow meter

Also Published As

Publication number Publication date
CN118118816A (en) 2024-05-31

Similar Documents

Publication Publication Date Title
JP4860120B2 (en) Field device replacement method, field device configuration method, process control device, and removable storage device
US7720940B1 (en) Managing a network element using a template configuration
CN103149899B (en) Grain bin intelligent sensor integration terminal
EP1906328B1 (en) Conditional download of data from embedded historians
CN109767509A (en) A kind of equipment operation management method, apparatus, readable medium and electronic equipment
WO2022132221A1 (en) Storage system with encrypted data storage device telemetry data
CN102609466A (en) Method and system for controlling shared memory
TWI831489B (en) Water flow transmitter and management method for flowmeters
CN109726091A (en) A kind of blog management method and relevant apparatus
WO2017016259A1 (en) Counting method and apparatus for service attribute, and computer storage medium
CN112714010B (en) Network topology management method and device, expansion unit and storage medium
CN105428272B (en) The method and device of semiconductor equipment alert process
CN112291239B (en) Network physical model facing SCADA system and intrusion detection method thereof
US20140143453A1 (en) Bulk discovery
CN106708445B (en) Link selecting method and device
CN102122262A (en) Monitoring system and monitoring method for solid-state memory equipment
CN111988442A (en) IP resource management method, device, equipment and storage medium
JP2011018260A (en) Production information collection device and method
CN106506074B (en) A kind of method and apparatus detecting optical port state
US20140029467A1 (en) Zoning record update
WO2016188500A1 (en) Service cutover method, apparatus and device
CN201828906U (en) Memory protection device
US8788651B1 (en) Multi-stage value retrieval and multi-rate value retrieval
WO2007101972A1 (en) An apparatus, method and computer program product for generating trace data
CN114048156B (en) Multi-channel multi-mapping interrupt controller