Meter model adjustment method, device, server and storage medium

By receiving the message data uploaded by the remote meter and selecting the appropriate communication protocol for analysis from the protocol pool, the data analysis problem caused by the wrong remote meter model is solved, the correct model can be determined remotely online, and the efficiency and accuracy of data analysis are improved.

CN116032750BActive Publication Date: 2024-10-29GOLDCARD HIGH TECH +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211732760.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-30
Publication Date
2024-10-29
Estimated Expiration
2042-12-30

AI Technical Summary

Technical Problem

The model information in the remote meter's business file is prone to errors, causing the communication protocol to be unable to parse the uploaded data normally, thus affecting the efficiency of fee recharge and fee settlement services.

Method used

By receiving the message data uploaded by the remote table, obtain its initial model and identification information. If the communication protocol matching the initial model cannot parse the data, add the identification information and message data to the list to be adjusted, and select the appropriate one from the protocol pool. The communication protocol is parsed, and the model of the table is adjusted to match the target communication protocol to ensure successful data parsing.

Benefits of technology

It realizes the remote online determination of the correct model of the table, improves the efficiency of table model adjustment, avoids the need for offline verification, and improves the accuracy and efficiency of the business system's analysis of remote table data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116032750B_ABST
    Figure CN116032750B_ABST
Patent Text Reader

Abstract

The present invention provides a method, device, server and storage medium for adjusting a table model, the method comprising: receiving message data uploaded by a table, obtaining the initial model and identification information of the table; if the message data cannot be successfully parsed through a communication protocol matching the initial model of the table, marking the identification information of the table and the message data of the table and adding them to a list to be adjusted; sequentially obtaining the message data uploaded by the table to be adjusted and the identification information of the table to be adjusted from the list to be adjusted; based on the identification information of the table to be adjusted, determining a protocol pool matching the identification information of the table to be adjusted, the protocol pool including multiple communication protocols; determining a target communication protocol for successfully parsing the message data from multiple communication protocols; adjusting the initial model of the table to be adjusted to a model corresponding to the target communication protocol. The present application can remotely determine the correct model of the table without going to the household offline to verify the model, thereby improving the adjustment efficiency of the table model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of Internet of Things, and in particular to a method, device, server and storage medium for adjusting a meter model. Background Art

[0002] With the development of Internet of Things technology, more and more users have installed remote meters. Remote meters can upload data to the business system through wireless networks, and remotely complete fee recharge, fee settlement and other services through the business system.

[0003] Remote meters include remote water meters, remote gas meters, etc. The same type of remote meters is divided into multiple models, and different models of remote meters correspond to different data models. When installing a remote meter, you need to create a business file for the remote meter. The business file includes the model information of the remote meter and the user's account information. After the business system receives the data uploaded by the remote meter, it parses the uploaded data through the communication protocol that matches the model of the remote meter, and completes services such as fee recharge and fee settlement based on the parsing results.

[0004] However, the inventors have discovered that the prior art has at least the following technical problems: the business files of the remote meter are created manually by the salesperson, and the model information of the remote meter is prone to errors, which in turn causes the communication protocol to be unable to properly parse the data uploaded by the remote meter. Summary of the invention

[0005] The present invention provides a table model adjustment method, device, server and storage medium, which can improve the table model adjustment efficiency.

[0006] In a first aspect, the present invention provides a method for adjusting a watch model, comprising:

[0007] Receive the message data uploaded by the watch, and obtain the initial model and identification information of the watch;

[0008] If the message data cannot be successfully parsed through the communication protocol matching the initial model of the table, marking the identification information of the table and the message data of the table and adding them to the list to be adjusted;

[0009] Sequentially acquiring the message data uploaded by the table to be adjusted and the identification information of the table to be adjusted from the list to be adjusted;

[0010] Based on the identification information of the table to be adjusted, determining a protocol pool matching the identification information of the table to be adjusted, wherein the protocol pool includes a plurality of communication protocols;

[0011] Determining a target communication protocol from the plurality of communication protocols that successfully parses the message data;

[0012] The initial model of the table to be adjusted is adjusted to a model corresponding to the target communication protocol.

[0013] In a possible design, if the initial model of the meter is a remote gas meter, the protocol pool includes a first protocol pool matching the remote gas meter, and the first protocol pool includes multiple communication protocols matching the remote gas meter model.

[0014] In one possible design, if the initial model of the meter is a remote water meter, the protocol pool includes a second protocol pool matching the remote water meter, and the second protocol pool includes multiple communication protocols matching the remote water meter model.

[0015] In one possible design, determining a target communication protocol for successfully parsing the message data from the multiple communication protocols includes:

[0016] Selecting a first communication protocol from the plurality of communication protocols;

[0017] Parsing the message data by using the first communication protocol, and if the parsing is successful, determining the first communication protocol as the target communication protocol;

[0018] If the parsing fails, continue to select a second communication protocol from the multiple communication protocols until the selected second communication protocol successfully parses the message data, and determine that the second communication protocol that successfully parses the message data is the target communication protocol.

[0019] In one possible design, selecting a first communication protocol from the multiple communication protocols includes:

[0020] Determining the initial model of the meter to be adjusted;

[0021] A target model associated with the initial model is obtained, and a first communication protocol corresponding to the target model is selected from the multiple communication protocols, wherein the table of the target model is similar in appearance to the table of the initial model.

[0022] In one possible design, the model includes multiple versions and further includes:

[0023] Obtaining a target field in the message data successfully parsed by the target communication protocol;

[0024] Determine the target version number of the table to be adjusted through the target field;

[0025] The version number of the table to be adjusted is adjusted to the target version number.

[0026] In one possible design, it also includes:

[0027] The instruction set corresponding to the table to be adjusted is adjusted to an instruction set corresponding to the target communication protocol, wherein the instruction set includes at least one instruction for controlling the table to be adjusted.

[0028] In a second aspect, the present invention provides a device for adjusting a watch model, comprising:

[0029] A first acquisition module, configured to receive message data uploaded by a watch and acquire the initial model and identification information of the watch;

[0030] a marking module, for marking the identification information of the table and the message data of the table and adding them to a list to be adjusted if the message data cannot be successfully parsed through the communication protocol matching the initial model of the table;

[0031] A second acquisition module is used to sequentially acquire the message data uploaded by the table to be adjusted and the identification information of the table to be adjusted from the list to be adjusted;

[0032] A first determining module, configured to determine, based on the identification information of the table to be adjusted, a protocol pool matching the identification information of the table to be adjusted, wherein the protocol pool includes a plurality of communication protocols;

[0033] A second determination module, used to determine a target communication protocol that successfully parses the message data from the multiple communication protocols;

[0034] The adjustment module is used to adjust the initial model of the table to be adjusted to a model corresponding to the target communication protocol.

[0035] In a third aspect, the present invention provides a server, comprising: at least one processor and a memory;

[0036] The memory stores computer-executable instructions;

[0037] The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the method for adjusting the watch model as described in the first aspect and various possible designs of the first aspect.

[0038] In a fourth aspect, the present invention provides a computer storage medium storing computer execution instructions. When a processor executes the computer execution instructions, the method for adjusting the table model as described in the first aspect and various possible designs of the first aspect is implemented.

[0039] In a fifth aspect, the present application also provides a computer program product, which includes a computer program stored in a computer-readable storage medium. At least one processor can read the computer program from the computer-readable storage medium. When at least one processor executes the computer program, it implements the method for adjusting the watch model as described in the first aspect and various possible designs of the first aspect.

[0040] The table model adjustment method, device, server and storage medium provided by the present invention parse the message data uploaded by the table to be adjusted through the communication protocol in the protocol pool for the table to be adjusted that cannot successfully parse the message data, thereby determining the target communication protocol that can successfully parse the message data, and then determining that the table model corresponding to the target communication protocol is the correct model of the table to be adjusted. It can be seen that the present application can remotely determine the correct model of the table online, which improves the efficiency of adjusting the table model compared to the staff going offline to verify the correct model of the table. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0042] Figure 1 It is a schematic diagram of an application scenario of the method for adjusting the meter model provided in an embodiment of the present invention;

[0043] Figure 2 Schematic diagram of the process of adjusting the meter model provided by the embodiment of the present invention Figure 1 ;

[0044] Figure 3 Schematic diagram of the process of adjusting the meter model provided by the embodiment of the present invention Figure 2 ;

[0045] Figure 4 A schematic diagram of the structure of a device for adjusting a meter model provided in an embodiment of the present invention;

[0046] Figure 5 A schematic diagram of the hardware structure of a server provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0047] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0048] With the development of Internet of Things technology, more and more users have installed remote meters. Remote meters can upload data to the business system through the wireless network, and remotely complete fee recharge, fee settlement and other services through the business system. Exemplarily, remote meters include remote water meters, remote gas meters, etc. The same type of remote meters are divided into multiple models, and different models of remote meters correspond to different data models. When installing a remote meter, it is necessary to establish a business file for the remote meter. The business file includes the model information of the remote meter and the user's account information. After the collection platform in the business system receives the data uploaded by the remote meter, it parses the uploaded data through the communication protocol that matches the model of the remote meter, and completes fee recharge, fee settlement and other services through the parsing results.

[0049] The business files of remote meters are manually created by salespersons. The model information in the business files is prone to errors, which in turn causes the collection platform to be unable to properly parse the data uploaded by the remote meter. Therefore, it is necessary to adjust the remote meter model with errors. In the prior art, engineers go offline to the customer's home to confirm the correct type of the remote meter, and then feedback to the customer service staff, and finally the customer service staff adjusts the remote meter with the wrong type in the business system. It can be seen that it is time-consuming and laborious to manually confirm the correct type of the remote meter offline, so the adjustment efficiency is low.

[0050] In order to solve the above technical problems, the embodiment of the present invention proposes the following technical concept: for the table to be adjusted that cannot successfully parse the message data, the message data uploaded by the table to be adjusted is parsed through the communication protocol in the protocol pool, and the target communication protocol that can successfully parse the message data is determined, and then the model of the table corresponding to the target communication protocol is determined to be the correct model of the table to be adjusted. It can be seen that the present application can remotely determine the correct model of the table online, which improves the adjustment efficiency of the table model compared to the staff going offline to verify the correct model of the table. The following is a detailed description using a detailed embodiment.

[0051] Figure 1 Schematic diagram of an application scenario of the method for adjusting the meter model provided by an embodiment of the present invention. Figure 1As shown, the display terminal 101 receives the adjustment requirements of the table model input by the user, and transmits the adjustment requirements to the server 102 via the wireless network, so that the server 102 completes the adjustment of the table model according to the identification information of the remote table contained in the adjustment requirements and the message data uploaded by the remote table, and according to the multiple communication protocols included in the protocol pool.

[0052] Figure 2 Schematic diagram of the process of adjusting the meter model provided by the embodiment of the present invention Figure 1 , the execution subject of this embodiment can be Figure 1 The server in the embodiment shown is not particularly limited in this embodiment. Figure 2 As shown, the method includes:

[0053] S201: receiving message data uploaded by a watch, and obtaining the initial model and identification information of the watch.

[0054] The meter in the embodiment of the present invention is a meter with a remote transmission function. For example, the meter can be a remote gas meter or a remote water meter. The meter can periodically upload message data. The period length can be 1 hour, 8 hours, 24 hours, etc.

[0055] In the embodiment of the present invention, the initial model of the meter and the period of uploading the message data are not specifically limited. For example, the initial model of the meter is a remote gas meter, and the message data includes user gas usage information, gas consumption information, identification information of the remote gas meter, initial model information and version information, etc. Among them, the identification information of the table is used to distinguish different tables. For example, the identification information of the table can be the number of the table or the user number of the user who uses the table.

[0056] S202: If the message data cannot be successfully parsed through the communication protocol matching the initial model of the meter, the identification information of the meter and the message data of the meter are marked and added to the list to be adjusted.

[0057] In an embodiment of the present invention, after receiving the message data uploaded by the watch, the message data is further parsed through a communication protocol matching the initial model of the watch. If the parsing fails or the parsed information is garbled, it is determined that the communication protocol cannot successfully parse the message data.

[0058] Optionally, this step is: if the message data cannot be successfully parsed through the communication protocol matching the initial model of the table, the identification information of the table and the message data of the table are marked, and the identification information of the table and the message data of the table are added to the list to be adjusted in the time sequence of the marking. The time sequence of marking the identification information of the table and the message data of the table is consistent with the order of the table in the list to be adjusted.

[0059] S203: Acquire the message data uploaded by the table to be adjusted and the identification information of the table to be adjusted from the list to be adjusted in sequence.

[0060] Optionally, the list to be adjusted includes multiple tables to be adjusted; the table to be adjusted is a table whose message data cannot be successfully parsed. Accordingly, this step is: according to the order of the multiple tables to be adjusted in the list to be adjusted, the message data uploaded by the table to be adjusted and the identification information of the table to be adjusted are obtained from the list to be adjusted in sequence.

[0061] Optionally, the server may periodically obtain the message data and identification information uploaded by the table to be adjusted. Exemplarily, the timing duration may be 1 hour, 4 hours, 24 hours, etc. In the embodiment of the present invention, the value of the timing duration is not specifically limited.

[0062] S204: Based on the identification information of the table to be adjusted, determine a protocol pool that matches the identification information of the table to be adjusted, where the protocol pool includes multiple communication protocols.

[0063] In an embodiment of the present invention, each type of meter corresponds to a different system. Each system stores a protocol pool of the type of meter. Optionally, if the initial model of the meter is a remote gas meter, the protocol pool stored in the gas meter system includes a first protocol pool that matches the remote gas meter, and the first protocol pool includes multiple communication protocols that match the remote gas meter model. Optionally, if the initial model of the meter is a remote water meter, the protocol pool stored in the water meter system includes a second protocol pool that matches the remote water meter, and the second protocol pool includes multiple communication protocols that match the remote water meter model.

[0064] Exemplarily, the protocol pool stored in the gas meter system includes 10 protocols, 40 protocols, standard protocols, and the like.

[0065] S205: Determine a target communication protocol that successfully parses the message data from a plurality of communication protocols.

[0066] In the embodiment of the present invention, the communication protocols may be called in sequence to parse the message data, and a target communication protocol that can successfully parse the message data may be determined.

[0067] S206: Adjusting the initial model of the table to be adjusted to a model corresponding to the target communication protocol.

[0068] In the embodiment of the present invention, a table of one model corresponds to a type of communication protocol. Accordingly, this step is: determining the model of the table corresponding to the target communication protocol, and adjusting the model of the table to be adjusted to the model corresponding to the target communication protocol.

[0069] Exemplarily, the models of the tables to be adjusted include an Internet of Things 10 type table, an Internet of Things NB10 type table, an Internet of Things 40 type table, an Internet of Things NB40 type table, and the like.

[0070] The table model adjustment method provided by the present invention, for a table to be adjusted that cannot successfully parse message data, parses the message data uploaded by the table to be adjusted through the communication protocol in the protocol pool, thereby determining the target communication protocol that can successfully parse the message data, and then determining that the table model corresponding to the target communication protocol is the correct model of the table to be adjusted. It can be seen that the present application can remotely determine the correct model of the table online, which improves the efficiency of adjusting the table model compared to verifying the correct model of the table offline by staff members.

[0071] Figure 3 Schematic diagram of the process of adjusting the meter model provided by the embodiment of the present invention Figure 2 In the embodiment of the present invention, Figure 2 Based on the embodiment provided, the specific implementation method of determining the target communication protocol for successfully parsing the message data from multiple communication protocols in S205 is described in detail. Figure 3 As shown, the method includes:

[0072] S301. Select a first communication protocol from multiple communication protocols.

[0073] In some embodiments, the server randomly selects a first communication protocol from a plurality of communication protocols.

[0074] In another embodiment, the server selects a first communication protocol from multiple communication protocols, including: determining an initial model of a table; obtaining a target model associated with the initial model, and selecting a first communication protocol corresponding to the target model from multiple communication protocols, wherein the table of the target model is similar in appearance to the table of the initial model.

[0075] Illustratively, the IoT10 type table and the IoTNB10 type table have similar appearances, and the IoT10 type table and the IoTNB10 type table are mutually related. The IoT40 type table and the IoTNB40 type table have similar appearances, and the IoT40 type table and the IoTNB40 type table are mutually related.

[0076] In an embodiment of the present invention, since the table of the target model associated with the initial model is similar in appearance to the table of the initial model, the probability of confusion among staff is relatively high. Therefore, the message data can be successfully parsed with a high probability through the first communication protocol corresponding to the target model, thereby improving the efficiency of determining the target communication protocol.

[0077] It should be noted that if the initial model in the table has no associated target model, a first communication protocol may be randomly selected from a plurality of communication protocols.

[0078] S302: Parse the message data using the first communication protocol. If the parsing is successful, determine that the first communication protocol is the target communication protocol.

[0079] Optionally, the first communication protocol includes a communication protocol parsing package. Accordingly, this step is: parsing the message data through the communication protocol parsing package in the first communication protocol, if the parsing result is normal, the parsing is successful, and the first communication protocol is determined to be the target communication protocol. Exemplarily, the target communication protocol is a communication protocol that matches the actual type of the table.

[0080] S303: If the parsing fails, continue to select a second communication protocol from the multiple communication protocols until the selected second communication protocol successfully parses the message data, and determine that the second communication protocol that successfully parses the message data is the target communication protocol.

[0081] Exemplarily, if the parsing result is abnormal and the first communication protocol cannot be successfully parsed, the second communication protocol is continuously selected from the plurality of communication protocols until the parsing is successful, and the second communication protocol that successfully parses the message data is determined as the target communication protocol.

[0082] It should be noted that the same model table may include multiple versions. Accordingly, after the initial model of the table to be adjusted is adjusted to the model corresponding to the target communication protocol in step S206, the method further includes: step S207, obtaining the target field in the message data successfully parsed by the target communication protocol; determining the target version number of the table to be adjusted through the target field; and adjusting the version number of the table to be adjusted to the target version number.

[0083] Optionally, the target field may be binary coded. The server stores a correspondence between the binary code and the version number. For example, the version number corresponding to 0001100 is version 1.7, and the version number corresponding to 0001110 is version 1.7.

[0084] For example, the target field in the message data successfully parsed through the target communication protocol is obtained as 0001100; through the target field, it is determined that the target version number of the table to be adjusted is version 1.7, and the version number of the table to be adjusted is adjusted to version 1.7.

[0085] In an embodiment of the present invention, the version number of the table to be adjusted is further determined by the message data after successful parsing. That is, this method can not only determine the model of the table to be adjusted, but also determine the version of the table to be adjusted, thereby providing the applicability of this method.

[0086] In some embodiments, the server can control the meter to be adjusted through the instructions in the instruction set. For example, remotely control the opening and closing of the gas meter switch. The instructions in the instruction set are related to the type of the meter. Accordingly, after the initial model of the meter to be adjusted is adjusted to the model corresponding to the target communication protocol in step S206, the method further includes: step S208, adjusting the instruction set corresponding to the meter to be adjusted to the instruction set corresponding to the target communication protocol, and the instruction set includes at least one instruction for controlling the meter to be adjusted.

[0087] Figure 4 The structure diagram of the device for adjusting the meter model provided by the embodiment of the present invention is shown in FIG. Figure 4 As shown, the device for adjusting the table model includes: a first acquisition module 401, a marking module 402, a second acquisition module 403, a first determination module 404, a second determination module 405 and an adjustment module 406.

[0088] The first acquisition module 401 is used to receive the message data uploaded by the watch and obtain the initial model and identification information of the watch;

[0089] A marking module 402 is used to mark the identification information of the table and the message data of the table and add them to a list to be adjusted if the message data cannot be successfully parsed through the communication protocol matching the initial model of the table;

[0090] The second acquisition module 403 is used to sequentially acquire the message data uploaded by the table to be adjusted and the identification information of the table to be adjusted from the list to be adjusted;

[0091] A first determination module 404 is used to determine a protocol pool matching the identification information of the table to be adjusted based on the identification information of the table to be adjusted, wherein the protocol pool includes multiple communication protocols;

[0092] A second determination module 405, for determining a target communication protocol that successfully parses the message data from a plurality of communication protocols;

[0093] The adjustment module 406 is used to adjust the initial model of the table to be adjusted to a model corresponding to the target communication protocol.

[0094] In one possible design, the second determination module 405 determines the target communication protocol for successfully parsing the message data from multiple communication protocols, specifically including: selecting a first communication protocol from multiple communication protocols; parsing the message data through the first communication protocol, and if the parsing is successful, determining the first communication protocol as the target communication protocol; if the parsing is unsuccessful, continuing to select a second communication protocol from the multiple communication protocols until the selected second communication protocol successfully parses the message data, and determining the second communication protocol that successfully parses the message data as the target communication protocol.

[0095] In one possible design, the second determination module 405 selects a first communication protocol from multiple communication protocols, specifically including: determining an initial model of the table to be adjusted; obtaining a target model associated with the initial model, and selecting a first communication protocol corresponding to the target model from multiple communication protocols, and the table of the target model is similar in appearance to the table of the initial model.

[0096] In one possible design, the model includes multiple versions, and the adjustment module 505 is also used to obtain the target field in the message data successfully parsed through the target communication protocol; determine the target version number of the table to be adjusted through the target field; and adjust the version number of the table to be adjusted to the target version number.

[0097] In a possible design, the adjustment module 505 is further used to adjust the instruction set corresponding to the table to be adjusted to an instruction set corresponding to the target communication protocol, and the instruction set includes at least one instruction for controlling the table to be adjusted.

[0098] The device provided in this embodiment can be used to execute the technical solution of the above method embodiment. Its implementation principle and technical effect are similar, and this embodiment will not be repeated here.

[0099] Figure 5 The hardware structure diagram of the server provided in the embodiment of the present invention is shown in FIG. Figure 5 As shown, the server of this embodiment includes: a processor 501 and a memory 502;

[0100] Memory 502, used to store computer-executable instructions;

[0101] The processor 501 is used to execute the computer-executable instructions stored in the memory to implement the various steps executed by the server in the above embodiment. For details, please refer to the relevant description in the above method embodiment.

[0102] Optionally, the memory 502 may be independent or integrated with the processor 501 .

[0103] When the memory 502 is independently configured, the server further includes a bus 503 for connecting the memory 502 and the processor 501 .

[0104] An embodiment of the present invention further provides a computer storage medium, in which computer execution instructions are stored. When a processor executes the computer execution instructions, the table model adjustment method in any possible implementation manner as described above is implemented.

[0105] The embodiment of the present invention further provides a computer program product, including a computer program. When the computer program is executed by a processor, the method for adjusting the table model in any possible implementation manner as described above is implemented. The embodiment of the present invention further provides a computer program product, including a computer program. When the computer program is executed by a processor, the method for adjusting the table model in any possible implementation manner as described above is implemented.

[0106] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.

[0107] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, or each module may exist physically separately, or two or more modules may be integrated into one unit. The above-mentioned module-composed unit may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0108] The above-mentioned integrated module implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the methods of various embodiments of the present application.

[0109] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.

[0110] The memory may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk memory, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a magnetic disk or an optical disk, etc.

[0111] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.

[0112] The above storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The storage medium can be any available medium that can be accessed by a general or special purpose computer.

[0113] An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the storage medium can also exist as discrete components in an electronic device or a main control device.

[0114] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0115] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for adjusting a meter model. It is characterized in that include: Receive the message data uploaded by the watch, and obtain the initial model and identification information of the watch; If the message data cannot be successfully parsed through the communication protocol matching the initial model of the table, marking the identification information of the table and the message data of the table and adding them to the list to be adjusted; Sequentially acquiring the message data uploaded by the table to be adjusted and the identification information of the table to be adjusted from the list to be adjusted; Based on the identification information of the table to be adjusted, determining a protocol pool matching the identification information of the table to be adjusted, wherein the protocol pool includes a plurality of communication protocols; Determining a target communication protocol from the plurality of communication protocols that successfully parses the message data; The initial model of the table to be adjusted is adjusted to a model corresponding to the target communication protocol.

2. The method according to claim 1, It is characterized in that If the initial model of the meter is a remote gas meter, the protocol pool includes a first protocol pool matching the remote gas meter, and the first protocol pool includes a plurality of communication protocols matching the remote gas meter model.

3. The method according to claim 1, It is characterized in that If the initial model of the meter is a remote water meter, the protocol pool includes a second protocol pool matching the remote water meter, and the second protocol pool includes a plurality of communication protocols matching the remote water meter model.

4. The method according to claim 1, It is characterized in that The step of determining a target communication protocol from the plurality of communication protocols for successfully parsing the message data comprises: Selecting a first communication protocol from the plurality of communication protocols; Parsing the message data by using the first communication protocol, and if the parsing is successful, determining the first communication protocol as the target communication protocol; If the parsing fails, continue to select a second communication protocol from the multiple communication protocols until the selected second communication protocol successfully parses the message data, and determine that the second communication protocol that successfully parses the message data is the target communication protocol.

5. The method according to claim 4, It is characterized in that The selecting a first communication protocol from the plurality of communication protocols comprises: Determining the initial model of the meter to be adjusted; A target model associated with the initial model is obtained, and a first communication protocol corresponding to the target model is selected from the multiple communication protocols, wherein the table of the target model is similar in appearance to the table of the initial model.

6. The method according to any one of claims 1 to 5, It is characterized in that The model includes multiple versions and also includes: Obtaining a target field in the message data successfully parsed by the target communication protocol; Determine the target version number of the table to be adjusted through the target field; The version number of the table to be adjusted is adjusted to the target version number.

7. The method according to any one of claims 1 to 5, It is characterized in that Also includes: The instruction set corresponding to the table to be adjusted is adjusted to an instruction set corresponding to the target communication protocol, wherein the instruction set includes at least one instruction for controlling the table to be adjusted.

8. A device for adjusting the model of a meter, It is characterized in that include: A first acquisition module, configured to receive message data uploaded by a watch and acquire the initial model and identification information of the watch; a marking module, for marking the identification information of the table and the message data of the table and adding them to a list to be adjusted if the message data cannot be successfully parsed through the communication protocol matching the initial model of the table; A second acquisition module is used to sequentially acquire the message data uploaded by the table to be adjusted and the identification information of the table to be adjusted from the list to be adjusted; A first determining module, configured to determine, based on the identification information of the table to be adjusted, a protocol pool matching the identification information of the table to be adjusted, wherein the protocol pool includes a plurality of communication protocols; A second determination module, used to determine a target communication protocol that successfully parses the message data from the multiple communication protocols; The adjustment module is used to adjust the initial model of the table to be adjusted to a model corresponding to the target communication protocol.

9. A server, It is characterized in that include: at least one processor and memory; The memory stores computer-executable instructions; The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor performs the method for adjusting the watch model according to any one of claims 1 to 7.

10. A computer storage medium, It is characterized in that The computer storage medium stores computer execution instructions, and when the processor executes the computer execution instructions, the method for adjusting the watch model as described in any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Water meter protocol matching method and system, storage medium and intelligent terminal

    CN114760372A

  • Multi-protocol adaptive analysis method, Internet of Things metering device, equipment and medium

    CN115334175A