CN111857606B - Data storage method, device, computer equipment and storage medium - Google Patents

Data storage method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN111857606B
CN111857606B CN202010872918.0A CN202010872918A CN111857606B CN 111857606 B CN111857606 B CN 111857606B CN 202010872918 A CN202010872918 A CN 202010872918A CN 111857606 B CN111857606 B CN 111857606B
Authority
CN
China
Prior art keywords
target data
memory
data
description information
storage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010872918.0A
Other languages
Chinese (zh)
Other versions
CN111857606A (en
Inventor
刘君
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010872918.0A priority Critical patent/CN111857606B/en
Publication of CN111857606A publication Critical patent/CN111857606A/en
Application granted granted Critical
Publication of CN111857606B publication Critical patent/CN111857606B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0604Improving or facilitating administration, e.g. storage management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0644Management of space entities, e.g. partitions, extents, pools
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0683Plurality of storage devices

Abstract

The application discloses a data storage method, a data storage device, computer equipment and a storage medium, and belongs to the technical field of data storage. The method is used in a terminal comprising a first memory and a modem, the method comprising: in response to receiving the first target data through the modem, acquiring a logical channel of the first target data and description information of the first target data, wherein the description information is used for describing Payload data of the first target data; acquiring a first storage address according to a logic channel of first target data, wherein the first storage address is a storage address of description information of the first target data in a first memory; and storing the description information of the first target data into the first memory according to the first storage address. The application ensures that the description information of the same logic channel is in the same storage position, and the description information of different logic channels is in different storage positions, thereby improving the management efficiency of the data after the data storage.

Description

Data storage method, device, computer equipment and storage medium
Technical Field
The present application relates to the field of data storage technologies, and in particular, to a data storage method, a data storage device, a computer device, and a storage medium.
Background
With the rapid development of the communication technology field, in daily life of people, more and more scenes need data transmission, such as application programs in terminals, sending short messages, dialing telephone, and the like.
In these aforementioned scenarios of data transmission, when the terminal receives data, it is generally required to store the received data, where, because of the large storage space and low price of DDR (Double Data Rate Synchronous Dynamic Random Access Memory, double rate synchronous dynamic random access memory), the payload portion of the data received by the terminal is stored in the DDR, and the description information of the data is generally stored in the on-chip memory. When the description information of the data is stored in the on-chip memory, the description information of the data is often stored in the on-chip memory according to the time sequence of receiving the data.
For the above storage scheme of the on-chip memory for the description information of the data, because the description information of different data often corresponds to different life cycles, if the description information of the data of different life cycles is stored together, when releasing, the description information of the data needs to be searched and judged for multiple times, thus reducing the management efficiency of the data in the on-chip memory.
Disclosure of Invention
The embodiment of the application provides a data storage method, a data storage device, computer equipment and a storage medium, which can improve the management efficiency of data after data storage. The technical scheme is as follows:
in one aspect, an embodiment of the present application provides a data storage method, where the method is used in a terminal including a first memory and a modem, and the method includes:
in response to receiving first target data through the modem, acquiring a logical channel of the first target data and description information of the first target data, wherein the description information is used for describing Payload data of the first target data;
acquiring a first storage address according to a logic channel of the first target data, wherein the first storage address is a storage address of description information of the first target data in the first memory;
and storing the description information of the first target data into the first memory according to the first storage address.
In another aspect, an embodiment of the present application provides a data storage device, where the device is used in a terminal including a first memory and a modem, and the device includes:
An information acquisition module, configured to acquire, in response to receiving first target data through the modem, a logical channel of the first target data and description information of the first target data, where the description information is used to describe Payload data of the first target data;
the address acquisition module is used for acquiring a first storage address according to the logic channel of the first target data, wherein the first storage address is the storage address of the description information of the first target data in the first memory;
and the data storage module is used for storing the description information of the first target data into the first memory according to the first storage address.
In another aspect, embodiments of the present application provide a computer device, where the computer device includes a processor and a memory, where at least one instruction, at least one program, a code set, or a set of instructions is stored, where the at least one instruction, the at least one program, the set of code, or the set of instructions is loaded and executed by the processor to implement a data storage method as described above.
In another aspect, embodiments of the present application provide a computer readable storage medium having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, the at least one instruction, the at least one program, the set of codes, or the set of instructions being loaded and executed by a processor to implement a data storage method as described above.
In another aspect, embodiments of the present application provide a computer program product comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, the processor executing the computer instructions to cause the computer device to perform the data storage method provided in one of the above aspects.
The technical scheme provided by the embodiment of the application has the beneficial effects that at least:
after the modem in the terminal receives the first target data, the terminal can acquire the logic channel of the first target data and the description information of the first target data according to the first target data, acquire the storage address of the description information of the first target data in the first memory according to the logic channel of the first target data, and store the description information of the first target data according to the acquired storage address. The application can divide and store the description information of the first target data through the received logic channel, ensures that the description information of the same logic channel is in the same storage position, and the description information of different logic channels is in different storage positions, thereby avoiding the steps of searching and judging for multiple times caused by chaotic storage of description information of different periods, improving the management efficiency of data after data storage, reducing the calculation period of a processor in a modem, improving the utilization rate of the processor in the modem, and optimizing the performance of the processor in the modem.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of a wireless communication system according to an exemplary embodiment of the present application;
fig. 2 is a schematic diagram of a structure of in-terminal stored data according to an exemplary embodiment of the present application;
FIG. 3 is a method flow diagram of a data storage method according to an exemplary embodiment of the present application;
FIG. 4 is a method flow diagram of a data storage method provided in an exemplary embodiment of the present application;
FIG. 5 is a method flow diagram of a data storage method provided in an exemplary embodiment of the present application;
FIG. 6 is a schematic diagram of a structure of data stored in a mobile phone according to an exemplary embodiment of the present application;
FIG. 7 is a block diagram of a data storage device according to an exemplary embodiment of the present application;
fig. 8 is a schematic structural diagram of a computer device according to an exemplary embodiment of the present application.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
The scheme provided by the application can be used in a real scene of controlling the terminal to store data when people use the terminal with the data transmission function in daily life, and in order to facilitate understanding, the structure of some nouns and communication scenes related to the embodiment of the application is simply introduced.
A modem: is a piece of computer hardware that translates a computer's digital signals into analog signals that can be transmitted along a common telephone line, which analog signals can be received by another modem at the other end of the line and translated into a computer-readable language.
Referring to fig. 1, a schematic diagram of a wireless communication system according to an exemplary embodiment of the present application is shown. As shown in fig. 1, the wireless communication system is a communication system based on a cellular mobile communication technology, and may include: a number of terminals 110 and a base station 120.
Where terminal 110 may be a device that provides voice and/or data connectivity to a user. Terminal 110 may communicate with one or more core networks via a radio access network (Radio Access Network, RAN), and terminal 110 may be an internet of things terminal such as a sensor device, a mobile phone (or "cellular" phone), and a computer with an internet of things terminal, for example, a fixed, portable, pocket, hand-held, computer-built-in, or vehicle-mounted device. Such as a Station (STA), subscriber Unit (Subscriber Unit), subscriber Station (Subscriber Station), mobile Station (Mobile Station), mobile Station (Mobile), remote Station (Remote Station), access point, remote Terminal (Remote Terminal), access Terminal (Access Terminal), user Equipment (User Terminal), user Agent (User Agent), user Equipment (User Device), or User Equipment (UE). Alternatively, the terminal 110 may be an unmanned aerial vehicle device, an in-vehicle device, or the like.
The base station 120 may be a network device in a wireless communication system. The wireless communication system may also be a 5G system, also called New Radio (NR) system. Alternatively, the wireless communication system may be a next generation system of the 5G system.
Alternatively, the base station 120 may be a base station (gNB) in a centralized and distributed architecture in a 5G system. When the base station 120 adopts a centralized and Distributed architecture, it generally includes a Centralized Unit (CU) and at least two Distributed Units (DUs). A protocol stack of a packet data convergence protocol (Packet Data Convergence Protocol, PDCP) layer, a radio link layer control protocol (Radio Link Control, RLC) layer, and a medium access control (Media Access Control, MAC) layer is provided in the centralized unit; a Physical (PHY) layer protocol stack is disposed in the distribution unit, and the specific implementation of the base station 120 is not limited in the embodiment of the present application.
A wireless connection may be established between base station 120 and terminal 110 over a wireless air interface. In various embodiments, the wireless air interface is a wireless air interface based on a fifth generation mobile communication network technology (5G) standard, such as the wireless air interface is a new air interface; alternatively, the wireless air interface may be a wireless air interface based on a 5G-based technology standard of a next generation mobile communication network.
Optionally, the wireless communication system may further include a network management device 130.
The base stations 120 may be respectively connected to the network management device 130. The network management device 130 may be a core network device in a wireless communication system, for example, the network management device 130 may be a mobility management entity (Mobility Management Entity, MME) in an evolved packet core network (Evolved Packet Core, EPC). Alternatively, the network management device may be other core network devices, such as a Serving GateWay (SGW), a public data network GateWay (Public Data Network GateWay, PGW), a policy and charging rules function (Policy and Charging Rules Function, PCRF) or a home subscriber server (Home Subscriber Server, HSS), etc. The embodiment of the present application is not limited to the implementation form of the network management device 130.
The terminal in fig. 1 may transmit data to the base station through the modem, or may receive data transmitted from the base station through the modem. In the related art, after a terminal receives Data through a modem, the terminal needs to store the received Data, wherein the terminal divides the received Data into two parts, and one part is description information (Data Tag) of the Data, and the description information is used for describing Payload Data (Payload Data) of the received Data. The current primary data storage schemes are: when the 5G modem receives the data, the payload part of the data is stored in the DDR, the description part of the data is stored in the on-chip memory, and when the data needs to be acquired, the two parts of data can be combined through the corresponding relation between the description information stored in the on-chip memory and the payload part in the DDR, so that the data is obtained.
The process of transmitting application data to the base station in the terminal may be as follows: the terminal stores the application data to be sent in the DDR through the AP, encrypts the application data to be sent through an encryptor (Cipher), and after Integrity protection is carried out on the application data to be sent through an Integrity protector (Integrity), the application data processed through the Cipher and the Integrity is stored in an on-chip memory, and finally the application data is transmitted through a physical layer.
Referring to fig. 2, a schematic diagram of a structure of in-terminal storage data according to an exemplary embodiment of the present application is shown. As shown in fig. 2, first description information 201, second description information 202, third description information 203 are stored On an On Chip Memory (On Chip Memory) 200 of the terminal, and first payload data 205, second payload data 206, and third payload data 207 are stored On a DDR204 of the terminal. Wherein the first description information 201 is used for describing the first payload data 205, the second description information 202 is used for describing the second payload data 206, and the third description information 203 is used for describing the third payload data 207.
The life cycle of the first description information 201 is the same as that of the third description information 203, and the life cycle of the second description information 202 is greater than that of the first description information 201 and the third description information 203, if the first description information 201, the second description information 202 and the third description information 203 are stored together in the on-chip memory, when the first description information 201, the second description information 202 and the third description information 203 are released, the description information needs to be screened according to the life cycle, redundant searching and judging operations are introduced, for example, the situation that the first description information 201 and the third description information 203 are established and released for multiple times increases the complexity of managing the description information by the terminal, and reduces the management efficiency of data in the on-chip memory.
In order to improve the management efficiency of data storage in the terminal and expand the data storage manner in the terminal, the present application provides a solution, please refer to fig. 3, which shows a method flowchart of a data storage method according to an exemplary embodiment of the present application. The method can be applied to the terminal with the data receiving function shown in fig. 1. As shown in fig. 3, the data storage method may include the steps of:
in step 301, in response to receiving the first target data through the modem, a logical channel of the first target data and description information of the first target data are acquired.
The description information is used for describing Payload data of the first target data.
Alternatively, the first target data may be any set of data received by the modem. In the application, after the terminal receives the first target data through the modem, the terminal can acquire the logical channel for receiving the first target data, for example, the modem marks the logical channel for the received data according to the current working state of the modem, for example, the modem works in a state of receiving a CCCH (Common Control Channel ), and the modem marks the logical channel for the received data as a CCCH channel, so that the logical channel for the first target data can be acquired.
Alternatively, the description information of the first target data may be information that is created by the modem for the first target data and is used to describe payload information of the first target data.
Step 302, a first storage address is obtained according to a logical channel of the first target data.
The first storage address is a storage address of the description information of the first target data in the first memory. That is, the modem may acquire the storage address of the description information of the first target data in the first memory according to the logical channel of the first target data.
In step 303, according to the first storage address, the description information of the first target data is stored in the first memory.
The modem stores the obtained description information of the first target data in the first memory according to the first storage address, so that the storage positions of the description information of the target data of the same logic channel in the first memory are the same, and the storage positions of the description information of the target data of different logic channels in the first memory are different. Alternatively, the first memory may be the on-chip memory described above, or may be a separately provided memory for storing description information of data.
In summary, after the modem in the terminal receives the first target data, the terminal may obtain the logical channel of the first target data and the description information of the first target data according to the first target data, obtain the storage address of the description information of the first target data in the first memory according to the logical channel of the first target data, and store the description information of the first target data according to the obtained storage address. The application can divide and store the description information of the first target data through the received logic channel, ensures that the description information of the same logic channel is in the same storage position, and the description information of different logic channels is in different storage positions, thereby avoiding the steps of searching and judging for multiple times caused by chaotic storage of description information of different periods, improving the management efficiency of data after data storage, reducing the calculation period of a processor in a modem, improving the utilization rate of the processor in the modem, and optimizing the performance of the processor in the modem.
In one possible implementation, the first memory is another memory different from the on-chip memory, and is used for storing description information of data received by the modem. The first memory is another memory different from the on-chip memory, and the terminal includes a second memory, which is an example of the on-chip memory. The scheme shown in fig. 3 is described by way of example.
Referring to fig. 4, a method flowchart of a data storage method according to an exemplary embodiment of the application is shown. The method can be applied to the terminal with the data receiving function shown in fig. 1. As shown in fig. 4, the data storage method may include the steps of:
in step 401, in response to receiving the first target data through the modem, a logical channel of the first target data and description information of the first target data are acquired.
The description information is used for describing Payload data of the first target data. The first target data may be data within any logical channel received by the modem, for example, the first target data may be channel data of RLC (Radio Link Control, radio link control layer) or channel data of PDCP (Packet Data Convergence Protocol, packet data convergence protocol layer).
After receiving the first target data, the terminal may acquire the logical channel of the first target data and the description information of the first target data, and the acquiring manner may refer to the description in step 301 in the embodiment of fig. 3, which is not described herein again.
Step 402, obtaining the second storage address according to the order in which the first target data is received in each data.
The second storage address is a storage address of the description information of the first target data in the second memory.
That is, the terminal acquires the storage addresses of the respective data in the second memory in the order in which the respective data in the first target data is received. For example, a first storage area in a second memory in the terminal is idle, the terminal receives 3 target data sequentially, the description information of the first target data is stored from the 3 rd bit to the 8 th bit in the first storage area in the second memory, the description information of the first target data is stored from the 9 th bit to the 10 th bit in the first storage area in the second memory, the description information of the third target data is stored from the 11 th bit to the 15 th bit in the first storage area in the second memory, and so on, and the terminal can obtain the storage address of the description information in the second memory according to the receiving sequence of the first target data.
And step 403, storing the description information of the first target data into a second memory according to the second storage address.
Correspondingly, after obtaining the second storage address, the terminal stores the description information of the first target data into the second memory according to the second storage address.
Step 404, obtaining a first number, where the first number is the number of logical channels corresponding to the description information stored in the second memory.
Optionally, in the present application, the terminal may further actively acquire the number of each logical channel corresponding to the description information stored in the second memory, count the number of each logical channel corresponding to the stored description information, and determine whether to start the first memory according to the first number, where the first memory is used in the terminal to store the description information of each first target data according to the logical channel. The terminal may determine whether the first number is greater than the number threshold, and if yes, execute step 404, otherwise, the terminal continues to store the description information of the first target data in the second memory according to the above scheme.
In response to the first number being greater than the number threshold, a first memory is started 405.
After judging that the first number is greater than the number threshold, the terminal can start the first memory. For example, the number threshold is 2, when the number of the logic channels corresponding to the description information stored in the second memory exceeds 2, the life cycle of the description information of each target data stored in the second memory is different, and the first memory is required to be started at this time, and the description information of the target data is stored according to the logic channels through the first memory, so that the description information of the target data of different logic channels is prevented from being stored in the same position.
Step 406, obtaining a first storage address according to the logical channel of the first target data, where the first storage address is a storage address of the description information of the first target data in the first memory.
Alternatively, the terminal may obtain the storage address in the first memory according to the logical channel of the first target data. In a possible implementation manner, different storage areas are divided in the first memory in advance corresponding to different logic channels, and the terminal can acquire the first storage area in the first memory according to the corresponding relation between the logic channels and each storage area, wherein the first storage area is the storage area corresponding to the logic channels in the first memory; . Referring to table 1, a table of correspondence between logical channels and a storage area of a first memory according to an exemplary embodiment of the present application is shown.
Logical channel First memory
Logical channel one Storage area one
Logical channel two Storage area two
Logical channel three Storage area three
…… ……
TABLE 1
As shown in table 1, if the logical channel of the first target data is a logical channel one, the storage area of the first target data corresponding to the first memory is a storage area one.
Optionally, the terminal acquires the first storage area in a logic channel according to the first target data, and generates the first storage address according to the first storage area. For example, the above-mentioned first storage area corresponds to 900 th to 40000 th bits of the first memory, and then the terminal may generate a first storage address for storing description information of the first target data according to the bits remaining in the area. That is, after the terminal obtains the first storage area, the terminal may generate a storage address for the first target data in the order of bits remaining in the first storage area.
In step 407, according to the first storage address, the description information of the first target data is stored into the first memory.
That is, the terminal may store the description information of the first target data in the first memory in accordance with the first storage address.
In one possible implementation manner, since the description information of the first target data is stored in the second memory, the terminal may store the description information of the first target data in the first memory from the second memory according to the first storage address; and releasing the description information of the first target data stored in the second memory. That is, the terminal may acquire the description information of the first target data from the second memory, and store the description information of the first target data into the first memory according to the first storage address generated as described above.
In one possible implementation, the modem in the terminal may further receive a data transfer instruction of the first processor, where the data transfer instruction is used to instruct to store the description information of the first target data from the second memory into the first memory; and storing the description information of the first target data from the second memory to the first memory according to the first storage address in response to the data transfer instruction. The first processor may be a baseband processor (Baseband Processor, BP).
That is, in the above-described process of starting the first memory, the terminal may also generate a data transfer instruction by the first processor so that the modem may store the description information of the first target data from the second memory into the first memory in response to the data transfer instruction.
Optionally, the step 401 may further be performed in the present application to obtain Payload data of the first target data in response to receiving the first target data. And storing Payload data of the first target data into the DDR.
That is, the present embodiment also stores the Payload data of the first target data, acquires the Payload data of the first target data at the same time of the above step 401, and stores the Payload data of the first target data in the DDR.
In summary, after the modem in the terminal receives the first target data, the terminal may obtain the logical channel of the first target data and the description information of the first target data according to the first target data, obtain the storage address of the description information of the first target data in the first memory according to the logical channel of the first target data, and store the description information of the first target data according to the obtained storage address. The application can divide and store the description information of the first target data through the received logic channel, ensures that the description information of the same logic channel is in the same storage position, and the description information of different logic channels is in different storage positions, thereby avoiding the steps of searching and judging for multiple times caused by chaotic storage of description information of different periods, improving the management efficiency of data after data storage, reducing the calculation period of a processor in a modem, improving the utilization rate of the processor in the modem, and optimizing the performance of the processor in the modem.
In addition, by independently setting the first memory, the data request amount of the on-chip memory in the terminal can be reduced, and the acquisition efficiency and the management efficiency of the first target data are improved.
In one possible implementation manner, the method embodiments of fig. 3 and fig. 4 are illustrated by taking the mobile phone as the terminal, and the first memory, the on-chip memory and the modem included in the mobile phone as examples. Referring to fig. 5, a method flowchart of a data storage method according to an exemplary embodiment of the application is shown. The method is carried out by a mobile phone in daily life, and as shown in fig. 5, the data storage method can comprise the following steps:
in step 501, in response to the modem receiving the first target data, description information and payload information of the first target data are acquired.
In step 502, the description information of the first target data is stored in an on-chip memory.
In step 503, a first number is obtained, the first number being the number of logical channels of the first target data stored in the on-chip memory.
In step 504, a first memory is started in response to the first number being greater than a number threshold.
In step 505, the description information of the first target data in the on-chip memory is stored into the first memory.
Step 506, storing the payload information of the first target data into the DDR.
Optionally, details of the execution of steps 501 to 506 may refer to the descriptions of the respective steps in fig. 4, which are not described herein.
Referring to fig. 6, a schematic diagram of a structure of data stored in a mobile phone according to an exemplary embodiment of the application is shown. As shown in fig. 6, the first description information 601, the second description information 602, and the third description information 603 are stored on the on-chip memory 600, and the first payload data 606, the second payload data 607, and the third payload data 608 are stored on the DDR 605. When the number of the logic channels of the first descriptive information 601, the second descriptive information 602 and the third descriptive information 603 is greater than the number threshold, the first memory 604 is started, the first descriptive information 601 and the second descriptive information 602 stored in the on-chip memory 600 are transferred to the first memory 604, and the third descriptive information 603 is distinguished and stored according to the logic channels of the descriptive information through the first memory.
In summary, after the modem in the terminal receives the first target data, the terminal may obtain the logical channel of the first target data and the description information of the first target data according to the first target data, obtain the storage address of the description information of the first target data in the first memory according to the logical channel of the first target data, and store the description information of the first target data according to the obtained storage address. The application can divide and store the description information of the first target data through the received logic channel, ensures that the description information of the same logic channel is in the same storage position, and the description information of different logic channels is in different storage positions, thereby avoiding the steps of searching and judging for multiple times caused by chaotic storage of description information of different periods, improving the management efficiency of data after data storage, reducing the calculation period of a processor in a modem, improving the utilization rate of the processor in the modem, and optimizing the performance of the processor in the modem.
The following are examples of the apparatus of the present application that may be used to perform the method embodiments of the present application. For details not disclosed in the embodiments of the apparatus of the present application, please refer to the embodiments of the method of the present application.
Referring to fig. 7, a block diagram of a data transmission apparatus according to an exemplary embodiment of the present application is shown. The data transmission apparatus 700 may be used in a terminal including a first memory and a modem to perform all or part of the steps performed by the terminal in the methods provided by the embodiments shown in fig. 3 and 4. The data transmission apparatus 700 may include: an information acquisition module 701, an address acquisition module 702, and a data storage module 703.
An information obtaining module 701, configured to obtain, in response to receiving first target data through the modem, a logical channel of the first target data and description information of the first target data, where the description information is used to describe Payload data of the first target data;
an address obtaining module 702, configured to obtain a first storage address according to a logical channel of the first target data, where the first storage address is a storage address of description information of the first target data in the first memory;
The data storage module 703 is configured to store the description information of the first target data into the first memory according to the first storage address.
In summary, after the modem in the terminal receives the first target data, the terminal may obtain the logical channel of the first target data and the description information of the first target data according to the first target data, obtain the storage address of the description information of the first target data in the first memory according to the logical channel of the first target data, and store the description information of the first target data according to the obtained storage address. The application can divide and store the description information of the first target data through the received logic channel, ensures that the description information of the same logic channel is in the same storage position, and the description information of different logic channels is in different storage positions, thereby avoiding the steps of searching and judging for multiple times caused by chaotic storage of description information of different periods, improving the management efficiency of data after data storage, reducing the calculation period of a processor in a modem, improving the utilization rate of the processor in the modem, and optimizing the performance of the processor in the modem.
Optionally, the address obtaining module 702 includes: a first acquisition unit and a first generation unit;
the first obtaining unit is configured to obtain a first storage area according to a logical channel of the first target data, where the first storage area is a storage area corresponding to the logical channel in the first memory;
the first generation unit is configured to generate the first storage address according to the first storage area.
Optionally, the terminal further comprises a second memory; the apparatus further comprises:
a first obtaining module, configured to obtain, before the address obtaining module 702 obtains a first storage address according to a logical channel of the first target data, a second storage address according to an order in which the first target data is received in each data, where the second storage address is a storage address of description information of the first target data in the second memory;
and the first storage module is used for storing the description information of the first target data into the second memory according to the second storage address.
Optionally, the first storage module includes: a first storage unit and a first release unit;
The first storage unit is used for storing the description information of the first target data from the second memory to the first memory according to the first storage address;
the first releasing unit is configured to release the description information of the first target data stored in the second memory.
Optionally, the first storage unit includes: a receiving subunit and a storage subunit;
the receiving subunit is configured to receive a data transfer instruction of a first processor, where the data transfer instruction is configured to instruct to store, from the second memory to the first memory, description information of the first target data;
the storage subunit is used for responding to the data transfer instruction and storing the description information of the first target data from the second memory to the first memory according to the first storage address.
Optionally, the apparatus further comprises:
a second obtaining module, configured to obtain, before the address obtaining module 702 obtains a first storage address according to the logical channels of the first target data, a first number, where the first number is a number of logical channels corresponding to the description information stored in the second memory;
And a starting module, configured to start the first memory in response to the first number being greater than a number threshold.
Optionally, the second memory is an on-chip memory.
Optionally, the apparatus further comprises:
the third acquisition module is used for responding to the received first target data and acquiring Payload data of the first target data;
and the second storage module is used for storing the Payload data of the first target data into the DDR double rate synchronous dynamic random access memory.
Optionally, the first target data is channel data of an RLC radio link control layer or channel data of a PDCP packet data convergence protocol layer.
Referring to fig. 8, a schematic structural diagram of a computer device according to an exemplary embodiment of the application is shown. The computer device 800 may include: a processor 801, a receiver 802, a transmitter 803, a memory 804, and a bus 805.
The processor 801 includes one or more processing cores, and the processor 801 executes various functional applications and information processing by running software programs and modules.
The receiver 802 and the transmitter 803 may be implemented as one communication component, which may be a communication chip. The communication chip may also be referred to as a transceiver.
The memory 804 is connected to the processor 801 through a bus 805.
The memory 804 may be used for storing a computer program, which the processor 801 is configured to execute to implement the various steps performed by the computer device in the method embodiments described above.
Further, the memory 804 may be implemented by any type of volatile or nonvolatile storage device, including but not limited to: magnetic or optical disk, electrically erasable programmable Read-Only Memory (EEPROM), erasable programmable Read-Only Memory (Erasable Programmable Read Only Memory, EPROM), static random access Memory (Static Random Access Memory, SRAM), read Only Memory (ROM), magnetic Memory, flash Memory, programmable Read-Only Memory (Programmable Read Only Memory, PROM).
In an exemplary embodiment, the computer device includes a first memory and a modem;
the modem is used for the purpose of,
in response to receiving first target data through the modem, acquiring a logical channel of the first target data and description information of the first target data, wherein the description information is used for describing Payload data of the first target data;
Acquiring a first storage address according to a logic channel of the first target data, wherein the first storage address is a storage address of description information of the first target data in the first memory;
and storing the description information of the first target data into the first memory according to the first storage address.
In one possible implementation, the modem is configured to,
acquiring a first storage area according to a logic channel of the first target data, wherein the first storage area is a storage area corresponding to the logic channel in the first memory;
and generating the first storage address according to the first storage area.
In one possible implementation, the terminal further includes a second memory; the modem is also used for the purpose of,
acquiring a second storage address according to the received sequence of the first target data in each data, wherein the second storage address is the storage address of the description information of the first target data in the second memory;
and storing the description information of the first target data into the second memory according to the second storage address.
In one possible implementation, the modem is configured to,
storing the description information of the first target data from the second memory to the first memory according to the first storage address;
and releasing the description information of the first target data stored in the second memory.
In one possible implementation, the modem is configured to,
receiving a data transfer instruction of a first processor, wherein the data transfer instruction is used for indicating that the description information of the first target data is stored in the first memory from the second memory;
and in response to the data transfer instruction, storing the description information of the first target data from the second memory to the first memory according to the first storage address.
In one possible implementation, the modem is also used to,
acquiring a first number, wherein the first number is the number of each logic channel corresponding to the description information stored in the second memory;
the first memory is activated in response to the first number being greater than a number threshold.
In one possible implementation, the second memory is an on-chip memory.
In one possible implementation, the modem is also used to,
responding to the received first target data, and acquiring Payload data of the first target data;
and storing the Payload data of the first target data into the DDR double rate synchronous dynamic random access memory.
In one possible implementation, the first target data is channel data of an RLC radio link control layer or channel data of a PDCP packet data convergence protocol layer.
Embodiments of the present application also provide a computer readable medium storing at least one instruction that is loaded and executed by the processor to implement all or part of the steps performed by a terminal in the data transmission method according to the above embodiments.
Embodiments of the present application also provide a computer program product comprising computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the data transmission method provided in the various alternative implementations of the various embodiments described above.
It should be noted that: the data transmission apparatus provided in the above embodiment is exemplified by the above embodiments only when executing the above data transmission method, and in an actual program, the above function allocation may be performed by different functional modules according to need, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and the method embodiments provided in the foregoing embodiments belong to the same concept, and specific implementation processes of the apparatus and the method embodiments are detailed in the method embodiments and are not repeated herein.
The foregoing embodiment numbers of the present application are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The foregoing description of the preferred embodiments of the present application is not intended to limit the application, but rather, the application is to be construed according to the appended claims.

Claims (12)

1. A data storage method for use in a terminal comprising a first memory and a modem, the method comprising:
in response to receiving first target data through the modem, acquiring a logical channel of the first target data and description information of the first target data, wherein the description information is used for describing Payload data of the first target data;
acquiring a first storage address according to a logic channel of the first target data, wherein the first storage address is a storage address of description information of the first target data in the first memory;
and storing the description information of the first target data into the first memory according to the first storage address.
2. The method of claim 1, wherein the first memory is divided into different memory areas according to different logical channels, and the obtaining the first memory address according to the logical channel of the first target data includes:
acquiring a first storage area according to a logic channel of the first target data, wherein the first storage area is a storage area corresponding to the logic channel in the first memory;
And generating the first storage address according to the first storage area.
3. The method of claim 1, wherein the terminal further comprises a second memory;
before the first storage address is acquired according to the logic channel of the first target data, the method further comprises:
acquiring a second storage address according to the received sequence of the first target data in each data, wherein the second storage address is the storage address of the description information of the first target data in the second memory;
and storing the description information of the first target data into the second memory according to the second storage address.
4. A method according to claim 3, wherein storing the description information of the first target data in the first memory according to the first storage address includes:
storing the description information of the first target data from the second memory to the first memory according to the first storage address;
and releasing the description information of the first target data stored in the second memory.
5. The method of claim 4, wherein storing the description information of the first target data from the second memory to the first memory according to the first storage address comprises:
Receiving a data transfer instruction of a first processor, wherein the data transfer instruction is used for indicating that the description information of the first target data is stored in the first memory from the second memory;
and in response to the data transfer instruction, storing the description information of the first target data from the second memory to the first memory according to the first storage address.
6. The method of claim 3, wherein prior to the obtaining the first memory address according to the logical channel of the first target data, further comprising:
acquiring a first number, wherein the first number is the number of each logic channel corresponding to the description information stored in the second memory;
the first memory is activated in response to the first number being greater than a number threshold.
7. A method according to claim 3, wherein the second memory is an on-chip memory.
8. The method according to any one of claims 1 to 7, further comprising:
responding to the received first target data, and acquiring Payload data of the first target data;
and storing the Payload data of the first target data into the DDR double rate synchronous dynamic random access memory.
9. The method according to any of claims 1 to 7, wherein the first target data is channel data of an RLC radio link control layer or channel data of a PDCP packet data convergence protocol layer.
10. A data storage device for use in a terminal comprising a first memory and a modem, the device comprising:
an information acquisition module, configured to acquire, in response to receiving first target data through the modem, a logical channel of the first target data and description information of the first target data, where the description information is used to describe Payload data of the first target data;
the address acquisition module is used for acquiring a first storage address according to the logic channel of the first target data, wherein the first storage address is the storage address of the description information of the first target data in the first memory;
and the data storage module is used for storing the description information of the first target data into the first memory according to the first storage address.
11. A computer device comprising a processor and a memory having stored therein at least one instruction, at least one program, code set or instruction set, the at least one instruction, at least one program, code set or instruction set being loaded and executed by the processor to implement a data storage method according to any of claims 1 to 9.
12. A computer readable storage medium having stored therein at least one instruction, at least one program, code set, or instruction set, the at least one instruction, the at least one program, the code set, or instruction set being loaded and executed by a processor to implement the data storage method of any of claims 1 to 9.
CN202010872918.0A 2020-08-26 2020-08-26 Data storage method, device, computer equipment and storage medium Active CN111857606B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010872918.0A CN111857606B (en) 2020-08-26 2020-08-26 Data storage method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010872918.0A CN111857606B (en) 2020-08-26 2020-08-26 Data storage method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111857606A CN111857606A (en) 2020-10-30
CN111857606B true CN111857606B (en) 2023-10-20

Family

ID=72967268

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010872918.0A Active CN111857606B (en) 2020-08-26 2020-08-26 Data storage method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111857606B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114168509A (en) * 2021-10-22 2022-03-11 中科苏州微电子产业技术研究院 Expansion control method and system of data acquisition chip
CN114625084B (en) * 2022-03-02 2024-01-19 杭州康吉森自动化科技有限公司 Method and device for acquiring node information based on control system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07273794A (en) * 1994-03-31 1995-10-20 Kawasaki Steel Corp Packet communication method
US5546396A (en) * 1992-02-05 1996-08-13 Sextant Avionique Method and apparatus for communicating between a plurality of subcomponents
CN101867972A (en) * 2010-06-29 2010-10-20 中国科学院计算技术研究所 Data transmission method in unacknowledged mode of wireless link control layer
CN111587549A (en) * 2018-02-06 2020-08-25 Oppo广东移动通信有限公司 Data transmission method, equipment and computer storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5546396A (en) * 1992-02-05 1996-08-13 Sextant Avionique Method and apparatus for communicating between a plurality of subcomponents
JPH07273794A (en) * 1994-03-31 1995-10-20 Kawasaki Steel Corp Packet communication method
CN101867972A (en) * 2010-06-29 2010-10-20 中国科学院计算技术研究所 Data transmission method in unacknowledged mode of wireless link control layer
CN111587549A (en) * 2018-02-06 2020-08-25 Oppo广东移动通信有限公司 Data transmission method, equipment and computer storage medium

Also Published As

Publication number Publication date
CN111857606A (en) 2020-10-30

Similar Documents

Publication Publication Date Title
WO2018201407A1 (en) Report sending method, report receiving method, device and system
US9774529B2 (en) Method and apparatus for transmitting data frame
CN109168171B (en) Configuration information acquisition method, device, equipment and system
WO2016112548A1 (en) Location information acquiring method and device
CN111857606B (en) Data storage method, device, computer equipment and storage medium
CN112020104B (en) Method, communication device and communication system for background data transmission
US11895649B2 (en) Relay network duplex coordination method and relay node device
US20210266996A1 (en) Device to device-based communication method and terminal
WO2020232576A1 (en) Unicast connection establishment method and apparatus, and storage medium
CN112214425B (en) Data transmission method, data transmission device, computer equipment and storage medium
CN101945379A (en) Method for obtaining user permanent mark and access network equipment
CN104137605A (en) Method, user equipment and base station for transmitting data
CN112438058B (en) System message updating method, device and storage medium
WO2018227445A1 (en) Paging method, network device, and terminal device
CN108401228B (en) Communication method and device
CN108064088B (en) RRC connection release method, terminal, access network device and storage medium
CN108200661B (en) RRC connection release method, terminal, access network device and storage medium
WO2019178833A1 (en) Resource authorization method and device
WO2023279296A1 (en) Wireless communication method, first terminal, and communication device
EP4152827A1 (en) Wireless communication method and remote terminal
CN112399471B (en) Data caching method and related device
CN109644344B (en) Service transmission method, terminal and network equipment
CN116567593A (en) Notification method, first network function and second network function
CN117099471A (en) Method and device for controlling SCG state, terminal equipment and network equipment
CN116017624A (en) Method and device for sending discovery message

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