A data uploading method, device, smart meter and storage medium
By setting up multiple communication modules in the smart table and determining the module with low power consumption according to the current reference parameters for data upload, the problem of low data upload reliability of smart table data is solved, and higher data upload reliability and longer battery life are achieved.
Patent Information
- Application Number
- CN202210979246.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-16
- Publication Date
- 2025-03-04
- Estimated Expiration
- 2042-08-16
AI Technical Summary
There is a problem of low reliability in the process of uploading data to the cloud platform, mainly due to fluctuations in the communication module access network, which makes it impossible to upload data stably.
The first communication module and the second communication module are set in the smart table, and by obtaining the current reference parameters of each module, the module with low power consumption is determined as the target communication module for uploading table data.
Through the coordinated settings of dual communication modules, network fluctuations in a single communication module application are avoided, the reliability of uploading data to the cloud platform of smart tables is improved, and the power consumption of data communication is reduced, and the service life of batteries in smart tables is extended.
Smart Images

Figure CN117641152B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of Internet of Things, and in particular to a data uploading method, device, smart meter and storage medium. Background Art
[0002] With the development of Internet of Things technology, the data collection methods of devices such as water meters, gas meters and electricity meters have also undergone significant changes (referring to the replacement of traditional manual data collection methods with remote automatic data collection methods through the setting of smart water meters, smart gas meters and smart electricity meters).
[0003] Smart meters (referring to devices such as smart water meters, smart gas meters and smart electricity meters) will upload data to the cloud platform through communication modules. However, at present, due to factors such as fluctuations in the network to which the communication module is connected, the data generated by the smart meter cannot be stably uploaded to the cloud platform. In other words, the reliability of related technologies in the process of smart meters uploading data to the cloud platform is low. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a data uploading method, device, smart meter and storage medium, which are used to solve the problem of low reliability in the related technology when the smart meter uploads data to the cloud platform.
[0005] In a first aspect, an embodiment of the present application provides a data uploading method, which is applied to a smart meter, wherein the smart meter includes a first communication module and a second communication module, and the method includes:
[0006] Acquire a first current reference parameter of the first communication module and a second current reference parameter of the second communication module;
[0007] Determining a target communication module in the first communication module and the second communication module according to the first current reference parameter and the second current reference parameter, wherein the target communication module is a module with lower power consumption between the first communication module and the second communication module;
[0008] The table data of the smart table is uploaded according to the target communication module.
[0009] Optionally, determining a target communication module in the first communication module and the second communication module according to the first current reference parameter and the second current reference parameter includes:
[0010] When the first current reference parameter is less than the second current reference parameter, determining the first communication module as a target communication module;
[0011] When the first current reference parameter is greater than or equal to the second current reference parameter, the second communication module is determined as the target communication module.
[0012] Optionally, after determining a target communication module in the first communication module and the second communication module according to the first current reference parameter and the second current reference parameter, the method further includes:
[0013] When the target communication module is the first communication module and the first power reference parameter of the first communication module is less than the first power actual parameter of the first communication module, obtaining the first current actual parameter of the first communication module, and when the first current actual parameter is greater than or equal to the second current reference parameter, updating the target communication module to the second communication module;
[0014] When the target communication module is the second communication module and the second power reference parameter of the second communication module is less than the second power actual parameter of the second communication module, the second current actual parameter of the second communication module is obtained, and when the second current actual parameter is greater than the first current reference parameter, the target communication module is updated to the first communication module.
[0015] Optionally, the method further includes:
[0016] When the first power reference parameter is different from the first power actual parameter, and the first current reference parameter is different from the first current actual parameter, adjusting the first power reference parameter to the first power actual parameter, and adjusting the first current reference parameter to the first current actual parameter;
[0017] When the second power reference parameter is different from the second power actual parameter, and the second current reference parameter is different from the second current actual parameter, the second power reference parameter is adjusted to the second power actual parameter, and the second current reference parameter is adjusted to the second current actual parameter.
[0018] Optionally, before acquiring the first current reference parameter of the first communication module and the second current reference parameter of the second communication module, the method further includes:
[0019] When both the first communication module and the second communication module are in a fault state, generating equipment maintenance information;
[0020] The equipment maintenance information is displayed to the user.
[0021] Optionally, the first current reference parameter is an average value of N first current parameters of the first communication module, the first current parameter is a current value corresponding to when the smart meter uploads test data to the cloud platform based on the first communication module, and N is an integer greater than 1;
[0022] The second current reference parameter is an average value of N second current parameters of the second communication module, and the second current parameter is a current value corresponding to when the smart meter uploads the test data to the cloud platform based on the second communication module.
[0023] In a second aspect, an embodiment of the present application provides a data uploading device, which is applied to a smart meter, wherein the smart meter includes a first communication module and a second communication module, and the device includes:
[0024] A parameter acquisition module, used to acquire a first current reference parameter of the first communication module and a second current reference parameter of the second communication module;
[0025] a module determination module, configured to determine a target communication module in the first communication module and the second communication module according to the first current reference parameter and the second current reference parameter, wherein the target communication module is a module with lower power consumption in the first communication module and the second communication module;
[0026] A data uploading module is used to upload the table data of the smart meter according to the target communication module.
[0027] Optionally, the module determination module includes:
[0028] The module determines a first submodule, configured to determine the first communication module as a target communication module when the first current reference parameter is less than the second current reference parameter;
[0029] The module determines a second submodule, which is used to determine the second communication module as the target communication module when the first current reference parameter is greater than or equal to the second current reference parameter.
[0030] In the third aspect, an embodiment of the present application provides a smart meter, comprising a first communication module, a second communication module, a processor, a memory, and a program or instruction stored in the memory and executable on the processor; when the program or instruction is executed by the processor, the steps in the data uploading method described in the first aspect above are implemented.
[0031] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps in the data uploading method described in the first aspect above are implemented.
[0032] The data uploading method provided in the embodiment of the present application can not only avoid the network fluctuation problem existing in the application of a single communication module and improve the reliability of the smart meter in uploading data to the cloud platform, but also reduce the power consumption of the smart meter in data communication, thereby extending the battery life of the smart meter, by setting a first communication module and a second communication module in the smart meter, and determining the module with lower power consumption among the first communication module and the second communication module as the target communication module for uploading meter data. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 It is a flowchart of a data uploading method provided in an embodiment of the present application;
[0034] Figure 2 It is a structural diagram of a communication board hardware circuit provided in an embodiment of the present application;
[0035] Figure 3 This is a flow chart of a smart meter in the home initialization stage provided by an embodiment of the present application;
[0036] Figure 4 It is a schematic diagram corresponding to a workflow 1 of a smart meter provided in an embodiment of the present application;
[0037] Figure 5 It is a schematic diagram corresponding to a workflow 2 of a smart meter provided in an embodiment of the present application;
[0038] Figure 6 It is a structural diagram of a data uploading device provided in an embodiment of the present application;
[0039] Figure 7 It is a schematic diagram of the structure of another smart meter provided in an embodiment of the present application. DETAILED DESCRIPTION
[0040] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0041] See also Figure 1 , Figure 1 is a flow chart of a data uploading method provided in an embodiment of the present application, which is applied to a smart meter, wherein the smart meter includes a first communication module and a second communication module, such as Figure 1 As shown, the data uploading method includes:
[0042] Step 101: Obtain a first current reference parameter of the first communication module and a second current reference parameter of the second communication module.
[0043] In one example, the smart meter may be any one of a smart water meter, a smart gas meter and a smart electricity meter; the first communication module may be a narrowband Internet of Things (NB-IoT) module; the second communication module may be a ZETA module (which can be understood as a communication module implemented using ZETA technology).
[0044] Through the coordinated setting of dual communication modules, the smart meter can upload table data by using the second communication module with a better network environment (compared to the first communication module) when the first communication module experiences network fluctuations; similarly, the smart meter can also upload table data by using the first communication module with a better network environment (compared to the second communication module) when the second communication module experiences network fluctuations, thereby improving the reliability of the smart meter in uploading data to the cloud platform.
[0045] Step 102: Determine a target communication module in the first communication module and the second communication module according to the first current reference parameter and the second current reference parameter.
[0046] The target communication module is a module with lower power consumption between the first communication module and the second communication module.
[0047] For any communication module in the smart meter, its average power consumption in sleep mode is usually less than or equal to 10uA, while the average power consumption in use (referring to the transmitting state) is generally in the range of 50-100mA. When the data size of the uploaded data remains unchanged, the better the network signal of the communication module, the greater the corresponding signal strength, the lower the corresponding transmission power (that is, power consumption), and the smaller the average current during the transmission process. As above, the module with lower power consumption among the first communication module and the second communication module is determined as the target communication module, which can also be understood as determining the module with better network signal among the first communication module and the second communication module as the target communication module.
[0048] Exemplarily, when the first current reference parameter is less than the second current reference parameter, the first communication module can be determined as the target communication module; and when the second current reference parameter is less than or equal to the first current reference parameter, the second communication module can be determined as the target communication module. The first current reference parameter is used to indicate the average current value of the first communication module operating in a historical time period, and the second current reference parameter is used to indicate the average current value of the second communication module operating in a historical time period.
[0049] Step 103: Upload the table data of the smart meter according to the target communication module.
[0050] By setting the first communication module and the second communication module in the smart meter, and determining the module with lower power consumption among the first communication module and the second communication module as the target communication module for uploading meter data, not only can the network fluctuation problem existing in the application of a single communication module be avoided, and the reliability of the smart meter in uploading data to the cloud platform be improved, but also the power consumption of the smart meter in data communication can be reduced, thereby extending the battery life of the smart meter.
[0051] For example, Figure 2 As shown, a communication board hardware circuit is provided in the smart meter, and the communication board hardware circuit includes: a first current detection circuit, a first communication module (such as an NB-IOT module), a SIM card, a first antenna, a power supply control circuit, a second current detection circuit, a second communication module (such as a ZETA module, which is implemented using low-power wide-area Internet of Things technology, can support MESH flexible networking, occupies low communication bandwidth, and has low network deployment cost), and a second antenna.
[0052] Among them, the first current detection circuit is used to monitor the real-time current of the first communication module, and the output end of the first current monitoring circuit (the voltage difference across the output detection resistor, the detection resistor is connected in series with the first communication module) is electrically connected to the first input end of the first communication module (the first communication module exists as a processor, and the voltage difference input by the first current monitoring circuit is divided by the resistance value of the detection resistor to obtain its own real-time current).
[0053] The first communication module adopts cellular mobile communication, which not only has wireless communication function, but also has data processing function (that is, it exists as a main control unit or processor, which can be realized by applying OPENCPU technology). It can be used to receive table data of smart meters, calculate current data, voltage data, and determine the target communication module according to the preset algorithm, and control the target communication module to upload the table data to the cloud platform.
[0054] The SIM card is connected to the SIM interface of the first communication module, and the first antenna is connected to the RF interface of the first communication module, for realizing wireless communication between the first communication module and the cloud platform (uploading data to the cloud platform, and receiving instructions or data issued by the cloud platform).
[0055] The power supply control circuit is electrically connected to the first communication module, and is used to regulate the power supply of the second communication module according to the instruction or signal of the first communication module.
[0056] The second current detection circuit is used to monitor the real-time current of the second communication module. The output end of the second current monitoring circuit is electrically connected to the second input end of the first communication module, and is used to input the detected real-time current of the second communication module into the first communication module.
[0057] The second antenna is connected to the radio frequency interface of the second communication module and is used to realize wireless communication between the second communication module and the cloud platform.
[0058] Optionally, determining a target communication module in the first communication module and the second communication module according to the first current reference parameter and the second current reference parameter includes:
[0059] When the first current reference parameter is less than the second current reference parameter, determining the first communication module as a target communication module;
[0060] When the first current reference parameter is greater than or equal to the second current reference parameter, the second communication module is determined as the target communication module.
[0061] By comparing the numerical values of the first current reference parameter and the second current reference parameter, the power consumption difference between the first communication module and the second communication module within a historical time period is determined, and the communication module with lower power consumption (that is, the corresponding current reference parameter is lower) is determined as the target communication module to reduce the power consumption of the smart meter during the communication process and extend the battery life of the smart meter.
[0062] It should be pointed out that in the initial application stage of the smart meter (referring to the process of the smart meter being started for the first time and connected to the cloud platform), the first current reference parameter can also be understood as the current average value of the first communication module in the current time period. Similarly, the second current reference parameter can also be understood as the current average value of the second communication module in the current time period.
[0063] Optionally, after determining a target communication module in the first communication module and the second communication module according to the first current reference parameter and the second current reference parameter, the method further includes:
[0064] When the target communication module is the first communication module and the first power reference parameter of the first communication module is less than the first power actual parameter of the first communication module, obtaining the first current actual parameter of the first communication module, and when the first current actual parameter is greater than or equal to the second current reference parameter, updating the target communication module to the second communication module;
[0065] When the target communication module is the second communication module and the second power reference parameter of the second communication module is less than the second power actual parameter of the second communication module, the second current actual parameter of the second communication module is obtained, and when the second current actual parameter is greater than the first current reference parameter, the target communication module is updated to the first communication module.
[0066] Among them, the first power reference parameter is used to indicate the average value of the transmission power of the first communication module in the historical time period, and the first power actual parameter is used to indicate the average value of the transmission power of the first communication module in the current time period. By comparing the numerical values of the first power reference parameter and the first power actual parameter, it is determined whether the network signal of the first communication module in the current time period is weaker than the network signal in the historical time period. If so (the first power reference parameter is less than the first power actual parameter), it is further compared whether the current average value of the first communication module in the current time period is greater than or equal to the current average value of the second communication module in the historical time period. If so (the first current actual parameter is greater than or equal to the second current reference parameter), it means that the power consumption of the first communication module in the current time period is greater than the power consumption of the second communication module in the historical time period. In this case, the target communication module is updated from the first communication module to the second communication module to reduce the power consumption of the smart meter during the data reporting process and delay the service life of the battery in the smart meter.
[0067] It should be noted that compared with the collection or calculation operation of the current value, the collection or calculation operation of the transmission power is more convenient and consumes less power. Therefore, by first comparing the numerical difference between the first power reference parameter and the first power actual parameter, and only obtaining the first current actual parameter when the first power reference parameter is smaller than the first power actual parameter, the power consumption of the smart meter in the process of monitoring the network signal of the target communication module (referring to determining whether the target communication module needs to be updated) can be reduced.
[0068] Similarly, the second power reference parameter is used to indicate the average value of the transmission power of the second communication module in the historical time period, the second power actual parameter is used to indicate the average value of the transmission power of the second communication module in the current time period, and the second current actual parameter is used to indicate the average current value of the second communication module in the current time period. Among them, the numerical comparison of the second power reference parameter and the second power actual parameter is to determine whether the network signal of the second communication module in the current time period is weaker than the network signal in the historical time period. When the network signal of the second communication module in the current time period is weaker than the network signal in the historical time period, it is further compared whether the current average value of the second communication module in the current time period is greater than or equal to the current average value of the first communication module in the historical time period. If so, the target communication module is updated from the second communication module to the first communication module.
[0069] Optionally, the method further includes:
[0070] When the first power reference parameter is different from the first power actual parameter, and the first current reference parameter is different from the first current actual parameter, adjusting the first power reference parameter to the first power actual parameter, and adjusting the first current reference parameter to the first current actual parameter;
[0071] When the second power reference parameter is different from the second power actual parameter, and the second current reference parameter is different from the second current actual parameter, the second power reference parameter is adjusted to the second power actual parameter, and the second current reference parameter is adjusted to the second current actual parameter.
[0072] Through the above settings, the average transmission power and current values of the first communication module in the historical time period (which can be understood as benchmark data, used to compare with the actual data of the corresponding communication module to determine whether the communication module has network fluctuations) are consistent with the average transmission power and current values (which can be understood as actual data) in the current time period. This enables the target communication module determined by the smart meter to always be the communication module with the lowest power consumption.
[0073] Similarly, based on the average transmission power and current values in the current time period, the average transmission power and current values of the second communication module in the historical time period are updated, so that the target communication module determined by the smart meter is always the communication module with the lowest power consumption.
[0074] Exemplarily, the time period may be one day, one week, one month, etc. The current time period may be understood as the time period at the current moment, and the historical time period may be understood as a time period adjacent to the current time period and before the current time period.
[0075] The first current reference parameter is an average value of N first current parameters of the first communication module, the first current parameter is a current value corresponding to when the smart meter uploads test data to the cloud platform based on the first communication module, and N is an integer greater than 1;
[0076] The second current reference parameter is an average value of N second current parameters of the second communication module, and the second current parameter is a current value corresponding to when the smart meter uploads the test data to the cloud platform based on the second communication module.
[0077] As described above, in the initial application stage of the smart meter, the smart meter controls the first communication module to upload N test data (referring to data with a pre-set fixed data format, fixed data size, and fixed data content) to the cloud platform, and collects the current value each time the test data is uploaded (based on the first communication module), and calculates its average to obtain the first current reference parameter. In this process, the first power reference parameter can also be obtained accordingly.
[0078] Similarly, in the initial application stage of the smart meter, the smart meter uploads N test data to the cloud platform by controlling the second communication module, collects the current value each time the test data is uploaded (based on the second communication module), and calculates the average to obtain the second current reference parameter. In this process, the second power reference parameter can also be obtained accordingly.
[0079] By calculating the mean, the accuracy of the first current reference parameter and the second current reference parameter is improved, thereby ensuring the accuracy of the target communication module determined according to the first current reference parameter and the second current reference parameter.
[0080] Before acquiring the first current reference parameter of the first communication module and the second current reference parameter of the second communication module, the method further includes:
[0081] When both the first communication module and the second communication module are in a fault state, generating equipment maintenance information;
[0082] The equipment maintenance information is displayed to the user.
[0083] In the application, the operation of uploading N test data must be completed within a preset period (such as one hour, one day, etc., usually the start time of the smart meter is used as the start time of the preset period). During the preset period, if the smart meter does not receive the response data from the cloud platform based on the test data feedback, the smart meter will determine that the communication module is in a faulty state. When both the first communication module and the second communication module are in a faulty state, the smart meter generates equipment maintenance information and displays the equipment maintenance information to the user. This enables the user to promptly know that the smart meter is currently unable to access the cloud platform, and accordingly notify the smart meter maintenance personnel to repair the smart meter, thereby improving the user experience.
[0084] In the application, components such as buzzers and LED light groups can be used to interact with users to display the equipment maintenance information to users.
[0085] In some embodiments, the aforementioned equipment maintenance information may also be generated by the cloud platform, which means that the cloud platform has not received the test data uploaded by the first communication module nor the test data uploaded by the second communication module within a preset time period. In this case, the cloud platform will determine that both the first communication module and the second communication module are in a faulty state. At this time, the cloud platform will generate equipment maintenance information indicating the location of the smart meter, and notify the maintenance personnel to go to the location indicated by the equipment maintenance information to repair the smart meter.
[0086] It should be noted that in the embodiment of the present application, the determination of the target communication module and the control of the target communication module to report data to the cloud platform are all implemented through the first communication module (that is, the part of the first communication module with data processing function can be understood as the central control component).
[0087] For ease of understanding, the following examples are provided:
[0088] The smart meter is specifically set as a smart water meter, which includes a NB-IOT module and a ZETA module, wherein the NB-IOT module applies cellular mobile communication technology, and a network signal of the NB-IOT module corresponds to a first power consumption when it is stable, and corresponds to a second power consumption when the network signal of the NB-IOT module is unstable. The ZETA module applies local area network communication technology, and the probability of fluctuation of the network signal of the ZETA module is low. The network signal of the ZETA module can be understood as always corresponding to a third power consumption, wherein the first power consumption < third power consumption < second power consumption.
[0089] The application of the smart meter in this example includes two stages, namely, the home initialization stage and the actual use stage.
[0090] like Figure 3 As shown in the figure, the initialization phase of household registration is as follows:
[0091] Step 1.1: After the smart meter is installed, start the initialization operation;
[0092] Step 1.2: Power it by battery, trigger the test program, power on the NB-IOT module, and automatically perform the network registration process;
[0093] Step 1.3: Set the connection time limit to determine whether the NB-IOT module is connected to the water meter data management platform (i.e., the cloud platform);
[0094] Step 1.4: If the connection is successfully made through the NB network platform, test the upload of N test data within a certain period T2 (which can be understood as the aforementioned preset period). Each time a test data is uploaded, record the NB-IOT signal strength and the average current at the time of data transmission. Set the stored average current as I-nb-th and the stored average signal strength as P-nb-th;
[0095] The NB-IOT module controls the power supply of the ZETA module to turn on. After the ZETA module is powered on, it automatically performs the network registration process and determines whether it is connected to the water meter data management platform: If the platform determines that the device is offline within the period T1 (which can be the same as or different from T2), it is determined that the ZETA is unavailable, and the NB module is used by default to transmit data when the smart meter is officially used; If the connection is successfully made through the ZETA network platform, test the upload of N data within a certain period T2. Each time a data is uploaded, record the ZETA signal strength and the average current at the time of data transmission. Set the stored average current as I-zeta-th and the stored average signal strength as P-zeta-th;
[0096] Compare I-nb-th and I-zeta-th. If I-nb-th < I-zeta-th, the NB-IOT module is used by default to transmit data when the smart meter is officially used; otherwise, the ZETA module is used by default to transmit data;
[0097] Step 1.5: If the connection fails through the NB network platform, it is determined that the NB is unavailable. The NB-IOT module controls the power supply of the ZETA module to turn on. After the ZETA module is powered on, it automatically performs the network registration process and determines whether it is connected to the water meter data management platform: If the platform determines that the device is offline within the period T1, both communication methods fail, and the maintenance personnel are notified to perform on-site maintenance; If the connection is successfully made through the ZETA network platform, test the upload of N data within a certain period T2. Each time a data is uploaded, record the ZETA signal strength and the average current at the time of data transmission. Store the average current as I-zeta-th and the corresponding signal strength P-zeta-th, and the ZETA module is used to transmit data when the smart meter is officially used;
[0098] Step 1.6. During the initialization phase, if NB or ZETA is unavailable, the platform side will record the network signal quality. After manual confirmation of the inability to use, the dual communication modules will not be switched during the actual usage phase.
[0099] As for the specific actual usage phase:
[0100] As Figure 4 shown, after the smart meter starts to be officially used, if it is defaulted to use the NB module to transmit data, it enters Workflow 1:
[0101] Step 2.1.1. After the NB-IOT module camps on the network, it enters the PSM mode to wake up regularly to upload the meter reading data, record P-nb and I-nb, and calculate the average value within a certain number of times;
[0102] Step 2.1.2. If P-nb-av > P-nb-th and I-nb-av > I-zeta-th and the ZETA module is available, then change to the ZETA module to transmit data. At this time, the NB-IOT module enters the flight mode and only acts as the main control. The data table updates I-nb-th and P-nb-th; otherwise, keep the original plan;
[0103] Step 2.1.3. After the ZETA module camps on the network, it enters the sleep mode to wake up regularly to upload the meter reading data, record P-zeta and I-zeta, and calculate the average value within a certain number of times: If P-zeta-av > P-zeta-th and I-zeta-av > I-nb-th, then change to the NB-IOT module to transmit data, the ZETA module is not powered, and update I-nb-th and P-nb-th; otherwise, keep the original plan;
[0104] Step 2.1.4. The NB module conducts a data test every certain period T3: If I-nb-av < I-zeta-av, then change to the NB-IOT module to transmit data, the ZETA module is not powered, and update I-nb-th / P-nb-th / I-zeta-th / P-zeta-th; otherwise, keep the original plan;
[0105] As Figure 5 shown, after the smart meter starts to be officially used, if it is defaulted to use the ZETA module to transmit data, it enters Workflow 2:
[0106] Step 2.2.1. The NB-IOT module enters the flight mode and only acts as the main control. After the ZETA module camps on the network, it enters the sleep mode to wake up regularly to upload the meter reading data, record P-zeta and I-zeta, and calculate the average value within a certain number of times:
[0107] Step 2.2.2: If P-zeta-av > P-zeta-th and I-zeta-av > I-nb-th and NB-IOT is available, change to NB-IOT module for data transmission, power off the ZETA module, update I-nb-th and P-nb-th, and enter Workflow 1;
[0108] Step 2.2.3: Otherwise, the NB-IOT module performs a data test every certain period T3: If I-nb-av < I-zeta-av, change to NB-IOT module for data transmission, power off the ZETA module, update I-nb-th / P-nb-th / I-zeta-th / P-zeta-th, and enter Workflow 1; otherwise, keep the original plan.
[0109] For example, in the case where both the NB-IOT module and the ZETA module are available, after the smart meter is installed at home, manually control to enter the test program;
[0110] (1) After the NB-IOT module automatically camps on the network, it connects to the water meter data management platform, simulates sending ten times of meter reading data. The NB-IOT module records the power intensity and average current value at each sending and calculates the average value. For example: I-nb-th = 45mA, P-nb-th = 19dBm;
[0111] (2) After the NB-IOT module completes the test, control the ZETA module to be powered on. After automatically camping on the network, it connects to the water meter data management platform, simulates sending ten times of meter reading data. The NB-IOT module records the signal strength and average current value at each sending and calculates the average value. For example: I-zeta-th = 50mA, P-nb-th = 15dBm;
[0112] (3) Since I-nb-th < I-zeta-th, the NB-IOT module is used as the default data transmission module in this environment;
[0113] (4) After the smart meter is officially used, the NB-IOT module receives and uploads the meter reading data, and the ZETA module is not used; record P-nb and I-nb after each upload and calculate the average value within a certain number of times;
[0114] (5) If the NB network environment deteriorates, the transmit power P-nb-av = 21dBm, but I-nb-av = 49mA is still less than I-zeta-th = 50mA. At this time, continue to maintain the NB-IOT module for data upload;
[0115] (6) If the NB network environment continues to deteriorate, and the transmit power P-nb-av = 23 dBm, I-nb-av = 65 mA which is greater than I-zeta-th = 50 mA, then switch to the ZETA module for data upload. At this time, I-nb-th = 65 mA and P-nb-th = 23 dBm;
[0116] (7) The NB-IOT module enters the flight mode and only acts as the master control. The ZETA module receives and uploads the meter reading data. After each upload, P-zeta and I-zeta are recorded. The average value is calculated every ten times, and I-zeta-av = 51 mA < I-nb-th = 65 mA, P-zeta-av = 15.2 dBm;
[0117] (8) Generally speaking, since the ZETA network is deployed in a node-based manner and the network situation changes little, the power consumption of data transmission using the ZETA module is relatively stable, around 50 mA;
[0118] (9) Every month, the NB-IOT module will conduct a data test. If the NB network condition improves, for example, P-nb-av = 20.8 dBm, I-nb-av = 48 mA < I-zeta-av = 51 mA, then reconfigure to M5310-E for data transmission. The thresholds are updated to I-nb-th = 48 mA, P-nb-th = 20.8 dBm, I-zeta-th = 51 mA, P-zeta-th = 15.2 dBm; and re-enter the process of data transmission using the default NB-IOT module.
[0119] Please refer to Figure 6 , Figure 6 FIG. is a data upload device 600 provided by an embodiment of the present application, which is applied to an intelligent meter. The intelligent meter includes a first communication module and a second communication module. The device includes:
[0120] A parameter acquisition module 601, configured to acquire a first current reference parameter of the first communication module and a second current reference parameter of the second communication module;
[0121] A module determination module 602, configured to determine a target communication module from the first communication module and the second communication module according to the first current reference parameter and the second current reference parameter, where the target communication module is the module with lower power consumption among the first communication module and the second communication module;
[0122] A data upload module 603, configured to upload the meter data of the intelligent meter according to the target communication module.
[0123] Optionally, the module determination module 602 includes:
[0124] The module determines a first submodule, configured to determine the first communication module as a target communication module when the first current reference parameter is less than the second current reference parameter;
[0125] The module determines a second submodule, which is used to determine the second communication module as the target communication module when the first current reference parameter is greater than or equal to the second current reference parameter.
[0126] Optionally, the data uploading device 600 further includes a module updating module;
[0127] The module update module is used for:
[0128] When the target communication module is the first communication module and the first power reference parameter of the first communication module is less than the first power actual parameter of the first communication module, obtaining the first current actual parameter of the first communication module, and when the first current actual parameter is greater than or equal to the second current reference parameter, updating the target communication module to the second communication module;
[0129] When the target communication module is the second communication module and the second power reference parameter of the second communication module is less than the second power actual parameter of the second communication module, the second current actual parameter of the second communication module is obtained, and when the second current actual parameter is greater than the first current reference parameter, the target communication module is updated to the first communication module.
[0130] Optionally, the data uploading device 600 further includes a parameter updating module;
[0131] The parameter updating module is used for:
[0132] When the first power reference parameter is different from the first power actual parameter, and the first current reference parameter is different from the first current actual parameter, adjusting the first power reference parameter to the first power actual parameter, and adjusting the first current reference parameter to the first current actual parameter;
[0133] When the second power reference parameter is different from the second power actual parameter, and the second current reference parameter is different from the second current actual parameter, the second power reference parameter is adjusted to the second power actual parameter, and the second current reference parameter is adjusted to the second current actual parameter.
[0134] Optionally, the data uploading device 600 further includes:
[0135] A maintenance module, used for generating equipment maintenance information when both the first communication module and the second communication module are in a fault state;
[0136] The display module is used to display the equipment maintenance information to the user.
[0137] Optionally, the first current reference parameter is an average value of N first current parameters of the first communication module, the first current parameter is a current value corresponding to when the smart meter uploads test data to the cloud platform based on the first communication module, and N is an integer greater than 1;
[0138] The second current reference parameter is an average value of N second current parameters of the second communication module, and the second current parameter is a current value corresponding to when the smart meter uploads the test data to the cloud platform based on the second communication module.
[0139] The data upload device 600 can realize the embodiment of the present application Figure 1 The various processes of the method embodiment and the same beneficial effects are achieved, and will not be described again here to avoid repetition.
[0140] See also Figure 7 , Figure 7 is a schematic diagram of the structure of a smart meter provided in an embodiment of the present application, such as Figure 7 As shown, the smart meter may include: a first communication module, a second communication module, a processor 701 , a memory 702 , and a program 7021 stored in the memory 702 and executable on the processor 701 .
[0141] When program 7021 is executed by processor 701, it can achieve Figure 1 Any steps in the corresponding method embodiments and achieving the same beneficial effects will not be repeated here.
[0142] Those skilled in the art will appreciate that all or part of the steps of implementing the above-mentioned embodiment method can be completed by hardware associated with program instructions, and the program can be stored in a readable medium.
[0143] The present application also provides a readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the above-mentioned Figure 1 Any steps in the corresponding method embodiments can achieve the same technical effect and will not be repeated here to avoid repetition.
[0144] The computer-readable storage medium of the embodiment of the present application can adopt any combination of one or more computer-readable media. Computer-readable media can be computer-readable signal media or computer-readable storage media. Computer-readable storage media can be, for example, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, a device or a device or used in combination with it.
[0145] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0146] The program code contained on the storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wire, optical cable, RF, etc., or any suitable combination of the foregoing.
[0147] Computer program code for performing the operation of the present application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or terminal. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., using an Internet service provider to connect through the Internet).
[0148] The above is a preferred implementation of the embodiment of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles described in the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A data uploading method, characterized in that: Applied to a smart meter, the smart meter includes a first communication module and a second communication module, and the method includes: Acquire a first current reference parameter of the first communication module and a second current reference parameter of the second communication module; Determining a target communication module in the first communication module and the second communication module according to the first current reference parameter and the second current reference parameter, wherein the target communication module is a module with lower power consumption between the first communication module and the second communication module; uploading table data of the smart meter according to the target communication module; After determining the target communication module in the first communication module and the second communication module according to the first current reference parameter and the second current reference parameter, the method further includes: When the target communication module is the first communication module and the first power reference parameter of the first communication module is less than the first power actual parameter of the first communication module, obtaining the first current actual parameter of the first communication module, and when the first current actual parameter is greater than or equal to the second current reference parameter, updating the target communication module to the second communication module; When the target communication module is the second communication module and the second power reference parameter of the second communication module is less than the second power actual parameter of the second communication module, the second current actual parameter of the second communication module is obtained, and when the second current actual parameter is greater than the first current reference parameter, the target communication module is updated to the first communication module.
2. The method according to claim 1, characterized in that The determining a target communication module in the first communication module and the second communication module according to the first current reference parameter and the second current reference parameter includes: When the first current reference parameter is less than the second current reference parameter, determining the first communication module as a target communication module; When the first current reference parameter is greater than or equal to the second current reference parameter, the second communication module is determined as the target communication module.
3. The method according to claim 2, characterized in that The method further comprises: When the first power reference parameter is different from the first power actual parameter, and the first current reference parameter is different from the first current actual parameter, adjusting the first power reference parameter to the first power actual parameter, and adjusting the first current reference parameter to the first current actual parameter; When the second power reference parameter is different from the second power actual parameter, and the second current reference parameter is different from the second current actual parameter, the second power reference parameter is adjusted to the second power actual parameter, and the second current reference parameter is adjusted to the second current actual parameter.
4. The method according to claim 1, characterized in that Before acquiring the first current reference parameter of the first communication module and the second current reference parameter of the second communication module, the method further includes: When both the first communication module and the second communication module are in a fault state, generating equipment maintenance information; The equipment maintenance information is displayed to the user.
5. The method according to claim 1, characterized in that The first current reference parameter is an average value of N first current parameters of the first communication module, the first current parameter is a current value corresponding to when the smart meter uploads test data to the cloud platform based on the first communication module, and N is an integer greater than 1; The second current reference parameter is an average value of N second current parameters of the second communication module, and the second current parameter is a current value corresponding to when the smart meter uploads the test data to the cloud platform based on the second communication module.
6. A data uploading device, characterized in that: Applied to a smart meter, the smart meter includes a first communication module and a second communication module, and the device includes: A parameter acquisition module, used to acquire a first current reference parameter of the first communication module and a second current reference parameter of the second communication module; a module determination module, configured to determine a target communication module in the first communication module and the second communication module according to the first current reference parameter and the second current reference parameter, wherein the target communication module is a module with lower power consumption in the first communication module and the second communication module; A data uploading module, used for uploading the table data of the smart meter according to the target communication module; Wherein, the data uploading device further includes a module updating module; The module update module is used for: When the target communication module is the first communication module and the first power reference parameter of the first communication module is less than the first power actual parameter of the first communication module, obtaining the first current actual parameter of the first communication module, and when the first current actual parameter is greater than or equal to the second current reference parameter, updating the target communication module to the second communication module; When the target communication module is the second communication module and the second power reference parameter of the second communication module is less than the second power actual parameter of the second communication module, the second current actual parameter of the second communication module is obtained, and when the second current actual parameter is greater than the first current reference parameter, the target communication module is updated to the first communication module.
7. The device according to claim 6, characterized in that The module determination module comprises: The module determines a first submodule, configured to determine the first communication module as a target communication module when the first current reference parameter is less than the second current reference parameter; The module determines a second submodule, which is used to determine the second communication module as the target communication module when the first current reference parameter is greater than or equal to the second current reference parameter.
8. A smart meter, characterized in that: It includes a first communication module, a second communication module, a processor, a memory, and a program or instruction stored in the memory and executable on the processor; when the program or instruction is executed by the processor, the steps in the data uploading method as described in any one of claims 1 to 5 are implemented.
9. A readable storage medium for storing a program, characterized in that: When the program is executed by the processor, it is a step in the data uploading method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Device and method for managing and controlling power consumption of mobile terminal and mobile terminal
CN104184884A
Data transmission method and device, storage medium and electronic equipment
CN113490236A