CN115801906A - Scheduling processing method and device for data of multi-brand gas meters - Google Patents

Scheduling processing method and device for data of multi-brand gas meters Download PDF

Info

Publication number
CN115801906A
CN115801906A CN202211355678.2A CN202211355678A CN115801906A CN 115801906 A CN115801906 A CN 115801906A CN 202211355678 A CN202211355678 A CN 202211355678A CN 115801906 A CN115801906 A CN 115801906A
Authority
CN
China
Prior art keywords
data
manufacturer
determining
manufacturer information
format
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211355678.2A
Other languages
Chinese (zh)
Inventor
胡鹏
刘建辉
钟晓明
李书涛
赖嘉兴
温金明
廖敏
邹旺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Saiyite Information Technology Co ltd
Shenzhen Gas Corp Ltd
Original Assignee
Shenzhen Saiyite Information Technology Co ltd
Shenzhen Gas Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Saiyite Information Technology Co ltd, Shenzhen Gas Corp Ltd filed Critical Shenzhen Saiyite Information Technology Co ltd
Priority to CN202211355678.2A priority Critical patent/CN115801906A/en
Publication of CN115801906A publication Critical patent/CN115801906A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The invention discloses a method and a device for scheduling and processing data of multi-brand gas meters, wherein the method comprises the following steps: acquiring manufacturer information corresponding to a device side for sending natural gas data, and determining a table type corresponding to the manufacturer information based on the manufacturer information; determining a data processor corresponding to the manufacturer information based on the manufacturer information, and determining a data protocol corresponding to the data processor; and carrying out format conversion on the natural gas data according to the data protocol to obtain a unified data format. The invention realizes the unified scheduling of the data of the multi-brand gas meters, and is beneficial to not being influenced by the brand difference of the gas meters when the gas use data of the user is collected.

Description

Scheduling processing method and device for data of multi-brand gas meters
Technical Field
The invention relates to the technical field of display module testing, in particular to a method and a device for scheduling and processing data of multi-brand gas meters.
Background
Due to the power consumption problem of the internet of things gas meter, the gas use data needs to be timely uploaded. However, in the prior art, with the huge number of the internet of things lists, different brands of gas meters are required to report data in the same time, and the reported data may be lost due to concurrency problems caused by differences among different brands of gas meters.
Thus, there is a need for improvements and enhancements in the art.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method and an apparatus for scheduling and processing data of multiple brands of gas meters, aiming at solving the problem that in the prior art, when different brands of gas meters report data at the same time, the reported data is lost due to concurrency caused by differences among different brands of gas meters.
In order to solve the technical problems, the technical scheme adopted by the invention is as follows:
in a first aspect, the invention provides a method for scheduling and processing data of a multi-brand gas meter, wherein the method comprises the following steps:
acquiring manufacturer information corresponding to a device side for sending natural gas data, and determining a table type corresponding to the manufacturer information based on the manufacturer information;
determining a data processor corresponding to the manufacturer information based on the manufacturer information, and determining a data protocol corresponding to the data processor;
and carrying out format conversion on the natural gas data according to the data protocol to obtain a unified data format.
In one implementation, the obtaining vendor information corresponding to a device that sends natural gas data, and determining, based on the vendor information, a table type corresponding to the vendor information includes:
acquiring a preset first mapping table, wherein the first mapping table is provided with a corresponding relation between manufacturer information and a meter type;
acquiring an equipment end number, and determining manufacturer information corresponding to the equipment end number based on the equipment end number and the first mapping table, wherein the manufacturer information comprises a manufacturer code;
determining a type of form corresponding to the vendor code based on the vendor code.
In one implementation, the vendor information further includes a vendor name, and the form type is embodied in the form of a form type code; the first mapping table further includes a correspondence between the device side number, the vendor code, the vendor name, and the form type code.
In one implementation, the determining, based on the vendor information, a data processor to which the vendor information corresponds includes:
acquiring a preset second mapping table, wherein the second mapping table is provided with a corresponding relation between manufacturer information and a data processor;
and matching the manufacturer code with the second mapping table to determine the data processor. In one implementation, the matching the vendor code to the second mapping table to determine the data processor includes:
acquiring the equipment type of an equipment end for sending natural gas data, and classifying the manufacturer information based on the equipment type;
and acquiring manufacturer codes belonging to the same class, matching the manufacturer codes belonging to the same class with the second mapping table, and determining the data processor.
In one implementation, the determining a data protocol corresponding to the data processor includes:
and determining a data protocol corresponding to the data processor based on the second mapping table, wherein the second mapping table is also provided with a corresponding relation between the data processor and the data protocol.
In one implementation, the performing format conversion on the natural gas data according to the data protocol to obtain a unified data format includes:
acquiring a data format corresponding to the data protocol, wherein the data format comprises format contents corresponding to all data items;
acquiring an original format of the natural gas data, and determining a preset mapping relation of each part of the original format, wherein the preset mapping relation reflects a format conversion rule of each part;
and converting the original format into the data format based on the preset mapping relation to obtain the unified data format.
In a second aspect, an embodiment of the present invention further provides a device for scheduling and processing data of multiple brands of gas meters, where the device includes:
the meter type determining module is used for acquiring manufacturer information corresponding to a device end for sending natural gas data and determining a meter type corresponding to the manufacturer information based on the manufacturer information;
the data protocol determining module is used for determining a data processor corresponding to the manufacturer information based on the manufacturer information and determining a data protocol corresponding to the data processor;
and the data format conversion module is used for carrying out format conversion on the natural gas data according to the data protocol to obtain a unified data format.
In a third aspect, an embodiment of the present invention further provides a test device, where the test device is a commercially available display terminal or a screen projection terminal, the test device includes a memory, a processor, and a scheduling processing program of data of multiple brands of gas meters, which is stored in the memory and can be run on the processor, and when the processor executes the scheduling processing program of the data of multiple brands of gas meters, the step of implementing the scheduling processing method of the data of multiple brands of gas meters in any one of the above schemes is implemented.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores a scheduling processing program for data of multiple brands of gas meters, and when the scheduling processing program for data of multiple brands of gas meters is executed by a processor, the steps of the scheduling processing method for data of multiple brands of gas meters in any of the foregoing schemes are implemented.
Has the advantages that: compared with the prior art, the invention provides a scheduling processing method of multi-brand gas meter data, which comprises the steps of obtaining manufacturer information of different brands corresponding to a device end for sending natural gas data, a meter type and a data processor corresponding to the manufacturer information, and a data protocol corresponding to the data processor, and carrying out format conversion on the natural gas data according to the data protocol to obtain a unified data format. The method comprises the steps of setting different corresponding codes for each type of gas meter, identifying the data format of the type table through the codes, presetting mapping tables corresponding to different parts in data, and associating the mapping tables with the codes, wherein the first mapping table is provided with the corresponding relation between manufacturer information and meter types, and the corresponding relation between equipment end numbers, the manufacturer codes, manufacturer names and the meter type codes; the second mapping table is provided with a corresponding relation between the manufacturer information and the data processor and a corresponding relation between the data processor and the data protocol. The data sent by the gas meter acquired in this way carries the corresponding relation of the data formats, and different types of data formats are unified and read into the system by identifying the data formats and the data protocols. If a new type of meter appears, the mapping format corresponding to the travel is confirmed by the manufacturer, and when the type of gas meter reads, the sent data can be identified by the mapping relation. The invention is beneficial to not being influenced by the brand difference of the gas meters when the gas use data of the user is collected.
Drawings
Fig. 1 is a flowchart of a specific implementation of a method for scheduling and processing data of a multi-brand gas meter according to an embodiment of the present invention.
Fig. 2 is an example of a unified data format according to an embodiment of the present invention.
Fig. 3 is a functional schematic diagram of a scheduling processing apparatus for data of multi-brand gas meters according to an embodiment of the present invention.
Fig. 4 is a schematic block diagram of a testing apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and effects of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
In real life, the types of gas meters are very rich and varied, and users often select gas meters of different brands according to their own preferences, so that the brands and models of the gas meters corresponding to the gas users are different, and as the number of home users increases, under the power consumption pressure of the internet of things gas meter, gas use data needs to be reported in time. In the process, because different brands of gas meters report data at the same time, the problem that the reported data cannot be identified in the process of reporting the used gas data may occur due to differences among the different brands of gas meters, or the reported data is lost due to concurrency, so that it is increasingly difficult to uniformly collect and process the data of the multiple brands of gas meters.
In order to solve the above problems, the present invention provides a scheduling processing method for data of multi-brand gas meters, which includes obtaining manufacturer information corresponding to a device end that sends natural gas data, determining a meter type, a data processor and a data protocol corresponding to the data processor, where the manufacturer information corresponds to the manufacturer information, and performing format conversion on the natural gas data through the data protocol to obtain a uniform data format. Therefore, the method and the device can realize unified scheduling of data of the multi-brand gas meters, and are favorable for collecting the gas use data of the user without being influenced by brand differences of the gas meters.
For example, the present invention first determines, by obtaining vendor information corresponding to an equipment end that sends natural gas data, a table type and a data processor corresponding to the vendor information, and a data protocol corresponding to the data processor, where the table type is embodied in a table type code form, for example, if the vendor code corresponding to the equipment end that obtains the natural gas data is EA, the corresponding table type code is 35, the data processor corresponding to the vendor table is an SRUDP processor, and the corresponding data protocol is a deep-burn UDP protocol. Then, the invention carries out format conversion on the natural gas data through the data protocol to obtain a unified data format, wherein the unified data format protocol provides a conversion standard for format conversion among different brands, for example, gas meter data with a manufacturer code EA and a manufacturer code TJ are obtained, and data transmission protocols corresponding to the two manufacturer codes are respectively a deep-burning UDP protocol and a Tianzhujian TCP protocol.
Exemplary method
The method for scheduling and processing the data of the multi-brand gas meters, provided by the embodiment, can be applied to test equipment, the test equipment can be an intelligent product terminal such as a computer, a mobile phone and a tablet personal computer, and the test equipment realizes the steps of the method for scheduling and processing the data of the whole multi-brand gas meters. In specific application, as shown in fig. 1, the method for scheduling and processing data of a plurality of brands of gas meters includes the following steps:
step S100, acquiring manufacturer information corresponding to a device side sending natural gas data, and determining a table type corresponding to the manufacturer information based on the manufacturer information.
In a specific implementation process, the obtained natural gas data is subjected to format conversion through a data processor corresponding to information of each gas meter manufacturer and a data protocol corresponding to the data processor, so that a final unified data format is obtained. Therefore, in this embodiment, manufacturer information corresponding to the device side that sends the natural gas data needs to be acquired first, so that gas meter data of manufacturers of various brands can be acquired in the subsequent process.
In an implementation manner, when obtaining vendor information corresponding to a device end that sends natural gas data, the embodiment includes the following steps:
step S101, acquiring a preset first mapping table, wherein the first mapping table is provided with a corresponding relation between manufacturer information and a meter type;
step S102, acquiring a device end number, and determining manufacturer information corresponding to the device end number based on the device end number and the first mapping table, wherein the manufacturer information comprises a manufacturer code;
and step S103, determining the table type corresponding to the manufacturer code based on the manufacturer code.
In a specific implementation process, in this embodiment, a preset first mapping table needs to be obtained first, as shown in table 1 below, where the first mapping table is provided with a correspondence between vendor information and a meter type.
Figure BDA0003921063690000071
Figure BDA0003921063690000081
TABLE 1
Specifically, the preset first mapping table is provided with information of various large manufacturers corresponding to the equipment side for acquiring the natural gas data, and the table type codes corresponding to various large brand manufacturers can be known through the first mapping table. For example, when the manufacturer name corresponding to the device side that acquires the transmitted natural gas data is manufacturer a, the table type code corresponding to the manufacturer a is set to be 35 in the first mapping table; when the manufacturer name corresponding to the equipment side which acquires the transmitted natural gas data is manufacturer J, a table type code corresponding to the manufacturer J manufacturer is set to be 36 correspondingly in the first mapping table.
In an implementation manner, in this embodiment, a device end number is obtained, and vendor information corresponding to the device end number is determined based on the device end number and the first mapping table, where the vendor information includes a vendor code. Specifically, the vendor information corresponding to the device side number is unique, and the unique corresponding vendor information can be determined. When the device end number obtained in this embodiment is 25, the corresponding vendor information may be obtained according to the related information preset in the first mapping table, where the vendor codes include: the name of the manufacturer is manufacturer R, the code of the manufacturer (system end) is EY, and the code of the table type is 35; when the device side number is acquired as 26, the corresponding manufacturer information may be acquired according to the relevant information preset in the first mapping table, where the manufacturer codes include: the manufacturer name is manufacturer R, the manufacturer code (system side) is EZ, and the form type code is 35. Since the manufacturer corresponding to the equipment end number is unique, and the table type cannot be accurately determined because the names of the manufacturers are the same, the equipment end number is obtained to determine the manufacturer information corresponding to the equipment end number in this embodiment.
In one implementation, the present embodiment determines, based on the vendor code, a form type corresponding to the vendor code, where the form type is embodied in a form type code. For example, when the manufacturer code obtained in this embodiment is EA, it may be determined that the table type code corresponding to the manufacturer code is 35, and the corresponding table type is 35; when the acquired manufacturer code is ET, determining that a table type code corresponding to the manufacturer code is 35 and the corresponding table type is 35; when the obtained vendor code is EI, it may be determined that the table type code corresponding to the vendor code is 36, and the corresponding table type is 36.
In another implementation, as shown in table 1, the vendor information further includes a vendor name; the first mapping table further includes a correspondence between the device side number, the vendor code, the vendor name, and the table type code. Specifically, the preset first mapping table is provided with information of various large manufacturers corresponding to the equipment end for acquiring the natural gas data, and equipment end numbers, manufacturer codes, manufacturer names and the like corresponding to various large-brand manufacturers can be known through the first mapping table. For example, when the manufacturer name corresponding to the device side that acquires the transmitted natural gas data is manufacturer a, the first mapping table is provided with a device side number 1 corresponding to the manufacturer a, a manufacturer code (system side) corresponding to the manufacturer a is EA, a meter type code corresponding to the manufacturer a is 35, and a corresponding meter type is non-residential prepayment; when the manufacturer name corresponding to the device end which acquires the transmitted natural gas data is manufacturer B, the first mapping table is correspondingly provided with a device end number 2 corresponding to manufacturer B, a manufacturer code (system end) corresponding to manufacturer B is EB, a meter type code 35 corresponding to manufacturer B, and a corresponding meter type is non-residential prepaid.
And S200, determining a data processor corresponding to the manufacturer information based on the manufacturer information, and determining a data protocol corresponding to the data processor.
In a specific implementation process, the obtained natural gas data is subjected to format conversion through a data processor corresponding to information of each gas meter manufacturer and a data protocol corresponding to the data processor, so that a final unified data format is obtained. For this reason, in this embodiment, a data processor corresponding to the vendor information needs to be obtained, so as to determine a data protocol corresponding to the data processor in a subsequent process.
In one implementation manner, in the embodiment, when determining the data processor corresponding to the vendor information, the method includes the following steps:
step S201, acquiring a preset second mapping table, wherein the second mapping table is provided with a corresponding relation between manufacturer information and a data processor;
and step S202, matching the manufacturer code with the second mapping table to determine the data processor.
In a specific implementation process, the embodiment needs to obtain a second mapping table, where the second mapping table is provided with a correspondence between vendor information and a data processor. Specifically, by using vendor information such as a vendor code set in the second mapping table, the data protocol corresponding to the data processor may be determined according to the corresponding relationship in the second mapping table. If a new type of meter appears, the mapping format corresponding to the travel is confirmed by the manufacturer, and when the type of gas meter is read, the sent data can be identified by the mapping relation.
In one implementation, step S202 specifically includes:
s1, acquiring the equipment type of an equipment end for sending natural gas data, and classifying the manufacturer information based on the equipment type;
and S2, acquiring manufacturer codes belonging to the same class, matching the manufacturer codes belonging to the same class with the second mapping table, and determining the data processor.
In one implementation, as shown in table 1, the types of devices at the device end that transmit gas data include, in particular, non-residential prepaid, non-residential remote and residential prepaid. Since the vendor information includes a vendor code and a vendor name, and the vendor table type code is obtained based on the vendor code, this embodiment may classify the vendor information based on the device type to obtain table 1. The device type of the device end for sending the natural gas data is non-residential prepayment and residential prepayment time, and the corresponding meter type code is 35, namely the corresponding meter type is 35; when the device type of the device side sending the natural gas data is non-remote transmission, the corresponding meter type code is 36, that is, the corresponding meter type is 36. For example, in the embodiment, based on the first mapping table, when the manufacturer name is manufacturer R, if the corresponding manufacturer code is EY, the corresponding meter type is 35, and the meter belongs to the residential prepayment type; if the corresponding manufacturer code is EZ and the corresponding meter type is 35, the meter belongs to the non-residential prepaid type. When the manufacturer name is manufacturer J, if the manufacturer code corresponding to the manufacturer J is EI, the corresponding table type is 36, which belongs to the non-remote transfer type.
In one implementation, the vendor code of the different classes correspond to respective data processors. In this embodiment, the data processor is determined by obtaining manufacturer codes belonging to the same class in the gas meter manufacturer information, and matching the manufacturer codes belonging to the same class with the second mapping table. The manufacturers listed in table 1, such as manufacturer a, manufacturer B, manufacturer J, manufacturer R, etc., have the manufacturer codes EA, EB, EI, EZ, respectively, which all belong to the same class of manufacturer codes and correspond to the same data processor. The manufacturer codes EA, EB, EC \8230, EZ and the corresponding data processor are as follows: and an SRUDP processor. In addition, the data processor corresponding to the manufacturer codes WP and WH is: an SRNB processor; the data processor corresponding to the manufacturer code TJ is as follows: a TXJTCP processor; the data processor corresponding to the manufacturer codes WPE and WHE is as follows: a SRNBENCYPT processor; preferably, the same vendor code EG may correspond to different data processors, for example, the data processors corresponding to the vendor code EG have SRPUDP processor and JKTCP processor, respectively.
In another implementation manner, this embodiment determines a data protocol corresponding to the data processor based on the second mapping table, where the second mapping table further includes a correspondence between the data processor and the data protocol. Specifically, manufacturer codes EA, EB, EC \8230, EZ and a data processor corresponding to the same are SRUDP processors, and a data protocol corresponding to the SRUDP processor is a deep burning UDP protocol; the data processors corresponding to the manufacturer codes WP and WH are SRNB processors, and the data protocols corresponding to the SRNB processors are deep burn NB protocols; the data processor corresponding to the vendor code TJ is: the TXJTCP processor, the data protocol corresponding to the TXJTCP processor is the Tianjian TCP protocol, etc. Preferably, the data processors have different corresponding data protocols, for example, the data processors corresponding to the manufacturer code EG have SRPUDP and JKTCP, and the corresponding data protocols are the deep combustion pressure monitoring device protocol and the gold card TCP protocol, respectively.
And S300, carrying out format conversion on the natural gas data according to the data protocol to obtain a unified data format.
In one implementation manner, in the embodiment, when determining the data processor corresponding to the vendor information, the method includes the following steps:
step S301, acquiring a data format corresponding to the data protocol, wherein the data format comprises format contents corresponding to each data item;
step S302, acquiring an original format of the natural gas data, and determining a preset mapping relation of each part of the original format, wherein the preset mapping relation reflects a format conversion rule of each part;
step S303, converting the original format into the data format based on the preset mapping relation to obtain the unified data format.
Specifically, in this embodiment, the data format corresponding to the natural gas data is obtained through a data protocol, including the format content corresponding to each data item. Specifically, the data items corresponding to the natural gas data acquired in this embodiment include: meter on signal, reporting period, period value, reporting time, meter reading time, standard condition total amount, working condition instantaneous flow, temperature, pressure, network signal strength, meter type, meter classification, valve state, power supply type, battery 1 electric quantity percentage, battery 2 electric quantity percentage, SIM card or IMSI number length, SIM card/IMSI number, latest balance, latest settlement reading, latest settlement time and reserved byte.
Preferably, the format content corresponding to the data item has a data type and a length (byte), the specific correspondence is as shown in table 2 below, and different data items correspond to respective data types and lengths, for example: the data item table has a data type corresponding to the communication signal as ASCII, a corresponding length as 16, and belongs to 16-byte ASCII codes; the data types corresponding to the data item reporting period and the period value are all HEX, and the corresponding lengths are all 1; the data type corresponding to the data item reporting time and the meter reading time is BCD, but the length corresponding to the reporting time is 2, and the length corresponding to the meter reading time is 6.
Figure BDA0003921063690000131
Figure BDA0003921063690000141
Figure BDA0003921063690000151
Figure BDA0003921063690000161
Figure BDA0003921063690000171
TABLE 2
In an implementation manner, in this embodiment, a preset mapping relationship of each part of the original format is determined by obtaining the original format of the natural gas data. Specifically, in this embodiment, the original format of the natural gas includes format contents corresponding to original data items of the tables of the manufacturers. The original data items and the data format protocols are mapped one by one, so that a preset mapping relation of each part of the original format can be determined, and the preset mapping relation reflects a format conversion rule of each part, as shown in the last column of table 2.
In an implementation manner, the present embodiment converts the original format into the data format based on the preset mapping relationship, so as to obtain the unified data format. For example, since each table has a manufacturer code, and each table has a data processor and a data protocol corresponding to the manufacturer code, the present embodiment converts each acquired original data item based on the data protocol, and can unify the data formats. For example, if the manufacturer code corresponding to the device side that obtains the data of the transmitted natural gas is one of EA, EB, EC \8230; \8230, EZ, then the data processor corresponding to the manufacturer table is an SRUDP processor, and the corresponding data protocol is a deep-burn UDP protocol, in this embodiment, the SRUDP processor converts the obtained original format to obtain the original data format.
Preferably, as shown in table 2, the present embodiment provides a unified data format protocol by which data formats of different gas meter types can be unified. In specific implementation, if concurrent scheduling processing is performed on gas meter data with a manufacturer code of EA (corresponding to a data transfer protocol of a deep-burn UDP protocol) and a manufacturer code of TJ (corresponding to a data transfer protocol of a tianwenjian TCP protocol), in this embodiment, a unified data format protocol is used to unify the format of meter data of two manufacturers of different brands, specifically, format contents corresponding to each meter data item of two manufacturers are unified in this embodiment. For example, reporting time of data items carried by an EA code of a manufacturer and a TJ code of the manufacturer is unified according to a format, where a data type corresponding to the reporting time is BCD and the length is 2 bytes, and if yes, the data items are represented by the following formula in 08:20, reporting, wherein the reporting time is uniformly represented by 0x0820, and the specific conversion relationship is as follows: when the reporting period is 0,1, the reporting time is invalid and is filled with 0x00, and when the reporting period is 2,3,4, the reporting time is the specific time of data reporting, and is accurate to minutes; the method includes the steps of unifying formats of data item temperatures carried by an EA code of a manufacturer and a TJ code of the manufacturer, wherein a data type corresponding to the temperature is Short Int and the length is 2 bytes, and when the temperature is converted according to a unified data format protocol in this embodiment, first unifying original temperature data units respectively obtained by the EA code of the manufacturer and the TJ by 0.1 ℃ through the data protocols respectively carried by the EA code of the manufacturer and the TJ, and keeping a decimal, and multiplying a reporting time by 10 to obtain a unified temperature data format, for example, the embodiment converts a temperature 28.4 ℃ obtained from the EA code of the manufacturer into reporting data 284, and converts a temperature 26.0 ℃ obtained from the TJ code of the manufacturer into reporting data 260. By analogy, in this embodiment, the uniform data format protocol is adopted to unify the meter data items of multiple different brand manufacturers one by one, that is, the unification of the data formats of the multiple brand meters is obtained, and the unified data format is as exemplified in fig. 2. According to the scheduling processing method of the multi-brand gas meter data, the data formats of different brands of gas meters are unified, and the unified collection of the gas use data of the user cannot be influenced due to the different data formats in different gas meter brands.
Exemplary devices
Based on the foregoing embodiment, the present invention further provides a device for scheduling and processing data of a multi-brand gas meter, as shown in fig. 3, the device includes: a table type determining module 10, a data protocol determining module 20 and a data format converting module 30. Specifically, the meter type determining module 10 is configured to obtain manufacturer information corresponding to a device that sends the natural gas data, and determine a meter type corresponding to the manufacturer information based on the manufacturer information. The data protocol determining module 20 is configured to determine, based on the vendor information, a data processor corresponding to the vendor information, and determine a data protocol corresponding to the data processor. The data format conversion module 30 is configured to perform format conversion on the natural gas data according to the data protocol to obtain a unified data format.
In one implementation, the form type determining module includes:
the device comprises a first mapping table determining unit, a first mapping table determining unit and a second mapping table determining unit, wherein the first mapping table determining unit is used for acquiring a preset first mapping table, and the first mapping table is provided with a corresponding relation between manufacturer information and a meter type;
the manufacturer information determining unit is used for acquiring a device end number, and determining manufacturer information corresponding to the device end number based on the device end number and the first mapping table, wherein the manufacturer information comprises a manufacturer code;
and the table type determining unit is used for determining the table type corresponding to the manufacturer code based on the manufacturer code.
In one implementation, the data protocol determination module includes:
the second mapping table determining unit is used for acquiring a preset second mapping table, and the second mapping table is provided with a corresponding relation between manufacturer information and the data processor;
and the data processor determining unit is used for matching the manufacturer codes with the second mapping table to determine the data processor.
In one implementation, the data processor determines a unit, including:
the classification subunit is used for acquiring the equipment type of an equipment end for sending the natural gas data and classifying the manufacturer information based on the equipment type;
and the data processor determining subunit is used for acquiring the manufacturer codes belonging to the same class, matching the manufacturer codes belonging to the same class with the second mapping table and determining the data processor.
In one implementation, the data format conversion module includes:
a data format determining unit, configured to obtain a data format corresponding to the data protocol, where the data format includes format content corresponding to each data item;
the original format determining unit is used for acquiring an original format of the natural gas data and determining a preset mapping relation of each part of the original format, wherein the preset mapping relation reflects a format conversion rule of each part;
and the data format conversion unit is used for converting the original format into the data format based on the preset mapping relation to obtain the unified data format.
The working principle of each template in the scheduling processing system of the multi-brand gas meter data of the embodiment is the same as that of each step in the above method embodiment, and details are not repeated here.
Based on the above embodiment, the present invention further provides a testing device, a schematic block diagram of which may be shown in fig. 4, where the testing device is an upper computer, such as a computer device, in the above embodiment. The test equipment may include one or more processors 100 (only one shown in fig. 4), a memory 101, and a computer program 102 stored in the memory 101 and executable on the one or more processors 100, for example, a program for scheduling processing of multi-brand gas meter data. The steps in method embodiments of the scheduling process of multi-brand gas meter data may be implemented by one or more processors 100 executing computer program 102. Alternatively, the one or more processors 100, when executing the computer program 102, may implement the functions of each template/unit in the apparatus embodiment of the scheduling process of the multi-brand gas meter data, and is not limited herein.
In one embodiment, processor 100 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In one embodiment, the storage 101 may be an internal storage unit of the electronic device, such as a hard disk or a memory of the electronic device. The memory 101 may also be an external storage device of the electronic device, such as a plug-in hard disk, a Smart Memory Card (SMC), a Secure Digital (SD) card, a flash memory card (flash card), and the like provided on the electronic device. Further, the memory 101 may also include both an internal storage unit and an external storage device of the electronic device. The memory 101 is used for storing computer programs and other programs and data required for testing the device. The memory 101 may also be used to temporarily store data that has been output or is to be output.
It will be understood by those skilled in the art that the schematic block diagram shown in fig. 4 is only a block diagram of a portion of the structure associated with the inventive arrangements and does not constitute a limitation on the test equipment to which the inventive arrangements are applied, a particular test equipment may include more or less components than shown in the drawings, or may combine certain components, or have a different arrangement of components.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, operational databases, or other media used in embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double-rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), rambus (Rambus) direct RAM (RDRAM), direct Rambus Dynamic RAM (DRDRAM), and Rambus Dynamic RAM (RDRAM).
In summary, the invention discloses a method and a device for scheduling and processing data of multi-brand gas meters, wherein the method comprises the following steps: acquiring manufacturer information corresponding to a device end for sending natural gas data, and determining a table type corresponding to the manufacturer information based on the manufacturer information; determining a data processor corresponding to the manufacturer information based on the manufacturer information, and determining a data protocol corresponding to the data processor; and carrying out format conversion on the natural gas data according to the data protocol to obtain a unified data format. The invention realizes the unified scheduling of the data of the multi-brand gas meters, and is beneficial to not being influenced by the brand difference of the gas meters when the gas use data of the user is collected.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A scheduling processing method for multi-brand gas meter data is characterized by comprising the following steps:
acquiring manufacturer information corresponding to a device side for sending natural gas data, and determining a table type corresponding to the manufacturer information based on the manufacturer information;
determining a data processor corresponding to the manufacturer information based on the manufacturer information, and determining a data protocol corresponding to the data processor;
and carrying out format conversion on the natural gas data according to the data protocol to obtain a unified data format.
2. The method for scheduling and processing the data of the multi-brand gas meters according to claim 1, wherein the obtaining manufacturer information corresponding to a device side that sends the natural gas data and determining the type of the meter corresponding to the manufacturer information based on the manufacturer information comprises:
acquiring a preset first mapping table, wherein the first mapping table is provided with a corresponding relation between manufacturer information and a meter type;
acquiring an equipment end number, and determining manufacturer information corresponding to the equipment end number based on the equipment end number and the first mapping table, wherein the manufacturer information comprises a manufacturer code;
determining a form type corresponding to the vendor code based on the vendor code.
3. The method for scheduling and processing the data of the multi-brand gas meters according to claim 2, wherein the manufacturer information further includes a manufacturer name, and the meter type is embodied in a meter type code; the first mapping table further includes a correspondence between the device side number, the vendor code, the vendor name, and the table type code.
4. The method for scheduling and processing the data of the multi-brand gas meters according to claim 2, wherein the determining the data processor corresponding to the manufacturer information based on the manufacturer information includes:
acquiring a preset second mapping table, wherein the second mapping table is provided with a corresponding relation between manufacturer information and a data processor;
and matching the manufacturer code with the second mapping table to determine the data processor.
5. The method for scheduling and processing the data of the multi-brand gas meters according to claim 4, wherein the step of matching the manufacturer code with the second mapping table to determine the data processor comprises:
acquiring the equipment type of an equipment end for sending natural gas data, and classifying the manufacturer information based on the equipment type;
and acquiring manufacturer codes belonging to the same class, matching the manufacturer codes belonging to the same class with the second mapping table, and determining the data processor.
6. The method for scheduling and processing the data of the multi-brand gas meters according to claim 4, wherein the determining the data protocol corresponding to the data processor includes:
and determining a data protocol corresponding to the data processor based on the second mapping table, wherein the second mapping table is also provided with a corresponding relation between the data processor and the data protocol.
7. The method for scheduling and processing the data of the multi-brand gas meters according to claim 4, wherein the converting the format of the natural gas data according to the data protocol to obtain a unified data format comprises:
acquiring a data format corresponding to the data protocol, wherein the data format comprises format contents corresponding to each data item;
acquiring an original format of the natural gas data, and determining a preset mapping relation of each part of the original format, wherein the preset mapping relation reflects a format conversion rule of each part;
and converting the original format into the data format based on the preset mapping relation to obtain the unified data format.
8. A scheduling processing device of multi-brand gas meter data is characterized by comprising:
the meter type determining module is used for acquiring manufacturer information corresponding to a device end for sending natural gas data and determining a meter type corresponding to the manufacturer information based on the manufacturer information;
the data protocol determining module is used for determining a data processor corresponding to the manufacturer information based on the manufacturer information and determining a data protocol corresponding to the data processor;
and the data format conversion module is used for carrying out format conversion on the natural gas data according to the data protocol to obtain a unified data format.
9. A testing device, comprising a memory, a processor and a scheduling processing program of data of multiple brands of gas meters, wherein the scheduling processing program of data of multiple brands of gas meters is stored in the memory and can be run on the processor, and when the processor executes the scheduling processing program of data of multiple brands of gas meters, the steps of the scheduling processing method of data of multiple brands of gas meters according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium, wherein a scheduling processing program of data of multiple brands of gas meters is stored on the computer-readable storage medium, and when the scheduling processing program of data of multiple brands of gas meters is executed by a processor, the steps of the scheduling processing method of data of multiple brands of gas meters according to any one of claims 1 to 7 are implemented.
CN202211355678.2A 2022-11-01 2022-11-01 Scheduling processing method and device for data of multi-brand gas meters Pending CN115801906A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211355678.2A CN115801906A (en) 2022-11-01 2022-11-01 Scheduling processing method and device for data of multi-brand gas meters

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211355678.2A CN115801906A (en) 2022-11-01 2022-11-01 Scheduling processing method and device for data of multi-brand gas meters

Publications (1)

Publication Number Publication Date
CN115801906A true CN115801906A (en) 2023-03-14

Family

ID=85434784

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211355678.2A Pending CN115801906A (en) 2022-11-01 2022-11-01 Scheduling processing method and device for data of multi-brand gas meters

Country Status (1)

Country Link
CN (1) CN115801906A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107038853A (en) * 2017-04-18 2017-08-11 国网河北省电力公司衡水供电分公司 The method and its system and device of a kind of unified conversion of multilist
CN107770022A (en) * 2017-10-20 2018-03-06 深圳益邦阳光有限公司 Collecting method, electronic equipment and storage medium based on rtu protocol
CN108989293A (en) * 2018-06-27 2018-12-11 武汉虹信技术服务有限责任公司 A kind of intelligent building management platform adaption system and adaptation method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107038853A (en) * 2017-04-18 2017-08-11 国网河北省电力公司衡水供电分公司 The method and its system and device of a kind of unified conversion of multilist
CN107770022A (en) * 2017-10-20 2018-03-06 深圳益邦阳光有限公司 Collecting method, electronic equipment and storage medium based on rtu protocol
CN108989293A (en) * 2018-06-27 2018-12-11 武汉虹信技术服务有限责任公司 A kind of intelligent building management platform adaption system and adaptation method

Similar Documents

Publication Publication Date Title
US11870658B2 (en) Method and apparatus for updating gateway resource, and IOT control platform
CN111537944B (en) Calibration parameter determination method, microcontroller, metering chip and upper computer
CN109670081B (en) Method and device for processing service request
CN109886689B (en) Data evidence storing and obtaining method and device based on block chain
CN102893489A (en) Generation of renewable energy certificates from distributed producers
CN112068865A (en) Efficient intelligent gas meter differential firmware upgrading method
CN113993000B (en) Transmission method, operation system and transmission equipment for field monitoring data
CN101324637A (en) Remote measurement and analysis system
CN115473924A (en) Carbon emission metering system based on thing networking block chain
CN115801906A (en) Scheduling processing method and device for data of multi-brand gas meters
CN116471302A (en) Remote dynamic configuration method of electric power acquisition system
CN112948194A (en) Communication protocol testing method and device
CN113467832A (en) Equipment control processing method, device, storage medium and electronic device
CN111385379A (en) Internet of things identification method and device for eSIM terminal
CN114115008A (en) 5G network-based power equipment operation data transmission method and system
CN107911289A (en) A kind of data gateway of analytical instrument
EP4097882A1 (en) Serial command protocol encapsulating wire transfer protocol
CN114070863B (en) Data processing method and device, electronic equipment and storage medium
CN115835051B (en) Method, apparatus, processing device and storage medium for performing predetermined operation
CN113434612B (en) Data statistics method and device, storage medium and electronic device
CN117668090B (en) Data exchange method, data exchange device, electronic equipment and computer readable storage medium
CN112910086B (en) Intelligent substation data verification method and system
EP2216627A1 (en) A method of registering a utility meter, corresponding device, storage means, and software program therefor
CN114384963B (en) MPPT parameter remote binding method, dynamic acquisition method and device and computer equipment
CN111949747B (en) Android-based method for solving form informatization of portable intelligent terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination