CN116708571B - Intelligent terminal service method, system and storage medium based on 5G communication - Google Patents
Intelligent terminal service method, system and storage medium based on 5G communication Download PDFInfo
- Publication number
- CN116708571B CN116708571B CN202310907924.9A CN202310907924A CN116708571B CN 116708571 B CN116708571 B CN 116708571B CN 202310907924 A CN202310907924 A CN 202310907924A CN 116708571 B CN116708571 B CN 116708571B
- Authority
- CN
- China
- Prior art keywords
- data
- memory module
- physical storage
- list
- request
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 68
- 238000004891 communication Methods 0.000 title claims abstract description 25
- 238000012545 processing Methods 0.000 claims abstract description 126
- 230000008569 process Effects 0.000 claims description 38
- 239000013589 supplement Substances 0.000 claims description 13
- 230000001502 supplementing effect Effects 0.000 claims description 11
- 230000003993 interaction Effects 0.000 claims description 3
- 238000013500 data storage Methods 0.000 abstract description 11
- 238000007405 data analysis Methods 0.000 description 3
- 238000013507 mapping Methods 0.000 description 3
- 230000001360 synchronised effect Effects 0.000 description 3
- 230000007774 longterm Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002035 prolonged effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
- H04L67/5683—Storage of data provided by user terminals, i.e. reverse caching
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1095—Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/2866—Architectures; Arrangements
- H04L67/2869—Terminals specially adapted for communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/56—Provisioning of proxy services
- H04L67/568—Storing data temporarily at an intermediate stage, e.g. caching
- H04L67/5681—Pre-fetching or pre-delivering data based on network characteristics
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention belongs to the technical field of data processing, and particularly relates to an intelligent terminal service method, a system and a storage medium based on 5G communication, wherein the method comprises the steps that an intelligent terminal establishes communication connection with a remote server through a 5G network, and the intelligent terminal sends a data processing request to the remote server; after receiving the data processing request of the intelligent terminal, the remote server sends the data processing request to a memory module, wherein the memory module comprises a first memory module and a second memory module; the first memory module creates a first list, and the second memory module creates a second list; the first memory module receives the data processing request, performs corresponding processing and sends the corresponding processing to the second memory module; and the second memory module receives the processing request and then makes corresponding processing to send to the first memory module. The invention can realize high-efficiency data storage processing and data backup.
Description
Technical Field
The invention belongs to the technical field of data processing, and particularly relates to an intelligent terminal service method, system and storage medium based on 5G communication.
Background
The intelligent terminal can provide a great number of services for users, such as buying things, watching videos, checking weather and the like, and generally needs to collect the usage habits and related data of the users, then sends the data to the remote server, the remote server stores and analyzes the data, the services are continuously improved, so that better service experience is brought to the users, and meanwhile, the users can also query information to the remote server through the intelligent terminal.
Similar to the prior art, the invention disclosed in the chinese patent with publication No. CN206684718U provides an intelligent weather data storage system, which includes a server unit, a client unit, an archive storage unit and a thermal data storage unit, where the server unit is connected to the archive storage unit and the thermal data storage unit through an ethernet, and stores different data in the archive storage unit and the thermal data storage unit in a storage manner of online storage, near-line storage and offline storage, where the archive storage unit is an optical storage device, and stores and backs up the data transmitted by the server, and the thermal data storage unit includes an online storage device, stores the thermal data, but the invention does not provide real-time data backup.
A similar prior art also discloses a chinese invention patent publication No. CN105138418a, which discloses a data backup system, the invention includes a data acquisition unit: collecting data and transmitting the collected data to a data analysis unit; a data analysis unit: analyzing the data and decomposing the data into a plurality of data segments; data segment classification database: storing the data classification rules and automatically updating the classification rules; and the central processing unit: traversing the inquiry in the data segment classification database, classifying the data segments, storing the data segments on the corresponding data storage servers according to the classifying types, sequentially marking the data segments decomposed by the data analysis unit by the central processing unit, and storing the marking codes in the marking code storage servers; shared data storage server: storing data classified as shared data segments; and the personality data storage server: data classified as a piece of personality data is saved. However, the invention only provides a data backup method, and the efficiency of processing data is not considered. Therefore, the invention provides an intelligent terminal service method, an intelligent terminal service system and a storage medium based on 5G communication.
Disclosure of Invention
According to the invention, 5G communication connection is established through the intelligent terminal and the remote server, and the intelligent terminal sends a data processing request to the remote server; after receiving the data processing request of the intelligent terminal, the remote server sends the data processing request to a memory module, wherein the memory module comprises a first memory module and a second memory module; the first memory module creates a first list, and the second memory module creates a second list; the first memory module receives the data processing request, performs corresponding processing and sends the corresponding processing to the second memory module; and the second memory module receives the processing request and then makes corresponding processing to send to the first memory module. The invention realizes the high-efficiency processing of the data and synchronously backs up the data so as to ensure that the data can be stored for a long time.
In order to achieve the above object, the present invention provides a service method for an intelligent terminal based on 5G communication, which mainly includes the following steps:
S1, an intelligent terminal establishes communication connection with a remote server through a 5G network, the intelligent terminal sends a data processing request to the remote server, the types of the data processing request comprise a data writing request and a data reading request, and the types of the data writing request comprise adding data, updating data and deleting data;
S2, after the remote server receives the data processing request of the intelligent terminal, the remote server sends the data processing request to a memory module, wherein the memory module comprises a first memory module and a second memory module;
s3, the first memory module creates a first list, the first list records physical storage addresses and the use states of the physical storage addresses, the first memory module records the total number of the physical storage addresses and the number of used addresses in the first list, the physical storage addresses store the positions of data stored in the second memory module, the second memory module creates a second list, and the second memory module stores preset numerical physical storage addresses in an idle state in the second list;
S4, under the condition that the first memory module receives the data processing request, the first memory module correspondingly processes the data processing request based on the first list, and sends the data processing request to a second memory module, and the second memory module processes the data processing request based on the data processing request;
And S5, under the condition that the second memory module receives the data processing request, the second memory module correspondingly processes the data processing request based on a second list, and sends the data processing request to a first memory module, and the first memory module processes based on the data processing request.
As a preferred embodiment of the present invention, in the step S3, the creating process of the first list includes the following steps:
S31, a first memory module initializes a first list, a second memory module is informed that the first list is initialized, after the second memory module receives the initialization of the first list, the second memory module creates a second list, the second memory module stores preset numerical physical storage addresses in an idle state in the second list, and data in the second memory module, the physical storage addresses of the data and the physical storage addresses in the second list are derived and sent to the first memory module;
S32, the first memory module receives and stores the data and the physical storage address of the data;
S33, the first memory module receives the physical storage addresses in the second list, stores the physical storage addresses in the first list, sets the use state of the physical storage addresses in the first list as unused, and records the total number of the physical storage addresses and the number of the used addresses.
As a preferred technical solution of the present invention, the step S4 includes the following steps:
S41, when the first memory module receives a data writing request, analyzing the type of the data writing request;
S42, under the condition that the type of the data writing request is adding data, the first memory module acquires a physical storage address with an unused use state from a first list, adds the data to be added and the physical storage address to the first memory module, and changes the use state of the physical storage address in the first list into used;
s43, judging whether the utilization rate of the physical storage addresses of the first list reaches a preset threshold value, supplementing the first list if the utilization rate reaches the threshold value, and continuing the next step if the utilization rate does not reach the threshold value, wherein the utilization rate is calculated by dividing the number of the used addresses by the total number;
S44, under the condition that the type of the write-in data request is update data, the first memory module searches the data to be updated, acquires a physical storage address corresponding to the data to be updated, finishes processing if the data to be updated is not found, and updates the data to be updated if the data to be updated is found;
S45, under the condition that the type of the data writing request is deleting data, the first memory module searches the data to be deleted, obtains a physical storage address of the data to be deleted, finishes processing if the data to be deleted is not found, deletes the data to be deleted if the data to be deleted is found, changes the use state of the physical storage address into unused in the first list, and reduces the number of the used addresses by one;
S46, after the first memory module processes the added data, the updated data or the deleted data, the write-in data request and the physical storage address are sent to the second memory module;
S47, after the second memory module receives the data writing request and the physical storage address, analyzing the type of the data writing request, and correspondingly adding data, updating data or deleting data to the second memory module according to the data writing request and the physical storage address.
As a preferred embodiment of the present invention, in S43, the process of supplementing the first list includes the following steps:
s431, the first memory module sends a request for supplementing a first list to the second memory module;
s432, the second memory module multiplies the number of the physical storage addresses in the second list before the supplement by a preset value to obtain the number of the supplement addresses, and derives the number of the supplement addresses from the physical storage addresses in the second memory module in an idle state;
S433, the exported physical storage addresses in the idle state are stored in the second list, the second list is sent to the first memory module, the first memory module supplements the first list according to the second list, and the use states corresponding to the supplemented physical storage addresses are set to be unused.
As a preferred technical solution of the present invention, the step S5 includes the following steps:
S51, when the second memory module receives a data writing request, analyzing the type of the data writing request;
s52, under the condition that the type of the data writing request is data adding, the second memory module determines a physical storage address, judges whether the physical storage address is the same as each physical storage address in a second list, if so, replaces the physical storage address, and if not, stores the data to be added to the physical storage address;
S53, under the condition that the type of the data writing request is updated data, the second memory module searches the data to be updated, acquires a physical storage address of the data to be updated, finishes processing if the physical storage address is not found, and updates the data to be updated if the physical storage address is found;
S54, searching data to be deleted by the second memory module under the condition that the write-in data request type is the deleted data, acquiring a physical storage address of the data to be deleted, ending the processing if the physical storage address is not searched, and deleting the data to be deleted if the physical storage address is searched;
And S55, after the second memory module processes the added data, the updated data or the deleted data, the write-in data request and the physical storage address are sent to the first memory module, and after the first memory module receives the write-in data request and the physical storage address, the first memory module performs corresponding processing operation.
As a preferable technical scheme of the invention, the first memory module performs corresponding processing operation on data, and comprises the following steps:
S551, after the first memory module receives the write data request and the physical storage address, analyzing the type of the write data request;
S552, when the type of the write data request is the added data, storing the data to be added and the physical storage address correspondingly, storing the physical storage address in the first list, changing the use state of the physical storage address into used state, and adding one to the total number and the number of the used addresses;
s553, in the case that the type of the write-in data request is update data, the first memory module searches the data to be updated, if the data to be updated cannot be searched, the processing is finished, and if the data to be updated is searched, the data to be updated is updated;
S554, under the condition that the type of the write-in data request is deleting data, the first memory module searches the data to be deleted, if the data to be deleted cannot be searched, the data to be deleted is deleted if the data to be deleted is searched, the use state of the physical storage address in the first list is changed into unused, and the used quantity is reduced by one. The invention also provides an intelligent terminal service system based on 5G communication, which comprises the following modules:
the intelligent terminal module is used for collecting data, establishing communication connection with the remote server and sending a data processing request to the remote server;
The remote server module is used for receiving the data request of the intelligent terminal module, setting the first memory module and the second memory module, and sending the data request to the first memory module or the second memory module;
the first memory module is used for being connected with the remote server, realizing high-efficiency interaction, storing data received by the remote server and synchronously updating the data into the second memory module;
And the second memory module is used for backing up the data in the first memory module, interacting with the first memory module, permanently storing the data, connecting with a remote server, and processing the data and updating the data to the first memory module when receiving a data processing request.
Compared with the prior art, the invention has the following beneficial effects:
In the invention, the intelligent terminal is connected with the remote server through the 5G network, a data request is sent to the remote server, the remote server sends a data processing request to the memory module according to the data request, the memory module comprises a first memory module and a second memory module, the first memory module adds, updates or deletes data after receiving the data processing request, and sends the data processing request to the second memory module, the second memory module performs corresponding data processing after receiving the data processing request, so as to realize the backup of the data of the first memory module, the second memory module can also receive and process the data processing request, and after processing the data, the data processing request is sent to the first memory module, so as to realize the mapping of the data of the first memory module and the data of the second memory module. The invention can realize the data storage, wherein the first memory module can efficiently interact with the remote server to realize the rapid data processing, the second memory module can permanently store the data and can ensure that the data cannot be lost easily, wherein the second memory module can interact with the first memory module in real time to provide real-time backup, the second memory module can also interact with the remote server directly, the data can be ensured to be normally stored when the first memory module is occupied or damaged, and a timing backup method is provided, and the second memory module performs backup on the data in the first memory module once at intervals to ensure that different users select different backup methods according to different demands.
Drawings
FIG. 1 is a flow chart of steps of a method for serving an intelligent terminal based on 5G communication according to the present invention;
FIG. 2 is a block diagram of a service system of an intelligent terminal based on 5G communication according to the present invention;
shown in fig. 2: 100. an intelligent terminal module; 200. a remote server module; 301. a first memory module; 302. and a second memory module.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
It will be understood that the terms "first," "second," and the like, as used herein, may be used to describe various elements, but these elements are not limited by these terms unless otherwise specified. These terms are only used to distinguish one element from another element. For example, a first xx script may be referred to as a second xx script, and similarly, a second xx script may be referred to as a first xx script, without departing from the scope of this disclosure.
The invention provides an intelligent terminal service method based on 5G communication as shown in figure 1, which is realized mainly by executing the following steps:
S1, an intelligent terminal establishes communication connection with a remote server through a 5G network, and sends a data processing request to the remote server, wherein the type of the data processing request comprises a data writing request and a data reading request, and the type of the data writing request comprises adding data, updating data and deleting data;
S2, after receiving a data processing request of the intelligent terminal, the remote server sends the data processing request to a memory module, wherein the memory module comprises a first memory module and a second memory module;
s3, a first memory module creates a first list, the first list records the total number of physical storage addresses and the number of used addresses in the first list, the physical storage addresses store the positions of data stored in a second memory module, the second memory module creates a second list, and the second memory module stores preset numerical physical storage addresses in an idle state in the second list;
s4, under the condition that the first memory module receives the data processing request, the first memory module correspondingly processes the data processing request based on the first list, and sends the data processing request to the second memory module, and the second memory module processes the data processing request;
And S5, under the condition that the second memory module receives the data processing request, the second memory module correspondingly processes the data processing request based on the second list, and sends the data processing request to the first memory module, and the first memory module processes based on the data processing request.
Specifically, the intelligent terminal is connected with the remote server through the 5G network, the remote server sends a data request to the memory module after receiving the data request, the memory module comprises a first memory module and a second memory module, the memory module has small memory space and can be used for rapidly reading data and is mainly used for interacting with the remote server so as to realize rapid processing of the data, but the data stored by the first memory module after power failure can be cleared, so that the second memory module is arranged for carrying out backup processing on the data of the first memory module, and the data of the second memory module can not be cleared even if power failure occurs once the data is written in, so that the data can be permanently stored.
Further, in S3, the creating process of the first list includes the following steps:
S31, initializing a first list by the first memory module, informing the second memory module that the first list is initialized, creating a second list by the second memory module after the second memory module receives the initialization of the first list, storing a preset number of physical storage addresses in an idle state in the second list by the second memory module, deriving data in the second memory module, the physical storage addresses of the data and the physical storage addresses in the second list, and sending the data and the physical storage addresses to the first memory module;
s32, the first memory module receives and stores data and physical storage addresses of the data;
S33, the first memory module receives the physical storage addresses in the second list, stores the physical storage addresses in the first list, sets the use state of the physical storage addresses in the first list as unused, and records the total number of the physical storage addresses and the number of the used addresses.
Specifically, the first memory module initializes the first list, the first list is an empty list, after the initialization, the first memory module notifies the second memory module that the first list is initialized, after the second memory module receives the notification, the second memory module derives data in the second memory module, a physical storage address corresponding to the data and a physical storage address in the second list, and sends the data and the physical storage address corresponding to the data to the first memory module, the first memory module receives and stores the physical storage address in the second list into the first list, and because the first memory module is in an initialization state, the physical storage addresses stored in the second list are all unused addresses, the use state corresponding to the physical storage addresses stored in the first list is set to be unused, the total number of the physical storage addresses and the number of the used addresses are recorded, and the number of the used addresses is zero because the first memory module is in the initialization state.
Further, the step S4 includes the following steps:
S41, when the first memory module receives a data writing request, analyzing the type of the data writing request;
S42, under the condition that the type of the data writing request is adding data, the first memory module acquires a physical storage address with an unused use state from the first list, adds the data to be added and the physical storage address to the first memory module, and changes the use state of the physical storage address in the first list into used;
s43, judging whether the utilization rate of the physical storage addresses of the first list reaches a preset threshold value, supplementing the first list if the utilization rate reaches the threshold value, and continuing the next step if the utilization rate does not reach the threshold value, wherein the utilization rate is calculated by dividing the number of the used addresses by the total number;
S44, under the condition that the type of the data writing request is update data, the first memory module searches the data to be updated, acquires a physical storage address corresponding to the data to be updated, finishes processing if the physical storage address is not found, and updates the data to be updated if the physical storage address is found;
S45, under the condition that the type of the data writing request is deleting data, the first memory module searches the data to be deleted, obtains a physical storage address of the data to be deleted, finishes processing if the data to be deleted is not found, deletes the data to be deleted if the data to be deleted is found, changes the use state of the physical storage address into unused state in a first list, and reduces the number of used addresses by one;
s46, after the first memory module processes the added data, the updated data or the deleted data, the written data request and the physical storage address are sent to the second memory module;
S47, after the second memory module receives the data writing request and the physical storage address, analyzing the type of the data writing request, and correspondingly adding data, updating data or deleting data to the second memory module according to the data writing request and the physical storage address.
Specifically, in order to keep the data of the first memory module and the data of the second memory module identical and capable of being mapped to each other, physical storage addresses of the corresponding data are recorded at the same time when the first memory module writes the data. After the first memory module receives the write data request, analyzing the write data request type, under the condition that the write data type is the added data, the first memory module obtains a physical storage address from the first list, stores the data and the physical storage address in the first memory module, changes the use state of the corresponding physical storage address in the first list into used physical storage address, reduces the usable physical storage address in the first list by one at the moment, then judges whether the use rate of the physical storage address in the first list reaches a preset threshold value, calculates the use rate by dividing the number of the used addresses by the total number, wherein the threshold value can be seventy percent or eighty percent, if the use rate reaches the threshold value, the first list needs to be supplemented for ensuring the normal storage of the subsequent data, the process of supplementing the first list is explained later, and if the use rate does not reach the threshold value, the next step is carried out. And under the condition that the type of the data writing request is updated data or deleted, the first memory module searches the data to be updated and acquires the physical storage address corresponding to the data, if the data cannot be found, the processing is finished, and if the data cannot be found, the data is modified or deleted, wherein after the data is deleted, the use state of the corresponding physical storage address in the first list is changed into unused, and the number of used addresses is reduced by one. After the first memory module processes the data writing request, the data writing request and the corresponding physical memory address are sent to the second memory module, and corresponding adding, modifying or deleting operation is carried out on the data where the physical memory address of the first memory module is located, so that the data of the second memory module and the data of the first memory module can be identical, and the data backup of the first memory module is realized.
Further, in S43, the process of supplementing the first list includes the following steps:
S431, the first memory module sends a request for supplementing the first list to the second memory module;
s432, the second memory module multiplies the number of the physical storage addresses in the second list before the supplement by a preset value to obtain the number of the supplement addresses, and derives the number of the supplement addresses, namely the physical storage addresses in an idle state in the second memory module;
s433, the exported physical storage addresses in the idle state are stored in a second list, the second list is sent to a first memory module, the first memory module supplements the first list according to the second list, and the use states corresponding to the supplemented physical storage addresses are set to be unused.
Specifically, the utilization rate of the physical storage addresses in the first list reaches a preset threshold value, the first list is supplemented, normal storage of subsequent data is guaranteed, if the first list is not supplemented in time, when the first memory module stores data, the physical storage addresses in the first list are all in a used state, after a data processing request is sent to the second memory data, the second memory module stores data without a designated physical storage address, the data stored by the second memory module cannot be mapped with the first memory data, so that the first list needs to be supplemented in time, the first memory module sends a request for supplementing the first list to the second memory module, the second memory module multiplies the number of the physical storage addresses in the second list by a preset value to obtain the number of the physical storage addresses to be supplemented, the preset value can be zero point two or zero point three, a corresponding number of unused physical storage addresses are derived, the unused physical storage addresses are stored in the second list, the second list is sent to the first memory module, and the first memory module supplements the first memory module and uses the new physical storage addresses to the corresponding unused physical storage addresses to make the first list.
Further, the step S5 includes the following steps:
s51, when the second memory module receives the data writing request, analyzing the type of the data writing request;
S52, under the condition that the type of the data writing request is the added data, the second memory module determines a physical storage address, judges whether the physical storage address is the same as each physical storage address in the second list, if so, replaces the physical storage address, and if not, stores the data to be added into the physical storage address;
S53, under the condition that the type of the data writing request is update data, the second memory module searches the data to be updated, acquires a physical storage address of the data to be updated, finishes processing if the physical storage address is not found, and updates the data to be updated if the physical storage address is found;
S54, under the condition that the type of the data writing request is deleting data, the second memory module searches the data to be deleted, acquires a physical storage address of the data to be deleted, finishes processing if the physical storage address is not found, and deletes the data to be deleted if the physical storage address is found;
And S55, after the second memory module processes the added data, the updated data or the deleted data, the write-in data request and the physical storage address are sent to the first memory module, and after the first memory module receives the write-in data request and the physical storage address, the first memory module performs corresponding processing operation.
Specifically, when the first memory module is occupied, damaged or cannot interact with the remote server temporarily for other reasons for a long time, the second memory module receives a write data request of the remote server, analyzes the type of the write data request after receiving the write data request, determines a physical storage address first and judges whether the physical storage address is the same as each physical storage address in the second list if the physical storage address is the same as each physical storage address in the second list, and if the physical storage address is the same, the physical storage address in the second list is the address reserved for the first memory module to send the request for adding data, and when the first memory module stores data and sends the physical storage address to be used after the data comes, if the physical storage addresses are used at this time, the first memory module cannot make correct mapping backup for the data in the first memory module when sending the request for adding data. Under the condition that the type of the data writing request is updated data or deleted data, firstly searching the data, if the data cannot be searched, finishing processing, if the data cannot be searched, performing corresponding data processing, acquiring a physical storage address corresponding to the data, and sending the data writing request and the physical storage address to a first memory module, wherein the first memory module performs corresponding processing operation on the data, and the specific operation process will be explained later.
Further, the first memory module performs corresponding processing operation on the data, and the method includes the following steps:
S551, after the first memory module receives the data writing request and the physical storage address, analyzing the type of the data writing request;
S552, when the type of the data writing request is the added data, the data to be added and the physical storage address are correspondingly stored, the physical storage address is stored in a first list, the use state of the physical storage address is changed into used state, and the total number and the number of the used addresses are increased by one;
s553, under the condition that the type of the data writing request is update data, the first memory module searches the data to be updated, if the data to be updated is not found, the processing is finished, and if the data to be updated is found;
S554, under the condition that the type of the data writing request is deleting data, the first memory module searches the data to be deleted, if the data to be deleted is not searched, the processing is ended, if the data to be deleted is searched, the use state of the physical storage address in the first list is changed into unused, and the used quantity is reduced by one.
Specifically, in order to realize the mapping of data in the first memory module and the second memory module, after the first memory module receives a data writing request of the second memory module, the first memory module analyzes the type of the data writing request, stores the data and the physical storage address into the first memory module under the condition that the type of the data writing request is an adding operation, stores the physical storage address into the first list, sets the use state corresponding to the physical storage address as used, adds one to the total number and the number of the used addresses, under the condition that the type of the data writing request is an updating operation, the first memory module performs updating processing on the corresponding data, under the condition that the type of the data writing request is a deleting operation, the first memory module searches the data to be deleted, if the data is not searched, the processing is ended, if the data is not searched, the data is deleted, the used number is reduced by one, and the use state of the physical storage address in the first list is changed into the unused state.
Further, in the processing of the data writing request, since there are a plurality of data terminals, different data requests are simultaneously sent to the server, in order to provide a more efficient and rapid method for processing the data writing request and the data reading request, a first memory space and a second memory space are set in the first memory module, the first memory space is first used as a reading operation memory space, the second memory space is used as a writing operation memory space, under the condition of receiving the data reading operation, the first memory space is queried for data and returned to the remote server, the remote server sends data information to the intelligent terminal for sending the data reading request, under the condition of receiving the data writing request, a writing processing statement is generated, the second memory space is used for executing the writing processing statement to process the data, after the writing of the data is completed, the second memory space is switched to the writing processing statement, the first memory space is used for executing the writing processing statement, so that the data of the first memory space is updated, and then the two memory spaces are used as writing operation memory spaces, under the condition that the two memory spaces are alternately used as the writing processing memory space and the reading operation memory space, and the data writing processing efficiency of the first memory space can be further improved when the data writing request is further processed. Similarly, when the second memory module receives the data processing request, the same method is used as that of the first memory module, so that the second memory module can process the data reading request while processing the data writing request, and the data processing efficiency of the second memory module is improved.
Specifically, since there are a plurality of intelligent terminals, the data processing requests are sent to the remote server at the same time, the data processing requests comprise data writing requests and data reading requests, and in the case of only one memory space, the data reading requests cannot be processed at the same time when the data writing requests are processed, in order to respond to the data processing more quickly, the first memory space and the second memory space are set in the first memory module and the second memory module, and are alternately used as a reading operation memory space and a writing operation read space, so that the first memory module and the second memory module can process the data writing requests and the data reading requests at the same time, the data of the two memory spaces can be alternately updated, the data of the two memory spaces can be ensured to be updated, the data reading requests and the data writing requests can be processed at the same time, the data processing speed is improved, and better experience is brought to users.
Further, a method for timing backup data is provided, after a first memory module works for a preset time, a second memory module is initialized, a second list is created to store a physical storage address in an idle state in the second memory module, and the second list is sent to the first memory module; the first memory module creates a first list based on the second list, and transmits the data of the first memory module and the physical storage address in the first list to the second memory module in a one-to-one correspondence manner, meanwhile, the physical storage address is added in the data record of the first memory module, after the second memory module receives the data transmitted by the first memory module and the physical storage address, the second memory module judges whether the physical storage address stores the data or not, if the data is not stored, the transmitted data is added, if the data is stored, the data stored in the physical storage address is compared with the transmitted data, if the comparison result is the same, no operation is performed, if the comparison result is different, the data updating operation is performed, and the steps are repeatedly executed until all the data are backed up. And then, backing up the data of the first memory module again according to the operation after the preset time.
Specifically, the data of the first memory module and the second memory module are synchronized in real time, so that the purpose of efficiently storing and backing up the data can be achieved, but because the two memory modules need to be updated once when the data is updated each time, if some data are updated frequently, a great amount of work is caused for the two memory modules, meanwhile, the data storage process and the backup time are prolonged, a method for timing backup is provided, the consistency of the data is judged when the data is backed up, and the existing and identical data are not backed up repeatedly, so that the backup efficiency is improved. Some users need to backup the data in real time, and can select a method for synchronously storing and backing up in real time, but some users can select a method for backing up the data in timing without backing up the data in real time, so as to meet the demands of different users.
According to another aspect of the embodiment of the present invention, referring to fig. 2, there is further provided a 5G communication-based intelligent terminal service system, including an intelligent terminal module, a remote server module, a first memory module and a second memory module, configured to implement a 5G communication-based intelligent terminal service method as described above, where specific functions of each module are as follows:
the intelligent terminal module is used for collecting data, establishing communication connection with the remote server and sending a data processing request to the remote server;
The remote server module is used for receiving the data request of the intelligent terminal module, setting the first memory module and the second memory module, and sending the data request to the first memory module or the second memory module;
the first memory module is used for being connected with the remote server, realizing high-efficiency interaction, storing data received by the remote server and synchronously updating the data into the second memory module;
And the second memory module is used for backing up the data in the first memory module, interacting with the first memory module, permanently storing the data, connecting with a remote server, and processing the data and updating the data to the first memory module when receiving a data processing request.
According to another aspect of the embodiment of the present invention, there is also provided a storage medium storing program instructions, where the program instructions, when executed, control a device in which the storage medium is located to perform the method of any one of the above.
In summary, the method includes that the intelligent terminal sends a data request to the remote server, the remote server receives the data request and then sends the data request to the memory module, the memory module includes a first memory module and a second memory module, the first memory module receives the data request and processes the data, the data request is sent to the second memory module, the second memory module also processes the same data, the second memory module receives the data request and processes the data, the data request is sent to the first memory module, the first memory module also processes the same data, the remote server mainly sends the data request to the first memory module, the memory of the first memory module is relatively small, but the processing speed block can efficiently process a large amount of data, but the first memory module can be cleared when the first memory module is powered off, the data stored in the second memory module can be permanently stored, and when the first memory module cannot interact with the remote server, the remote server can also send the data request to the second memory module directly, the first memory module also processes the same data, the remote server can not send the data request to the first memory module, the data can be stored for realizing the long-term storage of the data, the data can be stored, the invention can realize the long-term storage of the data can be realized, and the data can be stored simultaneously.
It should be understood that, although the steps in the flowcharts of the embodiments of the present invention are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in various embodiments may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of the sub-steps or stages of other steps or other steps.
Those skilled in the art will appreciate that implementing all or part of the above-described methods may be accomplished by way of computer programs, which may be stored on a non-transitory computer readable storage medium, and which, when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (SYNCHLINK) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and for brevity, all of the possible combinations of the technical features of the above embodiments are not described, however, they should be considered as the scope of the description of the present specification as long as there is no contradiction between the combinations of the technical features.
The foregoing examples have been presented to illustrate only a few embodiments of the invention and are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the invention, which are all within the scope of the invention. Accordingly, the scope of protection of the present invention is to be determined by the appended claims.
The foregoing description of the preferred embodiments of the invention is not intended to be limiting, but rather is intended to cover all modifications, equivalents, and alternatives falling within the spirit and principles of the invention.
Claims (6)
1. An intelligent terminal service method based on 5G communication is characterized by comprising the following steps:
S1, an intelligent terminal establishes communication connection with a remote server through a 5G network, the intelligent terminal sends a data processing request to the remote server, the types of the data processing request comprise a data writing request and a data reading request, and the types of the data writing request comprise adding data, updating data and deleting data;
S2, after the remote server receives the data processing request of the intelligent terminal, the remote server sends the data processing request to a memory module, wherein the memory module comprises a first memory module and a second memory module;
s3, the first memory module creates a first list, the first list records physical storage addresses and the use states of the physical storage addresses, the first memory module records the total number of the physical storage addresses and the number of used addresses in the first list, the physical storage addresses store the positions of data stored in the second memory module, the second memory module creates a second list, and the second memory module stores preset numerical physical storage addresses in an idle state in the second list;
S4, under the condition that the first memory module receives the data processing request, the first memory module correspondingly processes the data processing request based on the first list, and sends the data processing request to a second memory module, and the second memory module processes the data processing request based on the data processing request;
S5, under the condition that the second memory module receives the data processing request, the second memory module correspondingly processes the data processing request based on a second list, and sends the data processing request to a first memory module, and the first memory module processes based on the data processing request;
the step S4 comprises the following steps:
S41, when the first memory module receives a data writing request, analyzing the type of the data writing request;
S42, under the condition that the type of the data writing request is adding data, the first memory module acquires a physical storage address with an unused use state from a first list, adds the data to be added and the physical storage address to the first memory module, and changes the use state of the physical storage address in the first list into used;
s43, judging whether the utilization rate of the physical storage addresses of the first list reaches a preset threshold value, supplementing the first list if the utilization rate reaches the threshold value, and continuing the next step if the utilization rate does not reach the threshold value, wherein the utilization rate is calculated by dividing the number of the used addresses by the total number;
S44, under the condition that the type of the write-in data request is update data, the first memory module searches the data to be updated, acquires a physical storage address corresponding to the data to be updated, finishes processing if the data to be updated is not found, and updates the data to be updated if the data to be updated is found;
S45, under the condition that the type of the data writing request is deleting data, the first memory module searches the data to be deleted, obtains a physical storage address of the data to be deleted, finishes processing if the data to be deleted is not found, deletes the data to be deleted if the data to be deleted is found, changes the use state of the physical storage address into unused in the first list, and reduces the number of the used addresses by one;
S46, after the first memory module processes the added data, the updated data or the deleted data, the write-in data request and the physical storage address are sent to the second memory module;
S47, after the second memory module receives the data writing request and the physical storage address, analyzing the type of the data writing request, and correspondingly adding data, updating data or deleting data to the second memory module according to the data writing request and the physical storage address;
Wherein, the step S5 comprises the following steps:
S51, when the second memory module receives a data writing request, analyzing the type of the data writing request;
s52, under the condition that the type of the data writing request is data adding, the second memory module determines a physical storage address, judges whether the physical storage address is the same as each physical storage address in a second list, if so, replaces the physical storage address, and if not, stores the data to be added to the physical storage address;
S53, under the condition that the type of the data writing request is updated data, the second memory module searches the data to be updated, acquires a physical storage address of the data to be updated, finishes processing if the physical storage address is not found, and updates the data to be updated if the physical storage address is found;
S54, searching data to be deleted by the second memory module under the condition that the write-in data request type is the deleted data, acquiring a physical storage address of the data to be deleted, ending the processing if the physical storage address is not searched, and deleting the data to be deleted if the physical storage address is searched;
And S55, after the second memory module processes the added data, the updated data or the deleted data, the write-in data request and the physical storage address are sent to the first memory module, and after the first memory module receives the write-in data request and the physical storage address, the first memory module performs corresponding processing operation.
2. The intelligent terminal service method based on 5G communication according to claim 1, wherein in S3, the creating process of the first list includes the steps of:
S31, a first memory module initializes a first list, a second memory module is informed that the first list is initialized, after the second memory module receives the initialization of the first list, the second memory module creates a second list, the second memory module stores preset numerical physical storage addresses in an idle state in the second list, and data in the second memory module, the physical storage addresses of the data and the physical storage addresses in the second list are derived and sent to the first memory module;
S32, the first memory module receives and stores the data and the physical storage address of the data;
S33, the first memory module receives the physical storage addresses in the second list, stores the physical storage addresses in the first list, sets the use state of the physical storage addresses in the first list as unused, and records the total number of the physical storage addresses and the number of the used addresses.
3. The intelligent terminal service method based on 5G communication according to claim 1, wherein the process of supplementing the first list in S43 comprises the steps of:
s431, the first memory module sends a request for supplementing a first list to the second memory module;
s432, the second memory module multiplies the number of the physical storage addresses in the second list before the supplement by a preset value to obtain the number of the supplement addresses, and derives the number of the supplement addresses from the physical storage addresses in the second memory module in an idle state;
S433, the exported physical storage addresses in the idle state are stored in the second list, the second list is sent to the first memory module, the first memory module supplements the first list according to the second list, and the use states corresponding to the supplemented physical storage addresses are set to be unused.
4. The intelligent terminal service method based on 5G communication according to claim 1, wherein the corresponding processing operation is performed on the first memory module, comprising the steps of:
S551, after the first memory module receives the write data request and the physical storage address, analyzing the type of the write data request;
S552, when the type of the write data request is the added data, storing the data to be added and the physical storage address correspondingly, storing the physical storage address in the first list, changing the use state of the physical storage address into used state, and adding one to the total number and the number of the used addresses;
s553, in the case that the type of the write-in data request is update data, the first memory module searches the data to be updated, if the data to be updated cannot be searched, the processing is finished, and if the data to be updated is searched, the data to be updated is updated;
S554, under the condition that the type of the write-in data request is deleting data, the first memory module searches the data to be deleted, if the data to be deleted cannot be searched, the data to be deleted is deleted if the data to be deleted is searched, the use state of the physical storage address in the first list is changed into unused, and the used quantity is reduced by one.
5. An intelligent terminal service system based on 5G communication, configured to implement the method according to any one of claims 1 to 4, and comprising the following modules:
the intelligent terminal module is used for collecting data, establishing communication connection with the remote server and sending a data processing request to the remote server;
The remote server module is used for receiving the data request of the intelligent terminal module, setting the first memory module and the second memory module, and sending the data request to the first memory module or the second memory module;
the first memory module is used for being connected with the remote server, realizing high-efficiency interaction, storing data received by the remote server and synchronously updating the data into the second memory module;
And the second memory module is used for backing up the data in the first memory module, interacting with the first memory module, permanently storing the data, connecting with a remote server, and processing the data and updating the data to the first memory module when receiving a data processing request.
6. A storage medium storing program instructions, wherein the program instructions, when executed, control a device in which the storage medium is located to perform the method of any one of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310907924.9A CN116708571B (en) | 2023-07-22 | 2023-07-22 | Intelligent terminal service method, system and storage medium based on 5G communication |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310907924.9A CN116708571B (en) | 2023-07-22 | 2023-07-22 | Intelligent terminal service method, system and storage medium based on 5G communication |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116708571A CN116708571A (en) | 2023-09-05 |
CN116708571B true CN116708571B (en) | 2024-05-14 |
Family
ID=87839413
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310907924.9A Active CN116708571B (en) | 2023-07-22 | 2023-07-22 | Intelligent terminal service method, system and storage medium based on 5G communication |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116708571B (en) |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5890217A (en) * | 1995-03-20 | 1999-03-30 | Fujitsu Limited | Coherence apparatus for cache of multiprocessor |
CN203311406U (en) * | 2013-06-20 | 2013-11-27 | 瑞祺电通股份有限公司 | On-line synchronization backup device |
CN103988186A (en) * | 2012-10-12 | 2014-08-13 | 华为技术有限公司 | Memory system, memory module, memory module access method and computer system |
CN104239239A (en) * | 2013-06-17 | 2014-12-24 | 瑞祺电通股份有限公司 | Online synchronous backup system method and online synchronous backup system device |
CN104380259A (en) * | 2012-10-17 | 2015-02-25 | 华为技术有限公司 | Method for reducing consumption of memory system and memory controller |
US8977781B1 (en) * | 2013-11-07 | 2015-03-10 | Hitachi, Ltd. | Computer system |
EP2950217A1 (en) * | 2014-05-27 | 2015-12-02 | Bull Sas | Speculative query in the central memory of a multiprocessor system |
US9720826B1 (en) * | 2014-12-09 | 2017-08-01 | Parallel Machines Ltd. | Systems and methods to distributively process a plurality of data sets stored on a plurality of memory modules |
CN107219999A (en) * | 2013-08-31 | 2017-09-29 | 华为技术有限公司 | The data migration method and server of memory modules in a kind of server |
WO2018094961A1 (en) * | 2016-11-28 | 2018-05-31 | 华为技术有限公司 | Write request processing method, device, and data center |
CN210377460U (en) * | 2019-07-23 | 2020-04-21 | 晶晨半导体(深圳)有限公司 | CPU single Data line and double DDR internal memory connecting structure |
CN113342480A (en) * | 2021-06-23 | 2021-09-03 | 海光信息技术股份有限公司 | Transaction processing system, transaction processing method and host system |
-
2023
- 2023-07-22 CN CN202310907924.9A patent/CN116708571B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5890217A (en) * | 1995-03-20 | 1999-03-30 | Fujitsu Limited | Coherence apparatus for cache of multiprocessor |
CN103988186A (en) * | 2012-10-12 | 2014-08-13 | 华为技术有限公司 | Memory system, memory module, memory module access method and computer system |
CN104380259A (en) * | 2012-10-17 | 2015-02-25 | 华为技术有限公司 | Method for reducing consumption of memory system and memory controller |
CN104239239A (en) * | 2013-06-17 | 2014-12-24 | 瑞祺电通股份有限公司 | Online synchronous backup system method and online synchronous backup system device |
CN203311406U (en) * | 2013-06-20 | 2013-11-27 | 瑞祺电通股份有限公司 | On-line synchronization backup device |
CN107219999A (en) * | 2013-08-31 | 2017-09-29 | 华为技术有限公司 | The data migration method and server of memory modules in a kind of server |
US8977781B1 (en) * | 2013-11-07 | 2015-03-10 | Hitachi, Ltd. | Computer system |
EP2950217A1 (en) * | 2014-05-27 | 2015-12-02 | Bull Sas | Speculative query in the central memory of a multiprocessor system |
US9720826B1 (en) * | 2014-12-09 | 2017-08-01 | Parallel Machines Ltd. | Systems and methods to distributively process a plurality of data sets stored on a plurality of memory modules |
WO2018094961A1 (en) * | 2016-11-28 | 2018-05-31 | 华为技术有限公司 | Write request processing method, device, and data center |
CN210377460U (en) * | 2019-07-23 | 2020-04-21 | 晶晨半导体(深圳)有限公司 | CPU single Data line and double DDR internal memory connecting structure |
CN113342480A (en) * | 2021-06-23 | 2021-09-03 | 海光信息技术股份有限公司 | Transaction processing system, transaction processing method and host system |
Also Published As
Publication number | Publication date |
---|---|
CN116708571A (en) | 2023-09-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108322533B (en) | Configuration and synchronization method between distributed type assemblies node based on operation log | |
CN108932295B (en) | Main database switching control method and device, computer equipment and storage medium | |
CN108965383B (en) | File synchronization method and device, computer equipment and storage medium | |
CN111143133B (en) | Virtual machine backup method and backup virtual machine recovery method | |
CN109902272B (en) | Electronic form data processing method, electronic form data processing device, computer equipment and storage medium | |
CN109491772B (en) | Service sequence number generation method and device, computer equipment and storage medium | |
CN111949406B (en) | Method, device, computer and storage medium for allocating numbered resources | |
CN108900572B (en) | Main database domain name switching control method, computer equipment and storage medium | |
CN104202387A (en) | Metadata recovery method and related device | |
CN111208941A (en) | File management method and device, computer equipment and computer readable storage medium | |
CN112527562A (en) | Data backup method and device of distributed storage system and computer equipment | |
CN112925759B (en) | Data file processing method and device, storage medium and electronic device | |
CN113596010A (en) | Data processing method and device, node equipment and computer storage medium | |
CN115543217B (en) | Data organization method, device, server and medium for independent redundant disk array | |
CN116708571B (en) | Intelligent terminal service method, system and storage medium based on 5G communication | |
CN111966531B (en) | Data snapshot method and device, computer equipment and storage medium | |
CN109408532B (en) | Data acquisition method, device, computer equipment and storage medium | |
CN113676353B (en) | Control method and device of equipment, storage medium and electronic device | |
CN108173892B (en) | Cloud mirror image operation method and device | |
CN116737451A (en) | Data recovery method and device of flash memory, solid state disk and storage medium | |
CN111191082B (en) | Data management method, device, computer equipment and storage medium | |
CN115712581A (en) | Data access method, storage system and storage node | |
CN109656948B (en) | Bitmap data processing method and device, computer equipment and storage medium | |
CN114760326B (en) | Data storage method, data query method, data storage system and electronic device | |
CN117492664B (en) | Source data double-control double-activity storage control method, system, terminal and 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 | ||
EE01 | Entry into force of recordation of patent licensing contract | ||
EE01 | Entry into force of recordation of patent licensing contract |
Application publication date: 20230905 Assignee: WUHAN EETO LASER EQUIPMENT CO.,LTD. Assignor: WUHAN INSTITUTE OF SHIPBUILDING TECHNOLOGY Contract record no.: X2024980009854 Denomination of invention: A method, system, and storage medium for intelligent terminal services based on 5G communication Granted publication date: 20240514 License type: Common License Record date: 20240719 |