File uploading method and device, electronic equipment and storage medium

By setting multiple temperature thresholds in the recording device and dynamically adjusting the file upload rate, the problem of video file freezes and interruptions caused by overheating of the device is solved, and the working stability and user experience of the device are improved.

CN118694754APending Publication Date: 2024-09-24CHENGDU TD TECH LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310288467.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-22
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

If the video recording device is turned on for a long time and the file upload function is used, the video file may freeze or be interrupted due to heat. Existing temperature control solutions cannot effectively solve this problem and affect the user experience.

Method used

By setting multiple temperature thresholds, the file upload rate is dynamically adjusted. If the device temperature is within a safe range, the normal upload rate will be maintained. If the temperature exceeds the threshold, the upload will be gradually reduced or stopped to avoid overheating of the device. Uploading will not be restarted until the temperature drops.

Benefits of technology

It effectively avoids the problems of video file freezing and interruption caused by overheating of the equipment, and improves the working stability and user experience of the recording equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118694754A
    Figure CN118694754A
Patent Text Reader

Abstract

The invention provides a file uploading method and apparatus, an electronic device and a storage medium. The method comprises the steps of obtaining a first device temperature of a first period; determining a first temperature threshold value and a second temperature threshold value; according to the first equipment temperature, the first temperature threshold value and the second temperature threshold value, the target file uploading rate of a second period is determined, and the second period is the next period of the first period. According to the scheme, multiple sections of temperature threshold values are set, so that file uploading adjustment can be smoothly carried out before serious heating of the video equipment, the influence on a video recording function caused by aggressive measure adjustment when serious heating occurs is avoided, and the working stability of the equipment is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of device control, and in particular to a file uploading method, device, electronic device and storage medium. Background Art

[0002] Currently, video recording devices with networking functions can upload recorded video files to a server or send them to other devices in real time, so that the server or other devices can use the video files or back up the video files in time.

[0003] For recording devices that have been recording for a long time, such as surveillance cameras, driving recorders, or law enforcement recorders, if their file upload function is also turned on for a long time, the long-term operation of the device will be accompanied by heating problems. When the temperature of the device exceeds the temperature threshold, the recorded video file will freeze, the recorded video will be interrupted, and other problems will occur, affecting user use.

[0004] In the related art, the temperature control scheme of mobile devices mainly relies on passive adjustment. When the device temperature is too high, the following schemes are mainly adopted: overall reduction of CPU frequency, forced cessation of high-power applications, and forced shutdown in extremely high temperature scenarios. The above schemes can control the device temperature, but do not solve the problems of recorded video files freezing and video recording interruption. Therefore, how to improve the stability of recording equipment is important for improving the user experience. Summary of the invention

[0005] The present application provides a file uploading method, device, electronic device and storage medium for improving the working stability of the device.

[0006] In a first aspect, the present application provides a file upload method, including: obtaining a first device temperature of a first cycle; determining a first temperature threshold and a second temperature threshold; determining a target file upload rate for a second cycle based on the first device temperature, the first temperature threshold and the second temperature threshold, the second cycle being the next cycle of the first cycle.

[0007] In a possible implementation, the first temperature threshold is less than the second temperature threshold; determining the target file upload rate of the second period according to the first device temperature, the first temperature threshold and the second temperature threshold, including: obtaining the first file upload rate of the first period; if the first device temperature is less than the first temperature threshold, determining the first file upload rate as the target file upload rate; if the first device temperature is greater than or equal to the first temperature threshold and less than the second temperature threshold, determining the target file upload rate according to the first file upload rate; if the first device temperature is greater than or equal to the second temperature threshold, determining the target file upload rate to be zero.

[0008] In a possible implementation, determining the target file upload rate according to the first file upload rate includes: determining a first coefficient; and determining the product of the first upload rate and the first coefficient as the target file upload rate.

[0009] In a possible implementation, the method further includes: obtaining a second device temperature of a second period; if the second device temperature is greater than or equal to the first temperature threshold and less than the second temperature threshold, determining the product of the target file upload rate and the first coefficient as the file upload rate of a third period, wherein the third period is the next period of the second period; adjusting the file upload rates of periods after the third period in sequence according to the first strategy until there are no two adjacent periods in which the device temperatures are both greater than or equal to the first temperature threshold and less than the second temperature threshold, wherein the first strategy is: determining the product of the upload rate of the current period and the first coefficient as the file upload rate of the next period.

[0010] In a possible implementation, after determining that the target file upload rate is zero, the method further includes: if the device temperature in the period after the second period is less than a third temperature threshold, starting file upload, wherein the third temperature threshold is less than the first temperature threshold.

[0011] In a possible implementation, the method further includes: determining a second coefficient; if the device temperature in the first cycle and a preset number of consecutive cycles before the first cycle are both less than the third temperature threshold, then multiplying the first file upload rate by the second coefficient is determined as the target file upload rate.

[0012] In one possible implementation, obtaining a first device temperature of a first period includes: obtaining device temperatures at multiple preset moments in the first period; calculating the arithmetic mean of the device temperatures at the multiple preset moments to obtain the first device temperature; obtaining a first file upload rate of the first period includes: obtaining file upload rates at multiple preset moments in the first period; calculating the arithmetic mean of the file upload rates at the multiple preset moments to obtain the first file upload rate.

[0013] In a second aspect, the present application provides a file uploading device, comprising: an acquisition module for acquiring a first device temperature of a first cycle; a determination module for determining a first temperature threshold and a second temperature threshold; a processing module for determining a target file upload rate of a second cycle based on the first device temperature, the first temperature threshold and the second temperature threshold, wherein the second cycle is the next cycle of the first cycle.

[0014] In one possible implementation, the first temperature threshold is less than the second temperature threshold; the processing module is specifically used to obtain the first file upload rate of the first cycle; the processing module is also specifically used to determine the first file upload rate as the target file upload rate if the first device temperature is less than the first temperature threshold; the processing module is also specifically used to determine the target file upload rate according to the first file upload rate if the first device temperature is greater than or equal to the first temperature threshold and less than the second temperature threshold; the processing module is also specifically used to determine the target file upload rate as zero if the first device temperature is greater than or equal to the second temperature threshold.

[0015] In a possible implementation, the processing module is specifically used to determine the first coefficient; the processing module is also specifically used to determine the product of the first upload rate and the first coefficient as the target file upload rate.

[0016] In a possible implementation, the device further includes: an adjustment module, used to obtain the second device temperature of the second period; the adjustment module is also used to determine the product of the target file upload rate and the first coefficient as the file upload rate of the third period if the second device temperature is greater than or equal to the first temperature threshold and less than the second temperature threshold, and the third period is the next period of the second period; the adjustment module is also used to adjust the file upload rates of the periods after the third period in accordance with the first strategy in sequence until there are no device temperatures of two adjacent periods that are both greater than or equal to the first temperature threshold and less than the second temperature threshold, wherein the first strategy is: determine the product of the upload rate of the current period and the first coefficient as the file upload rate of the next period.

[0017] In a possible implementation, the apparatus further includes: an enabling module, configured to enable file uploading if the device temperature in a period after the second period is less than a third temperature threshold, wherein the third temperature threshold is less than the first temperature threshold.

[0018] In a possible implementation, the device further includes: an execution module for determining a second coefficient; the execution module is also used to determine the product of the first file upload rate and the second coefficient as the target file upload rate if the device temperature in the first cycle and a preset number of consecutive cycles before the first cycle are both less than the third temperature threshold.

[0019] In a possible implementation, the device further includes: a calculation module, used to obtain the device temperature at multiple preset moments in the first period; the calculation module is also used to calculate the arithmetic mean of the device temperature at the multiple preset moments to obtain the first device temperature; the calculation module is also used to obtain the file upload rate at multiple preset moments in the first period; the calculation module is also used to calculate the arithmetic mean of the file upload rate at the multiple preset moments to obtain the first file upload rate.

[0020] In a third aspect, the present application provides an electronic device comprising: a processor, and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement any method described in the first aspect.

[0021] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are executed by a processor as described in any one of the methods in the first aspect.

[0022] The file upload method, device, electronic device and storage medium provided by the present application include: obtaining the first device temperature of the first cycle; determining the first temperature threshold and the second temperature threshold; determining the target file upload rate of the second cycle according to the first device temperature, the first temperature threshold and the second temperature threshold, wherein the second cycle is the next cycle of the first cycle. The above scheme sets multiple temperature thresholds, so that the file upload can be adjusted smoothly before the video recording device becomes seriously heated, avoiding taking radical measures to adjust when serious heating occurs and affecting the video recording function, thereby improving the working stability of the device. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0024] Figure 1 A schematic diagram of an application scenario of a file uploading method provided in an embodiment of the present application;

[0025] Figure 2 A flowchart of a file uploading method provided in an embodiment of the present application;

[0026] Figure 3 A flowchart of a file uploading method provided in an embodiment of the present application;

[0027] Figure 4 A schematic diagram of determining a target file upload rate provided in an embodiment of the present application;

[0028] Figure 5 A structural example diagram of a file uploading device provided in an embodiment of the present application;

[0029] Figure 6 A structural example diagram of a file uploading device provided in an embodiment of the present application;

[0030] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.

[0031] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0032] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.

[0033] Figure 1 A schematic diagram of an application scenario of a file upload method provided in an embodiment of the present application is given as an example in combination with the scenario shown in the diagram: the scenario includes a recording device and a server, the recording device includes a recording function and a file upload function, the recording device can upload the recorded video to the server in real time, and the server can process or back up the video file in time.

[0034] In actual applications, the server can be other devices, such as a user's computer, a user's tablet computer, and a user's mobile phone, and the user can watch the video recorded by the current recording device in real time on other devices.

[0035] The technical solutions of the present application and the technical solutions of the present application are described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. In the description of the present application, unless otherwise clearly specified and limited, each term should be understood in a broad sense in the art. The embodiments of the present application will be described below in conjunction with the accompanying drawings.

[0036] Figure 2 A flowchart of a file uploading method provided in an embodiment of the present application, the method comprises the following steps:

[0037] S201. Obtain a first device temperature in a first cycle.

[0038] As an example, the execution subject of this embodiment may be a file uploading device, and there are many implementations of the file uploading device. For example, it may be program software, or a medium storing relevant computer programs, such as a USB flash drive, etc.; or, the device may also be a physical device integrated or installed with relevant computer programs, such as a chip, a smart terminal, a computer, a server, etc.

[0039] The first device includes but is not limited to monitoring, driving recorders or law enforcement recorders.

[0040] Optionally, the temperature of the first device is obtained by testing a temperature sensor set in the first device.

[0041] S202: Determine a first temperature threshold and a second temperature threshold

[0042] The first temperature threshold is smaller than the second temperature threshold.

[0043] S203: Determine a target file upload rate for a second period according to the first device temperature, the first temperature threshold, and the second temperature threshold, where the second period is a period next to the first period.

[0044] According to the numerical relationship between the first device temperature and the first temperature threshold and the second temperature threshold, the adjustment strategy of the corresponding target file upload rate is determined.

[0045] Optionally, the time period of each cycle can be set by the user. For example, the user sets the time period of each cycle to 3 hours.

[0046] The file upload method provided in the embodiment of the present application obtains the first device temperature of the first period; determines the first temperature threshold and the second temperature threshold; determines the target file upload rate of the second period according to the first device temperature, the first temperature threshold and the second temperature threshold, and the second period is the next period of the first period. The above scheme sets multiple temperature thresholds, and can smoothly adjust the file upload before the video recording device is seriously heated, avoiding taking radical measures to adjust when serious heating occurs and affecting the video recording function, thereby improving the working stability of the device.

[0047] Based on any of the above embodiments, Figure 3 , which explains the detailed process of file uploading.

[0048] Figure 3 A flowchart of a file uploading method provided in an embodiment of the present application. Figure 3 As shown, the method includes:

[0049] S301. Obtain a first device temperature in a first cycle.

[0050] It should be noted that the execution process of S301 refers to S201 and will not be repeated here.

[0051] S302: Determine a first temperature threshold and a second temperature threshold.

[0052] Optionally, the first temperature threshold and the second temperature threshold are preset values, and different values ​​are set according to different video recording devices.

[0053] Optionally, the first temperature threshold and the second temperature threshold may be adjusted according to user selection.

[0054] S303: Obtain a first file upload rate in a first period.

[0055] A feasible implementation method is to obtain the first device temperature of the first period, including: obtaining the device temperature at multiple preset moments in the first period; calculating the arithmetic mean of the device temperature at the multiple preset moments to obtain the first device temperature; obtaining the first file upload rate of the first period, including: obtaining the file upload rate at multiple preset moments in the first period; calculating the arithmetic mean of the file upload rate at the multiple preset moments to obtain the first file upload rate.

[0056] For example, the first cycle is 3 hours, and the first cycle includes 6 device temperatures at preset moments: 36°C, 40°C, 50°C, 48°C, 54°C, and 58°C. The arithmetic mean of the device temperatures at the 6 preset moments is calculated, and the first device temperature is 47.7°C. Similarly, the first file upload rate can be calculated.

[0057] In this feasible implementation, it is more representative to calculate the arithmetic mean of the device temperatures within a period as the first device temperature, or to calculate the arithmetic mean of the file upload rates within a period as the first file upload rate.

[0058] S304: Determine whether the temperature of the first device is less than a first temperature threshold.

[0059] If yes, execute S305.

[0060] If not, execute S306.

[0061] S305: Determine the first file upload rate as the target file upload rate.

[0062] In combination with the scenario example, the first temperature threshold is less than the second temperature threshold. When the device temperature reaches the first temperature threshold, the recording device is in a medium temperature state. When the device temperature reaches the second temperature threshold, the recording device is in an over-temperature state. Therefore, when the first device temperature is less than the first temperature threshold, the temperature of the recording device is in a safe state, indicating that the working power of the recording device does not need to be reduced and the current working power can be maintained. Then, the first file upload rate is determined as the target file upload rate for the next cycle.

[0063] S306: Determine whether the temperature of the first device is lower than a second temperature threshold.

[0064] If yes, execute S307.

[0065] If not, execute S309.

[0066] S307: Determine a first coefficient.

[0067] Taking the scenario example as an example, if the temperature of the first device is between the first temperature threshold and the second temperature threshold, the recording device is in a medium temperature state in the first cycle. The recording device in the medium temperature state can work normally, but the operating power of the recording device needs to be reduced in the second cycle to prevent the temperature of the recording device from continuing to rise in the second cycle.

[0068] S308: Determine the target file upload rate as the product of the first upload rate and the first coefficient.

[0069] Optionally, the first coefficient is greater than 0 and less than 1.

[0070] It can be understood that the product of the first upload rate and the first coefficient is smaller than the first upload rate. When the upload rate is smaller, the working power of the video recording device is smaller, and the heat generated by the video recording device is reduced.

[0071] S309: Determine that the target file upload rate is zero.

[0072] In combination with the scenario example, if the temperature of the first device is greater than or equal to the second temperature threshold, the recording device is in a state of overtemperature in the first cycle, and the temperature of the recording device cannot be reduced by reducing the working power of the recording device. By determining that the target file upload rate is zero, that is, closing the file upload function, the heat generated by file upload can be avoided, thereby reducing the temperature of the recording device and ensuring that the recording function continues.

[0073] Figure 4 This is a schematic diagram of determining the target file upload rate provided by an embodiment of the present application. Figure 4 As shown, if the temperature of the first device is less than the first temperature threshold, the first file upload rate is determined as the target file upload rate. If the temperature of the first device is greater than or equal to the first temperature threshold and less than the second temperature threshold, the target file upload rate is determined by multiplying the first file upload rate by the first coefficient. If the first device temperature is greater than or equal to the second temperature threshold, the target file upload rate is determined to be zero.

[0074] In a feasible implementation, the file upload method also includes: obtaining the second device temperature of the second period; if the second device temperature is greater than or equal to the first temperature threshold and less than the second temperature threshold, determining the product of the target file upload rate and the first coefficient as the file upload rate of the third period, and the third period is the next period of the second period; adjusting the file upload rates of the periods after the third period in sequence according to the first strategy until there are no device temperatures of two adjacent periods that are greater than or equal to the first temperature threshold and less than the second temperature threshold, wherein the first strategy is: determining the product of the upload rate of the current period and the first coefficient as the file upload rate of the next period.

[0075] In combination with the scenario example, assuming that the first file upload rate is R1, if the first device temperature is greater than or equal to the first temperature threshold and less than the second temperature threshold, the target file upload rate is determined to be R1*first coefficient. On this basis, if the second device temperature is greater than or equal to the first temperature threshold and less than the second temperature threshold, the file upload rate of the third period is determined to be (R1*first coefficient)*first coefficient, and so on.

[0076] In this feasible implementation manner, the file upload rate of the next cycle is determined according to the device temperature of each cycle, so that the device temperature of the video recording device can be continuously maintained, thereby improving the stability of the video recording device.

[0077] A feasible implementation method, after determining that the target file upload rate is zero, also includes: if the device temperature in the period after the second period is less than a third temperature threshold, starting file upload, wherein the third temperature threshold is less than the first temperature threshold.

[0078] Taking the scenario example as an example, the third temperature threshold is lower than the first temperature threshold. After determining that the target file upload rate is zero, the device temperature will gradually decrease. In order to promptly meet the user's demand for the file upload function, when the device temperature is lower than the third temperature threshold, the device temperature will not affect the normal operation of the recording device. At this time, the file upload function is turned on, and both the recording function and the file upload function can work normally.

[0079] In this feasible implementation, when the device temperature is lower than the third temperature threshold, enabling file uploading can maintain the normal operation of the video recording device.

[0080] In a feasible implementation method, the file upload method also includes: determining a second coefficient; if the device temperature in the first cycle and a preset number of consecutive cycles before the first cycle are both less than the third temperature threshold, then the product of the first file upload rate and the second coefficient is determined as the target file upload rate.

[0081] Optionally, the second coefficient is greater than 1.

[0082] Taking the scenario example as an example, if the device temperature for multiple consecutive cycles is less than the third temperature threshold, it means that the heat level of the current working state of the recording device is low. Increasing the file upload rate within a certain range can speed up file upload on the premise that the increase in heat is within a controllable range.

[0083] In this feasible implementation, the resource utilization of the video recording device can be improved by increasing the file upload rate within the controllable range of the device temperature.

[0084] Figure 5 A schematic diagram of the structure of a file uploading device provided in an embodiment of the present application. Figure 5 As shown, the file uploading device 50 may include: an acquisition module 51, a determination module 52 and a processing module 53, wherein:

[0085] The acquisition module 51 is used to acquire the first device temperature in the first cycle.

[0086] The determination module 52 is used to determine a first temperature threshold and a second temperature threshold.

[0087] The processing module 53 is used to determine a target file upload rate for a second period according to the first device temperature, the first temperature threshold, and the second temperature threshold, where the second period is a period next to the first period.

[0088] Optionally, the acquisition module 51 may execute Figure 2 S201 in the embodiment.

[0089] Optionally, the determination module 52 may execute Figure 2 S202 in the embodiment.

[0090] Optionally, the processing module 53 may execute Figure 2 S203 in the embodiment.

[0091] It should be noted that the encoding device shown in the embodiment of the present application can execute the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be repeated here.

[0092] In a possible implementation manner, the processing module 53 is specifically configured to:

[0093] Obtain the first file upload rate of the first period;

[0094] If the temperature of the first device is less than the first temperature threshold, determining the first file upload rate as the target file upload rate;

[0095] If the first device temperature is greater than or equal to the first temperature threshold and less than the second temperature threshold, determining the target file upload rate according to the first file upload rate;

[0096] If the first device temperature is greater than or equal to the second temperature threshold, the target file upload rate is determined to be zero.

[0097] In a possible implementation manner, the processing module 53 is specifically configured to:

[0098] determining a first coefficient;

[0099] The product of the first upload rate and the first coefficient is determined as the target file upload rate.

[0100] Figure 6 A schematic diagram of the structure of a container deployment device provided in an embodiment of the present application. Figure 5 Based on the embodiment shown, Figure 6 As shown, the model training device 50 also includes: an adjustment module 54, an opening module 55, an execution module 56 and a calculation module 57, wherein:

[0101] The adjustment module 54 is used to:

[0102] Obtaining the second device temperature of the second cycle;

[0103] If the temperature of the second device is greater than or equal to the first temperature threshold and less than the second temperature threshold, the product of the target file upload rate and the first coefficient is determined as the file upload rate of a third period, and the third period is a period next to the second period;

[0104] The file upload rates of the periods after the third period are adjusted in sequence according to the first strategy until the device temperatures of no two adjacent periods are both greater than or equal to the first temperature threshold and less than the second temperature threshold, wherein the first strategy is: the product of the upload rate of the current period and the first coefficient is determined as the file upload rate of the next period.

[0105] The opening module 55 is used to:

[0106] If the device temperature in the period after the second period is less than a third temperature threshold, file uploading is enabled, wherein the third temperature threshold is less than the first temperature threshold.

[0107] The execution module 56 is used to:

[0108] determining a second coefficient;

[0109] If the device temperature in the first cycle and a preset number of consecutive cycles before the first cycle are both lower than the third temperature threshold, the product of the first file upload rate and the second coefficient is determined as the target file upload rate.

[0110] The calculation module 57 is used to:

[0111] Obtaining the device temperature at multiple preset times in the first cycle;

[0112] Calculating the arithmetic mean of the device temperatures at the plurality of preset moments to obtain the first device temperature;

[0113] Obtain the file upload rate at multiple preset time points in the first period;

[0114] An arithmetic average of the file upload rates at the plurality of preset time moments is calculated to obtain the first file upload rate.

[0115] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown in FIG. Figure 7 As shown, the electronic device includes:

[0116] The electronic device includes a processor 291 and a memory 292; it may also include a communication interface 293 and a bus 294. The processor 291, the memory 292, and the communication interface 293 may communicate with each other through the bus 294. The communication interface 293 may be used for information transmission. The processor 291 may call the logic instructions in the memory 292 to execute the method of the above embodiment.

[0117] In addition, the logic instructions in the above-mentioned memory 292 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product.

[0118] The memory 292 is a computer-readable storage medium that can be used to store software programs and computer executable programs, such as program instructions / modules corresponding to the methods in the embodiments of the present application. The processor 291 executes functional applications and data processing by running the software programs, instructions, and modules stored in the memory 292, that is, implementing the methods in the above method embodiments.

[0119] The memory 292 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal device, etc. In addition, the memory 292 may include a high-speed random access memory and may also include a non-volatile memory.

[0120] An embodiment of the present application provides a non-temporary computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the method described in the above embodiment.

[0121] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0122] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0123] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A file uploading method, characterized in that: include: Get the first device temperature of the first cycle; determining a first temperature threshold and a second temperature threshold; A target file upload rate for a second period is determined according to the first device temperature, the first temperature threshold, and the second temperature threshold, where the second period is a period next to the first period.

2. The method according to claim 1, characterized in that The first temperature threshold is less than the second temperature threshold; and determining a target file upload rate for a second period according to the first device temperature, the first temperature threshold, and the second temperature threshold, including: Obtain the first file upload rate of the first period; If the temperature of the first device is less than the first temperature threshold, determining the first file upload rate as the target file upload rate; If the first device temperature is greater than or equal to the first temperature threshold and less than the second temperature threshold, determining the target file upload rate according to the first file upload rate; If the first device temperature is greater than or equal to the second temperature threshold, the target file upload rate is determined to be zero.

3. The method according to claim 2, characterized in that Determining the target file upload rate according to the first file upload rate includes: determining a first coefficient; The product of the first upload rate and the first coefficient is determined as the target file upload rate.

4. The method according to claim 3, characterized in that The method further comprises: Obtaining the second device temperature of the second cycle; If the temperature of the second device is greater than or equal to the first temperature threshold and less than the second temperature threshold, the product of the target file upload rate and the first coefficient is determined as the file upload rate of a third period, and the third period is a period next to the second period; The file upload rates of the periods after the third period are adjusted in sequence according to the first strategy until the device temperatures of no two adjacent periods are both greater than or equal to the first temperature threshold and less than the second temperature threshold, wherein the first strategy is: the product of the upload rate of the current period and the first coefficient is determined as the file upload rate of the next period.

5. The method according to claim 2, characterized in that: After determining that the target file upload rate is zero, the method further includes: If the device temperature in the period after the second period is less than a third temperature threshold, file uploading is enabled, wherein the third temperature threshold is less than the first temperature threshold.

6. The method according to claim 5, characterized in that The method further comprises: determining a second coefficient; If the device temperature in the first cycle and a preset number of consecutive cycles before the first cycle are both lower than the third temperature threshold, the product of the first file upload rate and the second coefficient is determined as the target file upload rate.

7. The method according to any one of claims 1 to 6, characterized in that: Obtain the first device temperature of the first cycle, including: Obtaining the device temperature at multiple preset times in the first cycle; Calculating the arithmetic mean of the device temperatures at the plurality of preset moments to obtain the first device temperature; Obtain the first file upload rate of the first period, including: Obtain the file upload rate at multiple preset time points in the first period; An arithmetic mean of the file upload rates at the plurality of preset time moments is calculated to obtain the first file upload rate.

8. A file uploading device, characterized in that: include: An acquisition module, used for acquiring a first device temperature in a first cycle; A determination module, used to determine a first temperature threshold and a second temperature threshold; The processing module is used to determine a target file upload rate of a second cycle according to the first device temperature, the first temperature threshold and the second temperature threshold, where the second cycle is a cycle next to the first cycle.

9. The device according to claim 8, characterized in that The first temperature threshold is less than the second temperature threshold; The processing module is specifically used to obtain a first file upload rate in a first period; The processing module is further configured to determine the first file upload rate as the target file upload rate if the first device temperature is less than the first temperature threshold; The processing module is further configured to determine the target file upload rate according to the first file upload rate if the first device temperature is greater than or equal to the first temperature threshold and less than the second temperature threshold; The processing module is further specifically configured to determine that the target file upload rate is zero if the first device temperature is greater than or equal to the second temperature threshold.

10. The device according to claim 9, characterized in that The processing module is specifically used to determine the first coefficient; The processing module is further specifically configured to determine the target file upload rate by multiplying the first upload rate by the first coefficient.

11. The device according to claim 10, characterized in that The device also includes: An adjustment module, used for obtaining a second device temperature in a second period; The adjustment module is further configured to determine, if the temperature of the second device is greater than or equal to the first temperature threshold and less than the second temperature threshold, a product of the target file upload rate and the first coefficient as a file upload rate for a third period, the third period being a period next to the second period; The adjustment module is also used to adjust the file upload rate of the period after the third period in sequence according to the first strategy until the device temperature of no two adjacent periods is greater than or equal to the first temperature threshold and less than the second temperature threshold, wherein the first strategy is: the product of the upload rate of the current period and the first coefficient is determined as the file upload rate of the next period.

12. The device according to claim 9, characterized in that The device also includes: The enabling module is used to enable file uploading if the device temperature in the period after the second period is less than a third temperature threshold, wherein the third temperature threshold is less than the first temperature threshold.

13. The device according to claim 12, characterized in that The device also includes: An execution module, configured to determine a second coefficient; The execution module is further configured to determine the target file upload rate as the product of the first file upload rate and the second coefficient if the device temperature in the first cycle and a preset number of consecutive cycles before the first cycle are both lower than the third temperature threshold.

14. The device according to any one of claims 8 to 13, characterized in that: The device also includes: A calculation module, used to obtain the device temperature at multiple preset moments in the first cycle; The calculation module is further used to calculate the arithmetic mean of the device temperatures at the plurality of preset moments to obtain the first device temperature; The calculation module is further used to obtain the file upload rate at multiple preset time points in the first period; The calculation module is further used to calculate the arithmetic mean of the file upload rates at the multiple preset time moments to obtain the first file upload rate.

15. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 7.

16. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 7 when executed by a processor.