Method and device for adjusting system running state, storage medium and electronic equipment

文档序号:996384 发布日期:2020-10-23 浏览:12次 中文

阅读说明:本技术 调整系统运行状态的方法、装置、存储介质及电子设备 (Method and device for adjusting system running state, storage medium and electronic equipment ) 是由 陈明星 于 2019-12-31 设计创作,主要内容包括:本公开实施例提供了一种调整系统运行状态的方法、装置、存储介质及电子设备,方法包括:检测自行车的分体锁中是否存在电池;在不存在电池的情况下,检测系统当前的剩余工作电量是否小于第一工作电量;在小于第一工作电量的情况下,将系统的运行状态调整至低功耗模式或关闭系统。本公开实施例对自行车系统当前的剩余工作电量进行检测,根据剩余工作电量的大小来确定是否将系统的运行状态调整至低功耗模式或关闭系统,进而避免了太阳能电池板提供电量不稳定对系统造成的损坏,降低了自行车的损坏率。(The embodiment of the disclosure provides a method, a device, a storage medium and an electronic device for adjusting a system running state, wherein the method comprises the following steps: detecting whether a battery exists in a split lock of the bicycle; under the condition that no battery exists, detecting whether the current residual working electric quantity of the system is smaller than a first working electric quantity; and under the condition of being less than the first working electric quantity, adjusting the running state of the system to a low power consumption mode or closing the system. The embodiment of the disclosure detects the current residual working electric quantity of the bicycle system, and determines whether to adjust the running state of the system to a low power consumption mode or close the system according to the size of the residual working electric quantity, thereby avoiding the damage to the system caused by the instability of the electric quantity provided by the solar cell panel and reducing the damage rate of the bicycle.)

1. A method of adjusting an operational state of a system, comprising:

detecting whether a battery exists in a split lock of the bicycle;

under the condition that no battery exists, detecting whether the current residual working electric quantity of the system is smaller than a first working electric quantity;

and under the condition that the working power is less than the first working power, adjusting the running state of the system to a low power consumption mode or turning off the system.

2. The method of claim 1, wherein the adjusting the operational state of the system to a low power mode or shutting down the system comprises:

detecting whether the current residual working electric quantity of the system is smaller than a second working electric quantity, wherein the second working electric quantity is smaller than the first working electric quantity;

under the condition that the operating state of the system is not less than the second operating electric quantity, the operating state of the system is adjusted to the low power consumption mode;

and under the condition of being less than the second working electric quantity, the system is shut down.

3. The method of claim 1, wherein said detecting the presence of a battery in a split lock of a bicycle comprises:

detecting whether the temperature value in the area corresponding to the battery is greater than a preset temperature value or not; alternatively, the first and second electrodes may be,

detecting whether a switch used for locking the battery in the split lock is in a locking state; alternatively, the first and second electrodes may be,

and detecting whether the current residual working electric quantity of the system is smaller than a third working electric quantity, wherein the third working electric quantity is larger than the first working electric quantity.

4. The method of any of claims 1 to 3, wherein after adjusting the operational state of the system to a low power consumption mode or shutting down the system, further comprising:

detecting whether a battery exists in a split lock of the bicycle;

and under the condition that a battery exists, adjusting the running state of the system from the low power consumption mode to a normal working mode or restarting the system.

5. The method of any of claims 1-3, wherein after adjusting the operational state of the system to the low power consumption mode, further comprising:

detecting whether the current residual working electric quantity of the system is smaller than the first working electric quantity;

and under the condition that the operating state of the system is not less than the first operating electric quantity, the operating state of the system is adjusted from the low power consumption mode to the normal operating mode.

6. An apparatus for adjusting an operational state of a system, comprising:

the first detection module is used for detecting whether a battery exists in a split lock of the bicycle;

the second detection module is used for detecting whether the current residual working electric quantity of the system is smaller than the first working electric quantity or not under the condition that the battery does not exist;

and the adjusting module is used for adjusting the running state of the system to a low power consumption mode or closing the system under the condition that the running state is smaller than the first working electric quantity.

7. The apparatus of claim 6, wherein the adjustment module comprises:

the detection unit is used for detecting whether the current residual working electric quantity of the system is smaller than a second working electric quantity, wherein the second working electric quantity is smaller than the first working electric quantity;

the first adjusting unit is used for adjusting the running state of the system to the low power consumption mode under the condition that the running state is not less than the second working electric quantity;

and the second adjusting unit is used for closing the system under the condition that the second working electric quantity is less than the second working electric quantity.

8. The apparatus of claim 6, wherein the first detection module is specifically configured to:

detecting whether the temperature value in the area corresponding to the battery is greater than a preset temperature value or not; alternatively, the first and second electrodes may be,

detecting whether a switch used for locking the battery in the split lock is in a locking state; alternatively, the first and second electrodes may be,

and detecting whether the current residual working electric quantity of the system is smaller than a third working electric quantity, wherein the third working electric quantity is larger than the first working electric quantity.

9. The apparatus according to any one of claims 6 to 8,

the first detection module is further used for detecting whether a battery exists in the split lock of the bicycle or not under the condition that the running state of the system is adjusted to a low power consumption mode or the system is turned off;

the adjusting module is further configured to adjust the operating state of the system from the low power consumption mode to a normal operating mode or restart the system in the presence of a battery.

10. The apparatus according to any one of claims 6 to 8,

the second detection module is further configured to detect whether the current remaining operating power of the system is less than the first operating power when the operating state of the system is adjusted to the low power consumption mode;

the adjusting module is further configured to adjust the running state of the system from the low power consumption mode to the normal operating mode under the condition that the running state is not less than the first operating electric quantity.

11. A storage medium storing a computer program, characterized in that the computer program realizes the steps of the method of any one of claims 1 to 5 when executed by a processor.

12. An electronic device comprising at least a memory, a processor, the memory having a computer program stored thereon, characterized in that the processor realizes the steps of the method of any of claims 1 to 5 when executing the computer program on the memory.

Technical Field

The present disclosure relates to the field of data processing, and in particular, to a method and an apparatus for adjusting a system running state, a storage medium, and an electronic device.

Background

Disclosure of Invention

In view of this, the embodiments of the present disclosure provide a method, an apparatus, a storage medium, and an electronic device for adjusting a system running state, so as to solve the following problems in the prior art: when the battery of the bicycle is replaced, the sunlight can be strong or weak, the power supply quantity of the system power supply can be in an extremely unstable state, and the unstable state can possibly damage the system, so that the bicycle cannot be normally used and must be maintained.

In one aspect, an embodiment of the present disclosure provides a method for adjusting a system operating state, including: detecting whether a battery exists in a split lock of the bicycle; under the condition that no battery exists, detecting whether the current residual working electric quantity of the system is smaller than a first working electric quantity; and under the condition that the working power is less than the first working power, adjusting the running state of the system to a low power consumption mode or turning off the system.

In some embodiments, the adjusting the operation state of the system to the low power consumption mode or turning off the system includes: detecting whether the current residual working electric quantity of the system is smaller than a second working electric quantity, wherein the second working electric quantity is smaller than the first working electric quantity; under the condition that the operating state of the system is not less than the second operating electric quantity, the operating state of the system is adjusted to the low power consumption mode; and under the condition of being less than the second working electric quantity, the system is shut down.

In some embodiments, the detecting whether a battery is present in a split lock of a bicycle includes: detecting whether the temperature value in the area corresponding to the battery is greater than a preset temperature value or not; or detecting whether a switch used for locking the battery in the split lock is in a locking state; or detecting whether the current remaining working electric quantity of the system is smaller than a third working electric quantity, wherein the third working electric quantity is larger than the first working electric quantity.

In some embodiments, after the adjusting the operation state of the system to the low power consumption mode or turning off the system, the method further includes: detecting whether a battery exists in a split lock of the bicycle; and under the condition that a battery exists, adjusting the running state of the system from the low power consumption mode to a normal working mode or restarting the system.

In some embodiments, after the adjusting the operation state of the system to the low power consumption mode, the method further includes: detecting whether the current residual working electric quantity of the system is smaller than the first working electric quantity; and under the condition that the operating state of the system is not less than the first operating electric quantity, the operating state of the system is adjusted from the low power consumption mode to the normal operating mode.

On the other hand, an embodiment of the present disclosure provides an apparatus for adjusting a system running state, including: the first detection module is used for detecting whether a battery exists in a split lock of the bicycle; the second detection module is used for detecting whether the current residual working electric quantity of the system is smaller than the first working electric quantity or not under the condition that the battery does not exist; and the adjusting module is used for adjusting the running state of the system to a low power consumption mode or closing the system under the condition that the running state is smaller than the first working electric quantity.

In some embodiments, the adjustment module comprises: the detection unit is used for detecting whether the current residual working electric quantity of the system is smaller than a second working electric quantity, wherein the second working electric quantity is smaller than the first working electric quantity; the first adjusting unit is used for adjusting the running state of the system to the low power consumption mode under the condition that the running state is not less than the second working electric quantity; and the second adjusting unit is used for closing the system under the condition that the second working electric quantity is less than the second working electric quantity.

In some embodiments, the first detection module is specifically configured to: detecting whether the temperature value in the area corresponding to the battery is greater than a preset temperature value or not; or detecting whether a switch used for locking the battery in the split lock is in a locking state; or detecting whether the current remaining working electric quantity of the system is smaller than a third working electric quantity, wherein the third working electric quantity is larger than the first working electric quantity.

In some embodiments, the first detection module is further configured to detect whether a battery is present in a split lock of the bicycle when the operation state of the system is adjusted to a low power consumption mode or the system is turned off; the adjusting module is further configured to adjust the operating state of the system from the low power consumption mode to a normal operating mode or restart the system in the presence of a battery.

In some embodiments, the second detecting module is further configured to detect whether a current remaining operating power of the system is less than the first operating power when the operating state of the system is adjusted to the low power consumption mode; the adjusting module is further configured to adjust the running state of the system from the low power consumption mode to the normal operating mode under the condition that the running state is not less than the first operating electric quantity.

In another aspect, an embodiment of the present disclosure provides a storage medium storing a computer program, where the computer program is executed by a processor to implement the method provided in any embodiment of the present disclosure.

On the other hand, the embodiment of the present disclosure provides an electronic device, which at least includes a memory and a processor, where the memory stores a computer program, and the processor implements the method provided in any embodiment of the present disclosure when executing the computer program on the memory.

The embodiment of the disclosure detects the current residual working electric quantity of the bicycle system, and determines whether to adjust the running state of the system to a low power consumption mode or close the system according to the size of the residual working electric quantity, thereby avoiding the damage to the system caused by the instability of the electric quantity provided by the solar cell panel and reducing the damage rate of the bicycle.

Drawings

In order to more clearly illustrate the embodiments of the present disclosure or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present disclosure, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.

Fig. 1 is a flowchart of a method for adjusting an operating state of a system according to a first embodiment of the present disclosure;

fig. 2 is a flowchart of a method for adjusting an operating state of a system according to a second embodiment of the disclosure;

fig. 3 is a flowchart of a method for adjusting an operating state of a system according to a third embodiment of the present disclosure;

fig. 4 is a flowchart of a method for adjusting an operation state of a system according to a fourth embodiment of the disclosure;

fig. 5 is a schematic structural diagram of an apparatus for adjusting an operating state of a system according to a fifth embodiment of the present disclosure;

fig. 6 is a schematic structural diagram of an electronic device according to a seventh embodiment of the disclosure.

Detailed Description

In order to make the objects, technical solutions and advantages of the embodiments of the present disclosure more clear, the technical solutions of the embodiments of the present disclosure will be described below clearly and completely with reference to the accompanying drawings of the embodiments of the present disclosure. It is to be understood that the described embodiments are only a few embodiments of the present disclosure, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the described embodiments of the disclosure without any inventive step, are within the scope of protection of the disclosure.

Unless otherwise defined, technical or scientific terms used herein shall have the ordinary meaning as understood by one of ordinary skill in the art to which this disclosure belongs. The use of "first," "second," and similar terms in this disclosure is not intended to indicate any order, quantity, or importance, but rather is used to distinguish one element from another. The word "comprising" or "comprises", and the like, means that the element or item listed before the word covers the element or item listed after the word and its equivalents, but does not exclude other elements or items. The terms "connected" or "coupled" and the like are not restricted to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "upper", "lower", "left", "right", and the like are used merely to indicate relative positional relationships, and when the absolute position of the object being described is changed, the relative positional relationships may also be changed accordingly.

To maintain the following description of the embodiments of the present disclosure clear and concise, a detailed description of known functions and known components have been omitted from the present disclosure.

A first embodiment of the present disclosure provides a method for adjusting a system operating state, a flow of which is shown in fig. 1, and the method includes steps S101 to S103:

s101, detecting whether a battery exists in a split lock of the bicycle.

In the process, there are many ways to detect whether the battery exists in the split lock, for example, whether a temperature value in a region corresponding to the battery is greater than a predetermined temperature value, or whether a switch for locking the battery in the split lock is in a locked state, or whether the current remaining operating power of the system is less than a third operating power, where the third operating power is greater than the lowest power capable of maintaining the system in a normal operating mode, that is, the first operating power.

For the manner of "detecting whether the temperature value in the battery corresponding region is at more than the predetermined temperature value": during design, a temperature sensor can be arranged in a corresponding area of the battery, the battery provided with a thermistor or the temperature sensor can be directly selected, the temperature of the battery during use can be accurately collected, once the detected temperature is lower than or equal to the lowest preset temperature value when the battery works normally, the battery can be determined to be taken out at the moment, otherwise, the battery is continuously in a working state, and the detected temperature is not lower than or equal to the preset temperature value. The obtained temperature value may be in real time or may be performed according to a certain period, and is not limited herein.

For the mode of detecting whether the current remaining operating power of the system is less than the third operating power: if the battery in the split lock is not taken out, the total electric quantity of the system is higher, and the total electric quantity of the system comprises the electric quantity converted by the solar panel and the electric quantity stored by the battery, so that when the battery exists in the split lock, the current residual working electric quantity of the system is not less than the third working electric quantity; however, once the battery is taken out, the system has no battery, all the power supply is converted by the solar panel, the residual working power is necessarily lower than that when the battery is not taken out, and therefore the third working power at least should be higher than the maximum value of the conversion power of the solar panel.

For the way of "detecting whether the switch for locking the battery in the split lock is in the locked state" or not: after the battery is installed in the split lock, a switch for locking the battery in the split lock is closed, and a closing signal is sent to a system at the moment to inform that the switch for locking the battery is detected to be in a locking state; when the split lock needs to replace or charge the battery, the switch used for locking the battery in the split lock is opened, and then an opening signal is sent to the system to inform that the switch used for locking the battery is detected to be in a non-locking state.

S102, detecting whether the current residual working capacity of the system is smaller than the first working capacity or not under the condition that the battery does not exist.

If the battery is taken away, the current residual working electric quantity of the system can be provided only by the solar panel, so that the residual working electric quantity is always smaller than the maximum value of the electric quantity which can be reserved by the full-load work of the solar panel under the normal condition. Because the solar cell panel can provide more sufficient electric quantity for the system under the condition of sufficient sunshine, the system can be in a normal working mode when only the solar cell panel is used. However, when sunlight is weak or light is good and bad, the electric quantity provided by the solar cell panel is low, and the system cannot be in a normal working mode, so that the current residual working electric quantity of the system needs to be detected, whether the current residual working electric quantity is less than the first working electric quantity or not is judged, if the current residual working electric quantity is less than the first working electric quantity, the system cannot normally operate, and adjustment needs to be performed so as to prevent the system from being damaged due to unstable electric quantity.

And S103, under the condition that the working power is less than the first working power, adjusting the running state of the system to a low power consumption mode or closing the system.

Because the electric quantity that solar cell panel provided can't let the system normal operating, so, this embodiment of this disclosure adjusts the running state of system to unusual mode of operation, low-power consumption mode promptly, or directly closes the system. Of course, when implementing the above-described scheme, the low power consumption mode may also be classified into multiple levels, for example, a level a low power consumption mode, a level B low power consumption mode with power consumption lower than that of the level a, and the like, and those skilled in the art may design the mode according to actual requirements.

The embodiment of the disclosure detects the current residual working electric quantity of the bicycle system, and determines whether to adjust the running state of the system to a low power consumption mode or close the system according to the size of the residual working electric quantity, thereby avoiding the damage to the system caused by the instability of the electric quantity provided by the solar cell panel and reducing the damage rate of the bicycle.

A second embodiment of the present disclosure provides a method for adjusting an operating state of a system, and compared with the first embodiment, this embodiment can adjust the operating state of the system more accurately, and a flow thereof is shown in fig. 2, and includes steps S201 to S206:

s201, detecting whether a battery exists in a split lock of the bicycle. If so, S201 is continuously executed, otherwise, S202 is executed.

In the process, there are many ways to detect whether the battery exists in the split lock, for example, whether a temperature value in a region corresponding to the battery is greater than a predetermined temperature value, or whether a switch for locking the battery in the split lock is in a locked state, or whether the current remaining operating power of the system is less than a third operating power, where the third operating power is greater than the lowest power capable of maintaining the system in a normal operating mode, that is, the first operating power.

For the manner of "detecting whether the temperature value in the battery corresponding region is at more than the predetermined temperature value": during design, a temperature sensor can be arranged in a corresponding area of the battery, the battery provided with a thermistor or the temperature sensor can be directly selected, the temperature of the battery during use can be accurately collected, once the detected temperature is lower than or equal to the lowest preset temperature value when the battery works normally, the battery can be determined to be taken out at the moment, otherwise, the battery is continuously in a working state, and the detected temperature is not lower than or equal to the preset temperature value. The obtained temperature value may be in real time or may be performed according to a certain period, and is not limited herein.

For the mode of detecting whether the current remaining operating power of the system is less than the third operating power: if the battery in the split lock is not taken out, the total electric quantity of the system is higher, and the total electric quantity of the system comprises the electric quantity converted by the solar panel and the electric quantity stored by the battery, so that when the battery exists in the split lock, the current residual working electric quantity of the system is not less than the third working electric quantity; however, once the battery is taken out, the system has no battery, all the power supply is converted by the solar panel, the residual working power is necessarily lower than that when the battery is not taken out, and therefore the third working power at least should be higher than the maximum value of the conversion power of the solar panel.

For the way of "detecting whether the switch for locking the battery in the split lock is in the locked state" or not: after the battery is installed in the split lock, a switch for locking the battery in the split lock is closed, and a closing signal is sent to a system at the moment to inform that the switch for locking the battery is detected to be in a locking state; when the split lock needs to replace or charge the battery, the switch used for locking the battery in the split lock is opened, and then an opening signal is sent to the system to inform that the switch used for locking the battery is detected to be in a non-locking state.

S202, detecting whether the current residual working capacity of the system is smaller than the first working capacity or not under the condition that the battery does not exist. If so, S203 is executed, otherwise S206 is executed.

If the battery is taken away, the current residual working electric quantity of the system can be provided only by the solar panel, so that the residual working electric quantity is always smaller than the maximum value of the electric quantity which can be reserved by the full-load work of the solar panel under the normal condition. Because the solar cell panel can provide more sufficient electric quantity for the system under the condition of sufficient sunshine, the system can be in a normal working mode when only the solar cell panel is used. However, when sunlight is weak or light is good and bad, the electric quantity provided by the solar cell panel is low, and the system cannot be in a normal working mode, so that the current residual working electric quantity of the system needs to be detected, whether the current residual working electric quantity is less than the first working electric quantity or not is judged, if the current residual working electric quantity is less than the first working electric quantity, the system cannot normally operate, and adjustment needs to be performed so as to prevent the system from being damaged due to unstable electric quantity.

And S203, detecting whether the current residual working electric quantity of the system is smaller than a second working electric quantity or not under the condition that the residual working electric quantity is smaller than the first working electric quantity, wherein the second working electric quantity is smaller than the first working electric quantity. If so, S205 is performed, otherwise S204 is performed.

When the current residual working capacity of the system is lower than the first working capacity capable of maintaining the system in the normal working mode, the system may be in a state with extremely low capacity, and cannot maintain the low power consumption mode at all.

And S204, under the condition that the operating power is not less than the second operating power, adjusting the operating state of the system to a low power consumption mode.

When implementing the above-mentioned scheme, the low power consumption mode may also be classified into multiple levels, for example, a level a low power consumption mode, a level B low power consumption mode with lower power consumption than the level a, and the like, and those skilled in the art may design the low power consumption mode according to actual requirements.

And S205, under the condition that the working power is less than the second working power, closing the system.

And S206, under the condition that the working power is not less than the first working power, the system is in a normal working mode to operate. Then, S202 may be executed continuously to perform subsequent detection, so as to avoid system damage caused by reduction of the current remaining operating power of the system.

Because the electric quantity that solar cell panel provided can't let the system normal operating, so, this embodiment of this disclosure adjusts the running state of system to unusual mode of operation, low-power consumption mode promptly, or directly closes the system.

Through the embodiment of the disclosure, the running state of the system can be more accurately adjusted to the state which can not cause system damage, the damage to the system caused by the unstable electric quantity provided by the solar cell panel is avoided, the damage rate of the bicycle is reduced, and the damage rate of the bicycle is further reduced.

A third embodiment of the present disclosure provides a method for adjusting an operating state of a system, which can switch the operating state from a low power consumption mode to a normal operating mode compared to the first embodiment, and the process of the present embodiment is as shown in fig. 3, and includes steps S301 to S305:

s301, detecting whether a battery exists in the split lock of the bicycle.

In the process, there are many ways to detect whether the battery exists in the split lock, for example, whether a temperature value in a region corresponding to the battery is greater than a predetermined temperature value, or whether a switch for locking the battery in the split lock is in a locked state, or whether the current remaining operating power of the system is less than a third operating power, where the third operating power is greater than the lowest power capable of maintaining the system in a normal operating mode, that is, the first operating power.

For the manner of "detecting whether the temperature value in the battery corresponding region is at more than the predetermined temperature value": during design, a temperature sensor can be arranged in a corresponding area of the battery, the battery provided with a thermistor or the temperature sensor can be directly selected, the temperature of the battery during use can be accurately collected, once the detected temperature is lower than or equal to the lowest preset temperature value when the battery works normally, the battery can be determined to be taken out at the moment, otherwise, the battery is continuously in a working state, and the detected temperature is not lower than or equal to the preset temperature value. The obtained temperature value may be in real time or may be performed according to a certain period, and is not limited herein.

For the mode of detecting whether the current remaining operating power of the system is less than the third operating power: if the battery in the split lock is not taken out, the total electric quantity of the system is higher, and the total electric quantity of the system comprises the electric quantity converted by the solar panel and the electric quantity stored by the battery, so that when the battery exists in the split lock, the current residual working electric quantity of the system is not less than the third working electric quantity; however, once the battery is taken out, the system has no battery, all the power supply is converted by the solar panel, the residual working power is necessarily lower than that when the battery is not taken out, and therefore the third working power at least should be higher than the maximum value of the conversion power of the solar panel.

For the way of "detecting whether the switch for locking the battery in the split lock is in the locked state" or not: after the battery is installed in the split lock, a switch for locking the battery in the split lock is closed, and a closing signal is sent to a system at the moment to inform that the switch for locking the battery is detected to be in a locking state; when the split lock needs to replace or charge the battery, the switch used for locking the battery in the split lock is opened, and then an opening signal is sent to the system to inform that the switch used for locking the battery is detected to be in a non-locking state.

S302, under the condition that no battery exists, whether the current residual working capacity of the system is smaller than the first working capacity is detected.

If the battery is taken away, the current residual working electric quantity of the system can be provided only by the solar panel, so that the residual working electric quantity is always smaller than the maximum value of the electric quantity which can be reserved by the full-load work of the solar panel under the normal condition. Because the solar cell panel can provide more sufficient electric quantity for the system under the condition of sufficient sunshine, the system can be in a normal working mode when only the solar cell panel is used. However, when sunlight is weak or light is good and bad, the electric quantity provided by the solar cell panel is low, and the system cannot be in a normal working mode, so that the current residual working electric quantity of the system needs to be detected, whether the current residual working electric quantity is less than the first working electric quantity or not is judged, if the current residual working electric quantity is less than the first working electric quantity, the system cannot normally operate, and adjustment needs to be performed so as to prevent the system from being damaged due to unstable electric quantity.

And S303, under the condition that the working power is less than the first working power, adjusting the running state of the system to a low power consumption mode or closing the system.

Because the electric quantity that solar cell panel provided can't let the system normal operating, so, this embodiment of this disclosure adjusts the running state of system to unusual mode of operation, low-power consumption mode promptly, or directly closes the system. Of course, when implementing the above-described scheme, the low power consumption mode may also be classified into multiple levels, for example, a level a low power consumption mode, a level B low power consumption mode with power consumption lower than that of the level a, and the like, and those skilled in the art may design the mode according to actual requirements.

S304, detecting whether a battery exists in the split lock of the bicycle.

The detection method is the same as that adopted in S301, and is not described herein again. If the operation state of the system is only adjusted to the low power consumption mode at the moment, the system can be switched to the normal operation mode from the low power consumption mode after the split lock is reinstalled with the battery, and the system can normally operate. If the system is shut down, the system may be re-powered and restarted after the split lock has reinstalled the battery.

And S305, under the condition that the battery exists, adjusting the running state of the system from the low power consumption mode to a normal working mode or restarting the system.

The embodiment of the disclosure detects the current residual working electric quantity of the bicycle system, and determines whether to adjust the running state of the system to a low power consumption mode or close the system according to the size of the residual working electric quantity, thereby avoiding the damage to the system caused by the unstable electric quantity provided by the solar cell panel, reducing the damage rate of the bicycle, and further restoring the running state to a normal working mode when the electric quantity is enough to support the normal running of the system.

A fourth embodiment of the present disclosure provides a method for adjusting a system operating state, where this embodiment can switch an operating state from a low power consumption mode back to a normal operating mode compared to the first embodiment, and a flow of this embodiment is shown in fig. 4, and includes steps S401 to S405:

s401, detecting whether a battery exists in a split lock of the bicycle.

In the process, there are many ways to detect whether the battery exists in the split lock, for example, whether a temperature value in a region corresponding to the battery is greater than a predetermined temperature value, or whether a switch for locking the battery in the split lock is in a locked state, or whether the current remaining operating power of the system is less than a third operating power, where the third operating power is greater than the lowest power capable of maintaining the system in a normal operating mode, that is, the first operating power.

For the manner of "detecting whether the temperature value in the battery corresponding region is at more than the predetermined temperature value": during design, a temperature sensor can be arranged in a corresponding area of the battery, the battery provided with a thermistor or the temperature sensor can be directly selected, the temperature of the battery during use can be accurately collected, once the detected temperature is lower than or equal to the lowest preset temperature value when the battery works normally, the battery can be determined to be taken out at the moment, otherwise, the battery is continuously in a working state, and the detected temperature is not lower than or equal to the preset temperature value. The obtained temperature value may be in real time or may be performed according to a certain period, and is not limited herein.

For the mode of detecting whether the current remaining operating power of the system is less than the third operating power: if the battery in the split lock is not taken out, the total electric quantity of the system is higher, and the total electric quantity of the system comprises the electric quantity converted by the solar panel and the electric quantity stored by the battery, so that when the battery exists in the split lock, the current residual working electric quantity of the system is not less than the third working electric quantity; however, once the battery is taken out, the system has no battery, all the power supply is converted by the solar panel, the residual working power is necessarily lower than that when the battery is not taken out, and therefore the third working power at least should be higher than the maximum value of the conversion power of the solar panel.

For the way of "detecting whether the switch for locking the battery in the split lock is in the locked state" or not: after the battery is installed in the split lock, a switch for locking the battery in the split lock is closed, and a closing signal is sent to a system at the moment to inform that the switch for locking the battery is detected to be in a locking state; when the split lock needs to replace or charge the battery, the switch used for locking the battery in the split lock is opened, and then an opening signal is sent to the system to inform that the switch used for locking the battery is detected to be in a non-locking state.

S402, detecting whether the current residual working capacity of the system is smaller than the first working capacity or not under the condition that the battery does not exist.

If the battery is taken away, the current residual working electric quantity of the system can be provided only by the solar panel, so that the residual working electric quantity is always smaller than the maximum value of the electric quantity which can be reserved by the full-load work of the solar panel under the normal condition. Because the solar cell panel can provide more sufficient electric quantity for the system under the condition of sufficient sunshine, the system can be in a normal working mode when only the solar cell panel is used. However, when sunlight is weak or light is good and bad, the electric quantity provided by the solar cell panel is low, and the system cannot be in a normal working mode, so that the current residual working electric quantity of the system needs to be detected, whether the current residual working electric quantity is less than the first working electric quantity or not is judged, if the current residual working electric quantity is less than the first working electric quantity, the system cannot normally operate, and adjustment needs to be performed so as to prevent the system from being damaged due to unstable electric quantity.

And S403, under the condition that the power consumption is less than the first working power, adjusting the running state of the system to a low power consumption mode or closing the system.

Because the electric quantity that solar cell panel provided can't let the system normal operating, so, this embodiment of this disclosure adjusts the running state of system to unusual mode of operation, low-power consumption mode promptly, or directly closes the system. Of course, when implementing the above-described scheme, the low power consumption mode may also be classified into multiple levels, for example, a level a low power consumption mode, a level B low power consumption mode with power consumption lower than that of the level a, and the like, and those skilled in the art may design the mode according to actual requirements.

S404, after the operation state of the system is adjusted to the low power consumption mode, whether the current residual operation electric quantity of the system is smaller than the first operation electric quantity is detected.

The detection method is the same as S402, and is not described herein again.

S405, under the condition that the power consumption is not less than the first working electric quantity, the running state of the system is adjusted from the low power consumption mode to the normal working mode.

The embodiment of the disclosure detects the current residual working electric quantity of the bicycle system, and determines whether to adjust the running state of the system to a low power consumption mode or close the system according to the size of the residual working electric quantity, thereby avoiding the damage to the system caused by the unstable electric quantity provided by the solar cell panel, reducing the damage rate of the bicycle, and further restoring the running state to a normal working mode when the electric quantity is enough to support the normal running of the system.

A fifth embodiment of the present disclosure provides an apparatus for adjusting an operation state of a system, where the apparatus is schematically shown in fig. 5, and includes:

the first detection module 10 is used for detecting whether a battery exists in a split lock of the bicycle; the second detection module 20 is coupled to the first detection module 10, and is configured to detect whether the current remaining operating power of the system is less than the first operating power in the absence of the battery; and the adjusting module 30 is coupled with the second detecting module 20 and is used for adjusting the operation state of the system to a low power consumption mode or turning off the system under the condition that the operation state is less than the first operation electric quantity.

There are many ways for the first detection module 10 to detect whether there is a battery in the split lock, and it can be specifically used for: whether the temperature value in the corresponding area of the battery is greater than a preset temperature value or not is detected, whether a switch used for locking the battery in the split lock is in a locking state or not is detected, or whether the current residual working electric quantity of the system is smaller than a third working electric quantity or not is detected, wherein the third working electric quantity is greater than the lowest electric quantity capable of maintaining the system in a normal working mode, namely the first working electric quantity.

For the manner of "detecting whether the temperature value in the battery corresponding region is at more than the predetermined temperature value": during design, a temperature sensor can be arranged in a corresponding area of the battery, the battery provided with a thermistor or the temperature sensor can be directly selected, the temperature of the battery during use can be accurately collected, once the detected temperature is lower than or equal to the lowest preset temperature value when the battery works normally, the battery can be determined to be taken out at the moment, otherwise, the battery is continuously in a working state, and the detected temperature is not lower than or equal to the preset temperature value. The obtained temperature value may be in real time or may be performed according to a certain period, and is not limited herein.

For the mode of detecting whether the current remaining operating power of the system is less than the third operating power: if the battery in the split lock is not taken out, the total electric quantity of the system is higher, and the total electric quantity of the system comprises the electric quantity converted by the solar panel and the electric quantity stored by the battery, so that when the battery exists in the split lock, the current residual working electric quantity of the system is not less than the third working electric quantity; however, once the battery is taken out, the system has no battery, all the power supply is converted by the solar panel, the residual working power is necessarily lower than that when the battery is not taken out, and therefore the third working power at least should be higher than the maximum value of the conversion power of the solar panel.

For the way of "detecting whether the switch for locking the battery in the split lock is in the locked state" or not: after the battery is installed in the split lock, a switch for locking the battery in the split lock is closed, and a closing signal is sent to a system at the moment to inform that the switch for locking the battery is detected to be in a locking state; when the split lock needs to replace or charge the battery, the switch used for locking the battery in the split lock is opened, and then an opening signal is sent to the system to inform that the switch used for locking the battery is detected to be in a non-locking state.

If the battery is taken away, the current residual working electric quantity of the system can be provided only by the solar panel, so that the residual working electric quantity is always smaller than the maximum value of the electric quantity which can be reserved by the full-load work of the solar panel under the normal condition. Because the solar cell panel can provide more sufficient electric quantity for the system under the condition of sufficient sunshine, the system can be in a normal working mode when only the solar cell panel is used. However, when sunlight is weak or light is good and bad, the electric quantity provided by the solar cell panel is low, and the system cannot be in a normal working mode, so that the second detection module 20 is required to detect the current remaining working electric quantity of the system in the embodiment of the present disclosure, and see whether the current remaining working electric quantity is less than the first working electric quantity, if the current remaining working electric quantity is less than the first working electric quantity, the system cannot normally operate, and needs to be adjusted, so as to avoid damage to the system due to unstable electric quantity.

In order to be able to more accurately adjust the operating state of the system, the adjusting module 30 of the embodiment of the present disclosure may include: the detection unit is used for detecting whether the current residual working electric quantity of the system is smaller than a second working electric quantity, wherein the second working electric quantity is smaller than the first working electric quantity; the first adjusting unit is coupled with the detecting unit and used for adjusting the running state of the system to a low power consumption mode under the condition that the running state is not less than the second working electric quantity; and the second adjusting unit is coupled with the detecting unit and used for closing the system under the condition that the second working electric quantity is less than the second working electric quantity.

In a preferred embodiment, in order to switch the operation state from the low power consumption mode back to the normal operation mode, the first detecting module 10 is further configured to detect whether a battery exists in the split lock of the bicycle when the operation state of the system is adjusted to the low power consumption mode or the system is turned off; the adjusting module 30 is further configured to adjust the operation state of the system from the low power consumption mode to the normal operation mode or restart the system in the presence of the battery.

In a preferred embodiment, in order to switch the operation state from the low power consumption mode back to the normal operation mode, the second detecting module 20 is further configured to detect whether the current remaining operation power of the system is less than the first operation power when the operation state of the system is adjusted to the low power consumption mode; the adjusting module 30 is further configured to adjust the operation state of the system from the low power consumption mode to the normal operation mode under the condition that the operation state is not less than the first operation electric quantity.

The embodiment of the disclosure detects the current residual working electric quantity of the bicycle system, and determines whether to adjust the running state of the system to a low power consumption mode or close the system according to the size of the residual working electric quantity, thereby avoiding the damage to the system caused by the instability of the electric quantity provided by the solar cell panel and reducing the damage rate of the bicycle.

A sixth embodiment of the present disclosure provides a storage medium, which is a computer-readable medium storing a computer program, which when executed by a processor implements the method provided in any embodiment of the present disclosure, including the following steps S11 to S13:

s11, detecting whether a battery exists in the split lock of the bicycle;

s12, detecting whether the current residual working capacity of the system is less than the first working capacity under the condition that no battery exists;

and S13, under the condition of less than the first working electric quantity, adjusting the running state of the system to a low power consumption mode or shutting down the system.

When the computer program is executed by the processor to adjust the operation state of the system to the low power consumption mode or to turn off the system, the processor specifically executes the following steps: detecting whether the current residual working electric quantity of the system is smaller than a second working electric quantity, wherein the second working electric quantity is smaller than the first working electric quantity; under the condition that the power consumption is not less than the second working electric quantity, the running state of the system is adjusted to a low power consumption mode; and in the case of being less than the second working electric quantity, closing the system.

When the computer program is executed by the processor to detect whether the battery exists in the split lock of the bicycle, the processor specifically executes the following steps: detecting whether the temperature value in the corresponding area of the battery is greater than a preset temperature value or not; or, detecting whether a switch for locking the battery in the split lock is in a locking state; or detecting whether the current residual working electric quantity of the system is smaller than a third working electric quantity, wherein the third working electric quantity is larger than the first working electric quantity.

After the computer program is executed by the processor to adjust the operation state of the system to the low power consumption mode or close the system, the computer program is also executed by the processor to perform the following steps: detecting whether a battery exists in a split lock of the bicycle; and under the condition that the battery exists, adjusting the running state of the system from the low power consumption mode to a normal working mode or restarting the system.

After the computer program is executed by the processor to adjust the operation state of the system to the low power consumption mode, the computer program is also executed by the processor to: detecting whether the current residual working electric quantity of the system is smaller than a first working electric quantity; and under the condition of not less than the first working electric quantity, adjusting the running state of the system from the low power consumption mode to the normal working mode.

The embodiment of the disclosure detects the current residual working electric quantity of the bicycle system, and determines whether to adjust the running state of the system to a low power consumption mode or close the system according to the size of the residual working electric quantity, thereby avoiding the damage to the system caused by the instability of the electric quantity provided by the solar cell panel and reducing the damage rate of the bicycle.

Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes. Optionally, in this embodiment, the processor executes the method steps described in the above embodiments according to the program code stored in the storage medium. Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again. It will be apparent to those skilled in the art that the modules or steps of the present disclosure described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. As such, the present disclosure is not limited to any specific combination of hardware and software.

A seventh embodiment of the present disclosure provides an electronic device, a schematic structural diagram of the electronic device may be as shown in fig. 6, where the electronic device includes at least a memory 901 and a processor 902, the memory 901 stores a computer program, and the processor 902, when executing the computer program on the memory 901, implements the method provided in any embodiment of the present disclosure. Illustratively, the electronic device computer program steps are as follows S21-S23:

s21, detecting whether a battery exists in the split lock of the bicycle;

s22, detecting whether the current residual working capacity of the system is less than the first working capacity under the condition that no battery exists;

and S23, under the condition of less than the first working electric quantity, adjusting the running state of the system to a low power consumption mode or shutting down the system.

When the processor executes the computer program stored in the memory to adjust the operating state of the system to the low power consumption mode or to shut down the system, the following computer program is specifically executed: detecting whether the current residual working electric quantity of the system is smaller than a second working electric quantity, wherein the second working electric quantity is smaller than the first working electric quantity; under the condition that the power consumption is not less than the second working electric quantity, the running state of the system is adjusted to a low power consumption mode; and in the case of being less than the second working electric quantity, closing the system.

When the processor executes the computer program stored in the memory for detecting whether the battery exists in the split lock of the bicycle, the following computer program is specifically executed: detecting whether the temperature value in the corresponding area of the battery is greater than a preset temperature value or not; or, detecting whether a switch for locking the battery in the split lock is in a locking state; or detecting whether the current residual working electric quantity of the system is smaller than a third working electric quantity, wherein the third working electric quantity is larger than the first working electric quantity.

After executing the computer program stored in the memory for adjusting the operating state of the system to the low power consumption mode or shutting down the system, the processor further executes the following computer program: detecting whether a battery exists in a split lock of the bicycle; and under the condition that the battery exists, adjusting the running state of the system from the low power consumption mode to a normal working mode or restarting the system.

After executing the computer program stored in the memory for adjusting the operating state of the system to the low power consumption mode, the processor further executes the following computer program: detecting whether the current residual working electric quantity of the system is smaller than a first working electric quantity; and under the condition of not less than the first working electric quantity, adjusting the running state of the system from the low power consumption mode to the normal working mode.

The embodiment of the disclosure detects the current residual working electric quantity of the bicycle system, and determines whether to adjust the running state of the system to a low power consumption mode or close the system according to the size of the residual working electric quantity, thereby avoiding the damage to the system caused by the instability of the electric quantity provided by the solar cell panel and reducing the damage rate of the bicycle.

Moreover, although exemplary embodiments have been described herein, the scope thereof includes any and all embodiments based on the disclosure with equivalent elements, modifications, omissions, combinations (e.g., of various embodiments across), adaptations or alterations. The elements of the claims are to be interpreted broadly based on the language employed in the claims and not limited to examples described in the present specification or during the prosecution of the application, which examples are to be construed as non-exclusive. It is intended, therefore, that the specification and examples be considered as exemplary only, with a true scope and spirit being indicated by the following claims and their full scope of equivalents.

The above description is intended to be illustrative and not restrictive. For example, the above-described examples (or one or more versions thereof) may be used in combination with each other. For example, other embodiments may be used by those of ordinary skill in the art upon reading the above description. In addition, in the foregoing detailed description, various features may be grouped together to streamline the disclosure. This should not be interpreted as an intention that a disclosed feature not claimed is essential to any claim. Rather, the subject matter of the present disclosure may lie in less than all features of a particular disclosed embodiment. Thus, the following claims are hereby incorporated into the detailed description as examples or embodiments, with each claim standing on its own as a separate embodiment, and it is contemplated that these embodiments may be combined with each other in various combinations or permutations. The scope of the disclosure should be determined with reference to the appended claims, along with the full scope of equivalents to which such claims are entitled.

While the present disclosure has been described in detail with reference to the embodiments, the present disclosure is not limited to the specific embodiments, and those skilled in the art can make various modifications and alterations based on the concept of the present disclosure, and the modifications and alterations should fall within the scope of the present disclosure as claimed.

17页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种用于防盗并在骑行后自我清洁导航仪的导航装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!