CN117319383B - File storage method, system, terminal equipment and storage medium based on Internet of things - Google Patents

File storage method, system, terminal equipment and storage medium based on Internet of things Download PDF

Info

Publication number
CN117319383B
CN117319383B CN202311622354.5A CN202311622354A CN117319383B CN 117319383 B CN117319383 B CN 117319383B CN 202311622354 A CN202311622354 A CN 202311622354A CN 117319383 B CN117319383 B CN 117319383B
Authority
CN
China
Prior art keywords
file
target
communication transmission
transmission module
information
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
Application number
CN202311622354.5A
Other languages
Chinese (zh)
Other versions
CN117319383A (en
Inventor
梁哲恒
崔磊
曾纪钧
张金波
龙震岳
沈佳泉
钱正浩
沈伍强
张小陆
周纯
周昉昉
李凯
王业超
秦强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Power Grid Co Ltd
Original Assignee
Guangdong Power Grid Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangdong Power Grid Co Ltd filed Critical Guangdong Power Grid Co Ltd
Priority to CN202311622354.5A priority Critical patent/CN117319383B/en
Publication of CN117319383A publication Critical patent/CN117319383A/en
Application granted granted Critical
Publication of CN117319383B publication Critical patent/CN117319383B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Abstract

The application relates to the technical field of file storage, and provides a file storage method, a system, terminal equipment and a storage medium based on the Internet of things. The method comprises the following steps: acquiring current time information; determining whether the external conditions of the target terminal equipment meet preset file storage conditions or not according to the current time information; if the external condition of the target terminal equipment meets the preset file storage condition, selecting a target communication transmission module from a 4G communication transmission module and a 5G communication transmission module; and transmitting the file to be stored in the target terminal equipment to a cloud storage server through the target communication transmission module, and completing the storage of the file to be stored. Through the scheme provided by the application, the file can be stored timely, so that the file is prevented from being lost, or the file can not be stored timely, so that the file needs to be manufactured again.

Description

File storage method, system, terminal equipment and storage medium based on Internet of things
Technical Field
The present disclosure relates to the field of file storage technologies, and in particular, to a method, a system, a terminal device, and a storage medium for storing files based on the internet of things.
Background
In recent years, with the continuous improvement of economic level, terminal devices such as computers, mobile phones, tablet computers and the like are rapidly developed and widely used, and there are likely to be more files to be stored in the terminal devices, both for office workers and for students.
However, because the user of the terminal device is focused on using the terminal device, such as focusing on editing the file, the file can not be stored timely due to unexpected factors, and the user needs to make the file again with a heavy head, which is laborious and troublesome.
Disclosure of Invention
The invention aims to provide a file storage method, a system, terminal equipment and a storage medium based on the Internet of things, and aims to solve the technical problems that at present, because a user of the terminal equipment is focused on writing of files, the files can not be stored timely due to unexpected factors, the files need to be manufactured again, and the trouble and effort are caused.
In a first aspect, the present application provides a method for storing a file based on the internet of things, including:
acquiring current time information;
determining whether the external conditions of the target terminal equipment meet preset file storage conditions or not according to the current time information;
If the external condition of the target terminal equipment meets the preset file storage condition, selecting a target communication transmission module from a 4G communication transmission module and a 5G communication transmission module;
and transmitting the file to be stored in the target terminal equipment to a cloud storage server through the target communication transmission module, and completing the storage of the file to be stored.
According to the file storage method based on the Internet of things, the current time information of the target terminal equipment when the user uses the equipment is acquired, whether the external condition of the target terminal equipment meets the preset file storage condition is determined according to the current time information, and if the external condition of the target terminal equipment meets the preset file storage condition, a proper target communication transmission module is selected from the 4G communication transmission module and the 5G communication transmission module to transmit the file to be stored in the target terminal equipment to the cloud storage server, so that the file to be stored is stored, the user of the target terminal equipment or other personnel is not required to store the file to be stored manually, the problem that the file cannot be stored timely due to unexpected factors, the file needs to be manufactured again, and the trouble and effort are avoided effectively.
In a second aspect, the present application provides a file saving system based on the internet of things, including:
the acquisition module is used for acquiring current time information;
the determining module is used for determining whether the external conditions of the target terminal equipment meet preset file storage conditions according to the current time information;
the selecting module is used for selecting a target communication transmission module from the 4G communication transmission module and the 5G communication transmission module if the external condition of the target terminal equipment meets the preset file storage condition;
and the transmission storage module is used for transmitting the file to be stored in the target terminal equipment to a cloud storage server through the target communication transmission module so as to finish the storage of the file to be stored.
In a third aspect, the present application provides a terminal device, which is characterized by comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the file saving method when executing the computer program.
In a fourth aspect, the present application provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program when executed by a processor implements the file saving method.
It will be appreciated that the advantages of the second to fourth aspects may be found in the relevant description of the first aspect and are not repeated here.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required for the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a file saving method based on the internet of things according to an embodiment of the present application.
Fig. 2 is an application scenario schematic diagram of a file storage method based on internet of things according to an embodiment of the present application.
Fig. 3 is a flowchart of a file saving method based on the internet of things according to an embodiment of the present application.
Fig. 4 is a flowchart of a file saving method based on the internet of things according to another embodiment of the present application.
Fig. 5 is a schematic structural diagram of a file storage system based on the internet of things according to an embodiment of the present application.
Fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular device structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details.
As used in this specification and the appended claims, the term "if" may be construed as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
In addition, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used merely to distinguish between descriptions and are not to be construed as indicating or implying relative importance.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
In order to illustrate the technical solutions described in the present application, the following description is made by specific examples.
The application provides a file storage method based on the Internet of things, which can timely store files, avoid the loss of the files, or can not timely store the files, so that the files need to be manufactured again.
The identity verification method provided by the embodiment of the application can be applied to terminal equipment or servers including, but not limited to, mobile phones, tablet computers, notebook computers, ultra-mobile personal computer (UMPC), netbooks, personal digital assistants (personal digital assistant, PDA) and the like, and the specific type of the terminal equipment or the server is not limited in any way.
Referring to fig. 1, fig. 1 is a flowchart of an implementation of a method for storing files in the internet of things according to an embodiment of the present application, including the following steps:
s11: and acquiring current time information.
In this embodiment, the current time information refers to a specific time of day of the corresponding year when the user uses the target terminal device. For example, the time for editing a file by a user using a computer is 2023, 1 month, 1 day, 14 points, 30 minutes, and the current time information is 1 month, 1 day, 14 points, 30 minutes.
It can be understood that, in order to timely store the file to be stored in the target terminal device used by the user, the current time information of the target terminal device used by the user is acquired first.
As to when to acquire the current time information, including but not limited to the following scenarios:
scene 1: and when the target terminal equipment is started, acquiring current time information.
Scene 2: and when the target terminal equipment is started and the target software runs for a certain time, acquiring current time information.
For example, after the computer is started, the wps software is operated for half an hour, and then the current time information is acquired.
Scene 3: and when the target terminal equipment is in an on state, periodically acquiring current time information.
S12: and determining whether the external conditions of the target terminal equipment meet preset file storage conditions according to the current time information.
In this embodiment, the external conditions include, but are not limited to, external environmental conditions (such as power supply conditions), physical health information of the user, and an internet environment condition where the target terminal device is located.
It can be understood that, because the user is more attentive and further less concerned about external conditions when editing the file by using the target terminal device, the file cannot be stored in time, when the current time information is obtained, that is, when the current time is determined, whether the external conditions of the target terminal device meet the preset file storage conditions is determined, so that the user does not need to judge whether the file needs to be stored, and a proper mode can be timely selected to store the file when the preset file storage conditions are met.
S13: and if the external condition of the target terminal equipment meets the preset file storage condition, selecting a target communication transmission module from the 4G communication transmission module and the 5G communication transmission module.
In this embodiment, in order to adapt to the external condition of the target terminal device, the file to be stored is transmitted in a data transmission manner with reasonable cost, and stored, when it is determined that the external condition of the target terminal device meets the preset file storage condition, the target communication transmission module is selected from the 4G communication transmission module and the 5G communication transmission module, so that the file to be stored can be transmitted to the cloud storage server through the target communication transmission module.
It can be understood that, because the external conditions where the target terminal device is located may be different, the 4G communication transmission module or the 5G communication transmission module may be used as the target communication transmission module, and it is considered that, in combination with the actual environmental situation, the data transmission of the file to be stored can be performed through the 4G communication transmission module or the 5G communication transmission module.
For example, when the power outage time is short, the data transmission of the file to be stored generally needs to be performed more quickly, so the 5G communication transmission module is selected as the target communication transmission module. Or when the power failure time is longer, the time is more sufficient, and the 5G communication transmission module is not required to be selected as the target communication transmission module, but the 4G communication transmission module with lower transmission cost can be selected as the target communication transmission module.
It can be understood that the 4G communication transmission module is a hardware module for transmitting data through a 4G communication network, and the 5G communication transmission module is a hardware module for transmitting data through a 5G communication network, and the data transmission speeds of the two modules are different. The speed of the 4G communication transmission module for transmitting data is smaller than that of the 5G communication transmission module for transmitting data.
S14: and transmitting the file to be stored in the target terminal equipment to the cloud storage server through the target communication transmission module, and completing the storage of the file to be stored.
In this embodiment, in order to avoid the loss of the file, or to avoid the file being saved in time, the file needs to be made again, after determining that the preset file storage condition is met and selecting the target communication transmission module, the file to be stored in the target terminal device is transmitted to the cloud storage server through the target communication transmission module, so as to complete the saving of the file to be stored.
It is understood that the number of the target communication transmission modules for transmitting the file to be stored may be one or at least two or more. The file to be stored may be the file in editing before the current time information, or may be the file which has been edited but not saved.
As shown in fig. 2, for example, the target terminal device uses the selected 4G communication transmission module or 5G communication transmission module as the target communication transmission module to transmit the file to be stored in the target terminal device to the cloud storage server.
In an embodiment, at least two target communication transmission modules connected in parallel are used for transmitting the file to be stored in the target terminal equipment to the cloud storage server, so that the file to be stored is stored.
In this embodiment, the file to be stored is cut into a plurality of sub-files to be stored according to a preset file cutting policy, the file to be stored in the target terminal device is transmitted to the cloud storage server through at least two target communication transmission modules connected in parallel, the sub-files to be stored are spliced according to a preset file merging policy, and the spliced file is stored, so that the storage of the file to be stored is completed.
The preset file cutting strategy is used for describing cutting the file to be stored according to a preset file cutting size.
The preset file merging strategy is used for describing merging the files to be stored in multiple sub-files according to the sequence of the file contents.
Referring to fig. 3, in an embodiment of the present application, determining, according to current time information, whether an external condition where a target terminal device is located meets a preset file storage condition includes:
s21: determining a target monitoring model from at least two monitoring models according to the current time information;
s22: acquiring current power supply policy information and power consumption information of a region to which target terminal equipment belongs;
s23: and inputting the power supply policy information and the power consumption information of the area of the target terminal equipment into a target monitoring model for processing to obtain target information, wherein the target information is used for describing whether the area of the target terminal meets the condition of pre-power outage, and when the condition of pre-power outage is met, the preset file storage condition is met.
In this embodiment, since the power consumption condition and the power outage condition of each season are different throughout the year, the corresponding power supply policies are different, and in order to improve the data processing efficiency, a plurality of monitoring models are pre-trained corresponding to a year, so that when current time information is obtained subsequently, it is convenient to determine a target monitoring model corresponding to the current time information from at least two monitoring models directly according to the current time information, and then the power supply policy information corresponding to the current time information and the power consumption information of an area to which the target terminal device belongs are processed through the target monitoring model, so as to obtain target information capable of describing whether the area to which the target terminal belongs meets the condition of pre-outage.
The current power supply policy information is acquired to know whether the adjustment policy of power supply exists in the area to which the target terminal device belongs, and the start time and the stop time of the power supply, so that the file storage operation in the target terminal device can be adjusted conveniently based on the known information.
For example, a power policy is obtained that indicates that power is supplied from 0 to 13 hours 59 minutes in the morning on month 1 of 2023, 11, a power outage from 14 to 18 hours, and a power supply from 19 to 23 hours 59 minutes.
The power consumption condition of the area of the target terminal equipment can be known through the acquired power consumption information of the area of the target terminal equipment, so that whether the area is excessively high in power consumption can be judged through the power consumption condition, power failure is caused, the power failure condition recorded in the power supply policy information is triggered, and the area enters the preparation period of pre-power failure.
It can be understood that when the condition of pre-power outage is satisfied, that is, the external environment where the target terminal device is located is about to power outage, and the preset file storage condition is satisfied, so that file storage needs to be performed in time, thereby avoiding file loss, or file re-production needs to be performed because file storage cannot be performed in time.
In practical applications, it may be appreciated that the target terminal device stores a pre-trained monitoring model in advance. The monitoring model can be trained by the target terminal equipment in advance, or files corresponding to the monitoring model can be transplanted to the target terminal equipment after the monitoring model is trained by other equipment in advance. That is, the execution subject for training the monitoring model may be the same as or different from the execution subject for performing the power supply policy information and the power consumption information processing using the monitoring model. For example, when the initial monitoring model is trained by using other equipment, after the other equipment finishes training the initial monitoring model, fixing model parameters of the initial monitoring model to obtain a file corresponding to the target monitoring model, and then transplanting the file into the target terminal equipment.
In an embodiment, in order to facilitate that each monitoring model can better process data, the time periods corresponding to training data for training the monitoring models are different, that is, each monitoring model is obtained by training a training set consisting of a plurality of groups of power supply policy information and power consumption information of a region to which a terminal device belongs, which corresponds to a specific time period in one year, and at the same time, when preliminary training is finished on the monitoring models, a verification set consisting of a plurality of groups of power supply policy information and power consumption information in the same specific time period is used for inputting the monitoring models obtained by training to verify prediction results.
It can be understood that one piece of power supply policy information may correspond to a plurality of pieces of power consumption information at different time points, and further, one piece of power supply policy information and each piece of power consumption information at different time points respectively form a training set or a group of data in the verification set. For example, the power supply policy information is a, the power consumption information is B, C, D for three time points of 12, 13 and 14, and then three groups of data such as a and B, A, C, A and D are formed by a and B, C, D respectively and are used as data in training sets or verification sets.
After each monitoring model is trained, the monitoring model is associated with corresponding time information, so that the time information when the monitoring model is used in the follow-up process, and the monitoring model is quickly matched.
For example, after training an initial monitoring model by using a training set of multiple sets of power supply policy information of 4 months in 2023 and power consumption information of a region to which a terminal device belongs, associating time information of 4 months with the monitoring model obtained by training, so as to facilitate matching of time information associated with each monitoring model based on current time information (e.g. currently 4 months), and screening out monitoring models with the same time information as the current time information, namely, determining a target monitoring model from multiple monitoring models.
In one embodiment of the present application, the target information is recorded with the start time of the blackout.
And determining the residual time from the power failure according to the current time information and the target information.
In this embodiment, in order to better perform the saving of the file to be stored, and since the target information can be used to describe whether the condition of pre-outage is satisfied, that is, the outage time point can be understood through the target information, the remaining time from the outage is determined according to the current time information and the target information, so that the saving operation of the file to be stored is better arranged according to the remaining time from the outage.
Transmitting the file to be stored in the target terminal equipment to the cloud storage server through the target communication transmission module to finish the storage of the file to be stored, wherein the method comprises the following steps:
if the residual time from the power failure is smaller than or equal to the first preset residual time, transmitting the file to be stored in the target terminal equipment to the cloud storage server through at least two target communication transmission modules, and completing the storage of the file to be stored;
if the remaining time from the power failure is longer than the first preset remaining time, transmitting the file to be stored in the target terminal equipment to the cloud storage server through a target communication transmission module, and completing the storage of the file to be stored.
In this embodiment, since the speed of uploading data of the target communication transmission module is relatively stable, the time of uploading the file to be stored through the target communication transmission module is relatively stable, but when the remaining time from the power failure is relatively short, if the file to be stored cannot be completely transmitted to the cloud storage server for storage through one target communication transmission module in the remaining time from the power failure, if the remaining time from the power failure is less than or equal to the first preset remaining time, the time of uploading the file to be stored to the cloud storage server is relatively urgent, so the file to be stored in the target terminal device can be transmitted to the cloud storage server through at least two target communication transmission modules, and the storage of the file to be stored is completed; if the remaining time from the power failure is longer than the first preset remaining time, the time for uploading the file to be stored to the cloud storage server is plentiful, so that the file to be stored in the target terminal equipment can be transmitted to the cloud storage server through a target communication transmission module, and the storage of the file to be stored is completed.
It will be appreciated that the first predetermined remaining time may be preset for a specific period of time.
In one embodiment of the present application, the target information is recorded with the start time of the blackout.
And determining the residual time from the power failure according to the current time information and the target information.
Acquiring the file size of a file to be stored in target terminal equipment according to the current time information;
in this embodiment, in order to better save the file to be stored, and because the target information can be used to describe whether the condition of pre-outage is satisfied, that is, the outage time point can be known through the target information, the remaining time from the outage is calculated first according to the current time information and the target information. Meanwhile, the size of the file to be stored can also influence whether the file to be stored can be uploaded to the cloud storage server in time, so that the file size of the file to be stored corresponding to the current time information in the target terminal equipment is acquired according to the current time information, and the storage operation of the file to be stored is better arranged according to the residual time from the power failure and the file size.
If the external condition of the target terminal equipment meets the preset file storage condition, selecting a target communication transmission module from the 4G communication transmission module and the 5G communication transmission module, wherein the method comprises the following steps:
If the external condition of the target terminal equipment meets the preset file storage condition, determining a first transmission time according to the size of the file to be stored and the transmission speed of the 4G communication transmission module, and determining a second transmission time according to the size of the file to be stored and the transmission speed of the 5G communication transmission module;
if the first transmission time and the second transmission time are smaller than or equal to the residual time from the power failure, determining the 4G communication transmission module as a target communication transmission module;
and if the first transmission time and the second transmission time are both longer than the remaining time from the power failure, determining the 5G communication transmission module as a target communication transmission module.
In this embodiment, since the speeds of the 4G communication transmission module and the 5G communication transmission module when they are respectively used for wirelessly transmitting the file may be different, which module is selected to transmit the file may affect whether the file to be stored can be completely uploaded to the cloud storage server and the uploading cost, so if the external condition of the target terminal device meets the preset file storage condition, the first transmission time is determined according to the size of the file to be stored and the transmission speed of the 4G communication transmission module, and the second transmission time is determined according to the size of the file to be stored and the transmission speed of the 5G communication transmission module. And then, comparing the first transmission time and the second transmission time with the remaining time of the distance power failure respectively, if the first transmission time and the second transmission time are smaller than or equal to the remaining time of the distance power failure, namely, selecting the 4G communication transmission module or the 5G communication transmission module, and uploading the file to be stored to the cloud storage server completely within the remaining time of the distance power failure, so that the 4G communication transmission module is determined as a target communication transmission module, the 5G communication transmission module is not selected, the operation time of the 5G communication transmission module is prevented from being occupied excessively, and the power consumption is reduced.
Meanwhile, if the first transmission time and the second transmission time are both longer than the remaining time of the power failure, the time is urgent, so the 5G communication transmission module is determined as the target communication transmission module, the file to be stored is efficiently uploaded to the cloud storage server through the 5G communication transmission module, the file is timely stored, the file is prevented from being lost, or the file cannot be timely stored, and the file needs to be manufactured again.
In an embodiment, the first transmission time is longer than the remaining time from the power failure, the second transmission time is shorter than the remaining time from the power failure, and the second transmission time is longer than the remaining time from the power failure, and the first transmission time is shorter than the remaining time from the power failure, both of which are the cases that the 5G communication transmission module is selected to determine as the target communication transmission module, so as to ensure that the file is stored in time, avoid the loss of the file, or that the file needs to be made again because the file cannot be stored in time.
In one embodiment of the present application, the target information is recorded with the start time of the blackout.
And determining the residual time from the power failure according to the current time information and the target information.
And acquiring the file size of the file to be stored in the target terminal equipment according to the current time information.
The method comprises the steps of obtaining the number of reference terminal devices of the intranet in a preset distance range taking target terminal devices as centers.
In this embodiment, when the number of networked devices in an area is too large, each device uploads data, because the number of channels for transmitting data in the area is fixed, when the number of networked devices in the area is too large, that is, a situation that there are multiple devices that need to transmit data and further there is transmission congestion in the channels for transmitting data occurs, which is shown by that the efficiency of processing data by a nearby base station decreases, and that the network speed of the networked devices in the area becomes slow, so, in order to better save a file to be stored, the number of reference terminal devices on the intranet with a preset distance range centered on a target terminal device needs to be acquired so as to better arrange the operation of saving the file to be stored according to the number of the networked reference terminal devices.
It is understood that the preset distance range may be preset according to actual situations. For example, a range of 50 meters radius centered on the target terminal device is set as the preset distance range.
If the external condition of the target terminal equipment meets the preset file storage condition, selecting a target communication transmission module from the 4G communication transmission module and the 5G communication transmission module, wherein the method comprises the following steps:
And if the external condition of the target terminal equipment meets the preset file storage condition and the number of the networked reference terminal equipment is larger than the preset value, taking the 5G communication transmission module as the target communication transmission module.
In this embodiment, when the number of networked reference terminal devices is greater than a preset value, the network speed of uploading data of the devices within a preset distance range centering on the target terminal device is indicated to be slower, so that a file to be stored in the target terminal device needs to be uploaded to the cloud storage server through a component with a faster uploading speed, and therefore, if the external condition of the target terminal device meets the preset file storage condition and the number of networked reference terminal devices is greater than the preset value, the 5G communication transmission module is used as the target communication transmission module.
Referring to fig. 4, in an embodiment of the present application, determining, according to current time information, whether an external condition where a target terminal device is located meets a preset file storage condition includes:
s31: acquiring health information of a user using target terminal equipment according to the current time information;
s32: judging whether the health of the user accords with preset health conditions for continuously using the target terminal equipment to process the file according to the health information, and obtaining a judging result;
S33: and determining whether preset file storage conditions are met according to the judging result.
In this embodiment, when the health of the user is insufficient to support the user to continue to work, the user often forgets to save the file, which results in the loss of the file, or needs to recreate the file, so that the health information of the user who uses the target terminal device currently needs to be obtained according to the current time information, and according to the health information, whether the user accords with the preset health condition that the user can continue to use the target terminal device to process the file is judged, and a corresponding judgment result is obtained, so that whether the user can continue to use the target terminal device to process the file is known through the judgment result, and whether the preset file storage condition is met is determined.
For example, after the health information of the user of the target terminal device is obtained according to the current time information, the condition that the user has myocardial infarction is judged through the health information, namely that the user is not suitable for continuously using the target terminal device to process the file, and at the moment, the file is stored first, namely that the preset file storage condition is met.
It will be appreciated that the user's health information may be obtained from the health monitoring device or devices storing the user's health information via the target terminal device.
For example, health information of the user is obtained through a wearable device worn by the user, such as a bracelet, etc. Alternatively, the user's health information is obtained from a server that is connected to a wearable device worn by the user and stores the user's health information.
In one embodiment, a gesture image of a user using a target terminal device is acquired; performing one-to-one similarity calculation on the gesture image of the user and a plurality of reference gesture images stored in an image library to obtain a plurality of similarity values, and taking the reference gesture image with the similarity value larger than a preset reference similarity value as a target gesture image; judging whether the target attitude image is an image which is insufficient for supporting the user to continue using the target terminal equipment according to the label of the target attitude image, and obtaining an image judgment result; and determining whether preset file storage conditions are met according to the image judgment result.
In this embodiment, when it is determined that the target posture image is an image in which the health of the user is insufficient to support the user to continue using the target terminal device, that is, it indicates that the health of the user has a problem, for example, when the user has myocardial infarction, the body takes on a curved posture, so that the file to be stored in the target terminal device can be automatically operated and saved for the first time when it is determined that the health of the user is insufficient to support the user to continue using the target terminal device.
It can be understood that the gesture image of the user can be acquired through the monitoring device or the camera device in the environment where the target terminal device is located, or through the self-matched camera component of the target terminal device.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic of each process, and should not limit the implementation process of the embodiment of the present application in any way.
Corresponding to the file saving method based on the internet of things described in the above embodiments, fig. 5 shows a block diagram of the file saving system based on the internet of things provided in the embodiment of the present application, and for convenience of explanation, only the portions related to the embodiments of the present application are shown.
Referring to fig. 5, the file saving system 100 based on the internet of things includes:
an obtaining module 101, configured to obtain current time information.
The determining module 102 is configured to determine, according to the current time information, whether an external condition where the target terminal device is located meets a preset file storage condition.
And the selecting module 103 is configured to select the target communication transmission module from the 4G communication transmission module and the 5G communication transmission module if the external condition of the target terminal device meets the preset file storage condition.
And the transmission storage module 104 is used for transmitting the file to be stored in the target terminal equipment to the cloud storage server through the target communication transmission module, so as to finish the storage of the file to be stored.
In an embodiment, the determining module 102 is further configured to determine a target monitoring model from at least two monitoring models according to the current time information; acquiring current power supply policy information and power consumption information of a region to which target terminal equipment belongs; and inputting the power supply policy information and the power consumption information of the area of the target terminal equipment into a monitoring model for processing to obtain target information, wherein the target information is used for describing whether the area of the target terminal equipment meets the condition of pre-power outage, and when the condition of pre-power outage is met, the preset file storage condition is met.
In one embodiment, the target information is recorded with the start time of the outage.
The determining module 102 is further configured to determine a remaining time from the power outage according to the current time information and the target information.
The transmission storage module 104 is configured to transmit the file to be stored in the target terminal device to the cloud storage server through at least two target communication transmission modules if the remaining time from the power failure is less than or equal to the first preset remaining time, so as to complete storage of the file; if the remaining time from the power failure is longer than the first preset remaining time, transmitting the file to be stored in the target terminal equipment to the cloud storage server through a target communication transmission module, and completing the storage of the file to be stored.
In one embodiment, the target information is recorded with the start time of the outage.
The determining module 102 is further configured to determine a remaining time from the power outage according to the current time information and the target information.
The obtaining module 101 is further configured to obtain a file size of a file to be stored in the target terminal device according to the current time information.
A selection module 103, configured to determine a first transmission time according to a size of a file to be stored and a transmission speed of the 4G communication transmission module if an external condition where the target terminal device is located meets a preset file storage condition, and determine a second transmission time according to the size of the file to be stored and the transmission speed of the 5G communication transmission module; if the first transmission time and the second transmission time are smaller than or equal to the residual time from the power failure, determining the 4G communication transmission module as a target communication transmission module; and if the first transmission time and the second transmission time are both longer than the remaining time, determining the 5G communication transmission module as a target communication transmission module.
In an embodiment, the obtaining module 101 is further configured to obtain, according to the current time information, the number of reference terminal devices in the intranet within a preset distance range centered on the target terminal device.
And the selection module 103 is configured to take the 5G communication transmission module as the target communication transmission module if the external condition where the target terminal device is located meets a preset file storage condition and the number of the networked reference terminal devices is greater than a preset value.
In an embodiment, the obtaining module 101 is further configured to obtain health information of a user using the target terminal device according to the current time information.
The determining module 102 is configured to determine, according to the health information, whether the health of the user can continue to use the preset health condition of the target terminal device processing file, to obtain a determination result; and determining whether preset file storage conditions are met according to the judging result.
Fig. 6 is a schematic structural diagram of a terminal device according to an embodiment of the present application. As shown in fig. 6, the terminal device 6 of this embodiment includes: at least one processor 60 (only one processor is shown in fig. 6), a memory 61 and a computer program 62 stored in the memory 61 and executable on the at least one processor 60, the processor 60 implementing the steps in any of the various internet of things based file preservation method embodiments described above when executing the computer program 62.
The terminal device 6 may be a computing device such as a desktop computer, a notebook computer, a palm computer, a mobile phone, etc. The terminal device may include, but is not limited to, a processor 60, a memory 61. It will be appreciated by those skilled in the art that fig. 6 is merely an example of the terminal device 6 and is not meant to be limiting as to the terminal device 6, and may include more or fewer components than shown, or may combine certain components, or different components, such as may also include input-output devices, network access devices, etc.
The processor 60 may be a central processing unit (Central Processing Unit, CPU), the processor 60 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 61 may in some embodiments be an internal storage unit of the terminal device 6, such as a hard disk or a memory of the terminal device 6. The memory 61 may in other embodiments also be an external storage device of the terminal device 6, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the terminal device 6. Further, the memory 61 may also include both an internal storage unit and an external storage device of the terminal device 6. The memory 61 is used for storing an operating device, an application program, a boot loader (BootLoader), data, other programs, etc., such as program codes of the computer program. The memory 61 may also be used for temporarily storing data that has been output or is to be output.
It should be noted that, because the content of information interaction and execution process between the modules is based on the same concept as the method embodiment of the present application, specific functions and technical effects thereof may be referred to in the method embodiment section, and details are not repeated herein.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions. The functional units and modules in the embodiment may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit, where the integrated units may be implemented in a form of hardware or a form of a software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the above device may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
The embodiment of the application also provides a terminal device, which comprises: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, which when executed by the processor performs the steps of any of the various method embodiments described above.
Embodiments of the present application also provide a computer readable storage medium storing a computer program, which when executed by a processor, may implement the steps in the above-described method embodiments.
The embodiments of the present application provide a computer program product which, when run on a terminal device, causes the terminal device to perform the steps of the method embodiments described above.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application implements all or part of the flow of the method of the above embodiments, and may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, where the computer program, when executed by a processor, may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include at least: any entity or device capable of carrying computer program code to an apparatus/terminal device, recording medium, computer Memory, read-Only Memory (ROM), random access Memory (RAM, random Access Memory), electrical carrier signals, telecommunications signals, and software distribution media. Such as a U-disk, removable hard disk, magnetic or optical disk, etc.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (10)

1. The file storage method based on the Internet of things is characterized by comprising the following steps of:
acquiring current time information;
determining whether the external conditions of the target terminal equipment meet preset file storage conditions or not according to the current time information;
if the external condition of the target terminal equipment meets the preset file storage condition, selecting a target communication transmission module from a 4G communication transmission module and a 5G communication transmission module;
transmitting a file to be stored in the target terminal equipment to a cloud storage server through the target communication transmission module, and completing the storage of the file to be stored;
the determining whether the external condition of the target terminal device meets the preset file storage condition according to the current time information comprises the following steps:
determining a target monitoring model from at least two monitoring models according to the current time information;
acquiring current power supply policy information and power consumption information of an area to which the target terminal equipment belongs;
inputting the power supply policy information and the power consumption information of the area of the target terminal equipment into the target monitoring model for processing to obtain target information, wherein the target information is used for describing whether the area of the target terminal meets the condition of pre-power outage, and when the condition of pre-power outage is met, the preset file storage condition is met;
Or determining whether the external condition of the target terminal device meets the preset file storage condition according to the current time information, including:
acquiring health information of a user using the target terminal equipment according to the current time information;
judging whether the health of the user accords with preset health conditions for continuously using the target terminal equipment to process files according to the health information, and obtaining a judging result;
and determining whether a preset file storage condition is met according to the judging result.
2. The file saving method according to claim 1, further comprising, the target information being recorded with a start time of a pre-outage;
determining the residual time of the power failure according to the current time information and the target information;
the step of transmitting the file to be stored in the target terminal device to a cloud storage server through the target communication transmission module to complete the storage of the file to be stored comprises the following steps:
if the remaining time of the distance power failure is smaller than or equal to the first preset remaining time, transmitting the file to be stored in the target terminal equipment to a cloud storage server through at least two target communication transmission modules, and completing the storage of the file to be stored;
And if the remaining time of the distance power failure is larger than the first preset remaining time, transmitting the file to be stored in the target terminal equipment to a cloud storage server through one target communication transmission module, and completing the storage of the file to be stored.
3. The file saving method according to claim 1, further comprising, the target information being recorded with a start time of a pre-outage;
determining the residual time of the power failure according to the current time information and the target information;
acquiring the file size of a file to be stored in the target terminal equipment according to the current time information;
and if the external condition of the target terminal device meets the preset file storage condition, selecting a target communication transmission module from a 4G communication transmission module and a 5G communication transmission module, wherein the method comprises the following steps:
if the external condition of the target terminal equipment meets the preset file storage condition, determining a first transmission time according to the size of the file to be stored and the transmission speed of the 4G communication transmission module, and determining a second transmission time according to the size of the file to be stored and the transmission speed of the 5G communication transmission module;
If the first transmission time and the second transmission time are smaller than or equal to the remaining time of the distance power failure, determining the 4G communication transmission module as the target communication transmission module;
and if the first transmission time and the second transmission time are both longer than the remaining time of the distance power failure, determining the 5G communication transmission module as the target communication transmission module.
4. A method of saving a file according to any one of claims 1 to 3, further comprising:
acquiring the number of reference terminal devices of an intranet in a preset distance range taking the target terminal device as a center according to the current time information;
and if the external condition of the target terminal device meets the preset file storage condition, selecting a target communication transmission module from a 4G communication transmission module and a 5G communication transmission module, wherein the method comprises the following steps:
and if the external condition of the target terminal equipment meets the preset file storage condition and the number of the networked reference terminal equipment is larger than a preset value, taking the 5G communication transmission module as the target communication transmission module.
5. The utility model provides a file preservation system based on thing networking which characterized in that includes:
The acquisition module is used for acquiring current time information;
the determining module is used for determining whether the external conditions of the target terminal equipment meet preset file storage conditions according to the current time information;
the selecting module is used for selecting a target communication transmission module from the 4G communication transmission module and the 5G communication transmission module if the external condition of the target terminal equipment meets the preset file storage condition;
the transmission storage module is used for transmitting the file to be stored in the target terminal equipment to a cloud storage server through the target communication transmission module, so as to finish the storage of the file to be stored;
the determining module is further used for determining a target monitoring model from at least two monitoring models according to the current time information; acquiring current power supply policy information and power consumption information of an area to which the target terminal equipment belongs; inputting the power supply policy information and the power consumption information of the area of the target terminal equipment into the target monitoring model for processing to obtain target information, wherein the target information is used for describing whether the area of the target terminal meets the condition of pre-power outage, and when the condition of pre-power outage is met, the preset file storage condition is met;
Or the acquisition module is further used for acquiring health information of a user using the target terminal device according to the current time information;
the determining module is used for judging whether the user accords with preset health conditions capable of continuously using the target terminal equipment to process files according to the health information, so as to obtain a judging result; and determining whether a preset file storage condition is met according to the judging result.
6. The file retention system of claim 5, further comprising, the target information bearing a start time of a pre-outage;
the determining module is further used for determining the remaining time of the power failure according to the current time information and the target information;
the transmission storage module is configured to transmit a file to be stored in the target terminal device to a cloud storage server through at least two target communication transmission modules if the remaining time of the distance power failure is less than or equal to a first preset remaining time, so as to complete storage of the file to be stored; and if the remaining time of the distance power failure is larger than the first preset remaining time, transmitting the file to be stored in the target terminal equipment to a cloud storage server through one target communication transmission module, and completing the storage of the file to be stored.
7. The file retention system of claim 5, further comprising, the target information bearing a start time of a pre-outage;
the determining module is further used for determining the remaining time of the power failure according to the current time information and the target information;
the acquisition module is further used for acquiring the file size of the file to be stored in the target terminal equipment according to the current time information;
the selection module is configured to determine a first transmission time according to the size of the file to be stored and the transmission speed of the 4G communication transmission module if the external condition of the target terminal device meets the preset file storage condition, and determine a second transmission time according to the size of the file to be stored and the transmission speed of the 5G communication transmission module; if the first transmission time and the second transmission time are smaller than or equal to the remaining time of the distance power failure, determining the 4G communication transmission module as the target communication transmission module; and if the first transmission time and the second transmission time are both longer than the remaining time of the distance power failure, determining the 5G communication transmission module as the target communication transmission module.
8. The file retention system according to any of claims 5-7, further comprising:
the acquisition module is further configured to acquire, according to the current time information, the number of reference terminal devices in an intranet with a preset distance range centered on the target terminal device;
and the selection module is used for taking the 5G communication transmission module as the target communication transmission module if the external condition of the target terminal equipment meets the preset file storage condition and the number of the networked reference terminal equipment is larger than a preset value.
9. A terminal device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, the processor implementing the file saving method according to any one of claims 1 to 4 when executing the computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, implements the file saving method according to any one of claims 1 to 4.
CN202311622354.5A 2023-11-30 2023-11-30 File storage method, system, terminal equipment and storage medium based on Internet of things Active CN117319383B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311622354.5A CN117319383B (en) 2023-11-30 2023-11-30 File storage method, system, terminal equipment and storage medium based on Internet of things

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311622354.5A CN117319383B (en) 2023-11-30 2023-11-30 File storage method, system, terminal equipment and storage medium based on Internet of things

Publications (2)

Publication Number Publication Date
CN117319383A CN117319383A (en) 2023-12-29
CN117319383B true CN117319383B (en) 2024-03-01

Family

ID=89287051

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311622354.5A Active CN117319383B (en) 2023-11-30 2023-11-30 File storage method, system, terminal equipment and storage medium based on Internet of things

Country Status (1)

Country Link
CN (1) CN117319383B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05333969A (en) * 1992-05-28 1993-12-17 Hitachi Ltd Information processor and its operating method in power failure state
WO2009015552A1 (en) * 2007-08-02 2009-02-05 Jiankang Wu Body sign dynamically monitoring system
CN104144175A (en) * 2013-05-06 2014-11-12 腾讯科技(深圳)有限公司 Method, device and system for data migration
CN106066819A (en) * 2016-05-26 2016-11-02 广东欧珀移动通信有限公司 A kind of method and device of backup information
CN106716379A (en) * 2016-11-01 2017-05-24 达闼科技(北京)有限公司 Data processing method, device and terminal device
CN109120645A (en) * 2018-10-25 2019-01-01 北京大米未来科技有限公司 A kind of file uploading method, device, electronic equipment and medium
CN109271363A (en) * 2018-09-17 2019-01-25 平安科技(深圳)有限公司 A kind of method and apparatus of file storage
CN109660639A (en) * 2018-12-11 2019-04-19 深圳市网心科技有限公司 A kind of data uploading method, equipment, system and medium
CN111885437A (en) * 2020-07-21 2020-11-03 中通服软件科技有限公司 Commercial power failure monitoring method, system, equipment and storage medium
CN111917917A (en) * 2020-06-29 2020-11-10 维沃移动通信有限公司 File backup method and device and electronic equipment
CN112333235A (en) * 2020-09-26 2021-02-05 深圳市星谷科技有限公司 Multi-operator multi-network aggregated file transmission method and system and intelligent terminal
CN115309332A (en) * 2022-07-29 2022-11-08 南京酷派软件技术有限公司 File relocation method, client and computer readable storage medium
CN116962441A (en) * 2023-06-27 2023-10-27 腾讯科技(深圳)有限公司 Cloud storage control method and device and cloud storage system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4523772B2 (en) * 2003-12-24 2010-08-11 大日本印刷株式会社 Data storage system using network

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH05333969A (en) * 1992-05-28 1993-12-17 Hitachi Ltd Information processor and its operating method in power failure state
WO2009015552A1 (en) * 2007-08-02 2009-02-05 Jiankang Wu Body sign dynamically monitoring system
CN104144175A (en) * 2013-05-06 2014-11-12 腾讯科技(深圳)有限公司 Method, device and system for data migration
CN106066819A (en) * 2016-05-26 2016-11-02 广东欧珀移动通信有限公司 A kind of method and device of backup information
CN106716379A (en) * 2016-11-01 2017-05-24 达闼科技(北京)有限公司 Data processing method, device and terminal device
CN109271363A (en) * 2018-09-17 2019-01-25 平安科技(深圳)有限公司 A kind of method and apparatus of file storage
CN109120645A (en) * 2018-10-25 2019-01-01 北京大米未来科技有限公司 A kind of file uploading method, device, electronic equipment and medium
CN109660639A (en) * 2018-12-11 2019-04-19 深圳市网心科技有限公司 A kind of data uploading method, equipment, system and medium
CN111917917A (en) * 2020-06-29 2020-11-10 维沃移动通信有限公司 File backup method and device and electronic equipment
CN111885437A (en) * 2020-07-21 2020-11-03 中通服软件科技有限公司 Commercial power failure monitoring method, system, equipment and storage medium
CN112333235A (en) * 2020-09-26 2021-02-05 深圳市星谷科技有限公司 Multi-operator multi-network aggregated file transmission method and system and intelligent terminal
CN115309332A (en) * 2022-07-29 2022-11-08 南京酷派软件技术有限公司 File relocation method, client and computer readable storage medium
CN116962441A (en) * 2023-06-27 2023-10-27 腾讯科技(深圳)有限公司 Cloud storage control method and device and cloud storage system

Also Published As

Publication number Publication date
CN117319383A (en) 2023-12-29

Similar Documents

Publication Publication Date Title
US9743251B2 (en) Adding location names using private frequent location data
CN106682906B (en) Risk identification and service processing method and equipment
CN112100928B (en) Method and device for improving performance of lithium ion battery based on temperature
CN114610475A (en) Training method of intelligent resource arrangement model
CN104184601A (en) Obtaining method and device for user online time
CN117319383B (en) File storage method, system, terminal equipment and storage medium based on Internet of things
CN111159009B (en) Pressure testing method and device for log service system
CN110008980B (en) Identification model generation method, identification device, identification equipment and storage medium
CN112560939A (en) Model verification method and device and computer equipment
CN112749308A (en) Data labeling method and device and electronic equipment
CN114997310A (en) Environment-friendly monitoring data processing method and system
EP3751500B1 (en) System and method for technology recommendations
CN103942125A (en) Automatic backup method and system
CN112488141B (en) Method and device for determining application range of Internet of things card and computer readable storage medium
CN111198986B (en) Information transmission method, device, electronic equipment and storage medium
CN103856535A (en) Method and device for obtaining user data
CN109308331B (en) Patent transaction recommendation method and device
CN112560938A (en) Model training method and device and computer equipment
CN111898013A (en) Website monitoring method and device
CN112800068B (en) Method and device for automatically processing energy metering data
CN117076254A (en) Temperature detection method, control method, device and equipment for heating module
CN111338921A (en) System performance prediction method and device, computer equipment and storage medium
CN114186845A (en) Method and device for executing index calculation task at fixed time
CN116862264A (en) Rating method, rating system, electronic equipment and computer readable storage medium
CN117407396A (en) Report data processing method and device, computer equipment and storage medium

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