Wireless meter reading method, metering instrument, meter reading equipment and medium

By encrypting the instrument identification of the meter, generating the random secret text of the identification, selecting a random communication channel and binding it, the signal interference and data conflict caused by the shared channels of multiple metering instruments is solved, and a low-cost and efficient meter reading process is realized.

CN120547451APending Publication Date: 2025-08-26CLOU GLOBAL TECH CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202510638347.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-16
Publication Date
2025-08-26

AI Technical Summary

Technical Problem

In an intelligent metrology system, when multiple metrology instruments share one communication channel for meter reading, signal interference and data conflicts are prone to occur, resulting in increased costs and inefficiency.

Method used

By encrypting the instrument identification of each meter, a random identification random secret text is generated, and the communication channel is selected using the random identification random secret text, and binding it to the meter reading device to realize the dynamic allocation of the communication channel, ensuring that the instrument identification of adjacent meter instruments is similar but the communication channel has significant differences.

Benefits of technology

It effectively avoids too small channel spacing of adjacent metering instruments, reduces signal interference and data conflicts, reduces costs from production to installation and improves efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120547451A_ABST
    Figure CN120547451A_ABST
Patent Text Reader

Abstract

The invention discloses a wireless meter reading method, a metering instrument, meter reading equipment and a medium, a plurality of communication channels are established between the metering instrument and the meter reading equipment, and the wireless meter reading method comprises the following steps: acquiring an instrument identifier of the metering instrument; the method comprises the following steps: firstly, using a first encryption algorithm to encrypt an instrument identifier to obtain an identifier random ciphertext, then determining a target communication channel from a plurality of communication channels according to the identifier random ciphertext, and sending the instrument identifier to meter reading equipment through the target communication channel, so that the meter reading equipment binds the target communication channel with the instrument identifier. And performing meter reading data transmission with the metering instrument through the target communication channel. According to the embodiment of the invention, the signal interference of the metering instrument in the meter reading process can be effectively reduced, so that the cost is reduced and the efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of meter reading, and in particular to a wireless meter reading method, a metering instrument, a meter reading device and a medium. Background Art

[0002] In the current smart metering system, wireless communication is used between water meters, electricity meters, gas meters and other metering instruments in each household and the meter reading equipment to achieve automatic data collection. Since multiple metering instruments are centrally deployed, the distances between multiple metering instruments are close, and multiple metering instruments share a communication channel for communication and transmission with the meter reading equipment. If the meter reading and data are transmitted at the same time, there will be signal interference. Therefore, it is necessary to plan the installation location for each metering instrument according to the communication channel of each metering instrument to ensure that the metering instruments with the same communication channel are physically separated to avoid signal interference and data conflicts. However, this method will lead to increased costs and low efficiency in multiple links from product production to installation. Summary of the Invention

[0003] The present invention aims to solve at least one of the technical problems existing in the prior art and to provide a wireless meter reading method, a metering instrument, a meter reading device and a medium, which can effectively reduce the signal interference of the metering instrument during the meter reading process, thereby reducing costs and improving efficiency.

[0004] In a first aspect, an embodiment of the present invention provides a wireless meter reading method, which is applied to a meter, wherein the meter establishes multiple communication channels with a meter reading device, and the method includes: Obtaining an instrument identification of the measuring instrument; Encrypting the instrument identification using a first encryption algorithm to obtain a random ciphertext of the identification; determining a target communication channel from the plurality of communication channels according to the identification random ciphertext; The meter identification is sent to the meter reading device through the target communication channel, so that the meter reading device binds the target communication channel with the meter identification and performs meter reading data transmission with the meter through the target communication channel.

[0005] A wireless meter reading method provided by an embodiment of the present invention has at least the following beneficial effects: a unique meter identification set at the factory for each meter is encrypted using a first encryption algorithm to obtain a random identification ciphertext; a communication channel is then selected using the random identification ciphertext as the target communication channel for the meter with the random identification ciphertext; the meter then uses the target communication channel to send its own meter identification to a meter reading device and transmit meter reading data, thereby achieving dynamic allocation of communication channels. Randomness is introduced into the allocation process, and the random allocation of communication channels ensures that the meter identifications of adjacent meters are similar and that the allocated communication channels have significant differences, thereby effectively avoiding excessively small channel spacing between adjacent meters and reducing conflict interference, thereby reducing costs and improving efficiency from production to installation.

[0006] The wireless meter reading method provided by an embodiment of the present invention, wherein determining a target communication channel from a plurality of communication channels according to the identification random ciphertext, includes: Dividing the identification random ciphertext by the number of channels of the communication channels to obtain a remainder result, wherein each communication channel corresponds to a channel identifier; determining a target channel identifier from the plurality of channel identifiers according to the residual value result; A target communication channel is determined according to the target channel identifier.

[0007] In the wireless meter reading method provided by an embodiment of the present invention, the step of dividing the identification random ciphertext by the number of communication channels to obtain a remainder result includes: Performing a secondary random calculation on the identification random ciphertext to obtain a secondary random result; The secondary random result is divided by the number of channels of the communication channel to obtain a residual result.

[0008] The wireless meter reading method provided by an embodiment of the present invention, wherein performing a secondary random calculation on the identification random ciphertext to obtain a secondary random result includes: Determining a target number of bits according to the number of channels of the communication channel; Starting from the least significant bit of the identification random ciphertext, continuously extracting the target number of bits of the identification random ciphertext to obtain a ciphertext extraction result; The values ​​of all bytes in the ciphertext extraction result are cumulatively calculated to obtain a secondary random result.

[0009] The wireless meter reading method provided by an embodiment of the present invention, wherein performing a secondary random calculation on the identification random ciphertext to obtain a secondary random result includes: Obtaining preset target identification data; According to the byte value of each digit in the identification random ciphertext, the identification random ciphertext is XORed using the target identification data to obtain a secondary random result.

[0010] The wireless meter reading method provided by an embodiment of the present invention, wherein determining a target channel identifier from a plurality of channel identifiers according to the residual value result, includes: The channel identifier that matches the residual value result among the multiple channel identifiers is determined as the target channel identifier.

[0011] The wireless meter reading method provided by an embodiment of the present invention, wherein determining a target channel identifier from a plurality of channel identifiers according to the residual value result, includes: Obtaining the geographic coordinates of the meter and converting the geographic coordinates to obtain a geographic hash identifier; Determining the channel identifier that matches the residual value result among the multiple channel identifiers as an intermediate channel identifier; The intermediate channel identifier is offset according to the geo-hash identifier to obtain a target channel identifier.

[0012] The wireless meter reading method provided by an embodiment of the present invention, wherein the meter identification is encrypted using a first encryption algorithm to obtain a random ciphertext of the identification, includes: Obtaining the geographic coordinates of the meter, and performing coordinate conversion on the geographic coordinates to obtain a geographic hash identifier; Concatenating the instrument identifier and the geohash identifier to obtain a concatenated identifier; The splicing identifier is encrypted using a first encryption algorithm to obtain a random ciphertext of the identifier.

[0013] The wireless meter reading method provided by an embodiment of the present invention, wherein the meter identification is encrypted using a first encryption algorithm to obtain a random ciphertext of the identification, includes: Dividing the instrument identification into blocks to obtain multiple identification data blocks; Encrypting the identification data block using the first encryption algorithm to obtain a plurality of encrypted data blocks; The plurality of encrypted data blocks are concatenated to obtain an identification random ciphertext.

[0014] In a second aspect, an embodiment of the present invention provides a wireless meter reading method, which is applied to a meter reading device, wherein the meter reading device establishes multiple communication channels with multiple meters, respectively. The method includes: Obtaining an instrument identification of the measuring instrument; Encrypting the instrument identification using a first encryption algorithm to obtain a random ciphertext of the identification; determining a target communication channel from the plurality of communication channels according to the identification random ciphertext; The target communication channel is bound to the meter identifier, and meter reading data is transmitted with the meter through the target communication channel.

[0015] A wireless meter reading method provided by an embodiment of the present invention has at least the following beneficial effects: a unique meter identification set at the factory for each meter is encrypted using a first encryption algorithm to obtain a random identification ciphertext; a communication channel is then selected using the random identification ciphertext as the target communication channel for the meter corresponding to the random identification ciphertext; the corresponding meter identification and the target communication channel are then bound together, so that the meter reading device can transmit meter reading data using the target communication channel and the meter corresponding to the meter identification, thereby achieving dynamic allocation of communication channels and introducing randomness in the allocation process. By randomly allocating communication channels, it is ensured that the meter identifications of adjacent meters are similar and that the allocated communication channels have significant differences, thereby effectively avoiding excessively small channel spacing between adjacent meters and reducing conflict interference, thereby reducing costs and improving efficiency from production to installation.

[0016] In a third aspect, an embodiment of the present invention provides a meter, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the wireless meter reading method as described in any one of the embodiments of the first aspect above.

[0017] A metering meter provided according to an embodiment of the present invention has at least the following beneficial effects: a unique meter identification set at the factory for each metering meter is encrypted using a first encryption algorithm to obtain a random identification ciphertext; a communication channel is then selected using the random identification ciphertext as the target communication channel for the metering meter with the random identification ciphertext; the metering meter then uses the target communication channel to send its own meter identification to a meter reading device and transmit meter reading data, thereby achieving dynamic allocation of communication channels and introducing randomness during the allocation process. By randomly allocating communication channels, it is ensured that the meter identifications of adjacent metering meters are similar and that the allocated communication channels have significant differences, thereby effectively avoiding excessively small channel spacing between adjacent metering meters and reducing conflict interference, thereby reducing costs and improving efficiency during the production and installation process.

[0018] In a fourth aspect, an embodiment of the present invention provides a meter reading system, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the wireless meter reading method as described in any one of the embodiments of the second aspect above.

[0019] A meter reading system provided by an embodiment of the present invention has at least the following beneficial effects: a unique meter identification set at the factory for each meter is encrypted by a first encryption algorithm to obtain a random identification ciphertext; a communication channel is then selected using the random identification ciphertext as the target communication channel for the meter corresponding to the random identification ciphertext; the corresponding meter identification and the target communication channel are then bound together, so that the meter reading device can transmit meter reading data using the target communication channel and the meter corresponding to the meter identification, thereby achieving dynamic allocation of communication channels and introducing randomness in the allocation process. By randomly allocating communication channels, it is ensured that the meter identifications of adjacent metering meters are similar and that the allocated communication channels have significant differences, thereby effectively avoiding excessively small channel spacing between adjacent metering meters and reducing conflict interference, thereby reducing costs and improving efficiency from production to installation.

[0020] In a fifth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the wireless meter reading method described in any embodiment of the first aspect or the wireless meter reading method described in any embodiment of the second aspect.

[0021] A computer-readable storage medium provided according to an embodiment of the present invention has at least the following beneficial effects: the unique meter identification set at the factory for each meter is encrypted by a first encryption algorithm to obtain a random identification ciphertext, and then a communication channel is selected using the random identification ciphertext as the target communication channel for the meter with the random identification ciphertext. Then, the corresponding meter identification and the target communication channel can be bound, so that the meter reading device and the meter with the meter identification can use the target communication channel to transmit meter reading data, thereby realizing dynamic allocation of communication channels, and introducing randomness in the allocation process. By randomly allocating communication channels, it can be ensured that the meter identifications of adjacent metering meters are similar, and the allocated communication channels also have significant differences, thereby effectively avoiding that the channel spacing between adjacent metering meters is too small, reducing conflict interference, and thus reducing costs and improving efficiency in the process from production to installation.

[0022] Other features and advantages of the present invention will be described in the following description, and in part will become apparent from the description, or will be understood by practicing the present invention. The purposes and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The accompanying drawings are used to provide a further understanding of the technical solution of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the technical solution of the present invention and do not constitute a limitation to the technical solution of the present invention.

[0024] The present invention will be further described below with reference to the accompanying drawings and embodiments; Figure 1 1 is a schematic diagram of the system structure of the meter reading system provided by an embodiment of the present invention; Figure 2 is a flow chart of a wireless meter reading method provided by an embodiment of the present invention; Figure 3 is a schematic diagram of a process for determining a target communication channel provided by an embodiment of the present invention; Figure 4 Schematic diagram of communication channel allocation for a meter provided by an embodiment of the present invention; Figure 5 1 is a schematic diagram of a process for calculating a secondary random result provided by an embodiment of the present invention; Figure 6 is a schematic diagram of a flow chart for calculating a secondary random result provided by another embodiment of the present invention; Figure 7 is a schematic diagram of allocating communication channels for a meter provided by another embodiment of the present invention; Figure 8 is a schematic diagram of a flow chart for calculating a secondary random result provided by another embodiment of the present invention; Figure 9 1 is a schematic diagram of a process for determining a target channel identifier according to an embodiment of the present invention; Figure 10 is a schematic diagram of a process for determining a target channel identifier provided by another embodiment of the present invention; Figure 11 is a schematic diagram of allocating communication channels for a meter provided by another embodiment of the present invention; Figure 12 1 is a schematic diagram of a flow chart of calculating a random ciphertext identifier according to an embodiment of the present invention; Figure 13 is a schematic diagram of allocating communication channels for a meter provided by another embodiment of the present invention; Figure 14 1 is a schematic diagram of a flow chart of calculating an identifier random ciphertext according to another embodiment of the present invention; Figure 15 Schematic diagram of the effect of communication channel allocation provided by an embodiment of the present invention; Figure 16 This is a flow chart of a wireless meter reading method applied to a meter reading device provided by an embodiment of the present invention; Figure 17 is a schematic structural diagram of a measuring instrument provided by an embodiment of the present invention; Figure 18 It is a structural diagram of a meter reading device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0025] This section will describe in detail the specific embodiments of the present invention. The preferred embodiments of the present invention are shown in the accompanying drawings. The purpose of the accompanying drawings is to supplement the description of the text part of the specification with graphics, so that people can intuitively and vividly understand each technical feature and the overall technical solution of the present invention, but it should not be understood as a limitation on the scope of protection of the present invention.

[0026] In the description of the present invention, if there is a description of first and second, it is only for the purpose of distinguishing the technical features, and cannot be understood as indicating or implying the relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.

[0027] In the description of the present invention, unless otherwise clearly defined, terms such as setting, installing, and connecting should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in the present invention based on the specific content of the technical solution.

[0028] In current smart metering systems, wireless communication is used to automatically collect data from household water, electricity, and gas meters and meter-reading equipment. Multiple communication channels are established between the meters and the meter-reading equipment, but the number of channels is smaller than the number of meters. Each meter cannot independently occupy a communication channel to transmit data to the meter-reading equipment. Therefore, multiple meters must share a single communication channel to transmit data. However, because multiple meters are often centrally deployed, they are often closely spaced and share a single communication channel. If meters using the same communication channel simultaneously transmit data, signal interference can occur. Therefore, each meter's installation location must be planned based on its communication channel to ensure that meters sharing the same channel are physically separated to avoid signal interference and data conflicts. However, this approach increases costs and inefficiencies at multiple stages of the product production and installation process.

[0029] Based on this, embodiments of the present invention provide a wireless meter reading method, operation control device, system, and medium, which can effectively reduce signal interference of metering instruments during the meter reading process, thereby reducing costs and improving efficiency.

[0030] The embodiments of the present invention are further described below with reference to the accompanying drawings.

[0031] Reference Figure 1 , Figure 11 is a schematic diagram of the system structure of the meter reading system provided by an embodiment of the present invention. It is understood that the meter reading system may include at least one meter 1700 and at least one meter reading device 1800. The meter 1700 and the meter reading device 1800 may communicate with each other via wireless communication, for example, via SuB-GHz radio frequency, i.e., transmitting electromagnetic waves with a frequency below 1 GHz into space for wireless communication. By dividing the radio frequency band into multiple communication channels, each meter 1700 transmits data to the meter reading device 1800 using a corresponding communication channel, such as Figure 1 As shown, meter X uses communication channel X to transmit data to meter reading device 1800, meter Y uses communication channel Y to transmit data to meter reading device 1800, and meter Z uses communication channel Z to transmit data to meter reading device 1800.

[0032] Among them, since the metering meters 1700 are usually deployed in a concentrated manner and are relatively close to each other, when the metering meter 1700 transmits meter reading data to the meter reading device 1800, multiple metering meters 1700 emit electromagnetic waves of the same frequency within the radio frequency communication reception range of the meter reading device 1800, which will interfere with each other and make it difficult for the meter reading device 1800 to correctly demodulate the data sent by the metering meter 1700. That is, when the metering meters 1700 using the same communication channel are relatively close, interference problems will occur. This is equivalent to if metering meter X, metering meter Y, and metering meter Z are not only physically adjacent, but also use adjacent or the same communication channels X, Y, and Z. Then, when metering meter X, metering meter Y, and metering meter Z send meter reading data to the meter reading device 1800 at the same time, signal interference or conflict will occur.

[0033] In the related art, the radio frequency band range is divided into multiple communication channels, and a communication channel is set for each meter 1700 when leaving the factory. The meter reading device 1800 also sets a corresponding communication channel, and the communication channel is bound to the meter 1700. This requires the meter reading device 1800 and the meter 1700 to be used in conjunction with each other, which brings complexity to equipment testing and management. At the same time, the meter reading device 1800 cannot be flexibly adapted to the meter 1700. Therefore, when installing the meter 1700, it is necessary to plan the installation position of each meter 1700 according to the communication channel of each meter 1700 to ensure that the physical distance between the meter 1700 using the same communication channel is sufficient. In addition, in some cases, it is impossible to know the instrument identification of the metering meter 1700 installed on site, which makes it impossible to plan the installation location of each metering meter 1700. At the same time, after determining the target communication channel, the meter reading device 1800 and the metering meter 1700 need to perform a binding operation, that is, when the metering meter 1700 wants to send data to the meter reading device 1800, it knows which communication channel to send it on, and the meter reading device 1800 also knows which communication channel to receive it on. Therefore, the communication channel of the metering meter 1700 cannot be completely random.

[0034] Therefore, how to reduce the signal interference and data conflict between the meter 1700 and the meter reading device 1800 during the meter reading process at low cost and high efficiency becomes an urgent problem to be solved.

[0035] It will be understood by those skilled in the art that Figure 1 The structure of the meter reading system shown in the figure does not constitute a limitation on the embodiments of the present invention, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0036] Reference Figure 2 , Figure 2 This is a flow chart of a wireless meter reading method provided by an embodiment of the present invention. The wireless meter reading method can be applied to Figure 1 The meter reading system shown in FIG1 includes a meter 1700, and the wireless meter reading method includes but is not limited to the following steps: Step S100: Obtaining the meter identification of the measuring instrument; Step S200: Encrypt the instrument identification using a first encryption algorithm to obtain a random ciphertext of the identification; Step S300: determining a target communication channel from multiple communication channels according to the identification random ciphertext; Step S400: sending the meter identification to the meter reading device via the target communication channel.

[0037] Among them, the instrument identification can refer to a unique identifier used to uniquely identify each measuring instrument. The instrument identification can include a unique hardware serial number preset when the measuring instrument leaves the factory, or a unique identifier generated by software or hardware (such as a MAC address, etc.), or a manufacturer code (such as manufacturer code, production batch, etc.).

[0038] The first encryption algorithm may be a deterministic random algorithm, and the output result of the first encryption algorithm is pseudo-random. When the first encryption algorithm encrypts the same input data, the output result is the same, and when the first encryption algorithm encrypts consecutive input data, the output result is random. The first encryption algorithm may be a symmetric encryption algorithm. For example, the first encryption algorithm may be the Advanced Encryption Standard (AES), which uses a 128-bit key length, and both communicating parties use the same key to encrypt and decrypt data. In addition, the first encryption algorithm may also be a combination of the AES encryption algorithm and the authenticated encryption mode, namely, AES-CCM. The first encryption algorithm is not limited to the AES encryption algorithm and may also use other encryption methods, which are not specifically limited in the embodiments of the present invention. It is worth noting that if communication channels are allocated based on a hash value or simple modular operation of an instrument identifier (such as a serial number), adjacent meter identifiers may be allocated to adjacent or the same communication channel. In addition, meters installed in the same batch usually have adjacent meter identifiers. Therefore, when the same batch of meters is installed, it is easy for adjacent meter identifiers to use adjacent or the same communication channel to simultaneously send meter reading data to the meter reading device. For example, the same batch of meters includes meter A and meter B. The meter identifier of meter A is 0x0001, and the meter identifier of meter B is 0x0002. There are 61 communication channels established between the meter and the meter reading device. According to the modular operation, the communication channel allocated to meter A is 1, and the communication channel allocated to meter B is 2. Meters A and B in the same batch are likely to be installed in adjacent physical locations. In this case, communication channel 1 and communication channel 2 may interfere with each other due to frequency band overlap. Therefore, the output of the first encryption algorithm is pseudo-random, and the output results of adjacent instrument identifications after encryption are extremely different, thereby achieving the randomness of the instrument identification, and then in the allocation of communication channels, ensuring that the mapping relationship between the instrument identification and the communication channel is random. For example, the random ciphertext of the identification after encrypting the instrument identification 0x001 of meter A using the first encryption algorithm is 0xABCD, and the random ciphertext of the identification after encrypting the instrument identification 0x002 of meter B using the first encryption algorithm is 0x1234. According to the same modular operation method, the communication channel allocated to meter A is 42, and the communication channel allocated to meter B is 17. Even if meter A and meter B are installed in adjacent physical locations, the interval between their communication channels is large enough to effectively avoid interference.

[0039] Among them, the identification random ciphertext can refer to the output result of the instrument identification after being processed by the first encryption algorithm. The identification random ciphertext is also unique. Different instrument identifications can be encrypted to generate different identification random ciphertexts, and the same instrument identification can be encrypted to generate the same identification random ciphertext. It is worth noting that the identification random ciphertext is random and the original instrument identification cannot be directly deduced from the identification random ciphertext.

[0040] It can be understood that after the instrument identification is encrypted using the first encryption algorithm, the obtained ciphertext can be 8-byte ciphertext, 16-byte ciphertext or 32-byte ciphertext, and the specific ciphertext length is not limited. Among them, all bytes of the obtained ciphertext can be used as identification random ciphertext, or some bytes in the ciphertext can be extracted as identification random ciphertext. For example, the instrument identification of meter C is 0x4D45545F3031523C. After the instrument identification of meter C is encrypted using the first encryption algorithm, a 16-byte ciphertext 0xABCDEF1234567890 is obtained. The first 4 bytes in the ciphertext can be taken as identification random ciphertext, that is, 0xABCD, and then the identification random ciphertext 0xABCD is used to select the communication channel to determine the target communication channel.

[0041] It is worth noting that multiple communication channels can be established between the meter reading device and the metering meter, and each communication channel has a corresponding channel identifier. The channel identifier is a unique identifier of the communication channel established between the meter reading device and the metering meter. Specifically, the transmission frequencies of the communication channels can be sorted to generate channel identifiers for the communication channels. Then, the identifier random ciphertext is used to match the channel identifier, and the communication channel corresponding to the channel identifier that matches the identifier random ciphertext is marked as the target communication channel. Then, the metering meter can send a data packet to the meter reading device through the target communication channel. The data packet can include the meter identifier, so that after the meter reading device receives the data packet through the target communication channel, it can parse out the meter identifier, and then the meter reading device The binding relationship between the target communication channel and the meter identification can be recorded, and then after the meter reading device and the metering meter are installed, the metering meter with the meter identification can transmit data with the meter reading device through the target communication channel, and the meter reading device can also attribute the data received through the target communication channel to the metering meter with the meter identification. At this time, since the correlation of consecutive meter identifications in geographical location is broken up by the first encryption algorithm, the relationship between the target communication channel and the meter identification determined by the random ciphertext of the identification also presents randomness, that is, the communication channels of different metering meters are randomly distributed, so there is no need to preset a fixed communication channel for the metering meter. The corresponding target communication channel can be automatically selected for communication, and the conflict between adjacent metering meters during meter reading is effectively reduced.

[0042] It can be understood that the identification random ciphertext can be calculated through a hash function to obtain a hash value, and then some bytes of the hash value (such as the first 8 bits) can be divided into multiple hash groups, each hash group corresponding to a group of communication channels. For example, the number of communication channels is 61, and the number of hash groups is 8, then 7 hash groups correspond to 7 communication channels, and one of the hash groups corresponds to the remaining 12 communication channels. The communication channel corresponding to each hash group can be assigned to the identification random ciphertext through a modulo operation, or assigned to the identification random ciphertext according to a specified rule. Specifically, assuming that the identification random ciphertext is calculated through a hash function, The first two hexadecimal characters of the hash value are 0xAB, and the decimal value is converted to 171. The decimal value 171 is modulo the number of hash groups 8, and the remainder is 3, which corresponds to the third hash group. The channel identifiers of the communication channels corresponding to the third hash group are 21 to 28, which means that the target communication channel of the random ciphertext is within the communication channel corresponding to the channel identifiers 21 to 28. It can be determined by further modulo operation, converting the remaining characters of the hash value to decimal values, and again performing modulo calculation according to the number of channels 7 corresponding to the hash group, and determining the target communication channel between the channel identifiers 21 to 28.

[0043] Reference Figure 3 The wireless meter reading method provided by an embodiment of the present invention further includes steps S310 to S330: Step S310: Divide the identification random ciphertext by the number of communication channels to obtain a remainder result; Step S320: determining a target channel identifier from a plurality of channel identifiers according to the residual value result; Step S330: Determine the target communication channel according to the target channel identifier.

[0044] It is understandable that since meter identifiers are correlated with geographic locations, if the meter identifiers within the same area are continuous, directly allocating communication channels based on meter identifiers may cause meters in adjacent geographic locations to be assigned to the same or adjacent communication channels, causing signal interference. However, the wireless meter reading method proposed in the embodiment of the present invention utilizes a first encryption algorithm to break up the correlation between the geographic locations of continuous meter identifiers. Therefore, during the communication channel allocation process, a simple and fast modular operation can be used to quickly determine the target communication channel of the current meter, which is applicable to resource-constrained embedded devices. Specifically, the random ciphertext of the identifier is converted into a decimal value, and then the decimal value is divided by the number of communication channels to obtain a residual value. The residual value result can then be used to determine the target channel identifier from multiple channel identifiers, and the communication channel corresponding to the target channel identifier is then determined as the target communication channel. Through the two-stage processing of first encryption and then modular operation, randomization of communication channel allocation can be achieved, effectively reducing signal interference between meters with adjacent meter identifiers, and ensuring the low time complexity of the algorithm, making it applicable to a variety of usage scenarios.

[0045] Reference Figure 4 , Figure 4 2 is a schematic diagram of allocating communication channels to a meter provided by an embodiment of the present invention. Specifically, after performing a modulo operation on the identification random ciphertext according to the channel number of the communication channel, a residual value result can be obtained. The channel identifiers can be arranged in order, and the residual value result can be directly used as an index to select the corresponding channel identifier. For example, assuming that the residual value result is 22, if the channel identifiers are sorted starting from 0, the channel identifier 22 can be directly matched according to the residual value result 22, and the channel identifier 22 is used as the target channel identifier. If the channel identifiers are sorted starting from 1, the channel identifier 23 can be directly matched, and the channel identifier 23 is used as the target channel identifier.

[0046] Specifically, the residual value result can be used to query a preset channel identifier-residual value result mapping relationship to directly determine a channel identifier that matches the residual value result, and then use the channel identifier as the target channel identifier.

[0047] Reference Figure 5 , an embodiment of the present invention provides a wireless meter reading method, the wireless meter reading method further comprising steps S311 to S312: Step S311: performing a secondary random calculation on the identification random ciphertext to obtain a secondary random result; Step S312: Divide the secondary random result by the number of communication channels to obtain a residual result.

[0048] It is understandable that random encryption of the instrument identifier using the first encryption algorithm can effectively destroy the correlation between consecutive instrument identifiers in channel allocation, while performing a secondary random calculation on the identifier random ciphertext further eliminates any statistical characteristics that may remain after encryption, thereby enhancing the randomness of the instrument identifier in channel allocation and reducing signal interference between meters with adjacent instrument identifiers in adjacent physical locations. At the same time, performing a secondary randomization on the identifier random ciphertext can avoid the problem of uneven distribution of residual value results when the number of channels is large and the encryption output range of the first encryption algorithm is small. The secondary random calculation can expand the numerical space of the identifier random ciphertext, making the distribution of the residual value results obtained through the modular operation closer to a uniform distribution.

[0049] Specifically, the secondary random calculation may be to input the identification random ciphertext into a hash function to generate a hash value, use the hash value as the secondary random result, and then obtain a remainder result by dividing the secondary random result by the number of channels of the communication channel.

[0050] Specifically, the secondary random calculation may be to perform a cyclic shift on the identification random ciphertext, obtain the shifted result, and then perform an XOR process on it to obtain the secondary random result.

[0051] Specifically, the secondary random calculation can be to pre-generate a multi-byte random permutation table, divide the identification random ciphertext into blocks to obtain each data block, then perform a table lookup permutation on each data block according to the random permutation table, and then splice them to obtain the secondary random result.

[0052] Reference Figure 6 , an embodiment of the present invention provides a wireless meter reading method, the wireless meter reading method further comprising steps S313 to S315: Step S313: determining a target number of bits according to the number of communication channels; Step S314: Starting from the least significant bit of the random ciphertext, the target number of bits of the random ciphertext are continuously extracted to obtain a ciphertext extraction result; Step S315: Accumulate the values ​​of all bytes in the ciphertext extraction result to obtain a secondary random result.

[0053] It can be understood that the secondary random calculation can be a random method based on low-bit truncation and byte accumulation. Specifically, the target number of bits for low-bit truncation can be selected according to the number of channels of the communication channel. For example, the target number of bits is used as a power, and the power of the preset base number is greater than or equal to the number of channels of the communication channel. Assuming that the number of channels of the communication channel is 8 and the preset base number is 2, then the target number of bits can be taken as 3, because 2 to the power of 3 is equal to 8, which satisfies the condition that the power of the preset base number is greater than or equal to the number of channels. Then, according to the target number of bits, the least significant bit of the random ciphertext is truncated to obtain the ciphertext extraction result. Then, all bytes in the ciphertext extraction result are regarded as unsigned numbers and summed, and the accumulated result is used as the secondary random result. Since the random method of byte accumulation and low-bit truncation only requires cyclic addition and masking to implement, the computational complexity is low, and the secondary random result can be calculated quickly, thereby improving the efficiency of channel allocation.

[0054] In the process of accumulating the values ​​of all bytes in the ciphertext extraction result, an XOR process can be introduced. For example, an XOR process is added after each accumulation to enhance the difference between adjacent data.

[0055] In addition, in addition to extracting the ciphertext extraction result from the least significant bit of the accumulation result, the high bit that identifies the random ciphertext can also be selected as the starting bit for interception.

[0056] Reference Figure 7 , Figure 7: This is a schematic diagram of allocating communication channels for a meter provided by an embodiment of the present invention. For example, a 16-byte encryption key is selected using the first encryption algorithm, and the encryption key is "CHADRFCOMBSOADDR". The number of available channels is 32. The meter identification 1 of meter 1 is "CLE3201673559201". After encryption by the first encryption algorithm, the identification random ciphertext 1 "0x780FD4C69B8CE6F2C29FE779853F7D9A" is obtained. Then, all bytes of the identification random ciphertext 1 are accumulated and calculated, and 8 bits are intercepted as the ciphertext extraction result "853F7D9A". The ciphertext After the extraction result "853F7D9A" is accumulated and calculated, the secondary random result 1 "0xBC" is obtained, which is equivalent to performing 8-bit accumulation and verification processing on the encrypted random ciphertext. The generated verification value is used as the secondary random result. Since the random ciphertext encrypted by the first encryption algorithm is random, the generated verification value is also random. Then, the secondary random result 1 "0xBC" is divided by the number of channels 32 to obtain the remainder result 28. The communication channel with channel identifier 28 is used as the target communication channel of meter 1 to achieve randomness in channel allocation; the instrument identifier 2 of meter 2 is "CLE3201673559 202", which is encrypted by the first encryption algorithm to obtain the identification random ciphertext 2 "0xA29F229E1AF357C7C607223FB2F52246", and then all bytes of the identification random ciphertext 2 are accumulated and calculated, and 8 bits are intercepted as the ciphertext extraction result "B2F52246", and the ciphertext extraction result "B2F52246" is accumulated to obtain the secondary random result 2 "0x69", and the secondary random result 2 "0x69" is divided by the number of channels 32 to obtain the remainder result 9, and the communication channel with channel identification 9 is used as the target communication channel of meter 2; the instrument identification 3 of meter 3 is "C LE3201673559203" is encrypted using the first encryption algorithm to obtain the identification random ciphertext 3 "0xCFEC63DB6192EEFD3364F483BE2AF6E4", then all bytes of the identification random ciphertext 3 are accumulated and 8 bits are intercepted as the ciphertext extraction result "BE2AF6E4", and the ciphertext extraction result "BE2AF6E4" is accumulated to obtain the secondary random result 3 "0xA7", and then the secondary random result 3 "0xA7" is divided by the number of channels 32 to obtain the remainder result 7, and the communication channel of channel identifier 7 is used as the target communication channel of meter 2;As can be seen, after the metering instruments with adjacent meter identifiers are encrypted using the first encryption algorithm, the resulting identification random ciphertexts are highly different. Modulo arithmetic is then performed using the result of the low-bit cumulative sum calculation. The resulting channel identifiers are highly different among the metering instruments with adjacent meter identifiers, achieving random channel allocation. Therefore, during actual installation, there is no need to consider the installation location of each meter. Even if the metering instruments are installed randomly, the communication channels assigned to metering instruments with adjacent meter identifiers are unlikely to be the same or adjacent. Furthermore, as the number of available communication channels increases, communication channels are less likely to be shared, and signal interference is reduced.

[0057] Reference Figure 8 , an embodiment of the present invention provides a wireless meter reading method, the wireless meter reading method further comprising steps S316 to S317: Step S316: Obtaining preset target identification data; Step S317: Based on the byte values ​​of each digit in the random ciphertext, the target identification data is used to perform an XOR calculation on the random ciphertext to obtain a secondary random result.

[0058] It can be understood that the target identification data can refer to a pre-set initial value for XOR calculation, the identification random ciphertext is input into the register, and the byte value of the highest bit of the identification random ciphertext is determined. If the byte value is 1, the highest bit of the identification random ciphertext is left-shifted, and after the left shift, it is subjected to bit-by-bit XOR calculation with the target identification data, wherein the number of bits of the target identification data is consistent with the number of bits of the identification random ciphertext; if the byte value is 0, the highest bit of the identification random ciphertext is directly left-shifted, and then it is determined whether the byte value of the highest bit of the current register is 1, until the number of judgments reaches the number of bits of the identification random ciphertext. When the number of judgments reaches the number of bits of the identification random ciphertext, if the byte value is 1, the highest bit of the identification random ciphertext is left-shifted, and after the left shift, it is subjected to bit-by-bit XOR calculation with the target identification data, and the obtained XOR result is the secondary random result. If the byte value is 0, the highest bit of the identification random ciphertext is left-shifted, and the obtained shift result is the secondary random result. Through XOR calculation processing, the tiny differences between the identifying random ciphertexts can be magnified. Therefore, in scenarios where meters are densely deployed, the strong diffusion of XOR calculation processing can significantly reduce the probability of different meters being mapped to the same communication channel, thereby reducing the occurrence of signal interference.

[0059] Reference Figure 9 The wireless meter reading method provided by an embodiment of the present invention further includes step S321: Step S321: Determine a channel identifier among multiple channel identifiers that matches the residual value result as a target channel identifier.

[0060] It can be understood that a pre-established mapping table of residual value results and channel identifiers can be obtained, and a matching channel identifier can be obtained by directly looking up the table through the residual value results. Specifically, a channel identifier can be assigned to each possible residual value result, and a mapping table of residual value results and channel identifiers can be constructed, wherein the assigned channel identifiers can be assigned in sequence according to the order of the residual value results, or can be assigned in sequence according to the random arrangement of the residual value results to ensure the uniformity of the distribution. Then, after obtaining the residual value result by performing a modulo operation on the random ciphertext of the identifier, the residual value result is directly used to look up the table to obtain a channel identifier that matches the residual value result, and then the channel identifier is determined as the target channel identifier.

[0061] It can be understood that the channel identifiers can be arranged in order, and the residual value results can be directly used as indexes to select the corresponding channel identifiers. For example, assuming the residual value result is 18, if the channel identifiers are sorted starting from 0, the channel identifier 18 can be directly matched according to the residual value result 18, and the channel identifier 18 can be used as the target channel identifier. If the channel identifiers are sorted starting from 1, the channel identifier 19 can be directly matched, and the channel identifier 19 can be used as the target channel identifier.

[0062] It can be understood that the channel identifiers can be divided into multiple channel groups, each channel group contains multiple channel identifiers, and the residual value results are modulo operated according to the number of channel groups to determine the target channel group, and then a channel identifier can be randomly determined in the target channel group as the target channel identifier. Specifically, there are 61 channel identifiers, which can be divided into 8 channel groups, of which 7 channel groups include 8 channel identifiers, and the remaining channel group 8 includes 5 channel identifiers. Assuming that the residual value results are modulo operated according to the number of channel groups, the target channel group is determined to be channel group 4, and channel group 4 includes channel identifiers 25 to 32, then a channel identifier can be randomly selected from channel identifiers 25 to 32 as the target channel identifier.

[0063] Reference Figure 10 , an embodiment of the present invention provides a wireless meter reading method, the wireless meter reading method further comprising steps S322 to S324: Step S322: Obtain the geographic coordinates of the meter and convert the geographic coordinates to obtain a geographic hash identifier; Step S323: determining a channel identifier among the multiple channel identifiers that matches the residual value result as an intermediate channel identifier; Step S324: offset the intermediate channel identifier according to the geo-hash identifier to obtain the target channel identifier.

[0064] It is understandable that the metering instrument can be provided with a positioning module or sensor so that the longitude and latitude of the metering instrument, i.e., the geographic coordinates, can be obtained. It is worth noting that the geographic coordinates of the metering instrument represent the geographic location of the metering instrument after installation. The geographic coordinates are converted into Geohash string encoding, i.e., the geographic hash value, and then the geographic hash value can be converted into a fixed-length numerical value to obtain a geographic hash identifier. Next, an intermediate channel identifier is selected from multiple channel identifiers based on the residual value result. Specifically, the random ciphertext of the identifier can be divided by the number of channels to obtain a residual value result, and then the residual value result is used as an index to directly determine the channel identifier that matches the residual value result from multiple channel identifiers as the intermediate channel identifier; the intermediate channel identifier is adjusted using the geographic hash identifier to ensure that meters with similar geographical locations can be distributed in non-adjacent communication channels, wherein the geographic hash identifier can be divided by a preset modulus value, for example, the modulus value is 10, and the residual value obtained by the modulus operation of the geographic hash identifier is used as an offset, and then the offset is added to the intermediate channel identifier to obtain the target channel identifier. For example, the intermediate channel identifier determined according to the residual value result is 22, and the offset determined according to the geographic hash identifier is 3, then the target channel identifier is 25.

[0065] Reference Figure 11 , Figure 11 This is a schematic diagram of allocating communication channels to a meter provided by an embodiment of the present invention. Assuming that the geographic coordinates of the meter are latitude X°N and longitude Y°E, and the number of channels is 61, the geographic coordinates are converted to a geographic hash value of 3482190, and then a modulo operation is performed on the geographic hash value with a modulus value of 100 to obtain a geographic hash identifier 190. Assuming that the meter identifier is 0xABCD, the remainder obtained after encryption with a first encryption algorithm and a modulo operation is 22. The remainder is used as the index of the channel identifier to determine that the intermediate channel identifier is 22. Assuming that the preset modulo value is 10, the offset obtained by the modulo operation on the geographic hash identifier 190 is 0, that is, the target channel identifier is the intermediate channel identifier 22. Assuming that the preset modulo value is 8, the offset obtained by the modulo operation on the geographic hash identifier 190 is 6, and the target channel identifier is the channel identifier 28. Therefore, even if geographically adjacent meters have similar geo-hash values, the distance between their communication channels will increase after the communication channels are offset. That is to say, the dual randomness of encryption algorithms and geo-hash can effectively reduce channel conflicts and thus reduce channel interference.

[0066] Reference Figure 12 , an embodiment of the present invention provides a wireless meter reading method, the wireless meter reading method further comprising steps S210 to S230: Step S210: obtaining the geographic coordinates of the meter, and performing coordinate conversion on the geographic coordinates to obtain a geographic hash identifier; Step S220: concatenate the instrument identifier and the geo-hash identifier to obtain a concatenated identifier; Step S230: Encrypt the splicing identifier using a first encryption algorithm to obtain a random ciphertext of the identifier.

[0067] It is understandable that the metering instrument can be provided with a positioning module or sensor, so that the longitude and latitude of the metering instrument, that is, the geographic coordinates, can be obtained. It is worth noting that the geographic coordinates of the metering instrument represent the geographic location of the metering instrument after installation. The geographic coordinates are converted into a Geohash string code to obtain a geographic hash identifier. The meter identifier and the geographic hash identifier are spliced ​​to obtain a spliced ​​identifier. If the meter identifier is a string, the geographic hash identifier and the meter identifier can be directly spliced ​​to obtain a spliced ​​identifier. If the meter identifier is a numerical representation (such as a binary value, a decimal value, a hexadecimal value, etc.), the geographic coordinates can be converted into a Geohash string code and then converted into a fixed-length value to obtain a geographic hash identifier. The geographic hash identifier is then spliced ​​with the meter identifier to obtain a spliced ​​identifier. By introducing the geographic location into the meter identifier, even if the metering instruments with adjacent meter identifiers in the same batch are installed in adjacent positions, the difference between the identifiers can be increased, and the occurrence of channel interference can be reduced.

[0068] Reference Figure 13 , Figure 13 : This is a schematic diagram of allocating communication channels to metering instruments provided by another embodiment of the present invention. Assume that metering instrument C and metering instrument D are adjacent not only in terms of meter identification but also in terms of geographical location. Specifically, the geographic hash identification C of metering instrument C is "wx4g0s" and the meter identification C is "0001", while the geographic hash identification D of metering instrument D is "wx4g0t" and the meter identification D is "0002". If the meter identification is directly used for channel allocation, metering instrument C and metering instrument D are easily allocated to the same communication channel or adjacent communication channels. However, if the geographic hash identification C "wx4g0s" of metering instrument C and the meter identification C "0001" are allocated to the same communication channel or adjacent communication channels, the same communication channel is easily allocated to the same communication channel or adjacent communication channels. Splicing to obtain the splicing identification C "wx4g0s-0001", which is then encrypted using the first encryption algorithm to obtain the identification random ciphertext C; similarly, the geographic hash identification C "wx4g0t" of the meter D is spliced ​​with the meter identification D "0002" to obtain the splicing identification D "wx4g0t-0002", which is then encrypted using the first encryption algorithm to obtain the identification random ciphertext D. At this time, due to the introduction of geographic information in the instrument identification and then random encryption, the difference between the identification random ciphertext C and the identification random ciphertext D increases, which can simultaneously break up the correlation between the meter and the geographic location, effectively reduce channel conflicts, and thus reduce channel interference.

[0069] Reference Figure 14The wireless meter reading method provided by an embodiment of the present invention further includes steps S240 to S260: Step S240: Divide the instrument identification into blocks to obtain multiple identification data blocks; Step S250: Encrypting the identification data block using a first encryption algorithm to obtain multiple encrypted data blocks; Step S260: concatenate multiple encrypted data blocks to obtain an identifying random ciphertext.

[0070] It can be understood that before the instrument identification is encrypted, the instrument identification can be segmented into multiple identification data blocks of fixed or variable length. For example, the instrument identification can be segmented into 16 bytes as a data block. Specifically, the length of the identification data block can be determined according to the encryption calculation method of the first encryption algorithm, that is, the identification data block can be adapted to the block size requirements of different encryption algorithms, and can also be determined according to the computing power of the device. It is worth noting that in the process of segmenting the instrument identification, if the instrument identification does not meet the block length, preset bytes or random bytes can be used to fill it.

[0071] Multi-threaded encryption can be achieved through data blocking. The encrypted data blocks, i.e., encrypted data blocks, are then spliced ​​in a fixed order of the original identification data blocks to form identification random ciphertexts. This can speed up the encryption speed on resource-constrained devices. Moreover, the identification random ciphertexts obtained through block encryption can effectively weaken the association with the original instrument identification.

[0072] It is worth noting that different encryption methods can be used for different identification data blocks.

[0073] Reference Figure 15 , Figure 15 This is a schematic diagram of the effect of communication channel allocation proposed in an embodiment of the present invention. When there are a large number of meters and the number of available communication channels is limited, multiple meters must share the same physical channel for communication. Generally speaking, meters in the same area will regularly send meter reading data to meter reading equipment, and the meter identifications of meters in the same area are close. However, related technologies use meter identifications to directly allocate communication channels, resulting in the possibility that the communication channels of meters in the same area may share a common communication channel. This requires the introduction of a Carrier Sense Multiple Access with Collision Avoidance (CSMA / CA) mechanism, such as Figure 15As shown in the left sub-figure, meters 1, 2 and 3 in the same area share communication channel 1, meter 4 occupies communication channel 2, and meter 5 occupies communication channel 3. Then, meters 1, 2 and 3 need to compete. The meters need to detect the signal strength of the communication channel to determine whether the communication channel is busy. If the communication channel is detected to be idle, the meter can wait for a long frame interval and then send the meter reading data to the meter reading device. If a conflict occurs when sending data, the meter can wait for a random period of time and then resend the meter reading data to the meter reading device. However, if the number of meters in the same area is large, the competition incentive will cause meter reading delays or data cannot be sent. In addition, the communication channels of meters in the same area are adjacent, which is prone to interference. In addition, since the meters in the same area are concentratedly allocated to some communication channels, the channel utilization rate is low, resulting in resource waste. Therefore, the wireless meter reading method proposed in the embodiment of the present invention uses the first encryption algorithm to encrypt the meter identification to obtain a random identification ciphertext, and then uses the identification random ciphertext to allocate the communication channel, which can effectively avoid the correlation between adjacent meter identifications on the communication channel, thereby reducing signal interference or conflict caused by the same or adjacent communication channels due to adjacent meter identifications in the same area. Specifically, Figure 15 As shown in the middle sub-figure of , after adopting the wireless meter reading method proposed in the embodiment of the present invention, the identification random ciphertexts of the metering meters 1 to 5 in the same area are random, and the allocated communication channels are also random. It can be seen that metering meter 1 and metering meter 2 share communication channel 2, metering meter 3 occupies communication channel 7, metering meter 4 occupies communication channel 1, and metering meter 5 occupies communication channel 4. Only two metering meters need to compete for the communication channel through the CSMA / CA mechanism, which effectively reduces the occurrence of signal conflicts. In some cases, after adopting the wireless meter reading method proposed in the embodiment of the present invention, the situation of each meter occupying the communication channel is as follows Figure 15 As shown in the right sub-figure, meter 1 in the same area occupies communication channel 5, meter 2 occupies communication channel 1, meter 3 occupies communication channel 4, meter 4 occupies communication channel 2, and meter 5 occupies communication channel 9. It can be seen that the communication channels of the five meters do not overlap with each other, and there is no need to compete for the use of communication channels. In other words, the wireless meter reading method proposed in the embodiment of the present invention is improved based on Sub-GHz radio frequency wireless meter reading, which can avoid the use of additional parameter configuration and avoid additional on-site installation complexity, thereby reducing costs and improving efficiency. In addition, in the use scenario where multiple meters are read at the same time, the possibility of interference caused by all meters using the same communication channel for communication is reduced. The meters communicate on different communication channels and do not need to compete for the use of communication channels, which reduces the competition required by the CSMA / CA mechanism and reduces the possibility of communication delay or transmission failure.

[0074] Secondly, refer to Figure 16 , Figure 16 This is a flow chart of a wireless meter reading method provided by an embodiment of the present invention. The wireless meter reading method can be applied to Figure 1 The meter reading device 1800 in the meter reading system shown in FIG. 1 includes but is not limited to the following steps: Step S500: Obtaining the meter identification of the measuring instrument; Step S600: Encrypt the instrument identification using a first encryption algorithm to obtain a random ciphertext of the identification; Step S700: determining a target communication channel from multiple communication channels according to the identification random ciphertext; Step S800: Bind the target communication channel to the meter identifier, and transmit meter reading data to the meter through the target communication channel.

[0075] It can be understood that the meter reading device can pre-store the meter identification of the metering meter, or the meter identification of the metering meter can be input into the meter reading device through an external device, and then the meter reading device uses the first encryption algorithm to encrypt the meter identification of the metering meter to obtain the identification random ciphertext, and then uses the random identification random ciphertext to select a communication channel as the target communication channel of the metering meter with the meter identification, and then bind the target communication channel to the meter identification, so that the meter reading device can receive the meter reading data sent by the metering meter with the meter identification through the target communication channel, realize the dynamic allocation of communication channels, and introduce randomness in the allocation process. By randomly allocating communication channels, it can be ensured that the meter identifications of adjacent metering meters are similar, and the allocated communication channels also have significant differences, thereby effectively avoiding the channel spacing between adjacent metering meters being too small, reducing conflict interference, and thus reducing costs and improving efficiency in the process from production to installation.

[0076] It can be understood that, in the process of determining the target communication channel of the meter reading device, the meter reading device can divide the identification random ciphertext by the number of available communication channels established between the meter reading device and the meter to obtain a residual value result, and then use the residual value result to determine the target communication channel from multiple communication channels.

[0077] It is understandable that, in the process of calculating the residual value result, the meter reading device can perform a secondary random calculation on the identification random ciphertext to obtain a secondary random result, and then divide the obtained secondary random result by the number of channels of the communication channel to obtain the residual value result.

[0078] It is understandable that, in the process of calculating the secondary random result, the meter reading device can first determine the target number of bits based on the number of channels of the communication channel, and then continuously extract the target number of bits of the least significant bits that identify the random ciphertext to obtain the ciphertext extraction result, and then accumulate the values ​​of all bytes in the ciphertext extraction result to obtain the secondary random result.

[0079] It is understandable that in the process of calculating the secondary random result, the meter reading device can also obtain the preset target identification data, and then use the target identification data to perform an XOR calculation on the identification random ciphertext according to the byte value of each digit in the identification random ciphertext to obtain the secondary random result.

[0080] It is understandable that, in the process of determining the target communication channel, the meter reading device can search for a channel identifier that matches the residual value result among the channel identifiers corresponding to multiple communication channels, and use the channel identifier as the target channel identifier, and then determine the communication channel corresponding to the target channel identifier as the target communication channel.

[0081] It is understandable that, in the process of determining the target communication channel, the meter reading device can first obtain the geographic coordinates of the meter, convert the geographic coordinates to obtain a geographic hash identifier, and then find the channel identifier that matches the residual value result among the channel identifiers corresponding to multiple communication channels, and use the channel identifier as the intermediate channel identifier, and then use the geographic hash identifier to offset the intermediate channel identifier to obtain the target channel identifier.

[0082] It can be understood that in the process of encrypting the meter identification, the meter reading device can first obtain the geographic coordinates of the meter, and perform coordinate conversion on the geographic coordinates to obtain a geographic hash identification; then splice the meter identification with the geographic hash identification to obtain a spliced ​​identification, and then use the first encryption algorithm to encrypt the spliced ​​identification to obtain a random ciphertext of the identification.

[0083] It can be understood that in the process of encrypting the meter identification, the meter reading device can first divide the meter identification into blocks to obtain multiple identification data blocks, then use the first encryption algorithm to encrypt the identification data block to obtain multiple encrypted data blocks, and then splice the multiple encrypted data blocks to obtain the identification random ciphertext.

[0084] Thirdly, refer to Figure 17 The embodiment of the present invention provides a meter 1700, comprising a memory 1720, a processor 1710, and a computer program stored in the memory 1720 and executable on the processor 1710. The processor executes the program to implement the wireless meter reading method according to any one of the embodiments of the first aspect, for example, Figure 2 Method steps S100 to S400 in Figure 3Steps S310 to S330 of the method, or performing Figure 5 Steps S311 to S312 of the method, or performing Figure 6 Steps S313 to S315 of the method, or performing Figure 8 Steps S316 to S317 of the method, or performing Figure 9 In step S321 of the method, or perform Figure 10 Steps S322 to S324 of the method, or performing Figure 12 Steps S210 to S230 of the method, or performing Figure 14 Method step S240 or S260 in.

[0085] A metering meter provided according to an embodiment of the present invention has at least the following beneficial effects: a unique meter identification set at the factory for each metering meter is encrypted using a first encryption algorithm to obtain a random identification ciphertext; a communication channel is then selected using the random identification ciphertext as the target communication channel for the metering meter with the random identification ciphertext; the metering meter then uses the target communication channel to send its own meter identification to a meter reading device and transmit meter reading data, thereby achieving dynamic allocation of communication channels and introducing randomness during the allocation process. By randomly allocating communication channels, it is ensured that the meter identifications of adjacent metering meters are similar and that the allocated communication channels have significant differences, thereby effectively avoiding excessively small channel spacing between adjacent metering meters and reducing conflict interference, thereby reducing costs and improving efficiency during the production and installation process.

[0086] In a fourth aspect, an embodiment of the present invention provides a meter reading device 1800, comprising a memory 1820, a processor 1810, and a computer program stored in the memory 1820 and executable on the processor 1810. The processor executes the program to implement the wireless meter reading method according to any one of the embodiments of the second aspect, for example, Figure 16 Method steps S500 to S800 in .

[0087] A meter reading device provided according to an embodiment of the present invention has at least the following beneficial effects: a unique meter identification set at the factory for each meter is encrypted by a first encryption algorithm to obtain a random identification ciphertext; a communication channel is then selected using the random identification ciphertext as the target communication channel for the meter corresponding to the random identification ciphertext; the corresponding meter identification and the target communication channel are then bound together; thereby, the meter reading device can transmit meter reading data using the target communication channel and the meter corresponding to the meter identification, thereby achieving dynamic allocation of communication channels, and introducing randomness in the allocation process; by randomly allocating communication channels, it is ensured that the meter identifications of adjacent metering meters are similar, and the allocated communication channels also have significant differences, thereby effectively avoiding excessively small channel spacing between adjacent metering meters, reducing conflict interference, and thereby reducing costs and improving efficiency in the production and installation processes.

[0088] In a fifth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the wireless meter reading method of any embodiment of the first aspect above, for example, to execute Figure 2 Method steps S100 to S400 in Figure 3 Steps S310 to S330 of the method, or performing Figure 5 Steps S311 to S312 of the method, or performing Figure 6 Steps S313 to S315 of the method, or performing Figure 8 Steps S316 to S317 of the method, or performing Figure 9 In step S321 of the method, or perform Figure 10 Steps S322 to S324 of the method, or performing Figure 12 Steps S210 to S230 of the method, or performing Figure 14 or for causing a computer to execute the wireless meter reading method according to any one of the embodiments of the second aspect, for example, Figure 16 Method steps S500 to S800 in .

[0089] A computer-readable storage medium provided according to an embodiment of the present invention has at least the following beneficial effects: the unique meter identification set at the factory for each meter is encrypted by a first encryption algorithm to obtain a random identification ciphertext, and then a communication channel is selected using the random identification ciphertext as the target communication channel for the meter with the random identification ciphertext. Then, the corresponding meter identification and the target communication channel can be bound, so that the meter reading device and the meter with the meter identification can use the target communication channel to transmit meter reading data, thereby realizing dynamic allocation of communication channels, and introducing randomness in the allocation process. By randomly allocating communication channels, it can be ensured that the meter identifications of adjacent metering meters are similar, and the allocated communication channels also have significant differences, thereby effectively avoiding that the channel spacing between adjacent metering meters is too small, reducing conflict interference, and thus reducing costs and improving efficiency in the process from production to installation.

[0090] It will be understood by those skilled in the art that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware, and appropriate combinations thereof. Some or all of the physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on computer-readable media, which can include computer storage media or non-transitory media and communication media or transient media. As is well known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information such as computer-readable instructions, data structures, program modules, or other data. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVDs) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, as is well known to those skilled in the art, communication media typically embodies computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

[0091] The embodiments of the present invention are described in detail above with reference to the accompanying drawings. However, the present invention is not limited to the above embodiments. Various changes can be made within the scope of knowledge possessed by ordinary technicians in the technical field without departing from the scope of the present invention.

Claims

1. A wireless meter reading method, characterized in that: Applied to a metering instrument, the metering instrument establishes multiple communication channels with a meter reading device, and the method includes: Obtaining an instrument identification of the measuring instrument; Encrypting the instrument identification using a first encryption algorithm to obtain a random ciphertext of the identification; determining a target communication channel from the plurality of communication channels according to the identification random ciphertext; The meter identification is sent to the meter reading device through the target communication channel, so that the meter reading device binds the target communication channel with the meter identification and performs meter reading data transmission with the meter through the target communication channel.

2. The wireless meter reading method according to claim 1, characterized in that: The step of determining a target communication channel from the plurality of communication channels according to the identification random ciphertext includes: Dividing the identification random ciphertext by the number of channels of the communication channels to obtain a remainder result, wherein each communication channel corresponds to a channel identifier; determining a target channel identifier from the plurality of channel identifiers according to the residual value result; A target communication channel is determined according to the target channel identifier.

3. The wireless meter reading method according to claim 2, characterized in that: The obtaining of a remainder result by dividing the identification random ciphertext by the number of channels of the communication channel includes: Performing a secondary random calculation on the identification random ciphertext to obtain a secondary random result; The secondary random result is divided by the number of channels of the communication channel to obtain a residual result.

4. The wireless meter reading method according to claim 3, characterized in that: The performing a secondary random calculation on the identification random ciphertext to obtain a secondary random result includes: Determining a target number of bits according to the number of channels of the communication channel; Starting from the least significant bit of the identification random ciphertext, continuously extracting the target number of bits of the identification random ciphertext to obtain a ciphertext extraction result; The values ​​of all bytes in the ciphertext extraction result are cumulatively calculated to obtain a secondary random result.

5. The wireless meter reading method according to claim 3, characterized in that: The performing a secondary random calculation on the identification random ciphertext to obtain a secondary random result includes: Obtaining preset target identification data; According to the byte value of each digit in the identification random ciphertext, the identification random ciphertext is XORed using the target identification data to obtain a secondary random result.

6. The wireless meter reading method according to claim 2 or 3, characterized in that: Determining a target channel identifier from the plurality of channel identifiers according to the residual value result includes: The channel identifier that matches the residual value result among the multiple channel identifiers is determined as the target channel identifier.

7. The wireless meter reading method according to claim 2 or 3, characterized in that: Determining a target channel identifier from the plurality of channel identifiers according to the residual value result includes: Obtaining the geographic coordinates of the meter and converting the geographic coordinates to obtain a geographic hash identifier; Determining the channel identifier that matches the residual value result among the multiple channel identifiers as an intermediate channel identifier; The intermediate channel identifier is offset according to the geo-hash identifier to obtain a target channel identifier.

8. The wireless meter reading method according to claim 1, characterized in that: The method of encrypting the instrument identification using the first encryption algorithm to obtain a random ciphertext of the identification includes: Obtaining the geographic coordinates of the meter, and performing coordinate conversion on the geographic coordinates to obtain a geographic hash identifier; Concatenating the instrument identifier and the geohash identifier to obtain a concatenated identifier; The splicing identifier is encrypted using a first encryption algorithm to obtain a random ciphertext of the identifier.

9. The wireless meter reading method according to claim 1, characterized in that: The method of encrypting the instrument identification using the first encryption algorithm to obtain a random ciphertext of the identification includes: Dividing the instrument identification into blocks to obtain multiple identification data blocks; Encrypting the identification data block using the first encryption algorithm to obtain a plurality of encrypted data blocks; The plurality of encrypted data blocks are concatenated to obtain an identification random ciphertext.

10. A wireless meter reading method, characterized in that: Applied to a meter reading device, the meter reading device establishes multiple communication channels with multiple metering instruments respectively, and the method includes: Obtaining an instrument identification of the measuring instrument; Encrypting the instrument identification using a first encryption algorithm to obtain a random ciphertext of the identification; determining a target communication channel from the plurality of communication channels according to the identification random ciphertext; The target communication channel is bound to the meter identifier, and meter reading data is transmitted with the meter through the target communication channel.

11. A measuring instrument, characterized in that: The wireless meter reading method comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the wireless meter reading method according to any one of claims 1 to 9.

12. A meter reading device, characterized in that: The device comprises a memory, a processor, and a computer program stored in the memory and operable on the processor, wherein the processor executes the program to implement the wireless meter reading method according to claim 10.

13. A computer-readable storage medium, characterized in that The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the wireless meter reading method according to any one of claims 1 to 10.

Citation Information

Patent Citations

  • Method and device for channel mapping on basis of frequency hopping

    CN102624510A

  • Wireless Battery Management System, Node For Wireless Communication, And Method Of Transmitting Data

    CN112102599A

  • Electric energy meter reading method based on RF wireless meter reading frequency conversion communication

    CN114189764A

  • Solar valve automatic control system applied to agriculture

    CN117329341A

  • Task allocation method and device, concentrator, meter reading system and readable storage medium

    CN118214964A