A method, system and storage medium for controlling a button to wake up a screen

By judging the transportation status in the meter and generating a screen clear signal, blocking the button wake-up function, the problem of invalid power consumption during the meter transportation is solved, and the battery power is effectively protected.

CN119920218BActive Publication Date: 2025-06-13HANGZHOU MINGTE TECH
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202510398875.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-04-01
Publication Date
2025-06-13
Estimated Expiration
2045-04-01

AI Technical Summary

Technical Problem

During the transportation of the meter, the LCD wake-up button may be overwhelmed, causing the screen to wake up, causing invalid battery power loss.

Method used

By determining whether the delivery signal is received that represents the start of the transport meter, the sleep time of the transportation and unloading time is obtained, and the screen clear signal is generated during transportation blocking the key wake-up function until the screen is awakened after the transportation is completed.

Benefits of technology

It effectively reduces the power consumption of the meter during transportation and avoids ineffective battery power loss.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119920218B_ABST
    Figure CN119920218B_ABST
Patent Text Reader

Abstract

The present invention provides a method, a system and a storage medium for controlling a button to wake up a screen. The method includes: determining whether a conveying signal indicating the start of transporting an electric meter is received. If received, obtaining a sleep time representing the time required for the electric meter to be transported to the installation, and an initial time corresponding to the transport signal, and adding the sleep time to the initial time to obtain an end time representing the end of the transport of the electric meter; obtaining the current time, determining whether the current time reaches the end time. If not, continue to obtain the current time and generate a screen clearing signal to block the function of waking up the screen by a button in the electric meter; if it reaches, obtaining a power-on instruction, and generating a wake-up signal based on the power-on instruction to start the function of waking up the screen by a button in the electric meter. This application can reduce the power consumption during the transportation of the electric meter.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of electric meters, and particularly to a method, a system, and a storage medium for controlling a button to wake up a screen. Background Art

[0002] Since an electric meter can help users understand the electricity consumption of a household or an enterprise, through the electric meter, users can clearly know the electricity consumption per month or within a certain period of time, so as to conduct reasonable electricity consumption management and electricity settlement, making the electric meter widely used.

[0003] At present, there are still demands for users or power bureau staff to go to the site to check the electricity consumption of the electric meter. However, during the on-site operation of the electric meter, power outages may occur, causing the display screen of the electric meter to be in a cleared state and unable to be viewed. To solve this problem, at present, the electric meter is equipped with a function of waking up the screen by pressing a button during a power outage, that is, by pressing the liquid crystal wake-up button, the liquid crystal display screen can be woken up and lit for viewing.

[0004] Although the function of waking up the screen by pressing a button during a power outage set in the current electric meter can facilitate users and power bureau staff, during the process of transporting the electric meter from the factory to the site, due to the bumps during transportation, the liquid crystal wake-up button may be pressed down, waking up and lighting the liquid crystal display screen, resulting in ineffective power consumption of the battery in the electric meter. It is certain that the power consumption when the liquid crystal display screen is in the lit state is greater than that when the liquid crystal display screen is in the cleared state. Summary of the Invention

[0005] In order to reduce the power consumption during the transportation of the electric meter, an embodiment of this application provides a method, a system, and a storage medium for controlling a button to wake up a screen.

[0006] In a first aspect, this embodiment provides a method for controlling a button to wake up a screen, and the method includes:

[0007] Judge whether a transportation signal indicating the start of transporting the electric meter is received. If received, obtain the sleep time representing the time required for the electric meter to be transported to the installation, and the initial time corresponding to the transportation signal, and add the sleep time to the initial time to obtain the end time representing the end of the transportation of the electric meter;

[0008] Obtain the current time, and judge whether the current time reaches the end time. If not, continue to obtain the current time and generate a screen clearing signal to block the function of waking up the screen by pressing a button in the electric meter;

[0009] If it reaches, obtain a power-on instruction, and generate a wake-up signal based on the power-on instruction to start the function of waking up the screen by pressing a button in the electric meter.

[0010] In some of these embodiments, the sleep time includes transportation time and unloading time. The obtaining of the sleep time representing the time required for the transportation of the electricity meter includes:

[0011] Receiving the navigation time sent by the navigation software to obtain the transportation time;

[0012] Receiving the delivery quantity sent by the delivery personnel, and multiplying the delivery quantity by the preset unloading unit time to obtain the unloading time;

[0013] Adding the transportation time and the unloading time to obtain the sleep time.

[0014] In some of these embodiments, the electricity meter includes an AND gate and a controller. The key is connected to the first input terminal of the AND gate, the output terminal of the controller is connected to the second input terminal of the AND gate, the output terminal of the AND gate is connected to the power supply terminal of the screen, and the screen clearing signal is a low-level signal. The generating of the screen clearing signal to block the function of the key in the electricity meter from waking up the screen includes:

[0015] The controller generates a screen clearing signal and sends the screen clearing signal to the second input terminal of the AND gate, so that the output terminal of the AND gate outputs a low-level type signal to block the function of the key in the electricity meter from waking up the screen.

[0016] In some of these embodiments, the wake-up signal is a high-level signal. The generating of the wake-up signal based on the power-on instruction to start the function of the key in the electricity meter from waking up the screen includes:

[0017] Based on the power-on instruction, obtaining the power-on state of the electricity meter, and judging whether the electricity meter is installed and in use based on the power-on state. If so, sending the wake-up signal to the second input terminal of the AND gate so that the screen is woken up when the key is pressed;

[0018] If not, obtaining the test time, and after waiting for the test time, sending the wake-up signal to the second input terminal of the AND gate so that the screen is woken up when the key is pressed.

[0019] In some of these embodiments, the power-on state is one of the installed power-on state or the test power-on state. The obtaining of the power-on state of the electricity meter includes:

[0020] Obtaining the location information of the electricity meter, and judging whether the location information belongs to the location of the power company. If so, the electricity meter is in the test power-on state;

[0021] If not, obtaining the actual number of times the key in the electricity meter is pressed within a preset time, and judging whether the actual number of times exceeds the preset number of times. If not, the electricity meter is in the installed power-on state;

[0022] If so, the electricity meter is in a test power-on state.

[0023] In some of these embodiments, after generating a wake-up signal based on a power-on instruction to activate the function of waking up the screen by pressing a key on the electricity meter, the method further includes:

[0024] Recording the key press time and duration each time the key is pressed, and determining whether the time difference between two adjacent key press times does not exceed an interval time and the duration is less than a preset key press time difference. If not, clearing the wake-up signal and generating a screen-clearing signal.

[0025] In some of these embodiments, the method further includes:

[0026] If a conveying signal indicating the start of transporting the electricity meter is not received, generating a screen-clearing signal to block the function of waking up the screen by pressing a key on the electricity meter.

[0027] In a second aspect, this embodiment provides a system for controlling the function of waking up the screen by pressing a key. The system includes: a receiving module, a processing module, and a control module. Among them,

[0028] The receiving module is used to determine whether a conveying signal indicating the start of transporting the electricity meter is received. If received, obtain a sleep time representing the time required for transporting the electricity meter to the installation, and an initial time corresponding to the transport signal;

[0029] The processing module is used to add the initial time to the sleep time to obtain an end time representing the end of transporting the electricity meter;

[0030] The control module is used to obtain the current time, determine whether the current time reaches the end time. If not, continue to obtain the current time and generate a screen-clearing signal to block the function of waking up the screen by pressing a key on the electricity meter. If it reaches, obtain a power-on instruction and generate a wake-up signal based on the power-on instruction to activate the function of waking up the screen by pressing a key on the electricity meter.

[0031] In some of these embodiments, the control module is further used to record the key press time and duration each time the key is pressed, and determine whether the time difference between two adjacent key press times does not exceed an interval time and the duration is less than a preset key press time difference. If not, clearing the wake-up signal and generating a screen-clearing signal.

[0032] In a third aspect, this embodiment provides a computer-readable storage medium, on which a computer program that can run on a processor is stored. When the computer program is executed by the processor, it implements a method for controlling the function of waking up the screen by pressing a key as described in the first aspect.

[0033] By adopting the above method, the present application first determines whether a delivery signal indicating the start of transporting the electricity meter is received. If received, the sleep time representing the time required for transporting the electricity meter to the installation and the initial time corresponding to the transport signal are obtained, and the initial time is added to the sleep time to obtain the end time representing the end of transporting the electricity meter. Then the current time is obtained, and it is determined whether the current time has reached the end time. If not, the current time is continuously obtained, and a screen clearing signal is generated to block the function of waking up the screen by pressing a button in the electricity meter. If it has reached, a power-on instruction is obtained, and a wake-up signal is generated based on the power-on instruction to activate the function of waking up the screen by pressing a button in the electricity meter. In this way, the effect that pressing a button during the transportation of the electricity meter does not wake up the screen is achieved, thereby reducing the power consumption during the transportation of the electricity meter. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 FIG. is a block diagram of a method for controlling the wake-up of the screen by pressing a button provided by an embodiment of the present application.

[0035] Figure 2 FIG. is a schematic diagram of the internal connection of the electricity meter provided by an embodiment of the present application.

[0036] Figure 3 FIG. is a block diagram of generating a wake-up signal based on a power-on instruction to activate the function of waking up the screen by pressing a button in the electricity meter provided by an embodiment of the present application.

[0037] Figure 4 FIG. is a schematic diagram of the control flow after the electricity meter is powered on provided by an embodiment of the present application.

[0038] Figure 5 FIG. is a schematic diagram of the system connection of a method for controlling the wake-up of the screen by pressing a button provided by an embodiment of the present application.

[0039] REFERENCE SIGNS:

[0040] 1, AND gate; 2, controller; 3, button; 4, screen. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0041] To more clearly understand the purpose, technical solution and advantages of the present application, the present application will be described and illustrated below with reference to the drawings and embodiments. However, those of ordinary skill in the art should understand that the present application can be implemented without these details. For those of ordinary skill in the art, it is obvious that various changes can be made to the embodiments disclosed in the present application, and the general principles defined in the present application can be applied to other embodiments and application scenarios without departing from the principles and scope of the present application. Therefore, the present application is not limited to the illustrated embodiments, but conforms to the broadest scope consistent with the scope claimed in the present application.

[0042] The embodiments of the present application will be further described in detail below with reference to the accompanying drawings of the specification.

[0043] Figure 1 It is a block diagram of a method for controlling a button to wake up the screen provided by an embodiment of the present application. As Figure 1 shown, a method for controlling a button to wake up the screen includes the following steps:

[0044] Step S100, determine whether a transport signal indicating the start of transporting the electricity meter is received. If received, obtain the sleep time characterizing the time required for the electricity meter to be transported to the installation, and the initial time corresponding to the transport signal, and add the sleep time to the initial time to obtain the end time characterizing the end of the electricity meter transportation.

[0045] There is a controller inside the electricity meter. In this embodiment, the method for controlling the button to wake up the screen is described from the perspective of this controller. After the electricity meter manufacturer produces the electricity meter, it is necessary to transport the electricity meter to the relevant power company for the subsequent power company to install the electricity meter according to the user's needs. Among them, the electricity meter is installed for the user according to the nearest demand. The process from the power company to the user is short and takes very little time. Even if the button in the electricity meter is pressed, the loss to the battery is very small and can be ignored.

[0046] The electricity meter manufacturer needs to transport the electricity meter by a transport truck. Each electricity meter is originally equipped with a positioning device. The positioning device will obtain the location information of the current electricity meter and store the obtained location information in the electricity meter. The controller can obtain the location information of the electricity meter by viewing the stored information, and calculate the distance between the latest stored location information and the initially stored location information. If the calculated distance value is not less than the preset distance value, a transport signal is generated so that the controller receives the transport signal indicating the start of transporting the electricity meter. If the calculated distance value is less than the preset distance value, continue to calculate the distance value between the latest stored location information and the initially stored location information in the next round. Among them, the initially stored location information refers to the location where the electricity meter is placed in the storage warehouse by the manufacturer just after production, and the preset distance value refers to the distance value between the storage warehouse and the transport vehicle in the manufacturer, and this preset distance value is pre-stored in the controller. Therefore, by checking whether a transport signal is generated, the controller can determine whether it has received the transport signal indicating the start of transporting the electricity meter.

[0047] If the controller does not generate a conveyance signal, it indicates that the controller has not received the conveyance signal representing the start of transporting the electricity meter. The electricity meter is still placed in the storage warehouse. Generally, there will be no situation where the button is pressed to wake up the screen. After all, once the electricity meter is placed in the warehouse, without the need for outbound delivery, there will be no position change or impact from other objects to cause the button to be pressed. To further ensure that the button on the electricity meter is not accidentally pressed to wake up the screen and cause battery loss, at this time, the controller will generate a low-level screen clearing signal. When this screen clearing signal acts on the power connection circuit of the screen, it provides a low-level signal to the power supply terminal of the screen, which cannot reach the voltage required to wake up the screen, thereby blocking the function of the button on the electricity meter to wake up the screen. Moreover, the controller continuously outputs this screen clearing signal in this situation to ensure that the screen remains in the cleared state in this situation.

[0048] If the controller generates a conveyance signal, it indicates that the controller has received the conveyance signal representing the start of transporting the electricity meter, and the electricity meter has left the storage warehouse and entered the transportation state. At this time, it is necessary for the controller to control the electricity meter so that the screen is not woken up due to the button being pressed during transportation.

[0049] To better control the screen from being woken up during the transportation stage, first, it is necessary to obtain the above-mentioned sleep time, so that the controller can perform corresponding control during this period. Among them, the sleep time includes the transportation time and the unloading time, that is, sleep time = transportation time + unloading time. Unloading also belongs to the work during the transportation process. Obtaining the sleep time representing the time required for the electricity meter to be transported to the installation includes the following steps:

[0050] Step S101: Receive the navigation time sent by the navigation software to obtain the transportation time.

[0051] Step S102: Receive the delivery quantity sent by the delivery personnel, and multiply the delivery quantity by the preset unloading unit time to obtain the unloading time.

[0052] Step S103: Add the transportation time and the unloading time to obtain the sleep time.

[0053] Each truck is equipped with a corresponding navigation, or the driver will use the navigation before preparing to drive the truck to obtain the transportation time required for this trip to reach the destination. When the navigation obtains the transportation time, it can send the transportation time to the controller by connecting to the controller, so that the controller can obtain the transportation time. Among them, since the navigation software is already relatively mature, the transportation time received by the controller is relatively accurate.

[0054] The delivery staff themselves need to know the delivery quantity. The delivery staff can input the delivery quantity on the navigation software, and by virtue of the connection between the navigation software and the controller, the controller can receive the delivery quantity. A preset unloading unit time is stored in the controller, and this preset unloading unit time is determined according to the historical unloading time. After receiving the delivery quantity, the controller can obtain the unloading time required for unloading the electricity meter in the truck by multiplying the delivery quantity by the preset unloading unit time. Finally, by adding the obtained transportation time and unloading time together, the sleep time can be obtained. In this way, during the process of determining the sleep time, on the one hand, only the existing equipment is used without the need to add other equipment or devices, and the sleep time can be obtained, which can achieve low-cost acquisition of the sleep time; on the other hand, the mature technology of the original existing equipment is also used during the process of relying on the original equipment, and the accurate sleep time can be obtained, thereby achieving low-cost acquisition of the accurate sleep time, providing an accurate control period for the subsequent control button to wake up the screen, and reducing the situation where the button is ineffective during the use of the electricity meter due to inaccurate control period, or the situation where the button is effective during the use of the electricity meter, which in turn affects the user experience.

[0055] The above sleep time is only a time period. In order to enable the electricity meter to know when it has completed the work of being transported, it is also necessary to know the time when it starts to be transported, that is, to obtain the initial time corresponding to the transportation signal. There is a timing device in the electricity meter itself that can obtain the current time. Therefore, when the controller generates the transportation signal, the initial time corresponding to the transportation signal can be obtained by checking the timing device. This initial time represents the time when the electricity meter starts to be transported, that is, the time when the transportation process starts. Subsequently, the time obtained by adding the initial time and the sleep time is the end time representing the end of the transportation of the electricity meter. That is, when this end time is reached, it indicates that the transportation work of the electricity meter has ended.

[0056] Step S200: Obtain the current time, determine whether the current time has reached the end time. If it has not reached, continue to obtain the current time and generate a screen clearing signal to block the function of the button to wake up the screen in the electricity meter.

[0057] The controller can obtain the current time by checking the timing device, and compare the obtained current time with the end time in terms of time sequence. If the current time is earlier than the end time, then the current time has not reached the end time. If the current time is not earlier than the end time, then the current time has reached the end time.

[0058] When the current time has not reached the end time, it indicates that the electricity meter is still in the state of being transported at this time, and the button cannot wake up the screen. The controller will generate a screen clearing signal to block the function of the button to wake up the screen in the electricity meter. Figure 2 It is a schematic diagram of the internal connection of the electricity meter provided by the embodiment of the present application. AsFigure 2 As shown, the electricity meter includes an AND gate 1, a controller 2, a button 3, and a screen 4. The button 3 is connected to the first input terminal IN1 of the AND gate 1. The output terminal of the controller 2 is connected to the second input terminal IN2 of the AND gate 1. The output terminal OUT of the AND gate 1 is connected to the power supply terminal E of the screen 4. The signal output from the output terminal of the controller 2 and the button 3 act together on the AND gate 1 to achieve the voltage signal of the power supply terminal of the screen 4, thereby controlling the screen clearing and wake-up of the screen, avoiding the accidental wake-up of the screen caused by only using the button to control the screen clearing and wake-up, and causing an ineffective increase in the battery power consumption in the electricity meter.

[0059] Among them, the screen clearing signal is a low-level signal. The controller generates a screen clearing signal to block the function of waking up the screen by the button in the electricity meter, including: the controller generates a screen clearing signal and sends the screen clearing signal to the second input terminal of the AND gate, so that the output terminal of the AND gate outputs a low-level type signal to block the function of waking up the screen by the button in the electricity meter.

[0060] When the controller determines that the current time has not reached the end time, it will generate a low-level signal, that is, a screen clearing signal, and send it to the second input terminal IN2 of the AND gate 1 through the output terminal. When the button 3 is in the pressed state, the first input terminal IN1 of the AND gate 1 will receive a high-level signal; when the button 3 is in the unpressed state, the first input terminal IN1 of the AND gate 1 will receive a low-level signal. In this way, when a low-level signal is received at the second input terminal IN2, regardless of whether a high-level signal or a low-level signal is received at the first input terminal IN1, that is, whether the button 3 is pressed or not, the power supply terminal of the screen 4 will be a low-level signal, and the screen 4 cannot be woken up, realizing the effect that the screen will not be woken up when the button is pressed during the transportation of the electricity meter, thereby reducing the power consumption during the transportation of the electricity meter.

[0061] In addition, when the controller determines that the current time has not reached the end time, it will continue to read the timing device to obtain the current time until it determines that the current time reaches the end time and then stops reading the timing device, that is, stops obtaining the current time.

[0062] Step S300, if it arrives, connect the electricity meter to the mains power and generate a wake-up signal to start the function of waking up the screen by the button in the electricity meter.

[0063] After the controller determines that the current time has reached the end time, it will wait for the power-on instruction to be received. If the power-on instruction is not received, the screen clearing signal and the wake-up signal will be alternately generated at intervals of a preset alternating time. On the one hand, this can enable relevant personnel to wake up the screen by pressing a button without having to wait too long, meeting their need to view information; on the other hand, it can also prevent the battery from being inefficiently drained due to accidentally long-pressing the button to wake up the screen. Among them, the preset alternating time represents a relatively short time, which can be determined according to actual needs, such as three minutes. Waking up the screen once regularly will keep the brightness for two minutes.

[0064] If the power-on instruction is received, it indicates that the electricity meter is connected to the mains power, ending the long-distance transportation. The controller will generate a wake-up signal based on the power-on instruction and send it to the second input terminal IN2 of the AND gate 1 through the output terminal of the controller to activate the function of waking up the screen by pressing the button in the electricity meter. Among them, the wake-up signal is a high-level signal, and at this time, the wake-up signal is a long wake-up signal, that is, it always acts on the second input terminal IN2 of the AND gate 1. Figure 3 It is a block diagram of generating a wake-up signal based on a power-on instruction to activate the function of waking up the screen by pressing the button in the electricity meter provided by an embodiment of the present application. As Figure 3 shown, generating a wake-up signal based on a power-on instruction to activate the function of waking up the screen by pressing the button in the electricity meter includes the following steps:

[0065] Step S301, obtain the power-on state of the electricity meter based on the power-on instruction, and judge whether the electricity meter is installed and used based on the power-on state. If so, send the wake-up signal to the second input terminal of the AND gate so that the screen is woken up when the button is pressed.

[0066] Step S302, if not, obtain the test time, and send the wake-up signal to the second input terminal of the AND gate after waiting for the test time so that the screen is woken up when the button is pressed.

[0067] The power-on instruction generated by the controller may be generated due to test requirements or installation requirements. That is, at this time, the electricity meter may be connected to the mains power for testing or for installation. The above power-on state is one of the installation power-on state or the test power-on state. Among them, obtaining the power-on state of the electricity meter includes the following steps:

[0068] Step S301-1, obtain the location information of the electricity meter, and judge whether the location information belongs to the location of the power company. If so, the electricity meter is in the test power-on state.

[0069] Step S301-2, if not, obtain the actual number of times the button in the electricity meter is pressed within a preset time, and judge whether the actual number of times exceeds the preset number. If not, the electricity meter is in the installation power-on state.

[0070] Step S301-3, if so, the electricity meter is in the test power-on state.

[0071] The electricity meter itself is equipped with a positioning device. The controller can obtain the position information of the electricity meter by viewing the position information detected by the positioning device in the electricity meter. The positions of all power companies cooperating with this manufacturer are stored in the controller of the electricity meter. After obtaining the position information of the electricity meter, the controller will compare the obtained position information with the stored positions of the power companies. If the position information falls within the position of a certain power company, then the position information belongs to the power company's position; if the position information does not fall within the position of any power company, then the position information does not belong to the power company's position.

[0072] When it is determined that the position information belongs to the power company's position, it indicates that the electricity meter is still in the power company and has not been installed at the user's place. At this time, when the electricity meter is in the power-on state, it means that the power personnel have arranged the test work of the electricity meter in the power company. That is, the electricity meter is in the test power-on state.

[0073] When it is determined that the position information does not belong to the power company's position, it indicates that the electricity meter is no longer in the power company and is at the place where the user installs the electricity meter. At this time, it may be powered by the mains for testing or for installation. After all, the electricity meter needs to be tested before installation. The button is also directly connected to the controller, enabling the controller to obtain the state of the button. Among them, when the button is pressed, the controller will receive a press signal; when the button is not pressed, the controller will not receive a signal. At this time, the actual number of times the button in the electricity meter is pressed within the preset time can be obtained by viewing the signal received by itself. The preset time is a relatively short time set according to actual needs, and this time is less than the time required to test the electricity meter, generally within three minutes.

[0074] The above preset number of times refers to the number of times of pressing the button normally. The preset number of times can specifically be two. Under normal circumstances, when testing whether there is a problem with the button in the electricity meter, multiple pressing operations are generally performed. Therefore, by comparing the actual number of times with the preset number of times, it is judged whether the actual number of times exceeds the preset number of times. If the actual number of times is not greater than the preset number of times, it indicates that the actual number of times does not exceed the preset number of times, then the electricity meter is in the installation power-on state. If the actual number of times is greater than the preset number of times, it indicates that the actual number of times exceeds the preset number of times, then the electricity meter is in the test power-on state. In this way, by only using the devices owned by the equipment itself without adding new devices, the position information of the electricity meter can be obtained at low cost and accurately, providing an accurate signal for further controlling the button to wake up the screen later.

[0075] After obtaining the power-on state of the electricity meter, it can be determined whether the electricity meter is installed and used by checking whether the power-on state is the installed power-on state. If the power-on state is the installed power-on state, then the electricity meter is installed and used. At this time, there will no longer be a situation where the button is pressed due to tampering or accidental touch. At this time, after the controller generates a wake-up signal, it will immediately send the wake-up signal to the second input terminal IN2 of the AND gate 1, so that when the button 3 is pressed, the screen can be woken up.

[0076] If the power-on state is the test power-on state, then the electricity meter is not installed and used. There may still be a situation where the button is pressed due to tampering or accidental touch. At this time, the controller can obtain the test time by checking the internally stored information, and after receiving the power-on instruction, after a predicted time, it will send the generated wake-up signal to the second input terminal IN2 of the AND gate 1, so that when the button 3 is pressed, the screen can be woken up. Among them, the predicted time is determined by summarizing the historical actual test installation time and is pre-stored in the controller. This takes into account the loss of the battery in the electricity meter caused by accidentally pressing the button during the test process, and can reduce the ineffective loss of the battery in the electricity meter.

[0077] Figure 4 It is a schematic diagram of the control process after the electricity meter is powered on provided by the embodiment of the present application. As Figure 4 shown, first, the electricity meter is powered on, and then it is judged whether the electricity meter is in the installed state. If not, the button wake-up countdown variable stored in the controller is read, that is, the test time is counted down, and it is judged whether the countdown becomes zero. If so, the button wake-up screen function in the electricity meter is started. If not, the button wake-up screen function in the electricity meter is not started, and the countdown process continues. It is judged whether the countdown becomes zero. If it is not zero, the countdown process continues; if it is zero, the button wake-up screen function in the electricity meter is started. If it is judged that the electricity meter is in the installed state, the button wake-up screen function in the electricity meter is directly started.

[0078] In addition, after generating a wake-up signal based on the power-on instruction to start the button wake-up screen function in the electricity meter, it further includes: recording the button time and the duration each time the button is pressed, and judging whether the time difference between two adjacent button times does not exceed the interval time and the duration is less than the preset button time difference. If not, the wake-up signal is cleared and a screen-clearing signal is generated.

[0079] The above-mentioned interval time specifically refers to the duration of one screen wake-up, and the preset key time difference specifically refers to the response time of the key. The controller records the key time and duration of each key press, then calculates the difference between the key times of two adjacent key presses to obtain the time difference between the two adjacent key times, and compares the obtained time difference with the interval time; and compares each duration with the preset key time difference. If the time difference between two adjacent key times does not exceed the interval time and the duration is less than the preset key time difference, it indicates that the key is pressed normally, and at this time the controller takes no action, that is, the controller still keeps sending the wake-up signal to the second input terminal IN2 of the AND gate 1. Otherwise, it indicates that the key is not pressed normally, and at this time the controller stops generating the wake-up signal, regenerates the screen clearing signal, and sends the screen clearing signal to the second input terminal IN2 of the AND gate 1, stopping the function of waking up the screen by the key, thereby also reducing the loss of the battery in the electricity meter caused by random key presses and reducing the ineffective loss of the battery in the electricity meter.

[0080] Figure 5 It is a schematic connection diagram of a system for controlling a key to wake up the screen provided by an embodiment of the present application. As Figure 5 shown, a system for controlling a key to wake up the screen includes a receiving module, a processing module, and a control module.

[0081] Among them, the receiving module is used to judge whether a conveying signal indicating the start of transporting the electricity meter is received. If received, it obtains the sleep time representing the time required for the electricity meter to be transported to the installation, and the initial time corresponding to the transport signal. The processing module is used to add the initial time and the sleep time to obtain the end time representing the end of the electricity meter transportation. The control module is used to obtain the current time, judge whether the current time reaches the end time. If not, continue to obtain the current time and generate a screen clearing signal to block the function of waking up the screen by the key in the electricity meter; if it reaches, obtain the power-on instruction and generate a wake-up signal based on the power-on instruction to start the function of waking up the screen by the key in the electricity meter. The control module is also used to record the key time and duration of each key press, and judge whether the time difference between two adjacent key times does not exceed the interval time and the duration is less than the preset key time difference. If not, clear the wake-up signal and generate a screen clearing signal.

[0082] The other functions executed by the above-mentioned receiving module, processing module, and control module, as well as the technical details of each function, are the same as or similar to the corresponding features in the method for controlling a key to wake up the screen described above, so they will not be elaborated here.

[0083] The embodiment of the present application also provides a computer storage medium, on which a computer program is stored. When it runs on a computer, it enables the computer to execute the steps in the method for controlling a key to wake up the screen described above.

[0084] It should be understood that although the steps in the flowchart of the accompanying drawings are shown sequentially in the direction of the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless specifically stated herein, there is no strict order restriction for the execution of these steps, and they can be executed in other orders.

[0085] The above are only some embodiments of the present application. It should be noted that for those of ordinary skill in the art, without departing from the principle of the present application, several improvements and refinements can be made, and these improvements and refinements should also be regarded as the protection scope of the present application.

Claims

1. A method for controlling a key to wake up a screen, characterized in that: The method comprises: Determine whether a transport signal indicating the start of transporting the electric meter is received, and if received, obtain a sleep time indicating the time required for transporting the electric meter to installation, and an initial time corresponding to the transport signal, and add the sleep time to the initial time to obtain an end time indicating the end of transporting the electric meter; Obtain the current time, determine whether the current time reaches the end time, and if not, continue to obtain the current time and generate a screen clearing signal to block the function of pressing a button to wake up the screen in the meter; If it arrives, obtaining a power-on instruction, and generating a wake-up signal based on the power-on instruction to start a button wake-up screen function in the electric meter; The sleep time includes transportation time and unloading time, and the sleep time representing the time required for transportation of the electric meter includes: Receiving the navigation time sent by the navigation software to obtain the transportation time; Receive the delivery quantity sent by the delivery personnel, and multiply the delivery quantity by the preset unloading unit time to obtain the unloading time; Adding the transport time to the unloading time yields the sleeping time; The electric meter includes an AND gate and a controller, the button is connected to the first input end of the AND gate, the output end of the controller is connected to the second input end of the AND gate, the output end of the AND gate is connected to the power supply end of the screen, the screen clearing signal is a low level signal, and the screen clearing signal is generated to block the button wake-up screen function in the electric meter, including: The controller generates a screen clearing signal, and sends the screen clearing signal to the second input terminal of the AND gate, so that the output terminal of the AND gate outputs a low level type signal to block the screen wake-up function of the button in the electric meter; The wake-up signal is a high-level signal, and the step of generating the wake-up signal based on the power-on instruction to start the button wake-up screen function in the electric meter includes: Acquiring the power-on state of the electric meter based on the power-on instruction, judging whether the electric meter is installed and used based on the power-on state, and if so, sending the wake-up signal to the second input end of the AND gate so that the screen is awakened when the button is pressed; If not, obtain the test time, and send the wake-up signal to the second input terminal of the AND gate after waiting for the test time, so that the screen is awakened when the button is pressed; The power-on state is one of an installation power-on state and a test power-on state, and obtaining the power-on state of the electric meter includes: Obtaining the location information of the electric meter, and determining whether the location information belongs to the location of the power company, and if so, the electric meter is in a test power-on state; If not, obtaining the actual number of times a button in the electric meter is pressed within a preset time, and determining whether the actual number exceeds the preset number, and if not, the electric meter is in an installed power-on state; If yes, the electric meter is in a test power-on state.

2. The method according to claim 1, characterized in that After the wake-up signal is generated based on the power-on instruction to start the button wake-up screen function in the electric meter, the method further includes: Record the key press time and duration each time a key is pressed, determine whether the time difference between two adjacent key press times does not exceed the interval time and the duration is less than the preset key press time difference, if not, clear the wake-up signal and generate a clear screen signal.

3. The method according to claim 1, characterized in that The method further comprises: If the transport signal indicating the start of transporting the electric meter is not received, a screen clearing signal is generated to block the function of pressing a button in the electric meter to wake up the screen.

4. A system for controlling a key to wake up a screen, characterized in that: The system comprises: a receiving module, a processing module and a control module; wherein, The receiving module is used to determine whether a transport signal indicating the start of transporting the electric meter is received, and if received, to obtain a sleep time indicating the time required for transporting the electric meter to installation, and an initial time corresponding to the transport signal; The processing module is used to add the sleep time to the initial time to obtain the end time representing the end of transportation of the electric meter; The control module is used to obtain the current time, determine whether the current time reaches the end time, and if not, continue to obtain the current time and generate a screen clearing signal to block the button wake-up screen function in the electric meter; if it reaches, obtain a power-on instruction, and generate a wake-up signal based on the power-on instruction to start the button wake-up screen function in the electric meter; The sleep time includes transportation time and unloading time, and the sleep time representing the time required for transportation of the electric meter includes: Receiving the navigation time sent by the navigation software to obtain the transportation time; Receive the delivery quantity sent by the delivery personnel, and multiply the delivery quantity by the preset unloading unit time to obtain the unloading time; Adding the transport time to the unloading time yields the sleeping time; The electric meter includes an AND gate and a controller, the button is connected to the first input end of the AND gate, the output end of the controller is connected to the second input end of the AND gate, the output end of the AND gate is connected to the power supply end of the screen, the screen clearing signal is a low level signal, and the screen clearing signal is generated to block the button wake-up screen function in the electric meter, including: The controller generates a screen clearing signal, and sends the screen clearing signal to the second input terminal of the AND gate, so that the output terminal of the AND gate outputs a low level type signal to block the screen wake-up function of the button in the electric meter; The wake-up signal is a high-level signal, and the step of generating the wake-up signal based on the power-on instruction to start the button wake-up screen function in the electric meter includes: Acquiring the power-on state of the electric meter based on the power-on instruction, judging whether the electric meter is installed and used based on the power-on state, and if so, sending the wake-up signal to the second input end of the AND gate so that the screen is awakened when the button is pressed; If not, obtain the test time, and send the wake-up signal to the second input terminal of the AND gate after waiting for the test time, so that the screen is awakened when the button is pressed; The power-on state is one of an installation power-on state and a test power-on state, and obtaining the power-on state of the electric meter includes: Obtaining the location information of the electric meter, and determining whether the location information belongs to the location of the power company, and if so, the electric meter is in a test power-on state; If not, obtaining the actual number of times a button in the electric meter is pressed within a preset time, and determining whether the actual number exceeds the preset number, and if not, the electric meter is in an installed power-on state; If yes, the electric meter is in a test power-on state.

5. The system according to claim 4, characterized in that The control module is also used to record the key pressing time and duration each time a key is pressed, and to determine whether the time difference between two adjacent key pressing times does not exceed the interval time and the duration is less than the preset key pressing time difference. If not, the wake-up signal is cleared and a clear screen signal is generated.

6. A computer-readable storage medium having stored thereon a computer program that can be run on a processor, characterized in that: When the computer program is executed by the processor, the method for controlling a key to wake up the screen as described in any one of claims 1 to 3 is implemented.

Citation Information

Patent Citations

  • Control method and device of oral care equipment, equipment and storage medium

    CN117389186A