CN110753306B - Method and system for improving download rate, storage medium and intelligent wearable device - Google Patents
Method and system for improving download rate, storage medium and intelligent wearable device Download PDFInfo
- Publication number
- CN110753306B CN110753306B CN201911004370.1A CN201911004370A CN110753306B CN 110753306 B CN110753306 B CN 110753306B CN 201911004370 A CN201911004370 A CN 201911004370A CN 110753306 B CN110753306 B CN 110753306B
- Authority
- CN
- China
- Prior art keywords
- state
- current
- displacement distance
- new version
- displacement
- 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 44
- 238000006073 displacement reaction Methods 0.000 claims abstract description 196
- 238000001514 detection method Methods 0.000 claims abstract description 80
- 238000012544 monitoring process Methods 0.000 claims abstract description 42
- 238000004590 computer program Methods 0.000 claims description 20
- 230000006870 function Effects 0.000 description 6
- 238000004364 calculation method Methods 0.000 description 2
- 238000005034 decoration Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000001960 triggered effect Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 239000000725 suspension Substances 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 238000005491 wire drawing Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
- H04W4/029—Location-based management or tracking services
-
- 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
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0251—Power saving arrangements in terminal devices using monitoring of local events, e.g. events related to user activity
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0261—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. TPC [Transmission Power Control], power saving or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
- H04W52/0261—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
- H04W52/0264—Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level by selectively disabling software applications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Human Computer Interaction (AREA)
- Telephonic Communication Services (AREA)
- Telephone Function (AREA)
Abstract
The invention provides a method, a system, a storage medium and intelligent wearable equipment for improving download rate, which comprises the following steps: detecting a current plug-in state and a current plug-out state, and when the current state is detected to be the plug-in state, sending a network request to enter a new version detection state; when the current state is detected to be switched from the wire plugging state to the wire pulling state, detecting a displacement distance, and analyzing whether the displacement distance is smaller than a preset displacement critical value; and when the displacement distance is smaller than the displacement critical value, continuing to send the network request without canceling the state of detecting the new version. The invention avoids sending too many network requests for detecting the new version of the software, avoids frequent alternate change between the downloading state and the pause state, improves the downloading efficiency, cancels the monitoring displacement distance in the state that the user manually pulls out the line, and saves the performance of the telephone watch.
Description
Technical Field
The invention relates to the technical field of intelligent systems, in particular to a method, a system, a storage medium and intelligent wearable equipment for improving download rate.
Background
Some intelligence wearing equipment on the existing market are for charging the trigger for the download trigger condition of modules such as the application store download of phone wrist-watch, OTA upgrading, when intelligence wearing equipment's electric quantity is not enough, can get into the power saving mode automatically, and for the continuation of the journey of priority guarantee intelligence wearing equipment this moment, can break the net.
The charging wire of intelligence wearing equipment like phone watch sometimes can have contact failure's the condition, when intelligence wearing equipment is in contact failure state, can lead to appearing the problem that plug wire state and pull out line state frequently switch, therefore can appear that phone watch is frequent to send the network request to the server, leads to the detection of new version to frequently trigger, too much network request appears, and the download state is also changing constantly, and the success rate of downloading also can receive the influence consequently.
Disclosure of Invention
The invention aims to provide a method, a system, a storage medium and an intelligent wearable device for improving the download rate, which can avoid sending excessive network requests for detecting a new version of software, avoid frequent alternate change between a download state and a pause state, improve the download efficiency, cancel monitoring displacement distance in a state that a user manually pulls a line, and save the performance of a telephone watch.
The technical scheme provided by the invention is as follows:
the invention provides a method for improving download rate, which comprises the following steps:
s100, detecting the current plug-in state and the current plug-out state, and sending a network request to enter a new version detection state when detecting that the current state is the plug-in state.
S200, when the current state is switched from the wire plugging state to the wire pulling state, detecting a displacement distance, and analyzing whether the displacement distance is smaller than a preset displacement critical value.
S300, when the displacement distance is smaller than the displacement critical value, the network request is continuously sent without canceling the state of detecting the new version.
Further, the S100 detects a current plug state and a current plug state, and when it is detected that the current state is the plug state, sends a network request, and after entering a new version detection state, further includes the steps of:
s110, when detecting the updatable new version, acquiring a current battery electric quantity value and a safe download electric quantity threshold value, and analyzing whether the current battery electric quantity value is greater than the safe download electric quantity threshold value.
And S120, when the current battery electric quantity value is smaller than the safe downloading electric quantity threshold value, entering a real-time monitoring state.
S130, when the current battery electric quantity value is larger than the safe downloading electric quantity threshold value, entering a downloading state and downloading.
Further, in the S100, the current plug-in state and the current plug-out state are detected, when the current state is detected to be the plug-in state, a network request is sent, and after the new version detection state is entered, the method further includes the steps of:
s140, when the new version is not detected, continuously sending the network request, and detecting whether there is an updatable new version.
Further, when the current battery power value is smaller than the safe download power threshold value, the step S120 includes, after entering the real-time monitoring state:
s141, continuously detecting the current wire plugging state and the wire pulling state, detecting the displacement distance when the current state is switched from the wire plugging state to the wire pulling state, and analyzing whether the displacement distance is smaller than a preset displacement critical value.
S142, when it is detected that the current displacement distance is smaller than the preset displacement threshold, continuing to monitor the state in real time.
S143, when the current displacement distance is detected to be greater than the preset displacement threshold, the real-time monitoring state is cancelled.
Further, when it is detected that the current state is switched from the wire plugging state to the wire unplugging state in S200, detecting a displacement distance, and analyzing whether the displacement distance is smaller than a preset displacement critical value includes the steps of:
s210, when the displacement distance is larger than the displacement critical value, the network request is cancelled, and the new version state is cancelled.
Further, the step S210, when the displacement distance is greater than the displacement threshold value, cancels sending of the network request, and after canceling detecting the new version state, includes the steps of:
s211 cancels the detection of the displacement distance and continues to detect the current wire plugging state and the current wire unplugging state.
S212, when it is detected that the current state is switched from the line-plugging state to the line-plugging state, continuously sending the network request, and detecting whether there is a new version.
The invention provides a system for improving download rate, comprising:
and the wire plugging/unplugging state detection module is used for detecting the current wire plugging state and the current wire unplugging state.
And the new version detection module is connected with the plug/unplug state detection module and used for sending a network request and entering a new version detection state when the current state is detected to be the plug state.
And the displacement distance detection module is connected with the wire plugging/unplugging state detection module and used for detecting the displacement distance when the current state is detected to be switched from the wire plugging state to the wire unplugging state.
And the first analysis module is connected with the displacement distance detection module and is used for analyzing whether the displacement distance is smaller than a preset displacement critical value or not.
Further, still include:
and the acquisition module is connected with the new version detection module and used for acquiring the current battery electric quantity value and the safe download electric quantity threshold value when an updatable new version is detected.
And the second analysis module is connected with the acquisition module and used for analyzing whether the current battery electric quantity value is greater than the safe download electric quantity threshold value or not.
And the monitoring module is connected with the second analysis module and used for entering a real-time monitoring state when the current battery electric quantity value is smaller than the safe download electric quantity threshold value.
And the downloading module is connected with the second analysis module and used for entering a downloading state and downloading when the current battery electric quantity value is greater than the safe downloading electric quantity threshold value.
And the monitoring canceling module is connected with the first analysis module and used for canceling the real-time monitoring state when the current displacement distance is detected to be larger than a preset displacement critical value.
And the detection-canceling new version module is connected with the first analysis module and used for canceling the network request sending and canceling the detection of the new version state when the displacement distance is greater than the displacement critical value.
And the displacement distance detection canceling module is respectively connected with the first analysis module and the new version detection canceling module and is used for canceling the network sending request when the displacement distance is greater than the displacement critical value and canceling the displacement distance detection when the new version detection state is canceled.
The present invention provides a storage medium having stored thereon a computer program which, when executed by a processor, implements a method of increasing download rate.
The invention provides intelligent wearable equipment, which comprises a memory and a processor, wherein a computer program running on the processor is stored in the memory, and the processor executes the computer program to realize a method for improving the download rate.
1) By the method, the system, the storage medium and the intelligent wearable device for improving the download rate, when the telephone watch is detected to be switched from the plug-in state to the pull-out state, the displacement distance of the telephone watch is detected, whether the displacement distance is smaller than a preset displacement critical value or not is analyzed, when the displacement distance is smaller than the displacement critical value, a network request is continuously sent to the server, the state of detecting a new version is not cancelled, when the displacement distance is smaller than the displacement critical value, the power failure of the telephone watch is indicated to be caused by poor contact, because the download triggering conditions of modules such as application software downloading, OTA upgrading and the like of the telephone watch of part of companies in the market at present are charging triggering, the network request is cancelled when the power failure is detected, when the charging of the telephone watch is poor, the plug-in state and the pull-out state are returned to be switched, whether the contact, therefore, whether the network request is continued or not is selected, and the problem of sending excessive network requests for detecting the new version of the software is solved.
2) When the downloading state is detected, the current state of the telephone watch is switched from the plug-in state to the pull-out state, whether the switching of the states is caused by poor contact or not is further analyzed and judged, and when the switching is judged to be poor contact, the downloading is not suspended, so that frequent alternate change between the downloading state and the suspending state is avoided, and the downloading efficiency is improved.
3) The invention also compares and analyzes the current electric quantity value and the safe downloading electric quantity threshold value, and enters the downloading state when the current electric quantity value is larger than the safe downloading electric quantity threshold value, thereby ensuring that the downloading task can be completed safely and effectively; when the invention detects and analyzes that the switching of the watch telephone from the plug-in state to the pull-out state is caused by the manual wire pulling of the user, the monitoring displacement distance is cancelled, and the performance of the telephone watch is saved.
Drawings
The above features, technical features, advantages and implementations of a method, system, storage medium and smart wearable device for improving download rate will be further described in the following detailed description of preferred embodiments with reference to the accompanying drawings.
FIG. 1 is a flow chart of one embodiment of a method of increasing download rate of the present invention;
FIG. 2 is a flow chart of another embodiment of a method of increasing download rate of the present invention;
FIG. 3 is a flow chart of another embodiment of a method of increasing download rate of the present invention;
FIG. 4 is a flow chart of another embodiment of a method of increasing download rate of the present invention;
FIG. 5 is a flow chart of another embodiment of a method of increasing download rate of the present invention;
FIG. 6 is a flow chart of another embodiment of a method of increasing download rate of the present invention;
FIG. 7 is a block diagram illustrating an embodiment of a system for increasing download rates according to the present invention;
fig. 8 is a schematic structural diagram of an embodiment of an intelligent wearable device of the invention.
The reference numbers illustrate: 10. a wire plugging/unplugging state detection module; 11. a new version detection module; 12. a displacement distance detection module; 13. a first analysis module; 14. an acquisition module; 15. a second analysis module; 16. a monitoring module; 17. a downloading module; 18. canceling the monitoring module; 19. canceling a module for detecting a new version; 20. canceling a displacement distance detection module; 31. a memory; 32. a computer program; 33. a processor.
Detailed Description
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following description will be made with reference to the accompanying drawings. It is obvious that the drawings in the following description are only some examples of the invention, and that for a person skilled in the art, other drawings and embodiments can be derived from them without inventive effort.
For the sake of simplicity, the drawings only schematically show the parts relevant to the present invention, and they do not represent the actual structure as a product. In addition, in order to make the drawings concise and understandable, components having the same structure or function in some of the drawings are only schematically illustrated or only labeled. In this document, "one" means not only "only one" but also a case of "more than one".
One embodiment of the present invention, as shown in fig. 1, is a method for increasing a download rate, including:
s100, detecting the current plug-in state and the current plug-out state, and sending a network request to enter a new version detection state when detecting that the current state is the plug-in state.
Preferably, the current plug-in state and the current plug-out state of the telephone watch are detected, and when the current state of the telephone watch is detected to be the plug-in state, the telephone watch sends a network request to the server to enter a new version detection state for detecting whether the application software or the system software has a new version.
Specifically, the method monitors the broadcast of the change of the system electric quantity of the telephone watch in real time, and detects the current wire plugging state and the wire pulling state of the watch telephone through the broadcast.
S200, when the current state is switched from the wire plugging state to the wire pulling state, detecting a displacement distance, and analyzing whether the displacement distance is smaller than a preset displacement critical value.
Specifically, when the current state is detected to be switched from the wire plugging state to the wire pulling state, two situations exist, namely manual wire pulling of a user and poor contact of a telephone watch. The method comprises the steps of analyzing whether a displacement distance detected by a displacement sensor in a telephone watch is smaller than a preset displacement critical value or not, judging whether the current state is switched from a plug wire state to a pull wire state due to poor contact of the telephone watch by a system when the displacement distance is smaller than the preset displacement critical value, and judging whether the current state is switched from the plug wire state to the pull wire state due to manual wire pulling of a user when the displacement distance is not smaller than the preset displacement critical value. For example, when the displacement threshold value is set to 1cm, that is, when the current state is switched from the wire plugging state to the wire unplugging state, and the displacement distance of the telephone watch is detected to exceed 1cm, the user manually unpluggs the wire, and when the displacement distance is smaller than 1cm, the contact is poor. The displacement distance of the telephone watch is very small due to power failure caused by poor contact, and when a user manually pulls out the telephone line, the displacement distance of the telephone watch is far larger than the moving distance of the telephone watch when the contact is poor.
S300, when the displacement distance is smaller than the displacement critical value, the network request is continuously sent without canceling the state of detecting the new version.
Specifically, when the displacement distance is smaller than the displacement critical value, the system judges that the contact of the watch and the telephone is poor, the network request is continuously carried out at the moment, the state of detecting a new version is not cancelled, the telephone watch is in the poor contact state and can be repeatedly switched between the charging state and the power-off state, at the moment, if the current state is detected to be switched from the plug-in state to the plug-out state, the network request is stopped, and when the charging state is detected, the network request is carried out again, so that the telephone watch can be repeatedly switched between the network request stopping and the network request sending. And when the displacement distance is smaller than the displacement critical value, the system judges that the contact of the watch telephone is poor, and at the moment, the network request is continuously carried out without canceling the detection of a new version state, so that the phenomenon that too many telephone watches send the network request to the server can be avoided.
Specifically, in this embodiment, a displacement critical value is preset, a current plug-in state and a current plug-out state of the watch phone are detected by monitoring a broadcast of a change of system electric quantity of the phone watch in real time, when the current state is detected to be switched from the plug-in state to the plug-out state, a displacement distance of the phone watch is detected by a displacement sensor, whether the displacement distance is smaller than the preset displacement critical value or not is analyzed, when the displacement distance is smaller than the displacement critical value, it is determined that the phone watch is in a poor contact state at present, a network request for detecting downloading or updating of application software or system software is continuously sent to a server, and the new version detection state is not cancelled, so that the phone watch is prevented from sending network requests to the server too much.
Another embodiment of the present invention, as shown in fig. 2-6, is a method for increasing a download rate, comprising:
s100, detecting the current plug-in state and the current plug-out state, and sending a network request to enter a new version detection state when detecting that the current state is the plug-in state.
Preferably, the current plug-in state and the current plug-out state of the telephone watch are detected, and when the current state of the telephone watch is detected to be the plug-in state, the telephone watch sends a network request to the server to enter a new version detection state for detecting whether the application software or the system software has a new version.
Specifically, the method monitors the broadcast of the change of the system electric quantity of the telephone watch in real time, and detects the current wire plugging state and the wire pulling state of the watch telephone through the broadcast.
Specifically, the download trigger conditions of modules such as application software download and OTA upgrade of telephone watches of some companies in the market at present are charging trigger, that is, when the current state is detected to be switched from a power-off state to a charging state, a network request is sent to a server to detect whether a new version exists, and when application software or system software needing to be updated is detected, whether the download conditions are met is detected. The purpose of detection in the charging state is to ensure that the electric quantity is enough to download application software and OTA upgrade packages, and avoid the problem of download failure.
Specifically, the S100 detects a current plug state and a current plug state, sends a network request when the current state is detected to be the plug state, and further includes the following steps after entering a new version detection state:
s110, when detecting the updatable new version, acquiring a current battery electric quantity value and a safe download electric quantity threshold value, and analyzing whether the current battery electric quantity value is greater than the safe download electric quantity threshold value.
Specifically, the current battery electric quantity value of the watch phone is detected through broadcasting by monitoring the broadcasting of the change of the system electric quantity of the phone watch in real time.
Specifically, the safe download electric quantity threshold is calculated according to the calibration coefficient, the size of the version to be updated, the low electric value and the size of the storage space of the telephone watch.
Preferably, the calculation formula of the safe download electric quantity threshold is as follows:
in the above formula, safeBattery represents the safe download power threshold. F (x) is a rounding function. k1 represents a calibration coefficient obtained by automatic calibration adjustment after model test download data. Size indicates the Size of the data packet to be downloaded. The lowBattery represents a low power value, and when the telephone watch is in a low power state, the operation such as network disconnection and the like can be executed to preferentially ensure the endurance, and the low power value is a critical power value reaching the network disconnection condition. StorageSpace represents the storage space size. The total amount of battery power is divided into 100 levels, and 50 in the formula represents 50% of the total amount of battery power, so as to limit the maximum safe download power threshold to 50 at the maximum. The formula does not necessarily aim at calculating the relationship between the downloading amount and the electric quantity very accurately, but aims at ensuring that the downloading task can be completed effectively and safely under the electric quantity value corresponding to the calculation result.
Specifically, the current charging state and the current power-off state of the watch phone are detected through broadcasting by monitoring the broadcasting of the change of the system electric quantity of the phone watch in real time.
And S120, when the current battery electric quantity value is smaller than the safe downloading electric quantity threshold value, entering a real-time monitoring state.
Specifically, when the current battery electric quantity value is detected to be smaller than the safe downloading electric quantity threshold value, the current battery electric quantity is not enough to guarantee that downloading is completed, a real-time monitoring state is entered, the current battery electric quantity value is continuously detected, whether the current battery electric quantity value is larger than the safe downloading electric quantity threshold value or not is analyzed in real time, when the current battery electric quantity value is larger than the safe downloading electric quantity threshold value, other downloading conditions such as detection and analysis of a storage memory of a telephone watch are continuously carried out, or downloading is directly carried out when other conditions are met, if the storage memory of the telephone watch is larger than the size of a downloaded software package, downloading is directly carried out, and otherwise, real-time monitoring is continuously carried out on the downloading state of.
S130, when the current battery electric quantity value is larger than the safe downloading electric quantity threshold value, entering a downloading state and downloading.
Specifically, when it is detected that the current state is switched from the power-off state to the charging state, a request is sent to the server to detect a new version, when a list fed back by the server is not empty, that is, when the list contains contents such as a software version number, a software size, an installation path and the like, it is indicated that the version needs to be updated, and when the list fed back by the server is empty, it is indicated that the version is the latest version and there is no version needing to be updated. When a new version is detected, whether the current battery electric quantity value is smaller than a safe downloading electric quantity threshold value or not is analyzed to guarantee normal downloading, if the current battery electric quantity value is smaller than the safe downloading electric quantity threshold value, the current battery electric quantity value is not enough to guarantee downloading completion, the current battery electric quantity value is continuously detected at the moment, the current battery electric quantity value and the safe downloading electric quantity threshold value are analyzed in real time, and when the current battery electric quantity value is larger than the safe downloading electric quantity threshold value, detection and analysis of other downloading conditions are continuously carried out, or downloading is directly carried out.
Specifically, the method includes detecting a current plug-in state and a current plug-out state in S100, sending a network request when the current state is detected to be the plug-in state, and entering a new version detection state, and then further including:
s140, when the new version is not detected, continuously sending the network request, and detecting whether there is an updatable new version.
Specifically, when the current plug-in state is detected, a request is sent to the server to detect whether a new version exists, when the list fed back by the server is not empty, when the list fed back by the server is empty, that is, no new software version needs to be updated is fed back, it indicates that the current application software or system software is the latest version and does not have a version needing to be updated, and at this time, a network request is continuously sent to the server to detect whether a new version exists.
Specifically, when the current battery power value is smaller than the safe download power threshold value at S120, the method after entering the real-time monitoring state includes the steps of:
s141, continuously detecting the current wire plugging state and the wire pulling state, detecting the displacement distance when the current state is switched from the wire plugging state to the wire pulling state, and analyzing whether the displacement distance is smaller than a preset displacement critical value.
S142, when it is detected that the current displacement distance is smaller than the preset displacement threshold, continuing to monitor the state in real time.
S143, when the current displacement distance is detected to be greater than the preset displacement threshold, the real-time monitoring state is cancelled.
Specifically, since the download trigger conditions of the modules of the telephone watch, such as application software download, OTA upgrade, and the like, are charging triggers, when it is detected that the current battery electric quantity value is smaller than the safe download electric quantity threshold value and is in the real-time monitoring state, it is detected that the current state is switched from the plug-in state to the plug-out state, and when it is detected that the current displacement distance is smaller than the preset displacement critical value, the real-time monitoring state is suspended, and when the current download conditions are met, the download is suspended when the mobile terminal enters the download state.
Specifically, since the download trigger conditions of the modules of the telephone watch, such as application software download, OTA upgrade, and the like, are charging triggers, when the current state is detected to be switched from the plug-in state to the plug-out state, and when the current displacement distance is detected to be greater than the preset displacement critical value, the real-time monitoring state is suspended.
S200, when the current state is switched from the wire plugging state to the wire pulling state, detecting a displacement distance, and analyzing whether the displacement distance is smaller than a preset displacement critical value.
Specifically, when the current state is detected to be switched from the wire plugging state to the wire pulling state, two situations exist, namely manual wire pulling of a user and poor contact of a telephone watch. The method comprises the steps of analyzing whether a displacement distance detected by a displacement sensor in a telephone watch is smaller than a preset displacement critical value or not, judging whether the current state is switched from a plug wire state to a pull wire state due to poor contact of the telephone watch by a system when the displacement distance is smaller than the preset displacement critical value, and judging whether the current state is switched from the plug wire state to the pull wire state due to manual wire pulling of a user when the displacement distance is not smaller than the preset displacement critical value. For example, when the displacement threshold value is set to 1Cm, that is, when the current state is switched from the wire plugging state to the wire unplugging state, and the displacement distance of the telephone watch is detected to exceed 1Cm, the user manually unpluggs the wire, and when the displacement distance is smaller than 1Cm, the contact is poor. The displacement distance of the telephone watch is very small due to power failure caused by poor contact, and when a user manually pulls out the telephone line, the displacement distance of the telephone watch is far larger than the moving distance of the telephone watch when the contact is poor.
Specifically, when it is detected that the current state is switched from the wire plugging state to the wire unplugging state in S200, the method detects a displacement distance, and after analyzing whether the displacement distance is smaller than a preset displacement critical value, the method includes the steps of:
s210, when the displacement distance is larger than the displacement critical value, the network request is cancelled, and the new version state is cancelled.
Specifically, when the current state is detected to be changed from the plug-in state to the plug-out state, the displacement distance is detected, and when the displacement distance is larger than the displacement critical value, the system judges that the current state caused by manual plug-out of the user is changed from the plug-in state to the plug-out state, and the situation of repeatedly plugging and unplugging the telephone watch can not occur in a short time except for special situations, so that the network request for detecting a new version is cancelled to be sent to the server.
Specifically, in S210, when the displacement distance is greater than the displacement critical value, the sending of the network request is cancelled, and the step of canceling the detection of the new version state includes:
s211 cancels the detection of the displacement distance and continues to detect the current wire plugging state and the current wire unplugging state.
Specifically, when the displacement distance is detected to be larger than the displacement critical value, the system judges that the user manually pulls out the line at the moment, further cancels the detection of the displacement distance, saves the performance of the telephone watch, continues to detect the current wire plugging state and the wire pulling state, and enters the state of detecting the displacement distance when the current wire pulling state is switched to the wire plugging state and then the wire plugging state is switched to the wire pulling state.
S212, when it is detected that the current state is switched from the line-plugging state to the line-plugging state, continuously sending the network request, and detecting whether there is a new version.
Specifically, when the displacement distance is greater than the displacement critical value, the detection of the new version state is cancelled, the network request is cancelled, at the moment, the plug wire state and the plug wire state are continuously detected, and when the current state is switched from the plug wire state to the plug wire state, the network request is continuously carried out, and whether the new version exists is detected.
S300, when the displacement distance is smaller than the displacement critical value, continuing to carry out network request without canceling the new version detection state.
Specifically, when the displacement distance is smaller than the displacement critical value, the system judges that the contact of the watch and the telephone is poor, the network request is continuously carried out at the moment, the state of detecting a new version is not cancelled, the telephone watch is in the poor contact state and can be repeatedly switched between the charging state and the power-off state, at the moment, if the current state is detected to be switched from the plug-in state to the plug-out state, the network request is stopped, and when the charging state is detected, the network request is carried out again, so that the telephone watch can be repeatedly switched between the network request stopping and the network request sending. And when the displacement distance is smaller than the displacement critical value, the system judges that the contact of the watch telephone is poor, and at the moment, the network request is continuously carried out without canceling the detection of a new version state, so that the phenomenon that too many telephone watches send the network request to the server can be avoided.
In another embodiment of the present invention, a method for increasing a download rate includes:
the S1 phone watch listens for a broadcast of system power change (this broadcast can detect the current watch battery real time power, and plug wire status change, etc.).
S2 changes the watch from the uncharged state to the charged state, and enters a detectable version state.
S21, when detecting the new edition, and the watch current power is insufficient to the safe download threshold, entering into the continuous monitoring download state.
And S211, the watch is changed from the charging state to the non-charging state, and the watch exits from the detectable version state.
And S212, triggering and detecting new version information when the watch is continuously charged to the safe downloading threshold value.
And S2, if the current electric quantity of the watch is larger than the safe downloading threshold value, directly triggering to detect the new version.
S3, when the watch is pulled out, the state of the monitoring displacement sensor is triggered, the watch movement condition is judged (when the watch moves beyond a preset distance, the watch is defaulted to be manually pulled out by a user instead of poor contact), and if the watch is manually pulled out, the state that a new version is detected is cancelled (the new version is detected again when the watch is plugged next time). And if the contact is poor, the state of detecting the new version is not cancelled (the new version is not continuously detected in the next plug-in line, so that excessive network requests are avoided).
And S4, if a new version is detected, triggering the state of the monitoring displacement sensor when the watch is pulled out, judging the movement condition of the watch, and if the watch is pulled out manually, entering a downloading suspension state. If the contact is poor, the downloading is continued.
S5 cancels the monitoring of the displacement sensor state when the watch has detected the manual wire pulling state, and saves the performance.
And presetting a displacement critical value of the manual wire drawing.
When the watch is changed from a charging state to a non-charging state, a displacement detection state is triggered to detect displacement.
And when the displacement is larger than the preset displacement critical value, the state of manual wire pulling is defaulted, and the state of detecting a new version is cancelled.
And when the displacement is smaller than the preset displacement critical value, the state of poor contact is defaulted, and the state of detecting a new version is not cancelled.
And detecting a new version, manually pulling out the cable, and suspending downloading.
And detecting a new version, carrying out poor contact and continuing downloading.
When the manual wire pulling is monitored, the state of the displacement sensor is not monitored, and the performance is saved.
The current electric quantity, the charging state and the non-charging state of the telephone watch are detected.
And when the state is changed from the uncharged state to the charged state, entering a detection version state.
And monitoring the downloading state when the current electric quantity is less than the safe downloading electric quantity threshold value.
And when the charging is changed into the non-charging state, the detection version state is exited.
And when the current electric quantity is larger than the threshold value of the safe downloading electric quantity, directly triggering and detecting a new version.
One embodiment of the present invention, as shown in fig. 7, is a system for increasing download rate, comprising:
and the wire plugging/unplugging state detection module 10 is used for detecting the current wire plugging state and the current wire unplugging state.
And the new version detection module 11 is connected with the plug/unplug state detection module 10, and is used for sending a network request and entering a new version detection state when detecting that the current state is the plug state.
And the displacement distance detection module 12 is connected with the wire plugging/unplugging state detection module 10 and is used for detecting the displacement distance when the current state is detected to be switched from the wire plugging state to the wire unplugging state.
And the first analysis module 13 is connected with the displacement distance detection module 12 and is used for analyzing whether the displacement distance is smaller than a preset displacement critical value.
Specifically, still include:
and the obtaining module 14 is connected with the new version detection module 11 and is used for obtaining the current battery electric quantity value and the safe download electric quantity threshold value when an updatable new version is detected.
And the second analysis module 15 is connected to the acquisition module 14 and configured to analyze whether the current battery power value is greater than the safe download power threshold.
And the monitoring module 16 is connected with the second analysis module 15 and is used for entering a real-time monitoring state when the current battery electric quantity value is smaller than the safe download electric quantity threshold value.
And the downloading module 17 is connected with the second analysis module 15 and is used for entering a downloading state and downloading when the current battery electric quantity value is greater than the safe downloading electric quantity threshold value.
And a monitoring canceling module 18, connected to the first analysis module 13, for canceling the real-time monitoring state when the current displacement distance is detected to be greater than a preset displacement threshold value.
And a new version detection canceling module 19, connected to the first analysis module 13, configured to cancel sending of the network request and cancel detecting the new version state when the displacement distance is greater than the displacement critical value.
And a displacement distance detection canceling module 20, connected to the first analysis module 13 and the new version detection canceling module 19, for canceling the transmission of the network request when the displacement distance is greater than the displacement critical value, and canceling the detection of the displacement distance when the new version detection state is canceled.
Specifically, still include:
and the plug/unplug state detection module 10 is connected with the second analysis module 15 and configured to continue to detect the current plug state and the current unplug state after entering the real-time monitoring state when the current battery power value is smaller than the safe download power threshold.
The wire plugging/unplugging state detecting module 10 is respectively connected to the first analyzing module 13, the new version detection canceling module 19 and the displacement distance detection canceling module 20, and is configured to cancel sending of the network request, cancel detecting the new version state, and continue detecting the current wire plugging state and the wire unplugging state after canceling detecting the displacement distance when the displacement distance is greater than the displacement critical value.
And the new version detection module 11 is connected with the plug/unplug state detection module 10, and is used for continuing to send the network request and detecting whether a new version exists when detecting that the current state is switched from the plug state to the plug state.
An embodiment of the invention provides a storage medium having stored thereon a computer program 32, which computer program 32, when being executed by a processor 33, carries out all or part of the method steps of the embodiments described above.
All or part of the flow of the method according to the embodiments of the present invention may be realized by instructing related hardware through a computer program 32, where the computer program 32 may be stored in a storage medium, and when the computer program 32 is executed by the processor 33, the steps of the method embodiments may be realized. Wherein the computer program 32 comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The storage medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
An embodiment of the present invention further provides an intelligent device, as shown in fig. 8, which includes a memory 31 and a processor 33, the memory 31 stores a computer program 32 running on the processor 33, and the processor 33 implements all or part of the method steps in the first embodiment when executing the computer program 32.
The Processor 33 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like which is the control center for the computer device and which connects the various parts of the overall computer device using various interfaces and lines.
The memory 31 may be used for storing the computer programs and/or modules, and the processor 33 implements various functions of the computer device by running or executing the computer programs and/or modules stored in the memory 31 and calling data stored in the memory 31. The memory 31 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 by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, video data, etc.) created according to the use of the cellular phone, etc. In addition, the memory 31 may include a high speed random access memory, and may also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
The invention has the beneficial effects that: when the telephone watch is detected to be switched from the wire plugging state to the wire pulling state, the displacement distance of the telephone watch is detected, whether the displacement distance is smaller than a preset displacement critical value or not is analyzed, when the displacement distance is less than the displacement critical value, the network request is continuously sent to the server without canceling the state of detecting the new version, when the displacement distance is less than the displacement critical value, it means that the telephone watch is powered off due to poor contact, because the download trigger conditions of modules such as application software download, OTA upgrade and the like of telephone watches of some companies in the current market are charging trigger, the network request is cancelled when the power is off, if the contact of the phone watch is poor, the state of switching between the plug-in state and the pull-out state can be generated, whether the contact is poor or not is judged through detection, therefore, whether the network request is continued or not is selected, and the problem of sending excessive network requests for detecting the new version of the software is solved; when the current state of the telephone watch is detected to be switched from the plug-in state to the pull-out state, whether the switching of the states is caused by poor contact or not is further analyzed and judged, and when the switching is judged to be poor contact, the downloading is not suspended, so that frequent alternate change between the downloading state and the suspended state is avoided, and the downloading efficiency is improved; the invention also compares and analyzes the current electric quantity value and the safe downloading electric quantity threshold value, and enters the downloading state when the current electric quantity value is larger than the safe downloading electric quantity threshold value, thereby ensuring that the downloading task can be completed safely and effectively; when the invention detects and analyzes that the switching of the watch telephone from the plug-in state to the pull-out state is caused by the manual wire pulling of the user, the monitoring displacement distance is cancelled, and the performance of the telephone watch is saved.
It should be noted that the above embodiments can be freely combined as necessary. The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.
Claims (8)
1. A method for increasing download rate, comprising the steps of:
detecting a current plug-in state and a current plug-out state, and when the current state is detected to be the plug-in state, sending a network request to enter a new version detection state;
when the current state is detected to be switched from the wire plugging state to the wire pulling state, detecting a displacement distance, and analyzing whether the displacement distance is smaller than a preset displacement critical value;
when the displacement distance is smaller than the displacement critical value, judging that the plug wire is in poor contact, and continuously sending a network request without canceling the state of detecting a new version;
when the current state is detected to be switched from the wire plugging state to the wire pulling state, the method comprises the following steps of detecting a displacement distance, and analyzing whether the displacement distance is smaller than a preset displacement critical value:
when the displacement distance is larger than the displacement critical value, canceling to send a network request and canceling to detect a new version state;
when the displacement distance is larger than the displacement critical value, the network request is cancelled, and the method comprises the following steps after the detection of the new version state is cancelled:
canceling the detection displacement distance, and continuously detecting the current wire plugging state and the current wire pulling state;
and when the current state is detected to be switched from the wire pulling state to the wire plugging state, continuously sending the network request, and detecting whether a new version exists.
2. The method as claimed in claim 1, wherein the method for improving download rate is characterized in that the method comprises the steps of detecting a current plug-in state and a current plug-out state, sending a network request when the current plug-in state is detected, and entering a new version detection state, and further comprising:
when a newer version is detected, acquiring a current battery electric quantity value and a safe downloading electric quantity threshold value, and analyzing whether the current battery electric quantity value is greater than the safe downloading electric quantity threshold value;
when the current battery electric quantity value is smaller than the safe download electric quantity threshold value, entering a real-time monitoring state;
and entering a downloading state to download when the current battery electric quantity value is larger than the safe downloading electric quantity threshold value.
3. The method as claimed in claim 1, wherein the method for improving download rate is characterized in that, after detecting the current plug-in status and the plug-out status, and when detecting that the current status is the plug-in status, sending a network request, and entering a new version detection status, the method further comprises the steps of:
and when the new version is not detected, continuing to send the network request, and detecting whether the updated new version exists.
4. The method as claimed in claim 2, wherein the entering into the real-time monitoring state when the current battery power value is smaller than the safe download power threshold value comprises the steps of:
continuously detecting the current wire plugging state and the current wire pulling state, detecting the displacement distance when the current state is switched from the wire plugging state to the wire pulling state, and analyzing whether the displacement distance is smaller than a preset displacement critical value;
when the current displacement distance is detected to be smaller than a preset displacement critical value, the real-time monitoring state is continued;
and when the current displacement distance is detected to be larger than a preset displacement critical value, the real-time monitoring state is cancelled.
5. A system for increasing download rates, comprising:
the wire plugging/unplugging state detection module is used for detecting the current wire plugging state and the current wire unplugging state;
the new version detection module is connected with the plug/unplug state detection module and used for sending a network request and entering a new version detection state when the current state is detected to be the plug state;
the displacement distance detection module is connected with the wire plugging/unplugging state detection module and used for detecting the displacement distance when the current state is detected to be switched from the wire plugging state to the wire unplugging state;
the first analysis module is connected with the displacement distance detection module and used for analyzing whether the displacement distance is smaller than a preset displacement critical value or not, and if yes, the plug wire is judged to be poor in contact;
the monitoring canceling module is connected with the first analysis module and used for canceling the real-time monitoring state when the current displacement distance is detected to be larger than a preset displacement critical value;
the detection-canceling new version module is connected with the first analysis module and used for canceling the network request sending and canceling the detection of the new version state when the displacement distance is larger than the displacement critical value;
and the displacement distance detection canceling module is respectively connected with the first analysis module and the new version detection canceling module and is used for canceling the network sending request when the displacement distance is greater than the displacement critical value and canceling the displacement distance detection when the new version detection state is canceled.
6. The system for increasing download rate as claimed in claim 5, further comprising:
the acquisition module is connected with the new version detection module and used for acquiring the current battery electric quantity value and the safe download electric quantity threshold value when an updatable new version is detected;
the second analysis module is connected with the acquisition module and used for analyzing whether the current battery electric quantity value is larger than the safe download electric quantity threshold value or not;
the monitoring module is connected with the second analysis module and used for entering a real-time monitoring state when the current battery electric quantity value is smaller than the safe download electric quantity threshold value;
and the downloading module is connected with the second analysis module and used for entering a downloading state and downloading when the current battery electric quantity value is greater than the safe downloading electric quantity threshold value.
7. A computer storage medium having a computer program stored thereon, the computer program, when being executed by a processor, implementing the method of any one of claims 1 to 4.
8. An intelligent wearable device, comprising a memory and a processor, wherein the memory stores a computer program running on the processor, the intelligent wearable device is characterized in that: the processor, when executing the computer program, implements the method of any of claims 1 to 4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911004370.1A CN110753306B (en) | 2019-10-22 | 2019-10-22 | Method and system for improving download rate, storage medium and intelligent wearable device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911004370.1A CN110753306B (en) | 2019-10-22 | 2019-10-22 | Method and system for improving download rate, storage medium and intelligent wearable device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110753306A CN110753306A (en) | 2020-02-04 |
CN110753306B true CN110753306B (en) | 2021-04-06 |
Family
ID=69279277
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911004370.1A Active CN110753306B (en) | 2019-10-22 | 2019-10-22 | Method and system for improving download rate, storage medium and intelligent wearable device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110753306B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111741163A (en) * | 2020-06-16 | 2020-10-02 | 广东小天才科技有限公司 | Dynamic trigger method for reserved electric quantity and wearable device |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107409291A (en) * | 2015-05-22 | 2017-11-28 | 谷歌公司 | Automatically wake up to update wireless connectivity |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101741551B1 (en) * | 2010-12-20 | 2017-06-15 | 엘지전자 주식회사 | Mobile terminal and Method for controlling application thereof |
CN103489303B (en) * | 2013-09-02 | 2016-08-17 | 小米科技有限责任公司 | A kind of remote control thereof and device |
CN105554861A (en) * | 2015-12-02 | 2016-05-04 | 广东小天才科技有限公司 | Method and system for automatic networking based on position and time |
CN106533763A (en) * | 2016-11-17 | 2017-03-22 | 广州优视网络科技有限公司 | Method and device for downloading application update package and user terminal |
CN107608855B (en) * | 2017-09-08 | 2020-03-06 | 维沃移动通信有限公司 | Reminding method and mobile terminal |
CN108241805B (en) * | 2018-01-02 | 2021-12-24 | 联想(北京)有限公司 | Method, device and memory device for processing data |
-
2019
- 2019-10-22 CN CN201911004370.1A patent/CN110753306B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107409291A (en) * | 2015-05-22 | 2017-11-28 | 谷歌公司 | Automatically wake up to update wireless connectivity |
Also Published As
Publication number | Publication date |
---|---|
CN110753306A (en) | 2020-02-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111413629B (en) | Short circuit monitoring method, system and device for single battery in power battery | |
CN108599304B (en) | Charging box, charging control method and related product | |
US9785428B2 (en) | Internal software updating method and system | |
CN107943269B (en) | Scheduling job control method, device, terminal equipment and storage medium | |
WO2024045502A1 (en) | Battery voltage acquisition fault early warning method and system | |
CN110753306B (en) | Method and system for improving download rate, storage medium and intelligent wearable device | |
WO2020024981A1 (en) | Charging method and apparatus, charging terminal, and computer readable storage medium | |
CN111526289A (en) | Shooting method and device, electronic equipment and readable storage medium | |
CN117416224A (en) | Method, device, equipment and storage medium for adjusting plug-in charging power of vehicle | |
CN114968304A (en) | OTA (over the air) upgrading method and device, storage medium and electronic equipment | |
CN107681746B (en) | Charging protection method and device and electronic cigarette | |
CN116533817A (en) | Charging remaining time prediction method, device and storage medium | |
CN107277906B (en) | Mode selecting method, device, terminal and computer readable storage medium | |
CN106990986B (en) | Software upgrading control method and device and audio playing equipment | |
CN113179170A (en) | Method and device for processing abnormity of power receiving end equipment, power supply end equipment and medium | |
CN112867119B (en) | Terminal control method, device, terminal and storage medium | |
CN114625603A (en) | Abnormality prompting method, electronic device, and computer-readable storage medium | |
WO2018053916A1 (en) | Application download method, device and terminal, and computer storage medium | |
CN113438639A (en) | Method, device, equipment and medium for transmitting Bluetooth data | |
CN115237238A (en) | Power saving method and device for mobile terminal and mobile terminal | |
CN113032064A (en) | Method, device and equipment for determining execution popup | |
CN110730239A (en) | Downloading method, system, storage medium and terminal based on safe electric quantity | |
CN117423918B (en) | Intelligent management method and management system for power supply | |
CN113673080B (en) | Method, device, equipment and medium for predicting duration of application and training model | |
US20230315186A1 (en) | Dynamic battery back-up for set-top-boxes |
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 |