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

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

Info

Publication number
CN111857606A
CN111857606A CN202010872918.0A CN202010872918A CN111857606A CN 111857606 A CN111857606 A CN 111857606A CN 202010872918 A CN202010872918 A CN 202010872918A CN 111857606 A CN111857606 A CN 111857606A
Authority
CN
China
Prior art keywords
memory
target data
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.)
Granted
Application number
CN202010872918.0A
Other languages
Chinese (zh)
Other versions
CN111857606B (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

Images

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mobile Radio Communication Systems (AREA)

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: responding to the first target data received by 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 logical 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 memory address. The method and the device ensure that the description information of the same logical channel is in the same storage position and the description information of different logical channels is in different storage positions, and improve the management efficiency of the data after data storage.

Description

Data storage method and 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 and apparatus, a computer device, and a storage medium.
Background
With the rapid development of the communication technology field, in the daily life of people, more and more scenes are needed for data transmission, such as the use of application programs in terminals, the sending of short messages, the dialing of telephones, and the like.
In these Data transmission scenarios, when a terminal receives Data, it is usually required to store the received Data, where because a storage space of a DDR (Double Data Rate Synchronous random access Memory) is large and cheap, a payload portion of the Data received by the terminal is stored in the DDR, and description information of the Data is generally stored in an 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 data reception.
For the above scheme for storing the description information of the data in the on-chip memory, because the description information of different data often corresponds to different life cycles, if the description information of the data in different life cycles is stored together, the description information of the data needs to be searched and judged for many times when the data is released, thereby 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 and 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, which is used in a terminal including a first memory and a modem, and 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 logical channel of the first target data, wherein the first storage address is a storage address of the 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 apparatus, where the apparatus is used in a terminal including a first memory and a modem, and the apparatus includes:
an information obtaining module, configured to, in response to receiving first target data through the modem, obtain 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, 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;
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, which includes a processor and a memory, where at least one instruction, at least one program, a set of codes, or a set of instructions is stored in the memory, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by the processor to implement the data storage method as described above.
In another aspect, embodiments of the present application provide a computer-readable storage medium, in which at least one instruction, at least one program, a code set, or a set of instructions is stored, and the at least one instruction, the at least one program, the code set, or the set of instructions is loaded and executed by a processor to implement the data storage method as described above.
In another aspect, embodiments of the present application provide a computer program product including computer instructions, which are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, and executes the computer instructions to cause the computer device to execute the data storage method provided by the above one aspect.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
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 method and the device can divide and store the description information of the first target data through the received logic channels, ensure 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, avoid multiple searching and judging steps caused by chaotic storage of the description information of different periods, improve the management efficiency of data after data storage, and reduce the calculation period of the processor in the modem, thereby 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 in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a wireless communication system according to an exemplary embodiment of the present application;
fig. 2 is a schematic structural diagram of data stored in a terminal according to an exemplary embodiment of the present application;
FIG. 3 is a flow chart of a method of data storage provided by an exemplary embodiment of the present application;
FIG. 4 is a flowchart of a method of data storage provided by an exemplary embodiment of the present application;
FIG. 5 is a flowchart of a method of data storage provided by an exemplary embodiment of the present application;
fig. 6 is a schematic structural diagram 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 provided in 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 the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended 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 for convenience of understanding, the following first briefly introduces some terms related to the embodiment of the application and the structure of a communication scene.
A modem: is computer hardware that translates a computer's digital signals into analog signals that can be transmitted over a conventional telephone line, which can be received by another modem on the other end of the line and translated into a computer-understandable language.
Referring to fig. 1, a schematic structural 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: several terminals 110 and base stations 120.
Terminal 110 may refer to, among other things, a device that provides voice and/or data connectivity to a user. The terminal 110 may communicate with one or more core networks via a Radio Access Network (RAN), and the terminal 110 may be an internet of things terminal, such as a sensor device, a mobile phone (or referred to as a "cellular" phone), and a computer having the internet of things terminal, and may be a fixed, portable, pocket, handheld, computer-included, or vehicle-mounted device, for example. For example, a Station (STA), a Subscriber Unit (Subscriber Unit), a Subscriber Station (Subscriber Station), a Mobile Station (Mobile), a Remote Station (Remote Station), an Access point, a Remote Terminal (Remote Terminal), an Access Terminal (Access Terminal), a User Equipment (User Terminal), a User agent (User agent), a User Equipment (User Device), or a User Terminal (UE). Alternatively, the terminal 110 may be a device of an unmanned aerial vehicle, a vehicle-mounted 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, which is also called a New Radio (NR) system. Alternatively, the wireless communication system may be a next-generation system of a 5G system.
Optionally, the base station 120 may be a base station (gNB) adopting a centralized distributed architecture in the 5G system. When the base station 120 employs a centralized Distributed architecture, it typically includes a Central Unit (CU) and at least two Distributed Units (DU). A Packet Data Convergence Protocol (PDCP) layer, a Radio Link layer Control Protocol (RLC) layer, and a Media Access Control (MAC) layer are set in the central unit; a Physical (PHY) layer protocol stack is disposed in the distribution unit, and the embodiment of the present application does not limit the specific implementation manner of the base station 120.
The base station 120 and the terminal 110 may establish a radio connection over a radio air interface. In different embodiments, the wireless air interface is a wireless air interface based on a fifth generation mobile communication network technology (5G) standard, for example, the wireless air interface is a new air interface; alternatively, the wireless air interface may be a wireless air interface based on a 5G next generation mobile communication network technology standard.
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 apparatus 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 (MME) in an Evolved Packet Core (EPC). Alternatively, the Network management device may also be other core Network devices, such as a Serving GateWay (SGW), a Public Data Network GateWay (PGW), a Policy and Charging Rules Function (PCRF), a Home Subscriber Server (HSS), or the like. 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 a modem, or may receive data transmitted by the base station through the modem. In the related art, after receiving Data through a modem, a terminal needs to store the received Data, wherein the terminal divides the received Data into two parts, one part is Data Tag (Data Tag) for describing payload Data (payload Data) of the received Data. The current major 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 acquired.
The procedure of transmitting the application data to the base station in the terminal may be as follows: the terminal stores application data to be sent in a DDR through an AP, encrypts the application data to be sent through an encryptor (Cipher), performs Integrity protection on the application data to be sent through an Integrity protector (Integrity), stores the application data processed through the Cipher and the Integrity in an on-chip memory, and finally transmits the application data through a physical layer.
Referring to fig. 2, a schematic structural diagram of data stored in a terminal according to an exemplary embodiment of the present application is shown. As shown in fig. 2, first description information 201, second description information 202, and third description information 203 are stored On an 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 to describe the first payload data 205, the second description information 202 is used to describe the second payload data 206, and the third description information 203 is used to describe the third payload data 207.
The life cycles of the first description information 201 and the third description information 203 are the same, 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 in an 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 cycles, and redundant searching and judging operations are introduced, for example, when the first description information 201 and the third description information 203 are established and released for multiple times, the complexity of terminal management on the description information is increased, and the management efficiency of data in the on-chip memory is reduced.
In order to improve the management efficiency of data after the data is stored in the terminal and extend the way of storing the data in the terminal, the present application provides a solution, please refer to fig. 3, which shows a flowchart of a method for storing data 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 following steps:
step 301, 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.
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 receiving the first target data through the modem, the terminal may obtain a logical Channel that receives the first target data, for example, the modem marks the logical Channel for the received data according to its current operating state, for example, the modem operates in a state of receiving a Common Control Channel (CCCH), and the modem marks the logical Channel for the received data as the CCCH Channel, so as to obtain the logical Channel for the first target data.
Optionally, the description information of the first target data may also be information that is established by the modem for the first target data and used for describing payload information of the first target data.
Step 302, a first storage address is obtained according to the logical channel of the first target data.
Wherein 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 obtain a 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.
Step 303, storing the description information of the first target data into the first memory according to the first storage address.
The modem stores the obtained description information of the first target data in a first memory according to the first storage address, so that the storage positions of the description information of the target data of the same logical channel in the first memory are the same, and the storage positions of the description information of the target data of different logical channels in the first memory are different. Alternatively, the first memory may be the above-mentioned on-chip memory, 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 storage 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 method and the device can divide and store the description information of the first target data through the received logic channels, ensure 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, avoid multiple searching and judging steps caused by chaotic storage of the description information of different periods, improve the management efficiency of data after data storage, and reduce the calculation period of the processor in the modem, thereby improving the utilization rate of the processor in the modem and optimizing the performance of the processor in the modem.
In a possible implementation manner, the first memory is another memory different from the on-chip memory, and the first memory is used for storing description information of data received by the modem. For example, the first memory is another memory different from the on-chip memory, and the terminal includes a second memory, which is the on-chip memory. The above-described scheme shown in fig. 3 is described by way of example.
Referring to fig. 4, a flowchart of a method of storing data provided by an exemplary embodiment of the present 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 following steps:
step 401, 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.
The description information is used for describing Payload data of the first target data. The first target Data may be Data in any logical channel received by the modem, for example, the first target Data may be channel Data of RLC (radio link Control) or PDCP (Packet Data convergence protocol).
After receiving 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, where the obtaining manner may refer to the description in step 301 in the embodiment in fig. 3, and details are not described here.
Step 402, according to the order in which the first target data are received in the respective data, a second storage address is obtained.
Wherein 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 are received. For example, a first storage area in a second memory in the terminal is free, the terminal receives 3 pieces of target data in sequence, description information of the first piece of target data is stored in bits from 3 rd to 8 th in the first storage area in the second memory, description information of the first piece of target data is stored in bits from 9 th to 10 th in the first storage area in the second memory, description information of the third piece of target data is stored in bits from 11 th to 15 th in the first storage area in the second memory, and so on, the terminal can obtain storage addresses of the description information in the second memory according to the receiving sequence of the first piece of target data.
And step 403, storing the description information of the first target data into a second memory according to the second memory address.
Correspondingly, after the terminal obtains the second storage address, the terminal stores the description information of the first target data into the second storage according to the second storage address.
In step 404, a first number is obtained, where the first number is the number of each logical channel corresponding to the description information stored in the second memory.
Optionally, in this application, the terminal may further actively obtain the number of each logical channel corresponding to the stored description information 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, if so, 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 quantity being greater than the quantity threshold, the first memory is activated, step 405.
The terminal may start the first memory after judging that the first number is greater than the number threshold. For example, the number threshold is 2, and when the number of each logical channel corresponding to the description information stored in the second memory exceeds 2, it indicates that the life cycles of the description information of each target data stored in the second memory are different, at this time, the first memory needs to be started, and the description information of the target data is stored according to the logical channels by the first memory, so that the description information of the target data of different logical channels is prevented from being stored in the same location.
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 acquire 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 previously divided in the first storage corresponding to different logical channels, and the terminal may obtain the first storage area in the first storage according to a correspondence between the logical channel and each storage area, where the first storage area is a storage area corresponding to the logical channel in the first storage; . Please refer to table 1, which shows a table of correspondence between logical channels and storage areas of the first memory according to an exemplary embodiment of the present application.
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 logical channel one, the storage area of the first target data in the first memory is storage area one.
Optionally, the terminal acquires the first storage area in the logical channel according to the first target data, and generates the first storage address according to the first storage area. For example, the first memory area corresponds to bits 900 to 40000 of the first memory, and the terminal may generate the first memory address for storing the description information of the first target data according to the remaining bits in the area. That is, after the terminal obtains the first storage area, it may generate a storage address for the first target data in the order of the remaining bits in the first storage area.
Step 407, storing the description information of the first target data into the first memory according to the first storage address.
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 a 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 from the second memory into the first memory according to the first storage address; and releases 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 in the first memory according to the first storage address generated as described above.
In a possible implementation manner, the modem in the terminal may further receive a data transfer instruction of the first processor, the data transfer instruction being used for instructing to store description information of the first target data from the second memory into the first memory; and in response to the data transfer instruction, storing the description information of the first target data from the second memory into the first memory according to the first memory address. The first Processor may be a Baseband Processor (BP).
That is, in the process of starting the first memory, the terminal may also generate a data transfer instruction through 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, in this application, when the step 401 is executed, Payload data of the first target data may also be obtained 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, and obtains the Payload data of the first target data and stores the Payload data of the first target data in the DDR at the same time as the step 401.
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 storage 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 method and the device can divide and store the description information of the first target data through the received logic channels, ensure 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, avoid multiple searching and judging steps caused by chaotic storage of the description information of different periods, improve the management efficiency of data after data storage, and reduce the calculation period of the processor in the modem, thereby improving the utilization rate of the processor in the modem and optimizing the performance of the processor in the modem.
In addition, by means of 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 a possible implementation manner, the method embodiments of fig. 3 and fig. 4 are illustrated by taking the terminal as a mobile phone, and taking the first memory, the on-chip memory and the modem included in the mobile phone as an example. Referring to fig. 5, a flowchart of a method of storing data provided by an exemplary embodiment of the present application is shown. The method is executed by a mobile phone in daily life, and as shown in fig. 5, the data storage method may include the following steps:
step 501, in response to the modem receiving the first target data, obtaining description information and payload information of the first target data.
Step 502, storing description information of the first target data in an on-chip memory.
In step 503, a first number is obtained, where the first number is the number of logical channels of the first target data stored in the on-chip memory.
In response to the first quantity being greater than the quantity threshold, a first memory is activated, step 504.
Step 505, storing the description information of the first target data in the on-chip memory into the first memory.
Step 506, storing the payload information of the first target data in the DDR.
Optionally, details of the steps 501 to 506 may refer to the description of each step in fig. 4, and are not described herein again.
Please refer to fig. 6, which shows a schematic structural diagram of data stored in a mobile phone according to an exemplary embodiment of the present application. As shown in fig. 6, first description information 601, second description information 602, and third description information 603 are stored on the on-chip memory 600, and first payload data 606, second payload data 607, and third payload data 608 are stored on the DDR 605. When the number of logical channels of the first description information 601, the second description information 602, and the third description information 603 is greater than the number threshold, the first memory 604 is activated, and the first description information 601, the second description information 602, and the third description information 603 stored in the on-chip memory 600 are transferred to the first memory 604, and are distinguished and stored according to the logical channels of the respective description information by 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 storage 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 method and the device can divide and store the description information of the first target data through the received logic channels, ensure 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, avoid multiple searching and judging steps caused by chaotic storage of the description information of different periods, improve the management efficiency of data after data storage, and reduce the calculation period of the processor in the modem, thereby improving the utilization rate of the processor in the modem and optimizing the performance of the processor in the modem.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made 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 in 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, in response to receiving first target data through the modem, obtain 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 storage 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 method and the device can divide and store the description information of the first target data through the received logic channels, ensure 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, avoid multiple searching and judging steps caused by chaotic storage of the description information of different periods, improve the management efficiency of data after data storage, and reduce the calculation period of the processor in the modem, thereby 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 generating unit is configured to generate the first storage address according to the first storage area.
Optionally, the terminal further comprises a second memory; the device further comprises:
a first obtaining module, configured to, before the address obtaining module 702 obtains the first storage address according to the logical channel of the first target data, obtain 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 the description information of the first target data in the second storage;
and the first storage module is used for storing the description information of the first target data into the second storage 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 configured to store the description information of the first target data from the second memory into 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 storing subunit;
the receiving subunit is configured to receive a data transfer instruction of a first processor, where the data transfer instruction is used to instruct to store description information of the first target data from the second memory into the first memory;
and the storage subunit is configured to, in response to the data transfer instruction, store the description information of the first target data from the second memory into the first memory according to the first storage address.
Optionally, the apparatus further comprises:
a second obtaining module, configured to obtain a first number before the address obtaining module 702 obtains the first storage address according to the logical channel of the first target data, where the first number is a number of each logical channel corresponding to the description information stored in the second storage;
an enable module to enable 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:
a third obtaining module, configured to obtain Payload data of the first target data in response to receiving 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 present 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 piece of communication chip. The communication chip may also be referred to as a transceiver.
The memory 804 is coupled to the processor 801 by a bus 805.
The memory 804 may be used for storing a computer program for execution by the processor 801 for carrying out the respective steps performed by the computer device in the above-described method embodiments.
Further, the memory 804 may be implemented by any type or combination of volatile or non-volatile storage devices, including, but not limited to: magnetic or optical disks, Electrically Erasable Programmable Read-Only memories (EEPROMs), Erasable Programmable Read-Only memories (EPROMs), Static Random Access Memories (SRAMs), Read-Only memories (ROMs), magnetic memories, flash memories, Programmable Read-Only memories (PROMs).
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 logical channel of the first target data, wherein the first storage address is a storage address of the 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 logical channel of the first target data, wherein the first storage area is a storage area corresponding to the logical channel in the first memory;
and generating the first storage address according to the first storage area.
In a possible implementation manner, the terminal further includes a second memory; the modem is also used to,
acquiring a second storage address according to the order of receiving 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 storage;
and storing the description information of the first target data into the second memory according to the second memory address.
In one possible implementation, the modem is configured to,
storing the description information of the first target data from the second memory into the first memory according to the first memory 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, the data transfer instruction being used for instructing the description information of the first target data to be stored from the second memory into the first memory;
and 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 memory address.
In one possible implementation, the modem is further configured to,
acquiring a first number, where the first number is the number of each logical channel corresponding to the description information stored in the second memory;
responsive to the first number being greater than a number threshold, the first memory is activated.
In one possible implementation, the second memory is an on-chip memory.
In one possible implementation, the modem is further configured to,
in response to receiving the first target data, obtaining Payload data of the first target data;
and storing Payload data of the first target data into a 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.
An embodiment of the present application further provides a computer-readable medium, where at least one instruction is stored, and the at least one instruction is loaded and executed by the processor to implement all or part of the steps executed by the terminal in the data transmission method according to the foregoing embodiments.
Embodiments of the present application also provide a computer program product including 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, so that the computer device executes the data transmission method provided in the various optional implementation manners of the various embodiments.
It should be noted that: the data transmission device provided in the above embodiments is only exemplified by the above embodiments when executing the data transmission method, and in an actual program, the functions may be distributed by different functional modules as needed, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided by the above embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments for details, which are not described herein again.
The above-mentioned serial numbers of the embodiments of the present application are merely for description and do not represent the merits 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 instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

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 logical channel of the first target data, wherein the first storage address is a storage address of the 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 comprises:
acquiring a first storage area according to a logical channel of the first target data, wherein the first storage area is a storage area corresponding to the logical 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 obtaining the first storage address according to the logical channel of the first target data, the method further includes:
acquiring a second storage address according to the order of receiving 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 storage;
and storing the description information of the first target data into the second memory according to the second memory address.
4. The method of claim 3, wherein storing the description information of the first target data in the first memory according to the first memory address comprises:
storing the description information of the first target data from the second memory into the first memory according to the first memory address;
and releasing the description information of the first target data stored in the second memory.
5. The method of claim 4, wherein said storing the description information of the first target data from the second memory into the first memory according to the first memory address comprises:
receiving a data transfer instruction of a first processor, the data transfer instruction being used for instructing the description information of the first target data to be stored from the second memory into the first memory;
and 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 memory address.
6. The method of claim 3, wherein before obtaining the first memory address according to the logical channel of the first target data, further comprising:
acquiring a first number, where the first number is the number of each logical channel corresponding to the description information stored in the second memory;
responsive to the first number being greater than a number threshold, the first memory is activated.
7. The method of claim 3, wherein the second memory is an on-chip memory.
8. The method of any of claims 1 to 7, further comprising:
in response to receiving the first target data, obtaining Payload data of the first target data;
and storing Payload data of the first target data into a DDR double-rate synchronous dynamic random access memory.
9. A method according to any one 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 obtaining module, configured to, in response to receiving first target data through the modem, obtain 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, 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;
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, the memory having stored therein at least one instruction, at least one program, set of codes, or set of instructions, the at least one instruction, the at least one program, set of codes, or set of instructions being loaded and executed by the processor to implement a data storage method as claimed in any one of claims 1 to 9.
12. A computer readable storage medium having stored therein at least one instruction, at least one program, set of codes, or set of instructions, which is loaded and executed by a processor to implement a data storage method as claimed in any one 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 true CN111857606A (en) 2020-10-30
CN111857606B 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)

Cited By (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
CN114625084A (en) * 2022-03-02 2022-06-14 杭州康吉森自动化科技有限公司 Control system-based node information acquisition method and device

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

Cited By (3)

* 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
CN114625084A (en) * 2022-03-02 2022-06-14 杭州康吉森自动化科技有限公司 Control system-based node information acquisition method and device
CN114625084B (en) * 2022-03-02 2024-01-19 杭州康吉森自动化科技有限公司 Method and device for acquiring node information based on control system

Also Published As

Publication number Publication date
CN111857606B (en) 2023-10-20

Similar Documents

Publication Publication Date Title
US10841789B2 (en) Method and device for relay transmission
US9730106B2 (en) Technique for load balancing between cellular network subscriptions in a router having both short range and cellular communication interfaces
US9774529B2 (en) Method and apparatus for transmitting data frame
WO2016112548A1 (en) Location information acquiring method and device
CN107079524B (en) Data forwarding method and controller
US11895649B2 (en) Relay network duplex coordination method and relay node device
CN111857606B (en) Data storage method, device, computer equipment and storage medium
US20210266996A1 (en) Device to device-based communication method and terminal
CN113382468A (en) Address allocation method for local network device, electronic device, and storage medium
CN114449577A (en) QoS parameter configuration method and related device
CN109845312B (en) Data transmission method and device, computer equipment and system
EP4102892A1 (en) Relay communication method and related device
CN113691359B (en) Method and apparatus for replicated data transmission
WO2020232576A1 (en) Unicast connection establishment method and apparatus, and storage medium
CN112214425B (en) Data transmission method, data transmission device, computer equipment and storage medium
US11064503B2 (en) Method and apparatus for transmitting control information
CN104137605A (en) Method, user equipment and base station for transmitting data
CN118044266A (en) Wireless communication method, remote terminal and relay terminal
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
US20240179561A1 (en) Data transmission method and terminal device
WO2023279296A1 (en) Wireless communication method, first terminal, and communication device
US20230217516A1 (en) Wireless communication method and remote terminal
US11166149B2 (en) Device-to-device communication method, terminal device, and network device

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