CN108924366B - Low-voltage reminding method and device, electronic equipment and storage medium - Google Patents
Low-voltage reminding method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN108924366B CN108924366B CN201810836606.7A CN201810836606A CN108924366B CN 108924366 B CN108924366 B CN 108924366B CN 201810836606 A CN201810836606 A CN 201810836606A CN 108924366 B CN108924366 B CN 108924366B
- Authority
- CN
- China
- Prior art keywords
- voltage
- preset
- low
- instruction
- power supply
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 37
- 238000001514 detection method Methods 0.000 claims description 33
- 230000001960 triggered effect Effects 0.000 claims description 19
- 238000004590 computer program Methods 0.000 claims description 5
- 239000003990 capacitor Substances 0.000 description 17
- 230000006870 function Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000005265 energy consumption Methods 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72466—User interfaces specially adapted for cordless or mobile telephones with selection means, e.g. keys, having functions defined by the mode or the status of the device
Landscapes
- Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Power Sources (AREA)
Abstract
The invention discloses a low-voltage reminding method and device, electronic equipment and a storage medium. The method comprises the following steps: when a first preset trigger event is detected, detecting whether the power supply voltage is lower than a set threshold value; if so, sending a low-voltage reminding instruction to the target intelligent terminal so that the target intelligent terminal outputs a low-voltage reminding. The method provided by the invention realizes low-voltage reminding through the target intelligent terminal without additionally increasing a display device, thereby reducing the cost and power consumption.
Description
Technical Field
The present invention relates to electronic device application technologies, and in particular, to a low voltage reminding method and apparatus, an electronic device, and a storage medium.
Background
With the continuous development of science and technology, electronic equipment is widely used in various fields in life. In the process of using the electronic equipment, the user needs to be reminded when the power supply voltage is too low so that the user can replace or charge the power supply in time, and the normal use of the electronic equipment is ensured.
At present, for an electronic device with a display screen, the electric quantity of the electronic device is generally displayed in real time through the display screen, so that a user can find that the power supply voltage is too low in time, however, for an electronic device without a display screen, such as an intelligent pen, a light emitting diode or other display devices are generally required to be additionally arranged to remind the user that the power supply voltage is too low, in this case, the added display devices can increase the hardware cost of the electronic device, and at the same time, the power consumption of the electronic device can also be increased.
Disclosure of Invention
The invention provides a low-voltage reminding method and device, electronic equipment and a storage medium, which are used for realizing low-voltage reminding through a target intelligent terminal without additionally increasing a display device, thereby reducing the cost and power consumption.
In a first aspect, an embodiment of the present invention provides a low voltage reminding method, where the method includes: when a first preset trigger event is detected, detecting whether the power supply voltage is lower than a set threshold value;
if so, sending a low-voltage reminding instruction to the target intelligent terminal so that the target intelligent terminal outputs a low-voltage reminding.
In a second aspect, an embodiment of the present invention further provides a low voltage reminder, where the reminder includes:
the power supply voltage detection module is used for detecting whether the power supply voltage is lower than a set threshold value or not when a first preset trigger event is detected;
and the instruction sending module is used for sending a low-voltage reminding instruction to the target intelligent terminal if the low-voltage reminding instruction is lower than the set threshold value so that the target intelligent terminal outputs a low-voltage reminding.
In a third aspect, an embodiment of the present invention further provides an electronic device, where the electronic device includes:
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the low voltage alerting method provided by any embodiment of the invention.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the low voltage reminding method provided in any embodiment of the present invention.
The method comprises the steps of detecting whether the power supply voltage is lower than a set threshold value or not when a first preset trigger event is detected; if the low-voltage reminding instruction is received, the low-voltage reminding instruction is sent to the target intelligent terminal so that the target intelligent terminal outputs the low-voltage reminding instruction, the problem that the cost and the power consumption are increased due to the fact that a light emitting diode or other display devices are additionally arranged to conduct low-voltage reminding is solved, low-voltage reminding is conducted through the target intelligent terminal, the display devices do not need to be additionally arranged, and therefore the cost and the power consumption are reduced.
Drawings
Fig. 1 is a flowchart of a low voltage reminding method according to a first embodiment of the present invention;
FIG. 2 is a flowchart of a low voltage alerting method according to a second embodiment of the present invention;
FIG. 3 is a circuit for detecting a power supply voltage according to a second embodiment of the present invention;
FIG. 4 is a block diagram of a low voltage reminder according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device in a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a low voltage reminding method according to an embodiment of the present invention, where the method is applicable to a situation that low voltage reminding is required, and the method can be executed by a low voltage reminding device, and the low voltage reminding device can be composed of software and/or hardware, and can be generally integrated in an electronic device. Referring to fig. 1, the method provided in this embodiment specifically includes the following steps:
For example, the first predetermined trigger event may be the arrival of a set time. If the set time can be 8 or 9, detecting whether the power supply voltage is lower than a set threshold value when the electronic equipment detects that the set time is reached; alternatively, the detected time interval may be set, for example, the set time interval may be 2 hours, 5 hours or 8 hours, and when the electronic device detects that the set time is reached every set time interval, it is detected whether the power supply voltage is lower than the set threshold.
Preferably, the first preset trigger event is that a preset key is triggered. The number of the preset keys can be one or more, each preset key can correspond to one control instruction, and the control instruction can be a brightness increase instruction or a brightness decrease instruction and other control instructions. When the electronic equipment detects that any preset key is triggered, the electronic equipment detects whether the power supply voltage is lower than a set threshold value. Therefore, when a user needs to use the electronic equipment, whether the power supply voltage is lower than a set threshold value can be detected by triggering one preset key, and therefore the power supply voltage can be detected in time.
Specifically, the set threshold may be set according to actual conditions, which is not limited in this embodiment.
And 120, if the voltage is lower than the set threshold, sending a low-voltage reminding instruction to the target intelligent terminal so that the target intelligent terminal outputs a low-voltage reminding.
And if the electronic equipment detects that the power supply voltage is lower than the set threshold value, sending a low-voltage reminding instruction to the target intelligent terminal.
The low-voltage reminding instruction can be obtained by encoding according to a preset rule. If the low voltage alert command is a char-type 64-bit command string, bytes 0 to 4 in the command string may be prefix strings, byte 5 may be a low voltage alert command string, and bytes 6 and 7 may be null strings. And after the target intelligent terminal receives the instruction character string, the target intelligent terminal can determine that the low-voltage reminding instruction is received by analyzing the instruction character string.
For example, after receiving the low voltage alert instruction, the target intelligent terminal may output text, pictures, or animations related to the low voltage alert to alert the user that the power supply voltage of the electronic device is too low. If the text can be output on the screen: the power supply voltage of the electronic equipment is too low, the power supply is required to be replaced or charged in time, and therefore a user can replace or charge the power supply of the electronic equipment in time, and normal use of the electronic equipment is guaranteed.
Preferably, if the electronic device detects that the power supply voltage is not lower than the set threshold, the electronic device executes the original normal operation. If the first preset trigger event is that the set time is reached, if the electronic equipment detects that the power supply voltage is not lower than the set threshold value, other operations are not carried out; and if the first preset trigger event is that a preset key is triggered, the electronic equipment sends a control instruction corresponding to the preset key to the target intelligent terminal if detecting that the power supply voltage is not lower than a set threshold value, so that the target intelligent terminal responds to the control instruction corresponding to the preset key.
The control instruction corresponding to the preset key can be obtained by encoding according to a preset rule which is the same as the low-voltage reminding instruction. If the control command corresponding to the preset key is also a char type 64-bit command character string, the 0 th byte to the 4 th byte in the command character string are prefix character strings, the 5 th byte is a control command character string corresponding to the preset key, and the 6 th byte and the 7 th byte are null character strings. After the target intelligent terminal receives the command character string, the received control command can be determined and responded by analyzing the command character string.
For example, the electronic device may be an electronic device such as a smart pen or a remote controller, and the target intelligent terminal may be an intelligent terminal such as an intelligent tablet or an intelligent television.
It should be noted that before the electronic device sends the low-voltage reminding instruction to the target intelligent terminal, if a communication connection is established between the electronic device and the target intelligent terminal, such as a network or a bluetooth connection, the electronic device may send the low-voltage reminding instruction to the target intelligent terminal based on the communication connection established with the target intelligent terminal.
The embodiment detects whether the power supply voltage is lower than a set threshold value when a first preset trigger event is detected; if the low-voltage reminding instruction is received, the low-voltage reminding instruction is sent to the target intelligent terminal so that the target intelligent terminal outputs the low-voltage reminding instruction, the problem that the cost and the power consumption are increased due to the fact that a light emitting diode or other display devices are additionally arranged to conduct low-voltage reminding is solved, low-voltage reminding is conducted through the target intelligent terminal, no additional display device is needed, and therefore the cost and the power consumption are reduced.
Example two
Fig. 2 is a flowchart of a low voltage reminding method according to a second embodiment of the present invention. The embodiment is further optimized on the basis of the embodiment. In this embodiment, the first preset trigger event is optimized as follows: a preset key is triggered; if yes, sending a low-voltage reminding instruction to the target intelligent terminal to enable the target intelligent terminal to output low-voltage reminding, and optimizing as follows: if so, performing instruction coding according to a control instruction corresponding to the preset key and the low-voltage reminding instruction to obtain an instruction character string; sending the command character string to the target intelligent terminal so that the target intelligent terminal responds to the control command and outputs a low-voltage prompt; optimizing a control instruction corresponding to a preset key as follows: a page turning forward instruction, a page turning backward instruction, a current page closing instruction or a preset application opening instruction; whether the detected power supply voltage is lower than a set threshold value is optimized as follows: continuously acquiring power supply voltage for preset times according to a set time interval; determining whether the power supply voltages of the preset times are all lower than a set threshold value; optimizing the method to further comprise: when a second preset trigger event is detected, detecting the current power supply voltage; sending the current power supply voltage to a target intelligent terminal for displaying; optimizing the second preset trigger event as: at least two preset keys are triggered within a preset time.
Referring to fig. 2, the method provided in this embodiment specifically includes the following steps:
Preferably, the first preset trigger event is: a preset key is triggered.
In this embodiment, the electronic device is taken as an example of an intelligent pen, and a plurality of preset keys are arranged on the electronic device, and different preset keys correspond to different control instructions.
For example, the control instruction corresponding to one preset key may be a page forward turning instruction, a page backward turning instruction, a current page closing instruction, or a preset application opening instruction.
Preferably, when the smart pen detects that the duration that the preset key is not triggered exceeds the preset duration, the smart pen enters a sleep state, that is, default to turn off some functions to reduce power consumption, for example, turning off the detection function of a specific input/output interface (I/O interface) of the micro control unit.
Specifically, the preset time period may be 30 milliseconds, 40 milliseconds, or 50 milliseconds.
After entering the sleep state, when the smart pen detects that any preset key is triggered, the smart pen is awakened, the function which is closed when the smart pen is in the sleep state is started, and the power supply voltage of preset times is continuously acquired according to a set time interval.
Specifically, the set time interval may be 3 milliseconds, 5 milliseconds, or 10 milliseconds, and the preset number may be 2 times, 3 times, or 5 times.
In addition, the first preset trigger event may also be a combination of time and a preset key, for example, when a pressing operation of a certain preset key is detected for the first time on a certain day of each month, generally speaking, the energy consumption of the smart pen is low, and in order to avoid that voltage detection is performed every time the preset key is triggered, redundant operations are reduced, and detection may be performed at intervals.
Fig. 3 is a detection circuit of a power supply voltage according to an embodiment of the invention. As shown in fig. 3, the positive pole of the power supply 310 is electrically connected to the I/O interface of the micro control unit 320 through the resistor R, and the negative pole of the power supply 310 is grounded. When the power voltage needs to be detected, the micro control unit 320 may read the input voltage of the I/O interface electrically connected to the positive electrode of the power supply 310, and further obtain the power voltage at this time.
Optionally, the detection circuit shown in fig. 3 further includes: and a first capacitor C1, wherein a first terminal of the first capacitor C1 is electrically connected to the I/O interface of the mcu 320, and a second terminal of the first capacitor C1 is grounded, so as to filter the power voltage input to the I/O interface through the first capacitor C1.
Optionally, the detection circuit shown in fig. 3 further includes: the inductor L, the boost chip 330, the second capacitor C2, the third capacitor C3 and the fourth capacitor C4. The first end of the inductor L is electrically connected to the positive electrode of the power supply 310, and the second end of the inductor L is electrically connected to the input end VI of the boost chip 330, so as to stabilize the power supply voltage of the power supply 310 through the inductor L; a first terminal of the second capacitor C2 is electrically connected to the positive terminal of the power supply 310, and a second terminal of the second capacitor C2 is electrically connected to the negative terminal of the power supply 310, so as to filter the supply voltage of the power supply 310 through the second capacitor C2; the first end of the third capacitor C3 is electrically connected to the output terminal VO of the boost chip 330, the second end of the third capacitor C3 is grounded, the first end of the fourth capacitor C4 is electrically connected to the output terminal VO of the boost chip 330, and the second end of the fourth capacitor C4 is grounded, wherein one of the third capacitor C3 and the fourth capacitor C4 has a larger capacitance value to filter low-frequency interference, and the other capacitor has a smaller capacitance value to filter high-frequency interference. Therefore, the boost chip 330 boosts the input voltage at the input terminal VI within a certain range (e.g., 0.9V-1.5V) to a certain value (e.g., 3V) and outputs the boosted voltage through the output terminal VO, so that the micro control unit 320 or other control chips can be powered through the output terminal VO.
After the power supply voltages of the preset times are obtained, whether the obtained power supply voltages of the preset times are all lower than a set threshold value is determined.
Illustratively, the threshold is set to 1V.
And step 230, performing instruction coding according to the control instruction corresponding to the preset key and the low-voltage reminding instruction to obtain an instruction character string.
And if the power supply voltage is lower than the preset threshold value for the preset times, performing instruction coding according to the control instruction corresponding to the preset key and the low-voltage reminding instruction to obtain an instruction character string.
And 240, sending the command character string to the target intelligent terminal so that the target intelligent terminal responds to the control command and outputs a low-voltage prompt.
And after the instruction character string is obtained, the instruction character string is sent to the target intelligent terminal so that the target intelligent terminal responds to the control instruction and outputs a low-voltage prompt.
Illustratively, the instruction string is a char-type 64-bit string. The 0 th byte to the 4 th byte may be prefix character strings, the 5 th byte may be a control command corresponding to a preset key, the 6 th byte may be a low voltage alert command character string, and the 7 th byte may be a null character string. Therefore, after the target intelligent terminal receives the instruction character string, the control instruction and the low-voltage reminding instruction corresponding to the preset key can be determined to be received by analyzing the instruction character string, and then the control instruction is responded and the low-voltage reminding is output.
And step 250, performing instruction coding according to the control instruction corresponding to the preset key to obtain an instruction character string and sending the instruction character string to the target intelligent terminal so that the target intelligent terminal responds to the control instruction.
Preferably, if it is determined that the obtained power supply voltages for the preset times are not all lower than the set threshold, performing instruction coding according to the control instruction corresponding to the triggered preset key to obtain an instruction character string, and sending the instruction character string to the target intelligent terminal so that the target intelligent terminal responds to the control instruction. For example, in the command string, bytes 0 to 4 are prefix strings, byte 5 is a control command corresponding to the preset key, and bytes 6 and 7 are null strings.
Preferably, after detecting whether the power voltage is lower than the set threshold, the detection flag position may be set to 1 to determine that the power voltage has been detected after the smart pen is awakened this time, and when it is detected that the duration in which the preset key is not triggered exceeds the preset duration, the detection flag position is set to 0.
Preferably, detecting whether the power supply voltage is lower than a set threshold specifically includes: if the detection flag bit is determined to be 0, whether the power supply voltage is lower than a set threshold value is detected, and then the power supply voltage is detected only once to be lower than the set threshold value after the intelligent pen is awakened so as to reduce power consumption.
Preferably, if it is determined that the detection flag bit is not 0, performing instruction encoding according to the control instruction corresponding to the preset key to obtain an instruction character string and sending the instruction character string to the target intelligent terminal so that the target intelligent terminal responds to the control instruction.
Illustratively, if the target intelligent terminal receives a forward page turning instruction, if the current foreground application is electronic whiteboard software, turning a current page to a previous page; if the current foreground application is not the electronic whiteboard software, other operations are not carried out, or the earliest started application in the background applications is started in the foreground; if the target intelligent terminal receives a backward page turning instruction; if the current foreground application is electronic whiteboard software, turning the current page to the next page; if the current foreground application is not the electronic whiteboard software, no other operation is carried out, or the next adjacent application of the current foreground application in the background application is started in the foreground; if the target intelligent terminal receives a current page closing instruction, closing the current foreground application; and if the target intelligent terminal receives a preset application starting instruction, starting electronic whiteboard software or other application software on the foreground.
Preferably, when a second preset trigger event is detected, the current power supply voltage is detected; and sending the current power supply voltage to the target intelligent terminal for displaying.
The second preset trigger event is: at least two preset keys are triggered within a preset time.
Specifically, the preset time may be 10 milliseconds, 15 milliseconds, or 20 milliseconds.
Therefore, when a user needs to determine the power supply voltage, the current power supply voltage can be acquired in real time through the target intelligent terminal by triggering at least two preset keys within the preset time, and the method is convenient and fast. Compared with automatic detection when the first preset trigger event occurs, the operation of simultaneously pressing the two keys basically cannot occur in the using process of the intelligent pen, so that the second preset trigger event is set to be mainly used for the user to actively obtain the voltage. For example, the automatic detection is once a month, the voltage is normal during the last detection, but the automatic detection may not be normally used due to excessive power consumption in the last detection and the next detection, at this time, a user may obtain the current voltage state by triggering two preset keys simultaneously, and determine whether the voltage is too low, at this time, only the output of the voltage detection result is obtained, and there is no response of the control instruction.
In the embodiment, the power supply voltages of the preset times are continuously acquired according to the set time interval, and whether the power supply voltages of the preset times are all lower than the set threshold value is determined, so that whether the power supply voltages are lower than the set threshold value is more accurately determined; if so, performing instruction coding according to a control instruction corresponding to the preset key and the low-voltage reminding instruction to obtain an instruction character string; the command character string is sent to the target intelligent terminal so that the target intelligent terminal responds to the control command and outputs a low-voltage prompt, and under the condition that the detected power supply voltage is lower than a set threshold value, the target intelligent terminal not only responds to the control command but also outputs the low-voltage prompt through the command character string so as to prompt a user that the power supply voltage of the electronic equipment is too low, so that the user can replace or charge the power supply in time, and normal use of the electronic equipment is guaranteed; detecting the current power supply voltage when a second preset trigger event is detected; and sending the current power supply voltage to the target intelligent terminal for displaying, so that a user can conveniently acquire the current power supply voltage of the electronic equipment in real time through a second trigger event.
EXAMPLE III
Fig. 4 is a block diagram of a low-voltage reminder according to a third embodiment of the present invention. The device is suitable for the condition that low-voltage reminding is needed, can be composed of software and/or hardware, and can be generally integrated in electronic equipment. Referring to fig. 4, the apparatus provided in this embodiment includes: a power supply voltage detection module 410 and an instruction transmission module 420, wherein,
a power voltage detection module 410, configured to detect whether a power voltage is lower than a set threshold when a first preset trigger event is detected;
the instruction sending module 420 is configured to send a low-voltage reminding instruction to the target intelligent terminal if the voltage is lower than the set threshold, so that the target intelligent terminal outputs a low-voltage reminding.
In the embodiment, when a first preset trigger event is detected by a power supply voltage detection module, whether the power supply voltage is lower than a set threshold value is detected; if the instruction sending module is lower than the set threshold, a low-voltage reminding instruction is sent to the target intelligent terminal so that the target intelligent terminal outputs low-voltage reminding, the problem that cost and power consumption are increased due to the fact that a light emitting diode or other display devices are additionally arranged to conduct low-voltage reminding is solved, low-voltage reminding is conducted through the target intelligent terminal, the display devices do not need to be additionally arranged, and therefore cost and power consumption are reduced.
In the foregoing scheme, optionally, the first preset trigger event is: a preset key is triggered.
In the foregoing scheme, optionally, the instruction sending module includes:
the command string obtaining unit is used for carrying out command coding according to the control command corresponding to the preset key and the low-voltage reminding command to obtain a command string if the command string is lower than a set threshold;
and the command character string sending unit is used for sending the command character string to a target intelligent terminal so that the target intelligent terminal responds to the control command and outputs a low-voltage prompt.
In the foregoing scheme, optionally, the control instruction corresponding to the preset key is a page forward turning instruction, a page backward turning instruction, a current page closing instruction, or a preset application opening instruction.
In the foregoing solution, optionally, the power supply voltage detection module includes:
the power supply voltage acquisition unit is used for continuously acquiring power supply voltages of preset times according to a set time interval when a first preset trigger event is detected;
and the power supply voltage determining unit is used for determining whether the power supply voltages of the preset times are all lower than a set threshold value.
In the foregoing scheme, optionally, the second preset trigger event is: at least two preset keys are triggered within a preset time.
Example four
Fig. 5 is a schematic structural diagram of an electronic apparatus according to a fourth embodiment of the present invention, as shown in fig. 5, the electronic apparatus includes a processor 510, a memory 520, an input device 530, and an output device 540; the number of the processors 510 in the electronic device may be one or more, and one processor 510 is taken as an example in fig. 5; the processor 510, the memory 520, the input device 530 and the output device 540 in the electronic apparatus may be connected by a bus or other means, and the connection by the bus is exemplified in fig. 5.
The memory 520 is a computer-readable storage medium, and can be used to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the low-voltage reminding method in any embodiment of the present invention (for example, the power supply voltage detection module 410 and the instruction sending module 420 in the low-voltage reminding device). The processor 510 executes various functional applications and data processing of the electronic device by executing software programs, instructions and modules stored in the memory 520, that is, implements the operations for the electronic device described above.
The memory 520 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the electronic device, and the like. Further, the memory 520 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 520 may further include memory located remotely from processor 510, which may be connected to an electronic device through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 530 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic apparatus. Output device 540 may include a target smart terminal such as a display screen.
EXAMPLE five
The fifth embodiment of the present invention further provides a storage medium containing computer executable instructions, where a computer program is stored on the storage medium, and when the computer program is executed by a processor, the low voltage reminding method provided in any embodiment of the present invention is implemented.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the method according to any embodiment of the present invention.
It should be noted that, in the embodiment of the low-voltage reminder, each unit and each module included in the embodiment are only divided according to functional logic, but are not limited to the above division, as long as the corresponding function can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
The device can execute the method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects for executing the method. For technical details not described in detail in this embodiment, reference may be made to the method provided in any embodiment of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (8)
1. A low voltage reminding method is characterized by comprising the following steps:
when a first preset trigger event is detected, detecting whether the power supply voltage is lower than a set threshold value;
if so, sending a low-voltage reminding instruction to a target intelligent terminal to enable the target intelligent terminal to output a low-voltage reminding;
the first preset trigger event is that a preset key is triggered, and the detecting whether the power supply voltage is lower than a set threshold value comprises:
if the detection flag bit is determined to be 0, continuously acquiring power supply voltages for preset times according to a set time interval, and determining whether the power supply voltages for the preset times are all lower than a set threshold value;
if the detection zone bit is determined to be not 0, performing instruction coding according to the control instruction corresponding to the preset key to obtain an instruction character string and sending the instruction character string to the target intelligent terminal so that the target intelligent terminal responds to the control instruction;
and setting the detection flag position to be 1 after detecting whether the power supply voltage is lower than a set threshold value, and setting the detection flag position to be 0 when detecting that the duration that the preset key is not triggered exceeds the preset duration.
2. The method of claim 1, wherein if the low voltage alert command is received, sending a low voltage alert command to the target intelligent terminal to enable the target intelligent terminal to output the low voltage alert command comprises:
if so, carrying out instruction coding according to the control instruction corresponding to the preset key and the low-voltage reminding instruction to obtain an instruction character string;
and sending the command character string to a target intelligent terminal so that the target intelligent terminal responds to the control command and outputs a low-voltage prompt.
3. The method according to claim 2, wherein the control command corresponding to the preset key is a page forward turning command, a page backward turning command, a current page closing command or a preset application opening command.
4. The method of claim 1, further comprising:
when a second preset trigger event is detected, detecting the current power supply voltage;
and sending the current power supply voltage to the target intelligent terminal for displaying.
5. The method according to claim 4, wherein the second predetermined trigger event is: at least two preset keys are triggered within a preset time.
6. A low voltage reminder device comprising:
the power supply voltage detection module is used for detecting whether the power supply voltage is lower than a set threshold value or not when a first preset trigger event is detected;
the instruction sending module is used for sending a low-voltage reminding instruction to the target intelligent terminal to enable the target intelligent terminal to output a low-voltage reminding if the low-voltage reminding instruction is lower than a set threshold;
the first preset trigger event is that a preset key is triggered, and the power supply voltage detection module is used for:
if the detection flag bit is determined to be 0, continuously acquiring power supply voltages for preset times according to a set time interval, and determining whether the power supply voltages for the preset times are all lower than a set threshold value;
if the detection zone bit is determined to be not 0, performing instruction coding according to the control instruction corresponding to the preset key to obtain an instruction character string and sending the instruction character string to the target intelligent terminal so that the target intelligent terminal responds to the control instruction;
and setting the detection flag position to be 1 after detecting whether the power supply voltage is lower than a set threshold value, and setting the detection flag position to be 0 when detecting that the duration that the preset key is not triggered exceeds the preset duration.
7. An electronic device, characterized in that the device comprises:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the low voltage alerting method of any of claims 1-5.
8. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a low voltage alerting method as claimed in any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810836606.7A CN108924366B (en) | 2018-07-26 | 2018-07-26 | Low-voltage reminding method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810836606.7A CN108924366B (en) | 2018-07-26 | 2018-07-26 | Low-voltage reminding method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108924366A CN108924366A (en) | 2018-11-30 |
CN108924366B true CN108924366B (en) | 2021-06-15 |
Family
ID=64415851
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810836606.7A Active CN108924366B (en) | 2018-07-26 | 2018-07-26 | Low-voltage reminding method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108924366B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114167338B (en) * | 2021-12-06 | 2023-11-24 | 广东乐心医疗电子股份有限公司 | Single-point voltage calibration and calibration method and device |
CN114828175A (en) * | 2022-03-29 | 2022-07-29 | 深圳绿米联创科技有限公司 | Target equipment control method, device and system and electronic equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103024204A (en) * | 2012-12-13 | 2013-04-03 | 广东欧珀移动通信有限公司 | Method and device for saving electricity for mobile terminal |
CN103838482A (en) * | 2012-11-27 | 2014-06-04 | 联想(北京)有限公司 | Reminding method and electronic equipment |
CN104796553A (en) * | 2015-04-30 | 2015-07-22 | 魅族科技(中国)有限公司 | Communication event reminding method and terminal |
CN107872575A (en) * | 2017-10-31 | 2018-04-03 | 努比亚技术有限公司 | Terminal installation, intelligent prompt method and computer-readable storage medium |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180182491A1 (en) * | 2016-12-27 | 2018-06-28 | Dexcom, Inc. | Systems and methods for patient monitoring using an hcp-specific device |
-
2018
- 2018-07-26 CN CN201810836606.7A patent/CN108924366B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103838482A (en) * | 2012-11-27 | 2014-06-04 | 联想(北京)有限公司 | Reminding method and electronic equipment |
CN103024204A (en) * | 2012-12-13 | 2013-04-03 | 广东欧珀移动通信有限公司 | Method and device for saving electricity for mobile terminal |
CN104796553A (en) * | 2015-04-30 | 2015-07-22 | 魅族科技(中国)有限公司 | Communication event reminding method and terminal |
CN107872575A (en) * | 2017-10-31 | 2018-04-03 | 努比亚技术有限公司 | Terminal installation, intelligent prompt method and computer-readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN108924366A (en) | 2018-11-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017206107A1 (en) | Charging method and terminal | |
CN103607822B (en) | A kind of method of overheat protector of photoflash lamp of terminal and device | |
CN108924366B (en) | Low-voltage reminding method and device, electronic equipment and storage medium | |
CN103050097A (en) | Method and device for regulating brightness of backlight lamp | |
JP2017532640A (en) | Electric quantity detection method and apparatus, terminal and storage medium | |
CN107576930B (en) | power supply and relay status detection circuit and method | |
CN116028210B (en) | Resource scheduling method, electronic equipment and storage medium | |
US20130311120A1 (en) | Battery voltage detection method and apparatus | |
CN105528171A (en) | Method and system for quickly starting application of intelligent terminal, and intelligent terminal | |
CN106648021B (en) | The data broadcasting method and low consumption circuit of low consumption circuit | |
WO2018120191A1 (en) | Screen display control method and device | |
CN106650409B (en) | A kind of terminal control method and terminal | |
CN110956968A (en) | Voice wake-up and voice wake-up function triggering method and device, and terminal equipment | |
CN103680106B (en) | Intelligent air switch system | |
US20130318368A1 (en) | Power management system and method for server | |
CN108304135A (en) | A kind of method of adjustment and terminal of virtual modifier key | |
WO2023056830A1 (en) | Working voltage processing method and apparatus, electronic device and storage medium | |
CN108073260B (en) | Overcharge resetting method and system | |
US20200275544A1 (en) | Illumination control systems and methods | |
CN105760198A (en) | Mobile phone app updating method and system | |
CN102375524A (en) | Host | |
CN116700816A (en) | Resource management method and electronic equipment | |
CN117526471A (en) | Wireless charging circuit applied to wearable device and wearable device | |
CN115085000A (en) | Discharge circuit, method, device and electronic equipment | |
CN113010004A (en) | Abnormal power consumption processing method and device and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |