File storage method, system, terminal device and storage medium based on Internet of Things

By obtaining the terminal device location and base station information, and awakening the adapted communication module for file transmission, the problem that terminal devices cannot efficiently save files during field work is solved, and efficient file transmission and power consumption optimization are achieved.

CN118714130BActive Publication Date: 2024-11-15GUANGDONG POWER GRID CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411099930.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-11-15
Estimated Expiration
2044-08-12

AI Technical Summary

Technical Problem

When working in the field, the terminal equipment cannot complete the transfer and storage of files in an adaptable power consumption manner, resulting in inefficient file transfer.

Method used

By obtaining the current location information of the target terminal, obtaining the construction approval information of the surrounding base stations, determining the distance between the base station and the terminal device, and awakening the 4G or 5G communication module according to the distance, realizing efficient transmission of files to the cloud server.

Benefits of technology

It ensures that the terminal equipment can complete the transfer and storage of files in an appropriate power consumption manner when working in the field, improves the efficiency and reliability of file transfer, and facilitates backend personnel to understand the work progress in a timely manner.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118714130B_ABST
    Figure CN118714130B_ABST
Patent Text Reader

Abstract

The present application relates to the field of file storage technology, and provides a file saving method, system, terminal device and storage medium based on the Internet of Things. The method includes: obtaining the current location information of the target terminal, in which there is a target file to be stored; according to the current location information, obtaining the base station construction approval information of building a base station within the first preset range centered on the target terminal; according to the base station construction approval information and the current location information, determining the distance between each base station within the first preset range and the target terminal; according to the base station communication type of the target base station whose distance to the target terminal meets the preset distance condition, waking up the target communication module in the target terminal; transferring the target file to the cloud server through the target communication module to complete the saving of the target file. Through the present application scheme, files can be better saved when working in the field.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of file storage technology, and in particular to a file storage method, system, terminal device and storage medium based on the Internet of Things. Background Art

[0002] When carrying out power grid-related work in the field, as the work progresses, work files that need to be uploaded are often generated so that back-end personnel can understand the working status of the field power grid at the first time, form response measures in a timely manner, and cooperate with the development of field work.

[0003] However, when working in the field, terminal devices are often unable to complete the transmission and storage of files in an adaptive power consumption manner. Summary of the invention

[0004] The purpose of this application is to provide a file storage method, system, terminal device and storage medium based on the Internet of Things, aiming to solve the technical problem that the terminal device cannot complete the transmission and storage of files in an adaptive power consumption manner when working in the field.

[0005] In a first aspect, the present application provides a file storage method based on the Internet of Things, comprising:

[0006] Acquiring current location information of a target terminal, where a target file to be stored exists;

[0007] According to the current location information, obtaining base station construction approval information for building a base station within a first preset range centered on the target terminal, the base station construction approval information being used to describe the construction location and base station communication type of each base station approved for construction in history;

[0008] Determine, according to the base station construction approval information and the current location information, the distance between each base station within the first preset range and the target terminal;

[0009] According to the base station communication type of the target base station whose distance to the target terminal meets the preset distance condition, waking up the target communication module in the target terminal, wherein the target communication module is one of a 4G communication module or a 5G communication module;

[0010] The target file is transmitted to the cloud server through the target communication module to complete the storage of the target file.

[0011] The file saving method based on the Internet of Things provided in the embodiment of the present application first obtains the current location information of the target terminal, so as to obtain the base station construction approval information within the first preset range centered on the target terminal based on the current location information, thereby understanding the base station location and base station communication type around the target terminal, and determining the distance between each base station and the target terminal within the first preset range of the target terminal. Then, according to the base station communication type of the target base station whose distance from the target terminal meets the preset distance condition, the 4G communication module or 5G communication module in the target terminal is awakened, and the target file is transmitted to the cloud server based on the awakened communication module to complete the saving of the target file, thereby solving the technical problem that the terminal device cannot complete the transmission and saving of files in an adaptive power consumption mode when working in the field.

[0012] In a second aspect, the present application provides a file storage system based on the Internet of Things, characterized in that it includes:

[0013] A first acquisition module, used for acquiring current location information of a target terminal, where a target file to be stored exists;

[0014] A second acquisition module is used to acquire, according to the current location information, base station construction approval information of building a base station within a first preset range centered on the target terminal, wherein the base station construction approval information is used to describe the construction location and base station communication type of each base station approved for construction in history;

[0015] a determination module, configured to determine the distance between each base station within the first preset range and the target terminal according to the base station construction approval information and the current location information;

[0016] A wake-up module, used to wake up a target communication module in the target terminal according to a base station communication type of a target base station whose distance from the target terminal meets a preset distance condition, wherein the target communication module is one of a 4G communication module and a 5G communication module;

[0017] The saving module is used to transmit the target file to the cloud server through the target communication module to complete the saving of the target file.

[0018] In a third aspect, the present application provides a terminal device, characterized in that it includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the file saving method when executing the computer program.

[0019] In a fourth aspect, the present application provides a computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program, and the computer program implements the file saving method when executed by a processor.

[0020] It can be understood that the beneficial effects of the second to fourth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0022] Figure 1 This is a flowchart for implementing the file storage method based on the Internet of Things provided in an embodiment of the present application.

[0023] Figure 2 An application scenario diagram of a file saving method based on the Internet of Things provided in one embodiment of the present application.

[0024] Figure 3 This is a flowchart of an implementation method of a file storage method based on the Internet of Things provided in one embodiment of the present application.

[0025] Figure 4 This is a flowchart for the specific implementation of step S22 of the file saving method based on the Internet of Things provided in an embodiment of the present application.

[0026] Figure 5 A flowchart of a specific implementation of step S13 of a file saving method based on the Internet of Things in another embodiment provided by one embodiment of the present application.

[0027] Figure 6 This is a structural block diagram of the file storage system based on the Internet of Things provided in an embodiment of the present application.

[0028] Figure 7 A structural diagram of a terminal device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0029] In the following description, specific details such as specific device structures and technologies are provided for illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application can also be implemented in other embodiments without these specific details.

[0030] In order to illustrate the technical solution described in this application, a specific embodiment is provided below for illustration.

[0031] The present application provides a file storage method based on the Internet of Things, so that when working in the field, the terminal device can complete the transmission and storage of files in an adaptive power consumption manner.

[0032] The file saving method provided in the embodiment of the present application can be applied to terminal devices or servers including but not limited to mobile phones, tablet computers, laptop computers, ultra mobile personal computers (ULPCS), netbooks, personal digital assistants (PDAs), etc. The embodiment of the present application does not impose any restrictions on the specific type of terminal devices or servers.

[0033] See also Figure 1 , Figure 1 The present invention provides a method for saving files in the Internet of Things, and the implementation flow chart includes the following steps:

[0034] S11: Acquire current location information of a target terminal, where a target file to be stored exists.

[0035] In this embodiment, the target terminal refers to a device that is used to assist the user in carrying out work, can operate to form files, and can connect to the Internet.

[0036] For example, a tablet computer or a mobile phone can be used by a user to generate documents based on the status of the work tasks being performed, or to use a target terminal to take photos of the current status of the work tasks being performed, or to use a target terminal to record problems that exist in the process of performing the current work tasks.

[0037] The current location information refers to the physical location of the target terminal.

[0038] For example, combined with Figure 2 The target terminal is located in the mountains 50 kilometers away from the library in City A.

[0039] The target file refers to the file generated by the user using the target terminal or the device connected to the target terminal device after processing the work task.

[0040] It is understandable that the types of target files include but are not limited to documents, pictures, videos, and recordings. The current location information can be obtained by the target terminal using the positioning technology in the prior art, such as using GPS positioning technology or Beidou system to obtain the current location information of the target terminal.

[0041] In this embodiment, in order to better save the file, the current location information of the target terminal is obtained, so that the current location information of the target terminal can be used as a reference to better select an adaptive power consumption mode to complete the transmission and saving of the file.

[0042] As for when to obtain the current location information, it includes but is not limited to the following scenarios:

[0043] Scenario 1: After completing all tasks in the task chain through the target terminal, obtain the current location information of the target terminal.

[0044] Since the user of the target terminal may need to perform multiple work tasks included in the task chain, and in order to facilitate the back-end to timely understand the status of the user of the target terminal in performing the tasks, the current location information of the target terminal is obtained through positioning software such as GPS or Beidou navigation system, so that the target file formed after executing the task can be fed back based on the current location information.

[0045] Scenario 2: After completing a task in the task chain through the target terminal, obtain the current location information of the target terminal.

[0046] Since the user of the target terminal may need to perform multiple work tasks included in the task chain, and in order to facilitate the back-end to timely understand the status of the user of the target terminal in performing the tasks, the current location information of the target terminal is obtained so that the target file formed after executing the task can be fed back based on the current location information.

[0047] Scenario 3: After determining that the location of the target terminal has changed, obtain the current location information of the target terminal.

[0048] In order to facilitate the backend to timely understand the task execution status of the user of the target terminal, after determining that the location of the target terminal has changed, the current location information of the target terminal is obtained so that the target file formed after the task execution can be fed back based on the current location information.

[0049] Scenario 4: When the physical environment image where the target terminal is located is obtained and it is determined that the approximation between the physical environment image and a preset physical environment image is greater than or equal to the preset approximation, the current location information of the target terminal is obtained.

[0050] In order to facilitate the back-end to timely understand the situation of the user of the target terminal performing the task, by obtaining the physical environment image of the target terminal and determining that the similarity between the physical environment image and the preset physical environment image is greater than or equal to the preset similarity, the current location information of the target terminal is obtained, so that the target file formed after executing the task can be fed back based on the current location information.

[0051] Scenario 5: When it is determined that the time node of the first preset period has arrived, the current location information of the target terminal is obtained.

[0052] S12: Acquire base station construction approval information for constructing a base station within a first preset range centered on the target terminal according to the current location information, wherein the base station construction approval information is used to describe the construction location and base station communication type of each base station approved for construction in history.

[0053] In this embodiment, in order to determine the base station used to transmit the target file in the target terminal to the server and wake up the target communication module in the target terminal, after obtaining the current location information of the target terminal, the base station construction approval information of the base station built within the first preset range centered on the target terminal is obtained, so that the base station location and base station communication type of the base stations within the first preset range centered on the target terminal can be understood through the base station construction approval information, so as to better adapt the appropriate file transfer method later.

[0054] The base station communication type refers to the network standard that the base station corresponds to when the base station is built, for example, 2G, 3G, 4G or 5G.

[0055] It is understandable that in order to adapt to different environments and subject to the conditions when constructing a base station, a base station device may support one network standard or multiple network standards.

[0056] In one embodiment, in order to facilitate more efficient file storage in the field, the base station construction approval information is pre-stored in the target terminal or in an external storage device that can be connected to the target terminal, such as preset storage in a USB flash drive.

[0057] Example, combined Figure 2 Based on the current location information of the target terminal, after obtaining the base station construction approval information for building a base station within a first preset range centered on the target terminal, it is determined that there are base stations A, B and C within the first preset range, and it is further learned that the communication type of base station A is 4G, the communication type of base station B is 5G and 4G, and the communication type of base station C is 2G, 3G, and 4G.

[0058] S13: Determine the distance between each base station within the first preset range and the target terminal according to the base station construction approval information and the current location information.

[0059] In this embodiment, in order to transfer and save files more efficiently, the target file is transmitted to the cloud server, so that the back-end staff can check the task execution status of the user of the target terminal. According to the construction location of each base station recorded in the base station construction approval information and the current location information, the distance between each base station within the first preset range and the target terminal is determined respectively.

[0060] Example, combined Figure 2, assuming that the spatial coordinates of the current position of the target terminal are (0,0,0), the spatial coordinates of base station A are (1,3,1), the spatial coordinates of base station B are (3,3,1), and the spatial coordinates of base station C are (3,0,0). Based on this, according to the calculation method between two points in the prior art, the straight-line distances between the target terminal and base stations A, B, and C are calculated as follows: , , 3, the unit is km (kilometer).

[0061] S14: According to the base station communication type of the target base station whose distance to the target terminal meets the preset distance condition, a target communication module in the target terminal is awakened, and the target communication module is one of a 4G communication module and a 5G communication module.

[0062] In this embodiment, in order to be able to transfer the target file to the cloud server through the appropriate base station and the appropriate communication module in the target terminal, after determining the distance between each base station within the first preset range and the target terminal, it is judged whether the distance between each base station and the target terminal meets the requirements according to the preset distance condition, and the base station communication type of the target base station whose distance to the target terminal meets the preset distance condition is used to wake up the target communication module in the target terminal.

[0063] The preset distance condition means that the distance to the target terminal is less than or equal to the preset distance.

[0064] Example, combined Figure 2 , the straight-line distances between the target terminal and base station A, base station B, and base station C are , , 3km, and the preset distance is 3km, so it can be determined that only the distance between base station C and the target terminal meets the preset distance condition, so the target communication module in the target terminal can be awakened according to the base station communication type of base station C. Among them, the base station communication type of base station C includes 2G communication, 3G communication and 4G communication, so the 4G communication module in the target terminal will be awakened, so as to transfer the target file to the cloud server through the 4G communication module in the target terminal to complete the file storage.

[0065] It is understandable that, due to the lack of equipment capable of supplying charging during field operations, the target communication module in the target terminal will be in a dormant state before waking up the target communication module to reduce power consumption.

[0066] S15: The target file is transmitted to the cloud server through the target communication module to complete the storage of the target file.

[0067] In this embodiment, in order to enable the target terminal to complete the transmission and storage of files in an adaptive power consumption manner when carrying out work in the field, the target file is transmitted to the cloud server through the awakened target communication module to complete the storage of the target file. This also makes it convenient for the background staff to understand the work progress of the user of the target terminal at the first time, and provides information reference for the subsequent development of the work.

[0068] Combination Figure 3 In one embodiment of the present application, the file saving method of the present application further includes:

[0069] S21: acquiring current time information and a physical working environment within a second preset range centered on the target terminal, wherein the physical working environment is associated with a task chain, wherein the task chain includes a plurality of work content themes executed in a work plan sequence, and each work content theme is associated with a work task execution time;

[0070] S22: acquiring the work content theme corresponding to the target file according to the task chain associated with the physical work environment and the current time information;

[0071] S23: Obtain the file storage location according to the work content theme.

[0072] In this embodiment, the current time information refers to the reference time of the space where the target terminal is located. For example, the target terminal is located in China, and the reference time is Beijing time, such as 9:00 am on April 1, 2024.

[0073] The work content topic refers to the brief work content information corresponding to the sub-tasks included in the work plan. For example, the work plan is to assume a power grid in Valley A, and the corresponding sub-tasks include erecting a power grid rack and laying cables on the power grid rack. The corresponding work content topics include two, namely: assuming a power grid rack and laying cables on the power grid rack.

[0074] The physical working environment refers to the external environment where the target terminal is located. For example, the user of the target terminal Figure 2 The task of laying out the power grid is performed in the valley shown, and the corresponding physical working environment includes but is not limited to the natural environment and the buildings, various equipment, base stations, etc. included in the environment.

[0075] It is understandable that, since the physical working environments may be different, the task chains managed by different physical working environments may be different.

[0076] In order to better store the target file, the current time and the physical working environment within a second preset range centered on the target terminal are obtained, so as to understand the task chain executed by the user of the target terminal, and then understand that the task chain contains multiple work content themes executed in the order of the work plan, and the work task execution time associated with each work content theme, so as to facilitate matching the work task execution time of each work content theme contained in the task chain associated with the physical working environment based on the current time information, and based on the matching situation, determine the work content theme corresponding to the target file, and finally, according to the work content theme, obtain a predetermined file storage location for storing files associated with the work content theme.

[0077] Among them, when the current time information is matched with the work task execution time of each work content theme included in the task chain associated with the physical work environment, if the current time information successfully matches the work task execution time corresponding to the work content theme, it means that the user of the current target terminal is executing the work task corresponding to the work content theme. On the contrary, if the match fails, it means that the work task corresponding to the work content theme being executed by the user of the current target terminal is different from the work content theme corresponding to the work task execution time of the matching operation with the current time information.

[0078] For example, the task chain contains multiple work content themes that are executed in the order of the work plan, namely work content theme A and work content theme B, and the execution order is: execute work content theme A first, then work content theme B. Among them, the work task execution time of work content theme A is from 10:00 to 12:00 on February 1, 2024, and the work task execution time of work content theme B is from 14:00 to 18:00 on February 1, 2024. In addition, the current time information obtained is 11:00 am on February 1, 2024. Match the current time information with the work task execution time associated with work content theme A and the work task execution time of work content theme B respectively, and determine that the current time information matches the work task execution time of work content theme A successfully, that is, determine that the target file formed in the target terminal is the file corresponding to work content theme A. Therefore, in order to better store the target file, according to the work content theme A corresponding to the target file, the preset file storage location is obtained, for example, the storage location of the file associated with the preset work content theme A is location 1 in the cloud server.

[0079] The target file is transmitted to the cloud server through the target communication module to complete the storage of the target file, including:

[0080] The target file is transmitted to the cloud server through the target communication module and stored in the file storage location to complete the saving of the target file.

[0081] In this embodiment, after the file storage location is determined, the target file is transmitted to the cloud server through the awakened target communication module and stored in the file storage location, thereby completing the saving of the target file.

[0082] Combination Figure 4 In one embodiment of the present application, obtaining the work content theme corresponding to the target file according to the task chain and current time information associated with the physical work environment includes:

[0083] S31: determining, according to the physical working environment, a plurality of work task files of a user using the target terminal, each work task file recording a work task and a work task execution time;

[0084] S32: Match the current time information with the work task execution time of each work task file respectively to obtain multiple matching results;

[0085] S33: determining a target work task file from a plurality of work task files according to a plurality of matching results, wherein the work task file corresponding to the matching result indicating successful matching is the target work task file;

[0086] S34: Determine the work content theme according to the target work task file.

[0087] In this embodiment, in order to better determine the work content theme and the file storage location, after obtaining the physical work environment, multiple work task files of the user using the target terminal are determined according to the physical work environment, so that the work tasks and work task execution time in each work task file can be understood through each work task file. Further, the current time information is matched with the work task execution time of each work task file respectively to obtain multiple matching results, and the target work task file is determined from the multiple work task files according to the multiple matching results, that is, the work task file corresponding to the matching result indicating a successful match is determined as the target work task file. Then, according to the work tasks in the target work task file, the work content theme corresponding to the target work task file is determined.

[0088] It can be understood that the work task execution time recorded in the work task file is the same as the work task execution time associated with the work content theme determined based on the work task file.

[0089] Combination Figure 5 In one embodiment of the present application, obtaining base station construction approval information for constructing a base station within a first preset range centered on the target terminal according to the current location information includes:

[0090] S41: Determine the administrator information of the region where the target terminal is located according to the current location information;

[0091] S42: According to the manager information, obtaining base station construction approval information for constructing a base station within a first preset range centered on the target terminal from an information server corresponding to the manager information.

[0092] In this embodiment, in order to better determine the base station situation in the area where the target terminal is located, after obtaining the current location information of the target terminal, the manager information of the area where the target terminal is located is obtained based on the current location information, so that according to the manager information, the base station construction approval information for constructing a base station within a first preset range centered on the target terminal is obtained from the information server corresponding to the manager information.

[0093] The manager information refers to the unit that manages all base station construction in the region where the target terminal is located, for example, the Communications Administration Bureau or the Construction Bureau that manages the administrative approval of base station construction in region A.

[0094] In one embodiment, based on the manager information, base station construction approval information for constructing a base station within a first preset range centered on the target terminal is obtained from a webpage associated with an information server corresponding to the manager information.

[0095] In one embodiment of the present application, determining the distance between each base station within the first preset range and the target terminal according to the base station construction approval information and the current location information includes:

[0096] According to the base station construction approval information, obtain the operation status information of each base station within the first preset range and the number of terminals accessing the base station;

[0097] For each base station, if the operation status information indicates that the base station is in a normal operation state and the number of terminals accessing the base station is less than or equal to a preset terminal number value, the distance between the target terminal and the base station is determined.

[0098] In this embodiment, in order to more efficiently transfer the target file to the cloud server and reduce the workload of calculation, after obtaining the base station construction approval information and understanding the locations of each base station in the first preset range based on the base station construction approval information, the operation status information of each base station in the first preset range and the number of terminals accessing the base station are also obtained, so as to understand the base station in normal operation and the number of terminals accessing the base station, so as to avoid queuing for too long when multiple terminals transmit data through the same base station, resulting in too low efficiency in saving the target file. Further, for each base station, if the operation status information indicates that the base station is in normal operation and the number of terminals accessing the base station is less than or equal to the preset terminal number value, it means that the transmission of the qualified base station will be relatively efficient, so the distance between the target terminal and the base station is further determined, so as to determine whether the qualified base station is within the communication selection range of the target terminal based on the determined distance.

[0099] It is understandable that for each base station, if the operation status information indicates that the base station is in a normal operating state, and the number of terminals accessing the base station is greater than the preset terminal number value, it means that when data is transmitted through the base station, congestion or waiting may occur during data transmission; for each base station, if the operation status information indicates that the base station is in an abnormal operation state, it means that when communicating through the base station, communication may not be successful and time is wasted. Therefore, for base stations with these two situations, they are not base stations within the selection range, and the target communication module in the target terminal will not be awakened based on the base station communication type of the base station with these two situations.

[0100] In one embodiment of the present application, the target terminal includes two data transmission modules, namely a 4G communication module and a 5G communication module;

[0101] The step of waking up a target communication module in the target terminal according to a base station communication type of a target base station whose distance to the target terminal meets a preset distance condition comprises:

[0102] According to the base station communication type of the target base station, obtaining the remaining power of the target terminal and the size value of the target file;

[0103] If the base station communication type of the target base station is only 4G communication, the 4G communication module in the target terminal is used as the target communication module, and the target communication module is awakened according to the base station communication type of the target base station;

[0104] If the base station communication type of the target base station is only 5G communication, the 5G communication module in the target terminal is used as the target communication module, and the target communication module is woken up according to the base station communication type of the target base station;

[0105] If the base station communication type of the target base station includes 4G communication and 5G communication, and the remaining power of the target terminal is less than a preset power value, and the size value of the target file is greater than or equal to the preset size value, the 5G communication module in the target terminal is used as the target communication module, and the target communication module is awakened;

[0106] If the base station communication type of the target base station includes 4G communication and 5G communication, and the remaining power of the target terminal is less than a preset power value, and the size value of the target file is less than a preset size value, the 4G communication module in the target terminal is used as the target communication module, and the target communication module is awakened according to the base station communication type of the target base station;

[0107] If the base station communication type of the target base station includes 4G communication and 5G communication, and the remaining power of the target terminal is greater than or equal to a preset power value, and the size value of the target file is greater than or equal to a preset size value, the 5G communication module in the target terminal is used as the target communication module, and the target communication module is awakened according to the base station communication type of the target base station;

[0108] If the base station communication type of the target base station includes 4G communication and 5G communication, and the remaining power of the target terminal is greater than or equal to the preset power value, and the size value of the target file is less than the preset size value, the 4G communication module in the target terminal is used as the target communication module, and the target communication module is woken up according to the base station communication type of the target base station.

[0109] In this embodiment, since the power consumption corresponding to different data communication transmission modes will also be different, the remaining power of the target terminal and the size value of the target file are first obtained according to the base station communication type of the target base station, so as to wake up the target communication module in the target terminal based on the remaining power of the target terminal and the size value of the target file, as well as the base station communication type of the target base station, and finally transmit the target file to the cloud server through the target communication module to complete the saving of the target file.

[0110] It is understandable that the preset size value can be preset according to the requirements. For example, the preset size value is set to 500M.

[0111] In one embodiment, if none of the base stations located within a first preset range centered on the target terminal meets the preset distance condition, the latest location information of the target terminal is periodically obtained according to a second preset period, and based on the latest location information, the base station construction approval information and the current location information, the distance between each base station within the first preset range and the target terminal is determined, and it is determined whether there is a target base station that meets the preset distance condition.

[0112] If there is a target base station that meets the preset distance condition, the target communication module in the target terminal is awakened according to the base station communication type of the target base station whose distance to the target terminal meets the preset distance condition.

[0113] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0114] Corresponding to the file saving method described in the above embodiment, Figure 6 A structural block diagram of a file storage system based on the Internet of Things provided in an embodiment of the present application is shown. For ease of explanation, only the parts related to the embodiment of the present application are shown.

[0115] Reference Figure 6 , the file storage system 100 based on the Internet of Things includes:

[0116] A first acquisition module 101 is used to acquire current location information of a target terminal, where a target file to be stored exists;

[0117] A second acquisition module 102 is used to acquire, based on the current location information, base station construction approval information for building a base station within a first preset range centered on the target terminal, the base station construction approval information being used to describe the construction location and base station communication type of each base station approved for construction in history;

[0118] A determination module 103, configured to determine the distance between each base station within the first preset range and the target terminal according to the base station construction approval information and the current location information;

[0119] A wake-up module 104 is used to wake up a target communication module in the target terminal according to a base station communication type of a target base station whose distance from the target terminal meets a preset distance condition, wherein the target communication module is one of a 4G communication module and a 5G communication module;

[0120] The saving module 105 is used to transmit the target file to the cloud server through the target communication module to complete the saving of the target file.

[0121] In one embodiment, a third acquisition module is used to acquire current time information and a physical work environment within a second preset range centered on the target terminal, wherein the physical work environment is associated with a task chain, wherein the task chain includes a plurality of work content themes executed in a work plan sequence, and each work content theme is associated with a work task execution time;

[0122] A fourth acquisition module is used to acquire the work content theme corresponding to the target file according to the task chain associated with the physical work environment and the current time information; and acquire the file storage location according to the work content theme;

[0123] The saving module 105 is used to transmit the target file to the cloud server through the target communication module and store it in the file storage location to complete the saving of the target file.

[0124] In one embodiment, the fourth acquisition module is also used to determine multiple work task files of the user using the target terminal based on the physical working environment, each work task file recording the work task and the work task execution time; match the current time information with the work task execution time of each work task file respectively to obtain multiple matching results; determine the target work task file from the multiple work task files based on the multiple matching results, wherein the work task file corresponding to the matching result indicating a successful match is the target work task file; determine the work content theme based on the target work task file.

[0125] In one embodiment, the second acquisition module 102 is also used to determine the administrator information of the area where the target terminal is located based on the current location information; and based on the administrator information, obtain base station construction approval information for constructing a base station within a first preset range centered on the target terminal from an information server corresponding to the administrator information.

[0126] In one embodiment, the determination module 103 is also used to obtain the operating status information of each base station within the first preset range and the number of terminals accessing the base station based on the base station construction approval information; for each base station, if the operating status information indicates that the base station is in a normal operating state and the number of terminals accessing the base station is less than or equal to the preset terminal number value, then the distance between the target terminal and the base station is determined.

[0127] In one embodiment, the target terminal includes two data transmission modules, namely a 4G communication module and a 5G communication module;

[0128] The second acquisition module 102 is further used to acquire the remaining power of the target terminal and the size value of the target file according to the base station communication type of the target base station;

[0129] The wake-up module 104 is also used for, if the base station communication type of the target base station is only 4G communication, then the 4G communication module in the target terminal is used as the target communication module, and the target communication module is woken up according to the base station communication type of the target base station; if the base station communication type of the target base station is only 5G communication, then the 5G communication module in the target terminal is used as the target communication module, and the target communication module is woken up according to the base station communication type of the target base station; if the base station communication types of the target base station include 4G communication and 5G communication, and the remaining power of the target terminal is less than the preset power value, and the size value of the target file is greater than or equal to the preset size value, then the 5G communication module in the target terminal is used as the target communication module, and the target communication module is woken up; if the base station communication types of the target base station include 4G communication and 5G communication, and the remaining power of the target terminal is less than the preset power value, and the If the size value of the target file is less than the preset size value, the 4G communication module in the target terminal is used as the target communication module, and the target communication module is awakened according to the base station communication type of the target base station; if the base station communication types of the target base station include 4G communication and 5G communication, and the remaining power of the target terminal is greater than or equal to the preset power value, and the size value of the target file is greater than or equal to the preset size value, the 5G communication module in the target terminal is used as the target communication module, and the target communication module is awakened according to the base station communication type of the target base station; if the base station communication types of the target base station include 4G communication and 5G communication, and the remaining power of the target terminal is greater than or equal to the preset power value, and the size value of the target file is less than the preset size value, the 4G communication module in the target terminal is used as the target communication module, and the target communication module is awakened according to the base station communication type of the target base station.

[0130] Figure 7 This is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application. Figure 7 As shown, the terminal device 6 of this embodiment includes: at least one processor 60 ( Figure 7 Only one processor is shown), a memory 61, and a computer program 62 stored in the memory 61 and executable on the at least one processor 60, wherein the processor 60 implements the steps of any of the above-mentioned file saving method embodiments when executing the computer program 62.

[0131] The terminal device 6 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The terminal device may include, but is not limited to, a processor 60 and a memory 61. Those skilled in the art will appreciate that Figure 7It is only an example of the terminal device 6 and does not constitute a limitation on the terminal device 6. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, it may also include input and output devices, network access devices, etc.

[0132] The processor 60 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0133] In some embodiments, the memory 61 may be an internal storage unit of the terminal device 6, such as a hard disk or memory of the terminal device 6. In other embodiments, the memory 61 may 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 card, etc. equipped 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 to store operating devices, application programs, boot loaders (BootLoader), data and other programs, such as program codes of the computer program, etc. The memory 61 may also be used to temporarily store data that has been output or is to be output.

[0134] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0135] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned device can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0136] An embodiment of the present application also provides a terminal device, which includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, wherein the processor implements the steps in any of the above-mentioned method embodiments when executing the computer program.

[0137] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0138] An embodiment of the present application provides a computer program product. When the computer program product is run on a terminal device, the terminal device can implement the steps in the above-mentioned method embodiments when executing the computer program product.

[0139] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the device / terminal device, a recording medium, a computer memory, a read-only memory (ROM, Read Only Memory), a random access memory (RAM, Random Access Memory), an electric carrier signal, a telecommunication signal, and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a disk or an optical disk.

[0140] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0141] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0142] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A file storage method based on the Internet of Things, characterized in that: include: Acquiring current location information of a target terminal, where a target file to be stored exists; Wherein, when the physical environment image where the target terminal is located is obtained and it is determined that the similarity between the physical environment image and the preset physical environment image is greater than or equal to the preset similarity, the current location information of the target terminal is obtained; According to the current location information, obtaining base station construction approval information for building a base station within a first preset range centered on the target terminal, the base station construction approval information being used to describe the construction location and base station communication type of each base station approved for construction in history; Determine, according to the base station construction approval information and the current location information, the distance between each base station within the first preset range and the target terminal; According to the base station communication type of the target base station whose distance from the target terminal meets the preset distance condition, waking up the target communication module in the target terminal, the target communication module being one of a 4G communication module or a 5G communication module, wherein before waking up the target communication module, the target communication module in the target terminal is in a dormant state; The target file is transmitted to the cloud server through the target communication module to complete the storage of the target file; Wherein, current time information and a physical working environment within a second preset range centered on the target terminal are obtained, wherein the physical working environment is associated with a task chain, wherein the task chain includes a plurality of work content themes executed in a work plan sequence, and each work content theme is associated with a work task execution time; Acquire the work content theme corresponding to the target file according to the task chain associated with the physical work environment and the current time information; According to the work content theme, obtain the file storage location; The target file is transmitted to the cloud server through the target communication module to complete the storage of the target file, including: The target file is transmitted to the cloud server through the target communication module and stored in the file storage location to complete the storage of the target file; The acquiring the work content theme corresponding to the target file according to the task chain associated with the physical work environment and the current time information includes: Determine, according to the physical working environment, a plurality of work task files of a user using the target terminal, each work task file recording a work task and a work task execution time; Matching the current time information with the work task execution time of each work task file respectively to obtain multiple matching results; Determine a target work task file from a plurality of work task files according to a plurality of matching results, wherein the work task file corresponding to the matching result indicating successful matching is the target work task file; Determine the work content theme based on the target work task file.

2. The file storage method according to claim 1, characterized in that: The acquiring, according to the current location information, base station construction approval information for constructing a base station within a first preset range centered on the target terminal includes: Determining the administrator information of the region where the target terminal is located according to the current location information; According to the manager information, base station construction approval information for constructing a base station within a first preset range centered on the target terminal is obtained from an information server corresponding to the manager information.

3. The file storage method according to claim 1, characterized in that: The determining, according to the base station construction approval information and the current location information, the distance between each base station within the first preset range and the target terminal includes: According to the base station construction approval information, obtain the operation status information of each base station within the first preset range and the number of terminals accessing the base station; For each base station, if the operation status information indicates that the base station is in a normal operation state and the number of terminals accessing the base station is less than or equal to a preset terminal number value, the distance between the target terminal and the base station is determined.

4. The file storage method according to any one of claims 1 to 3, characterized in that: The target terminal includes two data transmission modules: a 4G communication module and a 5G communication module; The step of waking up a target communication module in the target terminal according to a base station communication type of a target base station whose distance to the target terminal meets a preset distance condition comprises: According to the base station communication type of the target base station, obtaining the remaining power of the target terminal and the size value of the target file; If the base station communication type of the target base station is only 4G communication, the 4G communication module in the target terminal is used as the target communication module, and the target communication module is awakened according to the base station communication type of the target base station; If the base station communication type of the target base station is only 5G communication, the 5G communication module in the target terminal is used as the target communication module, and the target communication module is woken up according to the base station communication type of the target base station; If the base station communication type of the target base station includes 4G communication and 5G communication, and the remaining power of the target terminal is less than a preset power value, and the size value of the target file is greater than or equal to the preset size value, the 5G communication module in the target terminal is used as the target communication module, and the target communication module is awakened; If the base station communication type of the target base station includes 4G communication and 5G communication, and the remaining power of the target terminal is less than a preset power value, and the size value of the target file is less than a preset size value, the 4G communication module in the target terminal is used as the target communication module, and the target communication module is awakened according to the base station communication type of the target base station; If the base station communication type of the target base station includes 4G communication and 5G communication, and the remaining power of the target terminal is greater than or equal to a preset power value, and the size value of the target file is greater than or equal to a preset size value, the 5G communication module in the target terminal is used as the target communication module, and the target communication module is awakened according to the base station communication type of the target base station; If the base station communication type of the target base station includes 4G communication and 5G communication, and the remaining power of the target terminal is greater than or equal to the preset power value, and the size value of the target file is less than the preset size value, the 4G communication module in the target terminal is used as the target communication module, and the target communication module is woken up according to the base station communication type of the target base station.

5. A file storage system based on the Internet of Things, characterized in that: include: A first acquisition module is used to acquire current location information of a target terminal, wherein the target terminal has a target file to be stored, wherein the current location information of the target terminal is acquired when an image of a physical environment in which the target terminal is located is acquired and it is determined that the degree of similarity between the physical environment image and a preset physical environment image is greater than or equal to a preset degree of similarity; A second acquisition module is used to acquire, according to the current location information, base station construction approval information of building a base station within a first preset range centered on the target terminal, wherein the base station construction approval information is used to describe the construction location and base station communication type of each base station approved for construction in history; a determination module, configured to determine the distance between each base station within the first preset range and the target terminal according to the base station construction approval information and the current location information; A wake-up module, used to wake up a target communication module in the target terminal according to a base station communication type of a target base station whose distance from the target terminal meets a preset distance condition, wherein the target communication module is one of a 4G communication module or a 5G communication module, wherein before waking up the target communication module, the target communication module in the target terminal is in a dormant state; A saving module, used to transmit the target file to the cloud server through the target communication module to complete the saving of the target file; The third acquisition module is used to acquire current time information and a physical working environment within a second preset range centered on the target terminal, wherein the physical working environment is associated with a task chain, wherein the task chain includes a plurality of work content themes executed in a work plan sequence, and each work content theme is associated with a work task execution time; A fourth acquisition module is used to acquire the work content theme corresponding to the target file according to the task chain associated with the physical work environment and the current time information; and acquire the file storage location according to the work content theme; A saving module, used to transmit the target file to the cloud server through the target communication module, and store it in the file storage location to complete the saving of the target file; The fourth acquisition module is also used to determine multiple work task files of the user using the target terminal according to the physical working environment, each work task file recording the work task and the work task execution time; match the current time information with the work task execution time of each work task file respectively to obtain multiple matching results; determine the target work task file from the multiple work task files according to the multiple matching results, wherein the work task file corresponding to the matching result indicating a successful match is the target work task file; and determine the work content theme according to the target work task file.

6. The file storage system according to claim 5, characterized in that: The second acquisition module is also used to determine the administrator information of the area where the target terminal is located based on the current location information; and based on the administrator information, obtain the base station construction approval information for constructing a base station within a first preset range centered on the target terminal from the information server corresponding to the administrator information.

7. The file storage system according to claim 5, characterized in that: The determination module is also used to obtain the operating status information of each base station within the first preset range and the number of terminals accessing the base station based on the base station construction approval information; for each base station, if the operating status information indicates that the base station is in a normal operating state and the number of terminals accessing the base station is less than or equal to the preset terminal number value, then determine the distance between the target terminal and the base station.

8. The file storage system according to any one of claims 5 to 7, characterized in that: The target terminal includes two data transmission modules: a 4G communication module and a 5G communication module; The second acquisition module is further used to acquire the remaining power of the target terminal and the size value of the target file according to the base station communication type of the target base station; The wake-up module is also used for, if the base station communication type of the target base station is only 4G communication, then the 4G communication module in the target terminal is used as the target communication module, and the target communication module is woken up according to the base station communication type of the target base station; if the base station communication type of the target base station is only 5G communication, then the 5G communication module in the target terminal is used as the target communication module, and the target communication module is woken up according to the base station communication type of the target base station; if the base station communication types of the target base station include 4G communication and 5G communication, and the remaining power of the target terminal is less than the preset power value, and the size value of the target file is greater than or equal to the preset size value, then the 5G communication module in the target terminal is used as the target communication module, and the target communication module is woken up; if the base station communication types of the target base station include 4G communication and 5G communication, and the remaining power of the target terminal is less than the preset power value, and the target If the size value of the target file is less than the preset size value, the 4G communication module in the target terminal is used as the target communication module, and the target communication module is awakened according to the base station communication type of the target base station; if the base station communication types of the target base station include 4G communication and 5G communication, and the remaining power of the target terminal is greater than or equal to the preset power value, and the size value of the target file is greater than or equal to the preset size value, the 5G communication module in the target terminal is used as the target communication module, and the target communication module is awakened according to the base station communication type of the target base station; if the base station communication types of the target base station include 4G communication and 5G communication, and the remaining power of the target terminal is greater than or equal to the preset power value, and the size value of the target file is less than the preset size value, the 4G communication module in the target terminal is used as the target communication module, and the target communication module is awakened according to the base station communication type of the target base station.

9. A terminal device, characterized in that: The method comprises 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 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, and when the computer program is executed by a processor, the file saving method according to any one of claims 1 to 4 is implemented.