[go: up one dir, main page]

CN115016729A - Storage method, device, terminal and storage medium for storing information - Google Patents

Storage method, device, terminal and storage medium for storing information Download PDF

Info

Publication number
CN115016729A
CN115016729A CN202210555621.0A CN202210555621A CN115016729A CN 115016729 A CN115016729 A CN 115016729A CN 202210555621 A CN202210555621 A CN 202210555621A CN 115016729 A CN115016729 A CN 115016729A
Authority
CN
China
Prior art keywords
storage
port
ports
information
storage information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN202210555621.0A
Other languages
Chinese (zh)
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 CN202210555621.0A priority Critical patent/CN115016729A/en
Publication of CN115016729A publication Critical patent/CN115016729A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • G06F3/0607Improving or facilitating administration, e.g. storage management by facilitating the process of upgrading existing storage systems, e.g. for improving compatibility between host and storage device
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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 OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The application discloses a storage method, a storage device, a terminal and a storage medium for storage information, and belongs to the technical field of wireless communication. The method comprises the steps of receiving a first signal resource of a first port when storing storage information of the signal resource, determining a target port type of the first port, and storing first storage information in a target storage space corresponding to the target port type, wherein the first storage information is the storage information corresponding to the first signal resource. The method stores the information according to the port type of each port, and different port types correspond to different storage spaces, so that each port can be prevented from determining the storage space according to the matrix element of the storage information corresponding to the maximum port number, the determined total storage space is greatly reduced, the difference between the actually used storage space and the total storage space is reduced, and the use efficiency of the memory is improved.

Description

存储信息的存储方法、装置、终端及存储介质Storage method, device, terminal and storage medium for storing information

技术领域technical field

本申请涉及无线通信技术领域,特别涉及一种存储信息的存储方法、装置、终端及存储介质。The present application relates to the field of wireless communication technologies, and in particular, to a storage method, device, terminal and storage medium for storing information.

背景技术Background technique

在第三代合作伙伴计划(Third Generation Partnership Project,3GPP)标准组织制定的标准、长期演进(Long Term Evolution,LTE)系统和第五代无线移动通信技术(5th Generation Mobile Communication Technology New Radio,5GNR)系统中,网络设备在特定的时频资源上,向终端发送信道状态信息参考信号(Chanel State Information-Reference Signal,CSI-RS),指示终端上报CSI信息,这样网络设备可以根据该CSI信息动态地调整资源分配策略,以获得最大的资源利用效率。终端在接收到CSI-RS信号资源时,需要确定出使得信道容量最大的预编码矩阵指示(Precoder Matrix Indicator,PMI)信息,而在这过程中,不同类型的PMI信息会生成不同的宽带白化信道协方差矩阵(WidebandWhitened Channel Covariance,Rwb)信息,生成的Rwb信息需要存储下来以进行滤波平滑,增加鲁棒性。并且,终端可能需要接收多个CSI-RS信号资源,这些信号资源对应的端口可能也不同。因此,如何科学地存储Rwb信息成为了亟待解决的问题。Standards formulated by the Third Generation Partnership Project (3GPP) standard organization, Long Term Evolution (LTE) system and 5th Generation Mobile Communication Technology New Radio (5GNR) In the system, the network device sends a channel state information reference signal (Chanel State Information-Reference Signal, CSI-RS) to the terminal on a specific time-frequency resource, instructing the terminal to report the CSI information, so that the network device can dynamically Adjust resource allocation strategies for maximum resource utilization efficiency. When the terminal receives the CSI-RS signal resource, it needs to determine the Precoder Matrix Indicator (PMI) information that maximizes the channel capacity. During this process, different types of PMI information will generate different broadband whitening channels. Covariance matrix (Wideband Whitened Channel Covariance, Rwb) information, the generated Rwb information needs to be stored for filtering and smoothing to increase robustness. Moreover, the terminal may need to receive multiple CSI-RS signal resources, and the ports corresponding to these signal resources may also be different. Therefore, how to store Rwb information scientifically has become an urgent problem to be solved.

相关技术中,不同的CSI-RS信号对应不同的端口,不同的端口对应的Rwb信息的矩阵元素个数不同。对于每个端口,终端都按其支持的最大端口对应的Rwb信息的矩阵元素确定该端口对应的存储空间,当后续终端接收到CSI-RS信号后,就可以在该CSI-RS信号对应的端口的存储空间存储相应的Rwb信息。In the related art, different CSI-RS signals correspond to different ports, and the number of matrix elements of Rwb information corresponding to different ports is different. For each port, the terminal determines the storage space corresponding to the port according to the matrix element of the Rwb information corresponding to the largest port supported by the terminal. The storage space stores the corresponding Rwb information.

但相关技术中的方法,多个端口的存储空间之和为总存储空间,而每个端口的存储空间都是按最大端口对应的Rwb信息的矩阵元素确定的,因此,这样确定出的总存储空间较大,而终端支持的总信号资源个数和总端口数有限,因此,Rwb信息的矩阵元素实际占用的存储空间往往只占总存储空间的一小部分,有很大一部分存储空间处于闲置状态,导致内存使用效率低。However, in the method in the related art, the sum of the storage spaces of multiple ports is the total storage space, and the storage space of each port is determined according to the matrix element of the Rwb information corresponding to the largest port. Therefore, the total storage space determined in this way The space is large, and the total number of signal resources and ports supported by the terminal is limited. Therefore, the actual storage space occupied by the matrix elements of the Rwb information usually only occupies a small part of the total storage space, and a large part of the storage space is idle. state, resulting in inefficient memory usage.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供了一种存储信息的存储方法、装置、终端及存储介质,可以降低存储的复杂度。所述技术方案如下:The embodiments of the present application provide a storage method, device, terminal and storage medium for storing information, which can reduce the complexity of storage. The technical solution is as follows:

一方面,提供了一种存储信息的存储方法,所述方法包括:In one aspect, a storage method for storing information is provided, the method comprising:

接收第一端口的第一信号资源;receiving the first signal resource of the first port;

确定所述第一端口所属的目标端口类型;determining the target port type to which the first port belongs;

在所述目标端口类型对应的目标存储空间中存储第一存储信息,所述第一存储信息为所述第一信号资源对应的存储信息。First storage information is stored in the target storage space corresponding to the target port type, where the first storage information is storage information corresponding to the first signal resource.

另一方面,提供了一种存储信息的存储装置,所述装置包括:In another aspect, a storage device for storing information is provided, the device comprising:

接收模块,用于接收第一端口的第一信号资源;a receiving module, configured to receive the first signal resource of the first port;

第一确定模块,用于确定所述第一端口所属的目标端口类型;a first determining module, configured to determine the target port type to which the first port belongs;

存储模块,用于在所述目标端口类型对应的目标存储空间中存储第一存储信息,所述第一存储信息为所述第一信号资源对应的存储信息。A storage module, configured to store first storage information in a target storage space corresponding to the target port type, where the first storage information is storage information corresponding to the first signal resource.

另一方面,提供了一种终端,所述终端包括处理器和存储器,所述存储器中存储有至少一条程序代码,所述至少一条程序代码由所述处理器加载并执行,以实现上述所述的存储信息的存储方法。In another aspect, a terminal is provided, the terminal includes a processor and a memory, the memory stores at least one piece of program code, and the at least one piece of program code is loaded and executed by the processor, so as to realize the above-mentioned method of storing information.

另一方面,提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有至少一条程序代码,所述至少一条程序代码由处理器加载并执行,以实现上述所述的存储信息的存储方法。In another aspect, a computer-readable storage medium is provided, and at least one piece of program code is stored in the computer-readable storage medium, and the at least one piece of program code is loaded and executed by a processor to realize the above-mentioned storage information storage method.

另一方面,提供了一种计算机程序产品,所述计算机程序产品中存储有至少一条程序代码,所述至少一条程序代码由处理器加载并执行,以实现上述所述的存储信息的存储方法。In another aspect, a computer program product is provided, wherein at least one piece of program code is stored in the computer program product, and the at least one piece of program code is loaded and executed by a processor to implement the above-mentioned storage method for storing information.

本申请实施例提供的技术方案带来的有益效果是:The beneficial effects brought by the technical solutions provided in the embodiments of the present application are:

本申请实施例提供了一种存储信息的存储方法,该方法在存储信号资源的存储信息时,按每个端口所属的端口类型来存储,而不同的端口类型对应不同的存储空间,这样可以避免每个端口都按最大端口数对应的存储信息的矩阵元素来确定存储空间,大大减少了确定的总存储空间,缩小了实际使用的存储空间与总存储空间之间的差值,从而提高了内存使用效率。The embodiment of the present application provides a storage method for storing information. When storing the storage information of signal resources, the method stores the storage information according to the port type to which each port belongs, and different port types correspond to different storage spaces, which can avoid Each port determines the storage space according to the matrix elements of the storage information corresponding to the maximum number of ports, which greatly reduces the determined total storage space and reduces the difference between the actually used storage space and the total storage space, thereby improving the memory Use efficiency.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary only and do not limit the present disclosure.

附图说明Description of drawings

图1是本申请实施例提供的一种存储信息的存储方法的实施环境的示意图;1 is a schematic diagram of an implementation environment of a storage method for storing information provided by an embodiment of the present application;

图2是本申请实施例提供的一种存储信息的存储方法的流程图;2 is a flowchart of a storage method for storing information provided by an embodiment of the present application;

图3是本申请实施例提供的一种存储信息的存储方法的流程图;3 is a flowchart of a storage method for storing information provided by an embodiment of the present application;

图4是本申请实施例提供的一种存储Rwb信息的示意图;4 is a schematic diagram of storing Rwb information provided by an embodiment of the present application;

图5是相关技术提供的一种存储Rwb信息的示意图;5 is a schematic diagram of a storage Rwb information provided by the related art;

图6是相关技术提供的一种存储Rwb信息的示意图;Fig. 6 is a kind of schematic diagram of storing Rwb information provided by the related art;

图7是本申请实施例提供的一种将多个端口进行分类的流程图;7 is a flowchart of classifying multiple ports according to an embodiment of the present application;

图8是本申请实施例提供的一种多个端口类型及其对应的存储空间的示意图;8 is a schematic diagram of a plurality of port types and their corresponding storage spaces provided by an embodiment of the present application;

图9是本申请实施例提供的一种存储信息的存储装置的结构示意图;9 is a schematic structural diagram of a storage device for storing information provided by an embodiment of the present application;

图10是本申请实施例提供的一种终端的结构框图。FIG. 10 is a structural block diagram of a terminal provided by an embodiment of the present application.

具体实施方式Detailed ways

为使本申请的技术方案和优点更加清楚,下面对本申请实施方式作进一步地详细描述。In order to make the technical solutions and advantages of the present application clearer, the embodiments of the present application are further described in detail below.

本申请的说明书和权利要求书及所述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们的任意变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。The terms "first", "second", "third" and "fourth" in the description and claims of the present application and the drawings are used to distinguish different objects, rather than to describe a specific order . Furthermore, the terms "comprising" and "having", and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally also includes For other steps or units inherent to these processes, methods, products or devices.

需要说明的是,本申请所涉及的信息(包括但不限于用户设备信息、用户个人信息等)、数据(包括但不限于用于分析的数据、存储的数据、展示的数据等)以及信号,均为经用户授权或者经过各方充分授权的,且相关数据的收集、使用和处理需要遵守相关国家和地区的相关法律法规和标准。例如,本申请中涉及到的存储信息、信道状态信息等都是在充分授权的情况下获取的。It should be noted that the information (including but not limited to user equipment information, user personal information, etc.), data (including but not limited to data for analysis, stored data, displayed data, etc.) and signals involved in this application, All are authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with the relevant laws, regulations and standards of relevant countries and regions. For example, the storage information, channel state information, etc. involved in this application are all acquired under the condition of sufficient authorization.

图1是本申请实施例提供的一种存储信息的存储方法的实施环境的示意图,参见图1,该实施环境包括:终端101和网络设备102,终端101和网络设备102之间可以进行通信。FIG. 1 is a schematic diagram of an implementation environment of a storage method for storing information provided by an embodiment of the present application. Referring to FIG. 1 , the implementation environment includes: a terminal 101 and a network device 102 , and the terminal 101 and the network device 102 can communicate.

在3GPP协议中有规定,终端101需要向网络设备102上报自己的能力,其中,有2个参数,一个是该终端101的总端口数,取值范围为2~256,另一个是该终端101支持的总信号资源个数,取值范围为1~64。另外,终端101的天线端口的端口数包括1、2、4、8、12、16、24和32,不同的CSI-RS信号资源对应不同的端口,不同的端口对应的存储信息的矩阵元素个数不同,不同的矩阵元素个数占用的存储空间也就不同。It is stipulated in the 3GPP protocol that the terminal 101 needs to report its own capabilities to the network device 102. There are two parameters, one is the total port number of the terminal 101, and the value ranges from 2 to 256, and the other is the terminal 101. The total number of signal resources supported, ranging from 1 to 64. In addition, the port numbers of the antenna ports of the terminal 101 include 1, 2, 4, 8, 12, 16, 24, and 32, different CSI-RS signal resources correspond to different ports, and different ports correspond to the matrix elements for storing information. Different numbers of matrix elements occupy different storage space.

在本申请实施例中,该存储信息可以为Rwb信息、白化信道协方差矩阵信息、子带白化信道协方差矩阵信息或者噪声协方差矩阵信息,对此不作具体限定。In this embodiment of the present application, the stored information may be Rwb information, whitening channel covariance matrix information, subband whitening channel covariance matrix information, or noise covariance matrix information, which is not specifically limited.

接下来仅以该存储信息为Rwb信息为例进行说明。Rwb信息是经过白化后的信道矩阵协方差,维度为P*P,其中,P为CSI-RS信号对应端口的端口数。白化后的信道矩阵协方差是一个厄米特矩阵(hermit),该矩阵具有共轭对称性,该矩阵中每一个第i行第j列的元素都与第j行第i列的元素共轭相等,因此,该矩阵的上三角元素和下三角元素相同,所以在存储Rwb信息时,只需存储上三角元素或下三角元素即可。其中,i和j均为大于0的整数。由于端口的端口数为1时,该矩阵只有一个元素,不需要做PMI信息的选择,所以在本申请实施例中,暂不考虑端口的端口数为1时的情况。In the following, only the stored information is Rwb information as an example for description. The Rwb information is the channel matrix covariance after whitening, and the dimension is P*P, where P is the port number of the port corresponding to the CSI-RS signal. The whitened channel matrix covariance is a Hermitian matrix with conjugate symmetry, and each element in the i-th row and the j-th column is conjugate with the j-th row and the i-th column element. Therefore, the upper and lower triangular elements of the matrix are the same, so when storing Rwb information, only the upper triangular element or the lower triangular element can be stored. Wherein, i and j are both integers greater than 0. Because when the number of ports of a port is 1, the matrix has only one element, and there is no need to select PMI information. Therefore, in this embodiment of the present application, the case where the number of ports of a port is 1 is not considered for the time being.

在本申请实施例中,终端101基于总端口数、总信号资源个数和多个端口的端口数就可以确定出该终端101需要存储Rwb信息的大小以及个数。其中,本申请实施例中的端口数指的是端口的端口值。例如,32端口的端口数为32,24端口的端口数为24。In this embodiment of the present application, the terminal 101 can determine the size and number of Rwb information that the terminal 101 needs to store based on the total number of ports, the total number of signal resources, and the number of ports of multiple ports. The number of ports in this embodiment of the present application refers to the port value of the port. For example, 32 ports have 32 ports and 24 ports have 24 ports.

该终端101为具有无线通信功能的终端101,该终端101可以经无线接入网(RadioAccess Network,RAN)与一个或多个核心网进行通信,终端101可以是移动终端101,如移动电话(或称为“蜂窝”电话)和具有移动终端101的计算机,例如,可以是便携式、袖珍式、手持式、计算机内置的或者车载的移动装置。该终端101可以为手机、平板电脑、具备无线通信功能的电脑或可穿戴设备等。在本申请实施例中,对此不作具体限定。The terminal 101 is a terminal 101 with a wireless communication function, the terminal 101 can communicate with one or more core networks via a radio access network (RadioAccess Network, RAN), and the terminal 101 can be a mobile terminal 101, such as a mobile phone (or referred to as a "cellular" telephone) and a computer with a mobile terminal 101, which may be, for example, a portable, pocket-sized, hand-held, computer-built-in or vehicle-mounted mobile device. The terminal 101 may be a mobile phone, a tablet computer, a computer with a wireless communication function, a wearable device, or the like. In the embodiments of the present application, this is not specifically limited.

该网络设备102为任一具有无线收发功能的网络设备102。例如,该网络设备102为基站、演进型节点B(evolved Node B,eNB)、下一代节点B(next Generation,gNB)、无线保真(Wireless Fidelity,WIFI)系统中的接入点(Access Point,AP)、无线中继节点、无线回传节点、传输点(transmission point,TP)或者发送接收点(transmission and receptionpoint,TRP)等。The network device 102 is any network device 102 having a wireless transceiver function. For example, the network device 102 is an Access Point (Access Point) in a base station, an evolved Node B (evolved Node B, eNB), a next Generation Node B (gNB), a Wireless Fidelity (Wireless Fidelity, WIFI) system , AP), wireless relay node, wireless backhaul node, transmission point (transmission point, TP) or transmission and reception point (transmission and reception point, TRP) and so on.

图2是本申请实施例提供的一种存储信息的存储方法的流程图,参见图2,该方法包括:FIG. 2 is a flowchart of a storage method for storing information provided by an embodiment of the present application. Referring to FIG. 2 , the method includes:

步骤201:接收第一端口的第一信号资源。Step 201: Receive a first signal resource of a first port.

步骤202:确定第一端口所属的目标端口类型。Step 202: Determine the target port type to which the first port belongs.

步骤203:在目标端口类型对应的目标存储空间中存储第一存储信息,第一存储信息为第一信号资源对应的存储信息。Step 203: Store first storage information in the target storage space corresponding to the target port type, where the first storage information is storage information corresponding to the first signal resource.

在一种可能的实现方式中,在目标端口类型对应的目标存储空间中存储第一存储信息,包括:In a possible implementation manner, storing the first storage information in the target storage space corresponding to the target port type includes:

基于第一信号资源的第一资源标识,在目标存储空间中查询第一资源标识对应的第二存储信息;Based on the first resource identifier of the first signal resource, query the target storage space for second storage information corresponding to the first resource identifier;

若查询到第二存储信息,在存储第二存储信息的存储子空间存储第一存储信息。If the second storage information is queried, the first storage information is stored in the storage subspace where the second storage information is stored.

在另一种可能的实现方式中,方法还包括:In another possible implementation, the method further includes:

若查询不到第二存储信息,在目标存储空间中处于空闲状态的存储子空间中存储第一存储信息;If the second storage information cannot be queried, store the first storage information in the storage subspace that is in an idle state in the target storage space;

若目标存储空间中不存在处于空闲状态的存储子空间,将第三存储信息替换为第一存储信息,第三存储信息为目标存储空间中存储时间最早的存储信息。If there is no storage subspace in an idle state in the target storage space, the third storage information is replaced with the first storage information, and the third storage information is the storage information with the earliest storage time in the target storage space.

在另一种可能的实现方式中,在存储第二存储信息的存储子空间存储第一存储信息,包括:In another possible implementation manner, storing the first storage information in the storage subspace where the second storage information is stored includes:

对第二存储信息和第一存储信息进行平滑滤波,得到第四存储信息;performing smooth filtering on the second storage information and the first storage information to obtain fourth storage information;

在存储第二存储信息的存储子空间中存储第四存储信息。The fourth storage information is stored in the storage subspace where the second storage information is stored.

在另一种可能的实现方式中,方法还包括:In another possible implementation, the method further includes:

确定终端支持的总端口数和总信号资源个数;Determine the total number of ports and the total number of signal resources supported by the terminal;

基于终端支持的多个端口的端口数和总端口数,对多个端口进行分类,得到多个端口类型;Classify multiple ports based on the number of ports and the total number of ports supported by the terminal to obtain multiple port types;

基于多个端口类型、总端口数和总信号资源个数,确定每个端口类型对应的存储空间。Based on the multiple port types, the total number of ports, and the total number of signal resources, the storage space corresponding to each port type is determined.

在另一种可能的实现方式中,基于终端支持的多个端口的端口数和总端口数,对多个端口进行分类,得到多个端口类型,包括:In another possible implementation manner, based on the number of ports and the total number of ports supported by the terminal, the multiple ports are classified to obtain multiple port types, including:

确定每个端口对应的端口数与总端口数之间的比例系数,得到多个比例系数;Determine the proportional coefficient between the number of ports corresponding to each port and the total number of ports, and obtain multiple proportional coefficients;

基于多个比例系数,对多个端口进行分类,得到多个端口类型。Based on multiple scale coefficients, multiple ports are classified to obtain multiple port types.

在另一种可能的实现方式中,基于多个比例系数,对多个端口进行分类,得到多个端口类型,包括:In another possible implementation manner, based on multiple scale coefficients, multiple ports are classified to obtain multiple port types, including:

将多个比例系数进行排序;Sort multiple scale coefficients;

对于排序后的多个比例系数,将相邻的多个整数比例系数中每个整数比例系数对应的端口确定为一类,将相邻的非整数比例系数和整数比例系数分别对应的端口合并为一类,得到多个端口类型。For the sorted multiple scale coefficients, the ports corresponding to each integer scale coefficient in the adjacent multiple integer scale coefficients are determined as one class, and the ports corresponding to the adjacent non-integer scale coefficients and integer scale coefficients are merged into A class to get multiple port types.

在另一种可能的实现方式中,基于多个端口类型、总端口数和总信号资源个数,确定每个端口类型对应的存储空间,包括:In another possible implementation manner, the storage space corresponding to each port type is determined based on multiple port types, the total number of ports, and the total number of signal resources, including:

对于每个端口类型,基于端口类型和总端口数,确定端口类型对应的端口数组,端口数组的数组长度不大于总信号资源个数;For each port type, based on the port type and the total number of ports, determine the port array corresponding to the port type, and the array length of the port array is not greater than the total number of signal resources;

确定端口类型对应的存储信息的矩阵元素个数;Determine the number of matrix elements of the storage information corresponding to the port type;

基于端口类型对应的端口数组及其对应的矩阵元素个数,确定端口类型对应的存储空间。Based on the port array corresponding to the port type and the corresponding number of matrix elements, the storage space corresponding to the port type is determined.

在另一种可能的实现方式中,基于端口类型和总端口数,确定端口类型对应的端口数组,包括:In another possible implementation manner, based on the port type and the total number of ports, the port array corresponding to the port type is determined, including:

基于最小的端口数和总端口数,确定数组长度,最小的端口数为属于端口类型的端口中最小的端口数;Determine the length of the array based on the minimum number of ports and the total number of ports, and the minimum number of ports is the minimum number of ports among the ports belonging to the port type;

确定与数组长度匹配的端口数组。Determines an array of ports that matches the length of the array.

本申请实施例提供了一种存储信息的存储方法,该方法在存储信号资源的存储信息时,按每个端口所属的端口类型来存储,而不同的端口类型对应不同的存储空间,这样可以避免每个端口都按最大端口数对应的存储信息的矩阵元素来确定存储空间,大大减少了确定的总存储空间,缩小了实际使用的存储空间与总存储空间之间的差值,从而提高了内存使用效率。The embodiment of the present application provides a storage method for storing information. When storing the storage information of signal resources, the method stores the storage information according to the port type to which each port belongs, and different port types correspond to different storage spaces, which can avoid Each port determines the storage space according to the matrix elements of the storage information corresponding to the maximum number of ports, which greatly reduces the determined total storage space and reduces the difference between the actually used storage space and the total storage space, thereby improving the memory Use efficiency.

图3是本申请实施例提供的一种存储信息的存储方法的流程图,由终端执行,参见图3,该方法包括:FIG. 3 is a flowchart of a storage method for storing information provided by an embodiment of the present application, which is executed by a terminal. Referring to FIG. 3 , the method includes:

步骤301:终端接收第一端口的第一信号资源。Step 301: The terminal receives the first signal resource of the first port.

网络设备可以向终端发送不同端口的第一信号资源,相应的,终端在该端口对应的时频资源上接收该端口的信号资源。本步骤中,网络设备向终端发送第一端口的第一信号资源,则终端在第一端口对应的时频资源上接收该第一信号资源。The network device may send the first signal resources of different ports to the terminal, and accordingly, the terminal receives the signal resources of the port on the time-frequency resources corresponding to the port. In this step, the network device sends the first signal resource of the first port to the terminal, and the terminal receives the first signal resource on the time-frequency resource corresponding to the first port.

在本步骤之前,网络设备可以向终端发送资源指令,该资源指令中携带第一信号资源的第一资源标识和时频信息中的至少一项,该时频信息用于表示第一信号资源的发送时刻和时频资源,终端接收该资源指令,激活该时频信息对应的时频资源,在到达第一信号资源的发送时刻时,在该时频资源上接收网络设备发送的第一信号资源。Before this step, the network device may send a resource instruction to the terminal, where the resource instruction carries at least one of a first resource identifier of the first signal resource and time-frequency information, where the time-frequency information is used to indicate the value of the first signal resource. Sending time and time-frequency resource, the terminal receives the resource instruction, activates the time-frequency resource corresponding to the time-frequency information, and receives the first signal resource sent by the network device on the time-frequency resource when the sending time of the first signal resource arrives .

步骤302:终端确定第一端口所属的目标端口类型。Step 302: The terminal determines the target port type to which the first port belongs.

本步骤中,终端通过确定多个端口类型中包括该第一端口的端口类型,得到目标端口类型。In this step, the terminal obtains the target port type by determining the port type including the first port among the plurality of port types.

需要说明的一点是,多个端口类型是将终端支持的多个端口进行分类得到的,下面将详细介绍,这里先不赘述。It should be noted that the multiple port types are obtained by classifying multiple ports supported by the terminal, which will be described in detail below, and will not be described here.

步骤303:终端基于第一信号资源的第一资源标识,在目标端口类型对应的目标存储空间中查询第一资源标识对应的第二存储信息。Step 303: Based on the first resource identifier of the first signal resource, the terminal searches the target storage space corresponding to the target port type for the second storage information corresponding to the first resource identifier.

在本申请实施例中,终端在将存储信息存储到目标存储空间中时,不仅存储该存储信息,还存储该存储信息对应的资源标识和存储时间,这样后续可以根据资源标识来存储下一个存储信息以及根据存储时间确定存储时间最早的存储信息。其中,在3GPP协议中,第一资源标识为Resource Identification。In the embodiment of the present application, when the terminal stores the storage information in the target storage space, it not only stores the storage information, but also stores the resource identifier and storage time corresponding to the storage information, so that the next storage can be stored later according to the resource identifier. information and the storage information with the earliest storage time according to the storage time. Wherein, in the 3GPP protocol, the first resource identifier is Resource Identification.

基于此,终端基于第一资源标识,在目标存储空间中遍历第二存储信息,确定是否存在与该第一资源标识对应的第二存储信息。若查询到第二存储信息,执行步骤304,若查询不到第二存储信息,执行步骤305。Based on this, the terminal traverses the second storage information in the target storage space based on the first resource identifier, and determines whether there is second storage information corresponding to the first resource identifier. If the second storage information is queried, step 304 is performed; if the second storage information cannot be queried, step 305 is performed.

步骤304:若查询到第二存储信息,终端在存储第二存储信息的存储子空间存储第一存储信息。Step 304: If the second storage information is queried, the terminal stores the first storage information in the storage subspace where the second storage information is stored.

该第一存储信息为第一信号资源对应的存储信息,该第一存储信息可以为Rwb信息、白化信道协方差矩阵信息、子带白化信道协方差矩阵信息或者噪声协方差矩阵信息,对此不作具体限定。The first storage information is storage information corresponding to the first signal resource, and the first storage information may be Rwb information, whitening channel covariance matrix information, subband whitening channel covariance matrix information, or noise covariance matrix information, and no Specific restrictions.

若查询到第二存储信息,说明之前存储过该第一资源标识对应的存储信息,则终端对第二存储信息和第一存储信息进行平滑滤波,得到第四存储信息,在存储第二存储信息的存储子空间存储第四存储信息,并且,记录下该第四存储信息的存储时间和第一资源标识。If the second storage information is queried, indicating that the storage information corresponding to the first resource identifier has been stored before, the terminal performs smooth filtering on the second storage information and the first storage information to obtain the fourth storage information, and then stores the second storage information. The storage subspace of the storage subspace stores the fourth storage information, and records the storage time and the first resource identifier of the fourth storage information.

该实现方式中,终端可以分别确定第一存储信息与第一滤波系数的乘积以及第二存储信息与第二滤波系数的乘积,分别得到第一乘积值和第二乘积值,然后确定第一乘积值和第二乘积值的和值,得到第四存储信息。In this implementation manner, the terminal may determine the product of the first storage information and the first filter coefficient and the product of the second storage information and the second filter coefficient, respectively, obtain the first product value and the second product value, and then determine the first product The sum value of the value and the second product value is obtained to obtain the fourth storage information.

该过程可以通过以下公式表示:Rwb4=(1-α)Rwb2+αRwb1,其中,Rwb4为第四存储信息,α和(1-α)分别为第一滤波系数和第二滤波系数,Rwb1和Rwb2分别为第一存储信息和第二存储信息。This process can be represented by the following formula: Rwb 4 =(1-α)Rwb 2 +αRwb 1 , where Rwb 4 is the fourth storage information, and α and (1-α) are the first filter coefficient and the second filter coefficient, respectively , Rwb 1 and Rwb 2 are the first storage information and the second storage information, respectively.

其中,第一滤波系数和第二滤波系数可以根据需要进行设置并更改,在本申请实施例中,对第一滤波系数和第二滤波系数不作具体限定。The first filter coefficient and the second filter coefficient may be set and changed as required, and in the embodiment of the present application, the first filter coefficient and the second filter coefficient are not specifically limited.

需要说明的一点是,当后续终端接收到第一资源标识的第二信号资源时,在存储该第二信号资源对应的第五存储信息时,需要将第四存储信息和第五存储信息进行平滑滤波,将滤波后得到的第六存储信息存储至原来存储第四存储信息的存储子空间。It should be noted that when the subsequent terminal receives the second signal resource identified by the first resource, when storing the fifth storage information corresponding to the second signal resource, the fourth storage information and the fifth storage information need to be smoothed. filtering, and storing the sixth storage information obtained after filtering in the storage subspace where the fourth storage information was originally stored.

步骤305:若查询不到第二存储信息,终端在该目标存储空间中处于空闲状态的存储子空间中存储第一存储信息。Step 305: If the second storage information cannot be queried, the terminal stores the first storage information in the storage subspace in the idle state in the target storage space.

若查询不到第二存储信息,说明该第一存储信息为新资源,需要安排新的存储空间用于存储第一存储信息,这种情况下,终端遍历目标存储空间,从该目标存储空间中找到一个处于空闲状态的存储子空间,在该存储子空间中存储第一存储信息,并且,记录下该第一存储信息的存储时间和第一资源标识。若目标存储空间中不存在处于空闲状态的存储子空间,则终端执行步骤306。If the second storage information cannot be queried, it means that the first storage information is a new resource, and a new storage space needs to be arranged to store the first storage information. Find a storage subspace in an idle state, store the first storage information in the storage subspace, and record the storage time and the first resource identifier of the first storage information. If there is no storage subspace in an idle state in the target storage space, the terminal executes step 306 .

步骤306:若该目标存储空间中不存在处于空闲状态的存储子空间,终端将第三存储信息替换为第一存储信息。Step 306: If there is no storage subspace in an idle state in the target storage space, the terminal replaces the third storage information with the first storage information.

该第三存储信息为目标存储空间中存储时间最早的存储信息。The third storage information is the storage information with the earliest storage time in the target storage space.

该实现方式中,若该目标存储空间中不存在处于空闲状态的存储子空间,此时需要释放历史存储信息,这种情况下,终端确定目标存储空间中存储时间最早的第三存储信息,释放出第三存储信息,将第一存储信息存储在该位置,并且记录下该第一存储信息的存储时间和第一资源标识。In this implementation manner, if there is no storage subspace in an idle state in the target storage space, the historical storage information needs to be released at this time. In this case, the terminal determines the third storage information with the earliest storage time in the target storage space, and releases it. The third storage information is output, the first storage information is stored in the location, and the storage time and the first resource identifier of the first storage information are recorded.

这里以存储信息为Rwb信息为例进行说明。例如,终端的能力是最多接收8个信号资源,最多承载端口数为64,则总信号资源个数为8,总端口数为64,多个端口的端口数分别为2、4、8、12、16、24和32。终端依次接收到4个16端口的信号资源,这4个信号资源的资源标识分别为0,1,2,3,然后资源标识为1和2的信号资源对应的Rwb信息被释放掉,又接收到1个32端口的信号资源,该信号资源的资源标识为4。按照本申请实施例提供的方法,终端存储Rwb信息的过程主要包括以下步骤:Here, the stored information is Rwb information as an example for description. For example, if the capability of the terminal is to receive at most 8 signal resources and the maximum number of bearer ports is 64, the total number of signal resources is 8, the total number of ports is 64, and the number of ports of multiple ports is 2, 4, 8, and 12 respectively. , 16, 24 and 32. The terminal receives four 16-port signal resources in sequence, and the resource identifiers of these four signal resources are 0, 1, 2, and 3, respectively. Then the Rwb information corresponding to the signal resources with resource identifiers 1 and 2 is released, and then received again. To a 32-port signal resource, the resource identifier of the signal resource is 4. According to the method provided by the embodiment of the present application, the process of storing the Rwb information by the terminal mainly includes the following steps:

(1)总信号资源个数为8,总端口数为64,按照本申请实施例提供的方法将这些端口2、4、8、12、16、24和32分成5个端口类型,端口2、4、8分别为三个端口类型,端口12和16合并为一个端口类型,24和32合并为一个端口类型,其中,端口2需要3*8的存储空间,端口4需要10*8的存储空间,端口8需要36*8的存储空间,端口12/16需要136*4+78的存储空间,端口24/32需要528*2的存储空间,总存储空间为2070,参见图4中的(a)。(1) The total number of signal resources is 8, and the total number of ports is 64. According to the method provided in the embodiment of the present application, these ports 2, 4, 8, 12, 16, 24, and 32 are divided into 5 port types. 4 and 8 are three port types respectively. Ports 12 and 16 are combined into one port type, and 24 and 32 are combined into one port type. Among them, port 2 requires 3*8 storage space, and port 4 requires 10*8 storage space , port 8 requires 36*8 storage space, port 12/16 requires 136*4+78 storage space, port 24/32 requires 528*2 storage space, and the total storage space is 2070, see Figure 4 (a ).

其中,端口分类过程将在下面详细介绍,这里暂不赘述。Among them, the port classification process will be described in detail below, and will not be repeated here.

(2)当分别接收到4个16端口的信号资源时,找到端口16所属的端口类型对应的存储空间,依次对齐排放,参见图4中的(b)。(2) When four 16-port signal resources are respectively received, find the storage space corresponding to the port type to which port 16 belongs, and arrange them in sequence, see (b) in FIG. 4 .

(3)资源标识为1和2的信号资源对应的Rwb信息被释放掉,16端口对应的存储空间中资源标识1和标识2对应的存储子空间空闲出来,参见图4中的(c)。(3) The Rwb information corresponding to the signal resources with resource identifiers 1 and 2 is released, and the storage subspace corresponding to resource identifier 1 and identifier 2 in the storage space corresponding to port 16 is freed, see (c) in FIG. 4 .

(4)接收到资源标识为4的32端口的信号资源时,找到端口32所属的端口类型对应的存储空间,然后将该信号资源对应的Rwb信息存储在该存储空间中首地址为528*1的存储位置,参见图4中的(d)。(4) When receiving the signal resource of 32 ports whose resource identifier is 4, find the storage space corresponding to the port type to which port 32 belongs, and then store the Rwb information corresponding to the signal resource in the storage space with the first address of 528*1 storage location, see (d) in Figure 4.

由此可见,本申请实施例提供的方法有以下两个优点:It can be seen that the method provided by the embodiment of the present application has the following two advantages:

第一,不同端口的信号资源,按对应的位置存储,对齐排放,利用通过端口数直接找到对应的信号资源,同时不同端口的信号资源不会出现覆盖情况,没有内存冲突,大大减小了内存管理的功耗。First, the signal resources of different ports are stored according to the corresponding positions, aligned and arranged, and the corresponding signal resources can be directly found by the number of ports. At the same time, the signal resources of different ports will not be covered, and there is no memory conflict, which greatly reduces the memory. Managed power consumption.

第二,按端口类型来开辟对应端口需要的存储空间,避免了每个端口都按最大端口数来开辟存储空间,大大减少了内存占用。将32端口与24端口合并使用,16端口与12端口合并使用,12端口的信号资源按16端口的信号资源的首地址对齐,24端口的信号资源按32端口的信号资源的首地址对齐,增加资源重复利用的同时,内存管理方式达到一致。在该实施例中,如果每个Rwb信息对应的矩阵元素为8字节,则需要的存储空间为2070*8=16560字节。并且,内存使用效率为(528*2)/2070=51%,内存使用效率较高。Second, the storage space required by the corresponding port is opened up according to the port type, which avoids opening up the storage space for each port according to the maximum number of ports, and greatly reduces the memory occupation. Combine 32 ports with 24 ports, and 16 ports with 12 ports. The 12-port signal resources are aligned with the first address of the 16-port signal resources, and the 24-port signal resources are aligned with the first address of the 32-port signal resources. Increase While resources are reused, the memory management method is consistent. In this embodiment, if the matrix element corresponding to each Rwb information is 8 bytes, the required storage space is 2070*8=16560 bytes. Moreover, the memory usage efficiency is (528*2)/2070=51%, and the memory usage efficiency is relatively high.

综上所述,本申请提供的方法可以避免碎片化内存管理,以及为了管理碎片内存进行内存拷贝造成的额外功耗,极大地减少内存管理的复杂度。并且,避免了存储空间的浪费,增加了内存的使用效率。To sum up, the method provided by the present application can avoid fragmented memory management and additional power consumption caused by memory copying in order to manage fragmented memory, and greatly reduce the complexity of memory management. Moreover, the waste of storage space is avoided, and the use efficiency of the memory is increased.

同样,在总信号资源个数为8,总端口数为64,多个端口的端口数分别为2、4、8、12、16、24和32的前提下,若按照本申请背景技术公开的方案,终端存储Rwb信息的过程主要包括以下步骤:Similarly, under the premise that the total number of signal resources is 8, the total number of ports is 64, and the number of ports of multiple ports is 2, 4, 8, 12, 16, 24 and 32 respectively, if the In the solution, the process of the terminal storing the Rwb information mainly includes the following steps:

(1)总信号资源个数为8,总端口数为64,每个端口都按528*8开辟存储空间,参见图5中的(a)。(1) The total number of signal resources is 8, the total number of ports is 64, and each port opens up storage space according to 528*8, see (a) in Figure 5.

(2)当分别接收到4个16端口的信号资源时,找到16端口对应的存储空间,然后这4个信号资源对应的Rwb信息分别占据该存储空间中首地址为528*0、528*1、528*2和528*3的位置,参见图5中的(b)。(2) When four 16-port signal resources are received respectively, the storage space corresponding to the 16-port is found, and then the Rwb information corresponding to these four signal resources occupies the first address of 528*0 and 528*1 in the storage space respectively. , 528*2 and 528*3, see (b) in FIG. 5 .

(3)资源标识为1和2的信号资源对应的Rwb信息被释放掉,也即首地址为528*1、528*2的两个Rwb信息被释放掉,参见图5中的(c)。(3) The Rwb information corresponding to the signal resources whose resource identifiers are 1 and 2 are released, that is, the two Rwb information whose first addresses are 528*1 and 528*2 are released, see (c) in FIG. 5 .

(4)接收到资源标识为4的32端口的信号资源,找到第一个空闲的存储空间,在该存储空间中存储Rwb信息,参见图5中的(d)。(4) Receive the 32-port signal resource with the resource identifier 4, find the first free storage space, and store the Rwb information in the storage space, see (d) in FIG. 5 .

根据上述过程可知,该方案需要耗费较大的存储空间,总信号资源个数越多,占用的存储空间越大。当信号资源个数为8,总端口数为64时,每个端口都按32端口对应的内存开辟存储空间,则总存储空间为528*8,而该终端最多占用的存储空间为528*2,内存使用效率为(528*2)/(528*8)=25%,而本申请实施例提供的方法对应的内存使用效率为51%,比背景技术提供的方法对应的内存使用效率增加了一倍。并且,当每个Rwb信息对应的矩阵元素为8字节时,需要的存储空间为528*8*8=33792个字节,而本申请实施例提供的方法需要的存储空间仅为16560字节,比背景技术提供的方法节约了一半内存。According to the above process, this solution needs to consume a large storage space, and the more the total number of signal resources, the larger the storage space occupied. When the number of signal resources is 8 and the total number of ports is 64, each port will open up storage space according to the memory corresponding to 32 ports, then the total storage space is 528*8, and the maximum storage space occupied by the terminal is 528*2 , the memory usage efficiency is (528*2)/(528*8)=25%, and the memory usage efficiency corresponding to the method provided by the embodiment of the present application is 51%, which is higher than the memory usage efficiency corresponding to the method provided by the background technology. doubled. Moreover, when the matrix element corresponding to each Rwb information is 8 bytes, the required storage space is 528*8*8=33792 bytes, while the storage space required by the method provided by the embodiment of the present application is only 16560 bytes , which saves half the memory compared to the method provided by the background art.

需要说明的一点是,相关技术中还有的方案在存储Rwb信息时,终端按顺序存储同一端口的Rwb信息,在剩余的存储空间不足以存储当前待存储的Rwb信息时,终端释放一部分已存储的Rwb信息,且将未释放部分的Rwb信息按照各自对应的端口挪至空闲出来的存储空间,然后再存储当前待存储的Rwb信息。为了便于理解,接下来介绍一下该方案的存储过程。It should be noted that, in other solutions in the related art, when storing Rwb information, the terminal stores the Rwb information of the same port in sequence, and when the remaining storage space is not enough to store the Rwb information currently to be stored, the terminal releases a part of the stored Rwb information. and move the unreleased part of the Rwb information to the free storage space according to the respective corresponding ports, and then store the Rwb information currently to be stored. In order to facilitate understanding, the following describes the stored procedure of the program.

这里仍以总信号资源个数为8,总端口数为64,多个端口的端口数分别为2、4、8、12、16、24和32为例进行说明。且该过程中终端依次接收到4个16端口的信号资源,这4个信号资源的资源标识分别为0,1,2,3,然后资源标识为1和2的信号资源对应的Rwb信息被释放掉,又接收到1个32端口的信号资源,该信号资源的资源标识为4。Here, the total number of signal resources is 8, the total number of ports is 64, and the number of ports of multiple ports is 2, 4, 8, 12, 16, 24, and 32 as an example for description. And in this process, the terminal receives four 16-port signal resources in turn. The resource identifiers of these four signal resources are 0, 1, 2, and 3, respectively, and then the Rwb information corresponding to the signal resources with resource identifiers 1 and 2 is released. If the signal is dropped, another 32-port signal resource is received, and the resource identifier of the signal resource is 4.

该过程主要包括以下步骤:The process mainly includes the following steps:

(1)总信号资源个数为8,总端口数为64,则最多需要存放2个32端口的信号资源,存储空间最大需求为2*528=1056,参见图6中的(a)。(1) The total number of signal resources is 8 and the total number of ports is 64, then at most two 32-port signal resources need to be stored, and the maximum storage space requirement is 2*528=1056, see (a) in Figure 6.

(2)当分别接收到4个16端口的信号资源时,按该端口所需存储空间,依次对齐排放,参见图6中的(b)。(2) When four 16-port signal resources are respectively received, they are arranged in sequence according to the storage space required by the port, see (b) in FIG. 6 .

(3)资源标识为1和2的信号资源对应的Rwb信息被释放掉,参见图6中的(c)。(3) The Rwb information corresponding to the signal resources whose resource identifiers are 1 and 2 are released, see (c) in FIG. 6 .

(4)接收到资源标识为4的32端口的信号资源,此时存储空间中没有一个连续的存储空间足以存放该信号资源对应的Rwb信息,这时,终端将资源标识为3的信号资源对应的Rwb信息挪至原来资源标识为1的信号资源对应的Rwb信息的存储位置,然后再存储资源标识为4的信号资源对应的Rwb信息,参见图6中的(d)。(4) The signal resource of 32 ports with resource identifier 4 is received. At this time, there is no continuous storage space in the storage space enough to store the Rwb information corresponding to the signal resource. At this time, the terminal corresponds to the signal resource with resource identifier 3. The Rwb information is moved to the storage location of the Rwb information corresponding to the signal resource with the original resource identifier of 1, and then the Rwb information corresponding to the signal resource with the resource identifier of 4 is stored, see (d) in FIG. 6 .

由此可见,当存储空间不足时,该方案需要进行Rwb信息的腾挪,导致内存管理复杂,同时因为需要拷贝Rwb信息,增加功耗。It can be seen that when the storage space is insufficient, the solution needs to move the Rwb information, which leads to complicated memory management, and increases the power consumption because the Rwb information needs to be copied.

而本申请实施例提供的方法在存储Rwb信息时,不需要进行Rwb信息的腾挪,也就不需要拷贝Rwb信息,从而降低了存储的复杂度。However, when the method provided by the embodiment of the present application stores the Rwb information, it does not need to move the Rwb information, and also does not need to copy the Rwb information, thereby reducing the storage complexity.

本申请实施例提供了一种存储信息的存储方法,该方法在存储信号资源的存储信息时,按每个端口所属的端口类型来存储,而不同的端口类型对应不同的存储空间,这样可以避免每个端口都按最大端口数对应的存储信息的矩阵元素来确定存储空间,大大减少了确定的总存储空间,缩小了实际使用的存储空间与总存储空间之间的差值,从而提高了内存使用效率。The embodiment of the present application provides a storage method for storing information. When storing the storage information of signal resources, the method stores the storage information according to the port type to which each port belongs, and different port types correspond to different storage spaces, which can avoid Each port determines the storage space according to the matrix elements of the storage information corresponding to the maximum number of ports, which greatly reduces the determined total storage space and reduces the difference between the actually used storage space and the total storage space, thereby improving the memory Use efficiency.

图7是本申请实施例提供的一种将多个端口进行分类的流程图,参见图7,该方法包括:FIG. 7 is a flowchart of classifying multiple ports according to an embodiment of the present application. Referring to FIG. 7 , the method includes:

步骤701:终端确定该终端支持的总端口数和总信号资源个数。Step 701: The terminal determines the total number of ports and the total number of signal resources supported by the terminal.

在3GPP协议中有规定,终端需要上报自己的能力,其中有2个参数,一个是NZP-CSI-RS-ActBWP-AllCC,表示总端口数,该总端口数的取值范围为2~256,另一个是NZP-CSI-RS-ActBWP-AllCC,表示总信号资源个数,该总信号资源个数的取值范围为1~64。It is stipulated in the 3GPP protocol that the terminal needs to report its own capabilities. There are two parameters, one is NZP-CSI-RS-ActBWP-AllCC, which represents the total number of ports. The value of the total number of ports ranges from 2 to 256. The other is NZP-CSI-RS-ActBWP-AllCC, which represents the total number of signal resources, and the value range of the total number of signal resources is 1-64.

例如,一个终端,最多支持8个信号资源,可承载的总端口数为64,则该终端最多支持2个32端口的信号资源,4个16端口的信号资源,8个8端口的信号资源,当然还可以对各种端口进行排列组合,只要满足总信号资源个数小于等于8,端口数总和小于等于64即可。For example, if a terminal supports up to 8 signal resources and the total number of ports that can be carried is 64, the terminal supports up to 2 signal resources of 32 ports, 4 signal resources of 16 ports, and 8 signal resources of 8 ports. Of course, various ports can also be arranged and combined, as long as the total number of signal resources is less than or equal to 8 and the total number of ports is less than or equal to 64.

步骤702:终端基于该终端支持的多个端口的端口数和总端口数,对该多个端口进行分类,得到多个端口类型。Step 702: The terminal classifies the multiple ports based on the number of ports and the total number of ports supported by the terminal to obtain multiple port types.

本步骤可以通过以下步骤(1)至(2)实现,包括:This step can be achieved through the following steps (1) to (2), including:

(1)终端确定每个端口对应的端口数与总端口数之间的比例系数,得到多个比例系数。(1) The terminal determines the proportional coefficient between the number of ports corresponding to each port and the total number of ports, and obtains multiple proportional coefficients.

对于每个端口,终端确定总端口数与该端口的端口数的比值,得到该端口对应的比例系数,该比例系数为整数比例系数或非整数比例系数。For each port, the terminal determines the ratio of the total port number to the port number of the port, and obtains the proportional coefficient corresponding to the port, which is an integer proportional coefficient or a non-integer proportional coefficient.

例如,终端的总端口数为64,对于16端口,总端口数与该端口的端口数的比值为4,为整数比例系数,对于24端口,总端口数与该端口的端口数的比值约为2.7,为非整数比例系数。For example, the total number of ports of the terminal is 64. For 16 ports, the ratio of the total number of ports to the number of ports of the port is 4, which is an integer scale factor. For 24 ports, the ratio of the total number of ports to the number of ports of the port is about 2.7, which is a non-integer scale factor.

需要说明的一点是,由于端口的端口数为1时,该矩阵只有一个元素,不需要做PMI信息的选择,所以在本申请实施例中,暂不考虑端口的端口数为1时的情况。It should be noted that, when the number of ports of a port is 1, the matrix has only one element, and there is no need to select PMI information. Therefore, in this embodiment of the present application, the case where the number of ports of a port is 1 is temporarily ignored.

(2)终端基于多个比例系数,对多个端口进行分类,得到多个端口类型。(2) The terminal classifies multiple ports based on multiple proportional coefficients to obtain multiple port types.

终端将多个比例系数进行排序,对于排序后的多个比例系数,将相邻的多个整数比例系数中每个整数比例系数对应的端口确定为一类,将相邻的非整数比例系数和整数比例系数分别对应的端口合并为一类,得到多个端口类型。The terminal sorts the multiple scale coefficients, and for the sorted multiple scale coefficients, determines the port corresponding to each integer scale coefficient in the adjacent multiple integer scale coefficients as a class, and sets the adjacent non-integer scale coefficients and The ports corresponding to the integer scale coefficients are combined into one class to obtain multiple port types.

该实现方式中,终端可以按照由小到大的顺序将多个比例系数进行排序,也可以按照由大到小的顺序将多个比例系数进行排序,对此不作具体限定。由于有的比例系数为整数比例系数,有的比例系数为非整数比例系数,可能存在相邻的比例系数为非整数比例系数和整数比例系数的情况,也可能存在相邻的比例系数均为整数比例系数的情况,这种情况下,对于相邻的多个整数比例系数,终端将每个整数比例系数对应的端口确定为一类,对于相邻的非整数比例系数和整数比例系数,终端将该非整数比例系数和整数比例系数对应的端口合并为一类。In this implementation manner, the terminal may sort the multiple scale coefficients in descending order, or sort the multiple scale coefficients in descending order, which is not specifically limited. Since some scale coefficients are integer scale coefficients and some scale coefficients are non-integer scale coefficients, there may be cases where the adjacent scale coefficients are non-integer scale coefficients and integer scale coefficients, or there may be adjacent scale coefficients that are all integers In the case of scale coefficients, in this case, for multiple adjacent integer scale coefficients, the terminal determines the port corresponding to each integer scale coefficient as a class, and for adjacent non-integer scale coefficients and integer scale coefficients, the terminal will The ports corresponding to the non-integer scale coefficient and the integer scale coefficient are combined into one type.

例如,对于2、4、8、12、16、24和32端口,根据上述方法确定的比例系数分别为32、16、8、5.3、4、2.7和2,将这几个比例系数按照由小到大的顺序排序后,分别为2、2.7、4、5.3、8、16和32,对于比例系数2和2.7,将这两个比例系数对应的端口合并为一类,也即将32端口和24端口合并为一类,对于比例系数4和5.3,将这两个比例系数对应的端口合并为一类,也即将16端口和12端口合并为一类,对于比例系数8、16和32,这三个比例系数均为整数,则每个比例系数对应的端口确定为一类,也即8端口确定为一类,4端口确定为一类,2端口确定为一类。For example, for ports 2, 4, 8, 12, 16, 24 and 32, the proportional coefficients determined according to the above method are 32, 16, 8, 5.3, 4, 2.7 and 2, respectively. After sorting to the largest order, they are 2, 2.7, 4, 5.3, 8, 16 and 32 respectively. For the proportional coefficients of 2 and 2.7, the ports corresponding to these two proportional coefficients are combined into one class, that is, ports 32 and 24 The ports are combined into one class. For the proportional coefficients of 4 and 5.3, the ports corresponding to the two proportional coefficients are combined into one class, that is, the 16 ports and the 12 ports are combined into one class. For the proportional coefficients of 8, 16 and 32, these three If the scale coefficients are integers, the ports corresponding to each scale coefficient are determined as one class, that is, 8 ports are determined as one class, 4 ports are determined as one class, and 2 ports are determined as one class.

需要说明的一点是,对于相邻两个整数比例系数之间为非整数比例系数的情况,若按照比例系数由小到大排序,则终端将该非整数比例系数与其前一个整数比例系数合并为一类,若按照比例系数由大到小排序,则终端将非整数比例系数与其后一个整数比例系数合并为一类。It should be noted that, for the case where there is a non-integer scale coefficient between two adjacent integer scale coefficients, if the scale coefficients are sorted from small to large, the terminal will combine the non-integer scale coefficient with its previous integer scale coefficient as One category, if the scale coefficients are sorted in descending order, the terminal combines the non-integer scale coefficient and the next integer scale coefficient into one category.

参见表1,例如,总端口数为64,总信号资源个数为8,存储信息为Rwb信息,从表1中可以看出:对于2、4、8、12、16、24和32端口,终端根据上述方法将12端口和16端口合并为一类,将24端口和32端口合并为一类,其余端口各为一类,最终得到5个端口类型。Referring to Table 1, for example, the total number of ports is 64, the total number of signal resources is 8, and the storage information is Rwb information. It can be seen from Table 1 that for ports 2, 4, 8, 12, 16, 24 and 32, According to the above method, the terminal combines 12 ports and 16 ports into one type, 24 ports and 32 ports into one type, and the other ports are each one type, and finally 5 port types are obtained.

表1端口类型、下三角元素个数和Rwb信息个数之间的关系Table 1 Relationship between port type, number of lower triangular elements and number of Rwb information

端口类型port type 32/2432/24 16/1216/12 88 44 22 下三角元素个数The number of lower triangle elements 528528 136/78136/78 3636 1010 33 Rwb信息的数量Number of Rwb messages 22 55 88 88 88

步骤703:终端基于多个端口类型、总端口数和总信号资源个数,确定每个端口类型对应的存储空间。Step 703: The terminal determines the storage space corresponding to each port type based on the multiple port types, the total number of ports and the total number of signal resources.

本步骤可以通过以下步骤(1)至(3)实现,包括:This step can be achieved through the following steps (1) to (3), including:

(1)对于每个端口类型,终端基于该端口类型和总端口数,确定该端口类型对应的端口数组。(1) For each port type, the terminal determines the port array corresponding to the port type based on the port type and the total number of ports.

终端先基于最小的端口数和总端口数,确定数组长度,然后确定与该数组长度匹配的端口数组,该端口数组的数组长度不大于总信号资源个数,该最小的端口数为属于该端口类型的端口中最小的端口数。The terminal first determines the length of the array based on the minimum number of ports and the total number of ports, and then determines the port array that matches the length of the array. The array length of the port array is not greater than the total number of signal resources, and the minimum number of ports belongs to the port. The smallest number of ports among the types of ports.

该实现方式中,终端确定总端口数与该最小的端口数的比值,若该比值不大于总信号资源个数且为整数,则终端直接将该比值确定为数组长度,若该比值大于总信号资源个数,则终端将总信号资源个数确定为数组长度,若该比值不大于总信号资源个数且为非整数,则终端将该比值中的整数部分确定为数组长度,该数组长度的大小即为该端口能承载的存储信息的最大数量。In this implementation, the terminal determines the ratio of the total number of ports to the minimum number of ports. If the ratio is not greater than the total number of signal resources and is an integer, the terminal directly determines the ratio as the array length. If the ratio is greater than the total signal resources The number of resources, the terminal determines the total number of signal resources as the array length. If the ratio is not greater than the total number of signal resources and is a non-integer, the terminal determines the integer part of the ratio as the array length. The size is the maximum amount of stored information that the port can carry.

例如,存储信息为Rwb信息,对于一端口类型,该端口类型包括24端口和32端口,这两个端口中最小的端口数为24,终端的总端口数为64,总信号资源个数为8,则终端确定64与24的比值,该比值约为2.7,可知该比值不大于总信号资源个数且为非整数,则终端将2.7中的整数部分也即2确定为该端口类型的数组长度,也即该端口类型对应的存储子空间最多存储2个Rwb信息。对于另一端口类型,该端口类型仅包括4端口,则终端确定64与4的比值,该比值为16,可知该比值大于总信号资源个数,则终端直接将总信号资源个数8确定为该端口类型的数组长度,也即该端口类型对应的存储子空间最多存储8个Rwb信息。For example, the stored information is Rwb information. For a port type, the port type includes 24 ports and 32 ports, the minimum number of ports among the two ports is 24, the total number of ports of the terminal is 64, and the total number of signal resources is 8 , the terminal determines the ratio between 64 and 24, which is about 2.7. It can be seen that the ratio is not greater than the total number of signal resources and is a non-integer, and the terminal determines the integer part of 2.7, that is, 2 as the array length of the port type , that is, the storage subspace corresponding to the port type stores at most 2 Rwb information. For another port type, the port type only includes 4 ports, the terminal determines the ratio of 64 to 4, the ratio is 16, and it can be seen that the ratio is greater than the total number of signal resources, then the terminal directly determines the total number of signal resources 8 as The array length of the port type, that is, the storage subspace corresponding to the port type can store up to 8 pieces of Rwb information.

其中,该端口数组的初始值可以根据需要进行设置并更改,例如,该端口数组的初始值为-1,表示该存储子空间没被占用,该端口数组的数组长度为8,则该端口数组中有8个初始值。Among them, the initial value of the port array can be set and changed as required. For example, the initial value of the port array is -1, indicating that the storage subspace is not occupied, and the array length of the port array is 8, then the port array There are 8 initial values.

(2)终端确定该端口类型对应的存储信息的矩阵元素个数。(2) The terminal determines the number of matrix elements of the stored information corresponding to the port type.

若该存储信息为Rwb信息,则该矩阵元素个数为该Rwb信息中上三角元素个数或下三角元素个数,不同的端口对应的Rwb信息的矩阵元素个数不同,例如,32端口对应的Rwb信息的矩阵元素个数为528,24端口对应的Rwb信息的矩阵元素个数为300,16端口对应的Rwb信息的矩阵元素个数为136,参见表2。If the stored information is Rwb information, the number of matrix elements is the number of upper triangular elements or the number of lower triangular elements in the Rwb information, and the number of matrix elements of the Rwb information corresponding to different ports is different, for example, 32 ports correspond to The number of matrix elements of Rwb information is 528, the number of matrix elements of Rwb information corresponding to 24 ports is 300, and the number of matrix elements of Rwb information corresponding to 16 ports is 136, see Table 2.

表2各端口对应的下三角元素个数Table 2 Number of lower triangular elements corresponding to each port

端口port 3232 24twenty four 1616 1212 88 44 22 下三角元素个数The number of lower triangle elements 528528 300300 136136 7878 3636 1010 33

本步骤中,终端确定属于该端口类型的端口中最大的端口数与总参考端口数之间的比值,得到第一比值,确定该端口数组的数组长度与该第一比值的差值,得到第一差值。若第一差值等于0,则终端确定最大的端口数对应的存储信息的矩阵元素个数为该端口类型对应的存储信息的矩阵元素个数。若第一差值大于0,则终端确定最大的端口数和最小的端口数分别对应的存储信息的矩阵元素个数为该端口类型对应的存储信息的矩阵元素个数。In this step, the terminal determines the ratio between the maximum number of ports in the ports belonging to the port type and the total number of reference ports, obtains the first ratio, determines the difference between the array length of the port array and the first ratio, and obtains the first ratio. a difference. If the first difference is equal to 0, the terminal determines that the number of matrix elements of the stored information corresponding to the maximum port number is the number of matrix elements of the stored information corresponding to the port type. If the first difference is greater than 0, the terminal determines that the number of matrix elements of the stored information corresponding to the maximum number of ports and the minimum number of ports respectively is the number of matrix elements of the stored information corresponding to the port type.

若存储信息为Rwb信息,从表1中可以看出:32端口和24端口所属的端口类型对应的Rwb信息的矩阵元素个数为528,16和12端口所属的端口类型对应的Rwb信息的矩阵元素个数为136和78。If the stored information is Rwb information, it can be seen from Table 1 that the number of matrix elements of the Rwb information corresponding to the port types to which ports 32 and 24 belong is 528, and the matrix of Rwb information corresponding to the port types to which ports 16 and 12 belong The number of elements is 136 and 78.

(3)终端基于该端口类型对应的端口数组及其对应的矩阵元素个数,确定该端口类型对应的存储空间。(3) The terminal determines the storage space corresponding to the port type based on the port array corresponding to the port type and the corresponding number of matrix elements.

该存储空间不仅包括存储容量,还包括存储位置。该存储容量可以满足该端口类型中每个端口的存储需求,该存储位置为该端口类型中最大的端口数对应的内存位置。例如,对于一端口类型,该端口类型包括24端口和32端口,则24端口对应的Rwb信息和32端口对应的Rwb信息均存储在32端口对齐的内存位置。This storage space includes not only storage capacity, but also storage location. The storage capacity can meet the storage requirements of each port in the port type, and the storage location is the memory location corresponding to the maximum number of ports in the port type. For example, for a port type, the port type includes 24 ports and 32 ports, the Rwb information corresponding to the 24 ports and the Rwb information corresponding to the 32 ports are both stored in the memory locations aligned with the 32 ports.

终端确定该端口类型对应的存储容量的过程可以通过以下过程实现:若第一差值等于0,则终端确定该端口数组的数组长度与其应的矩阵元素个数的乘积值,得到该端口类型对应的存储容量。若第一差值大于0,则终端确定最大的端口数对应的矩阵元素个数与该第一比值的乘积,得到第一乘积值,确定最小的端口数对应的矩阵元素个数与该第一差值的乘积,得到第二乘积值,确定第一乘积值和第二乘积值的和值为该存储容量。The process of determining the storage capacity corresponding to the port type by the terminal may be implemented through the following process: if the first difference is equal to 0, the terminal determines the product value of the array length of the port array and the number of corresponding matrix elements, and obtains the corresponding port type storage capacity. If the first difference is greater than 0, the terminal determines the product of the number of matrix elements corresponding to the maximum number of ports and the first ratio, obtains the first product value, and determines the number of matrix elements corresponding to the minimum number of ports and the first ratio. The difference value is multiplied to obtain the second product value, and the sum of the first product value and the second product value is determined as the storage capacity.

例如,总端口数为64,总信号资源个数为8,存储信息为Rwb信息,对于一端口类型,该端口类型包括24端口和32端口,则终端直接确定64与32的比值,得到第一比值2,根据上述步骤(1)可知,该端口类型的数组长度为2,数组长度与第一比值的差值为0,则终端确定数组长度2与32端口对应的矩阵元素个数528的乘积值,得到该端口类型对应的存储容量为528*2,参见图8。For example, the total number of ports is 64, the total number of signal resources is 8, and the storage information is Rwb information. For a port type, the port type includes 24 ports and 32 ports, the terminal directly determines the ratio of 64 to 32, and obtains the first The ratio is 2. According to the above step (1), it can be known that the array length of the port type is 2, and the difference between the array length and the first ratio is 0, then the terminal determines the product of the array length 2 and the number of matrix elements corresponding to the 32 ports 528 value, the storage capacity corresponding to this port type is 528*2, see Figure 8.

对于另一端口类型,该端口类型包括12端口和16端口,则终端确定64与16的比值,得到第一比值4,根据上述步骤(1)可以确定出该端口类型的数组长度为5,该数组长度与第一比值的差值为1,则终端确定16端口对应的矩阵元素个数136与该第一比值4的乘积,得到第一乘积值136*4,确定12端口对应的矩阵元素个数78与第一差值1的乘积,得到第二乘积值78*1,确定第一乘积值136*4和第二乘积值78*1的和值为该存储容量,继续参见图8。从图8中还可以看出:每个端口类型对应的Rwb信息的数量均不大于8。For another port type, the port type includes 12 ports and 16 ports, then the terminal determines the ratio of 64 to 16, and obtains the first ratio of 4. According to the above step (1), it can be determined that the array length of this port type is 5, and the If the difference between the array length and the first ratio is 1, the terminal determines the product of the number of matrix elements corresponding to port 16, 136 and the first ratio of 4, to obtain the first product value of 136*4, and determines the number of matrix elements corresponding to port 12. The product of the number 78 and the first difference value 1 obtains the second product value 78*1, and the sum of the first product value 136*4 and the second product value 78*1 is determined to be the storage capacity. Continue to refer to FIG. 8 . It can also be seen from FIG. 8 that the quantity of Rwb information corresponding to each port type is not greater than 8.

需要说明的一点是,步骤701-703是将多个端口进行分类得到多个端口类型的过程,只需要执行一次即可,后续接收到信号资源时,直接执行步骤301-306即可。It should be noted that steps 701-703 are the process of classifying multiple ports to obtain multiple port types, which only needs to be performed once, and steps 301-306 can be directly performed when signal resources are subsequently received.

在本申请实施例中,终端通过将多个端口进行分类,得到多个端口类型,根据端口类型来开辟对应端口需要的存储容量,避免了每个端口都按最大端口数来开辟存储容量,大大减少了内存占用,从而提高了内存的使用效率。In the embodiment of the present application, the terminal obtains multiple port types by classifying multiple ports, and develops the storage capacity required by the corresponding port according to the port type, avoiding the need for each port to develop storage capacity according to the maximum number of ports, greatly reducing the need for The memory usage is reduced, thereby improving the efficiency of memory usage.

图9是本申请实施例提供的一种存储信息的存储装置的结构示意图,参见图9,该装置包括:FIG. 9 is a schematic structural diagram of a storage device for storing information provided by an embodiment of the present application. Referring to FIG. 9 , the device includes:

接收模块901,用于接收第一端口的第一信号资源;a receiving module 901, configured to receive the first signal resource of the first port;

第一确定模块902,用于确定第一端口所属的目标端口类型;a first determining module 902, configured to determine the target port type to which the first port belongs;

存储模块903,用于在目标端口类型对应的目标存储空间中存储第一存储信息,第一存储信息为第一信号资源对应的存储信息。The storage module 903 is configured to store first storage information in the target storage space corresponding to the target port type, where the first storage information is storage information corresponding to the first signal resource.

在一种可能的实现方式中,存储模块903,用于基于第一信号资源的第一资源标识,在目标存储空间中查询第一资源标识对应的第二存储信息;若查询到第二存储信息,在存储第二存储信息的存储子空间存储第一存储信息。In a possible implementation manner, the storage module 903 is configured to query the second storage information corresponding to the first resource identifier in the target storage space based on the first resource identifier of the first signal resource; if the second storage information is queried , and store the first storage information in the storage subspace where the second storage information is stored.

在另一种可能的实现方式中,存储模块903,还用于若查询不到第二存储信息,在目标存储空间中处于空闲状态的存储子空间中存储第一存储信息;若目标存储空间中不存在处于空闲状态的存储子空间,将第三存储信息替换为第一存储信息,第三存储信息为目标存储空间中存储时间最早的存储信息。In another possible implementation manner, the storage module 903 is further configured to store the first storage information in a storage subspace in an idle state in the target storage space if the second storage information cannot be queried; If there is no storage subspace in an idle state, the third storage information is replaced with the first storage information, and the third storage information is the storage information with the earliest storage time in the target storage space.

在另一种可能的实现方式中,存储模块903,还用于对第二存储信息和第一存储信息进行平滑滤波,得到第四存储信息;在存储第二存储信息的存储子空间中存储第四存储信息。In another possible implementation manner, the storage module 903 is further configured to perform smooth filtering on the second storage information and the first storage information to obtain fourth storage information; and store the fourth storage information in the storage subspace where the second storage information is stored. 4. Store information.

在另一种可能的实现方式中,装置还包括:In another possible implementation manner, the apparatus further includes:

第二确定模块,用于确定终端支持的总端口数和总信号资源个数;The second determination module is used to determine the total number of ports and the total number of signal resources supported by the terminal;

分类模块,用于基于终端支持的多个端口的端口数和总端口数,对多个端口进行分类,得到多个端口类型;The classification module is used to classify multiple ports based on the number of ports and the total number of ports supported by the terminal to obtain multiple port types;

第三确定模块,用于基于多个端口类型、总端口数和总信号资源个数,确定每个端口类型对应的存储空间。The third determining module is configured to determine the storage space corresponding to each port type based on the plurality of port types, the total number of ports and the total number of signal resources.

在另一种可能的实现方式中,分类模块,用于确定每个端口对应的端口数与总端口数之间的比例系数,得到多个比例系数;基于多个比例系数,对多个端口进行分类,得到多个端口类型。In another possible implementation manner, the classification module is configured to determine a proportional coefficient between the number of ports corresponding to each port and the total number of ports, and obtain multiple proportional coefficients; Sort to get multiple port types.

在另一种可能的实现方式中,分类模块,还用于将多个比例系数进行排序;对于排序后的多个比例系数,将相邻的多个整数比例系数中每个整数比例系数对应的端口确定为一类,将相邻的非整数比例系数和整数比例系数分别对应的端口合并为一类,得到多个端口类型。In another possible implementation manner, the classification module is further configured to sort the multiple scale coefficients; for the sorted multiple scale coefficients, the corresponding integer scale coefficients of each of the adjacent multiple integer scale coefficients are sorted. The ports are determined as one class, and the ports corresponding to the adjacent non-integer scale coefficients and integer scale coefficients are combined into one class to obtain multiple port types.

在另一种可能的实现方式中,第三确定模块,用于对于每个端口类型,基于端口类型和总端口数,确定端口类型对应的端口数组,端口数组的数组长度不大于总信号资源个数;确定端口类型对应的存储信息的矩阵元素个数;基于端口类型对应的端口数组及其对应的矩阵元素个数,确定端口类型对应的存储空间。In another possible implementation manner, a third determining module is configured to, for each port type, determine a port array corresponding to the port type based on the port type and the total number of ports, and the array length of the port array is not greater than the total number of signal resources. number; determine the number of matrix elements of the storage information corresponding to the port type; determine the storage space corresponding to the port type based on the port array corresponding to the port type and the number of corresponding matrix elements.

在另一种可能的实现方式中,第三确定模块,用于基于最小的端口数和总端口数,确定数组长度,最小的端口数为属于端口类型的端口中最小的端口数;确定与数组长度匹配的端口数组。In another possible implementation manner, the third determining module is configured to determine the length of the array based on the minimum number of ports and the total number of ports, and the minimum number of ports is the minimum number of ports among the ports belonging to the port type; An array of ports with matching lengths.

本申请实施例提供了一种存储信息的存储装置,该装置在存储信号资源的存储信息时,按每个端口所属的端口类型来存储,而不同的端口类型对应不同的存储空间,这样可以避免每个端口都按最大端口数对应的存储信息的矩阵元素来确定存储空间,大大减少了确定的总存储空间,缩小了实际使用的存储空间与总存储空间之间的差值,从而提高了内存使用效率。The embodiment of the present application provides a storage device for storing information. When storing the storage information of signal resources, the device stores the storage information according to the port type to which each port belongs, and different port types correspond to different storage spaces, which can avoid Each port determines the storage space according to the matrix elements of the storage information corresponding to the maximum number of ports, which greatly reduces the determined total storage space and reduces the difference between the actually used storage space and the total storage space, thereby improving the memory Use efficiency.

请参考图10,其示出了本申请一个示例性实施例示出的终端1000的结构框图。终端1000可以是智能手机、平板电脑等具有控制其他设备的功能的设备。本申请中的终端1000可以包括一个或多个如下部件:处理器1010、存储器1020。Please refer to FIG. 10 , which shows a structural block diagram of a terminal 1000 according to an exemplary embodiment of the present application. The terminal 1000 may be a device having a function of controlling other devices, such as a smartphone or a tablet computer. The terminal 1000 in this application may include one or more of the following components: a processor 1010 and a memory 1020 .

处理器1010可以包括一个或者多个处理核心。处理器1010利用各种接口和线路连接整个终端1000内的各个部分,通过运行或执行存储在存储器1020内的程序代码、程序、代码集或程序代码集,以及调用存储在存储器1020内的数据,执行终端1000的各种功能和处理数据。可选地,处理器1010可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现。处理器1010可集成中央处理器(Central Processing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)、神经网络处理器(Neural-network Processing Unit,NPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示屏所需要显示的内容的渲染和绘制;NPU用于实现人工智能(Artificial Intelligence,AI)功能;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器1010中,单独通过一块芯片进行实现。Processor 1010 may include one or more processing cores. The processor 1010 uses various interfaces and lines to connect various parts in the entire terminal 1000, and by running or executing program codes, programs, code sets or program code sets stored in the memory 1020, and calling data stored in the memory 1020, Various functions of the terminal 1000 are executed and data is processed. Optionally, the processor 1010 may employ at least one of a digital signal processing (Digital Signal Processing, DSP), a Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and a Programmable Logic Array (Programmable Logic Array, PLA). A hardware form is implemented. The processor 1010 may integrate one or more of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), a neural-network processing unit (Neural-network Processing Unit, NPU), a modem, and the like. The combination. Among them, the CPU mainly handles the operating system, user interface and applications; the GPU is used to render and draw the content that needs to be displayed on the display screen; the NPU is used to implement artificial intelligence (AI) functions; the modem is used to process wireless communication. It can be understood that, the above-mentioned modem may not be integrated into the processor 1010, but is implemented by a single chip.

存储器1020可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory,ROM)。可选地,该存储器1020包括非瞬时性计算机可读介质(non-transitory computer-readable storage medium)。存储器1020可用于存储程序代码、程序、代码、代码集或程序代码集。存储器1020可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的程序代码、用于至少一个功能的程序代码(比如触控功能、声音播放功能、图像播放功能等)、用于实现上述各个方法实施例的程序代码等;存储数据区可存储根据终端1000的使用所创建的数据(比如音频数据、电话本)等。The memory 1020 may include random access memory (Random Access Memory, RAM), or may include read-only memory (Read-Only Memory, ROM). Optionally, the memory 1020 includes a non-transitory computer-readable storage medium. Memory 1020 may be used to store program code, programs, codes, sets of codes, or sets of program codes. The memory 1020 may include a stored program area and a stored data area, wherein the stored program area may store program codes for implementing an operating system, program codes for at least one function (such as a touch function, a sound playback function, an image playback function, etc. ), program codes for implementing the above method embodiments, etc.; the storage data area may store data (such as audio data, phone book) and the like created according to the use of the terminal 1000 .

除此之外,本领域技术人员可以理解,上述附图所示出的终端1000的结构并不构成对终端1000的限定,终端1000可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。比如,终端1000中还包括麦克风、扬声器、射频电路、输入单元、传感器、音频电路、无线保真(Wireless Fidelity,Wi-Fi)模块、电源、蓝牙模块等部件,在此不再赘述。In addition, those skilled in the art can understand that the structure of the terminal 1000 shown in the above drawings does not constitute a limitation on the terminal 1000, and the terminal 1000 may include more or less components than those shown in the drawings, or a combination of certain components may be included. some components, or a different arrangement of components. For example, the terminal 1000 further includes components such as a microphone, a speaker, a radio frequency circuit, an input unit, a sensor, an audio circuit, a Wireless Fidelity (Wi-Fi) module, a power supply, and a Bluetooth module, which are not described herein again.

在示例性实施例中,还提供了一种计算机可读介质,该计算机可读介质存储有至少一条程序代码,该至少一条程序代码由处理器加载并执行,以实现上述实施例中的存储信息的存储方法。In an exemplary embodiment, a computer-readable medium is also provided, and the computer-readable medium stores at least one piece of program code, and the at least one piece of program code is loaded and executed by a processor, so as to realize the storage information in the above-mentioned embodiment. storage method.

在示例性实施例中,还提供了一种计算机程序产品,该计算机程序产品存储有至少一条程序代码,该至少一条程序代码由处理器加载并执行,以实现上述实施例中的存储信息的存储方法。In an exemplary embodiment, a computer program product is also provided, and the computer program product stores at least one piece of program code, and the at least one piece of program code is loaded and executed by the processor, so as to realize the storage of the storage information in the above-mentioned embodiment. method.

在一些实施例中,本申请实施例所涉及的计算机程序可被部署在一个计算机设备上执行,或者在位于一个地点的多个计算机设备上执行,又或者,在分布在多个地点且通过通信网络互连的多个计算机设备上执行,分布在多个地点且通过通信网络互连的多个计算机设备可以组成区块链系统。In some embodiments, the computer programs involved in the embodiments of the present application may be deployed and executed on one computer device, or executed on multiple computer devices located at one location, or distributed in multiple locations and communicated through Executed on multiple computer devices interconnected by a network, and multiple computer devices distributed in multiple locations and interconnected through a communication network can form a blockchain system.

本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,该程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps of implementing the above embodiments can be completed by hardware, or can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium. The storage medium can be read-only memory, magnetic disk or optical disk, etc.

以上所述仅是为了便于本领域的技术人员理解本申请的技术方案,并不用以限制本申请。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above descriptions are only for the convenience of those skilled in the art to understand the technical solutions of the present application, and are not intended to limit the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included within the protection scope of this application.

Claims (13)

1.一种存储信息的存储方法,其特征在于,所述方法包括:1. a storage method for storing information, wherein the method comprises: 接收第一端口的第一信号资源;receiving the first signal resource of the first port; 确定所述第一端口所属的目标端口类型;determining the target port type to which the first port belongs; 在所述目标端口类型对应的目标存储空间中存储第一存储信息,所述第一存储信息为所述第一信号资源对应的存储信息。First storage information is stored in the target storage space corresponding to the target port type, where the first storage information is storage information corresponding to the first signal resource. 2.根据权利要求1所述的方法,其特征在于,所述在所述目标端口类型对应的目标存储空间中存储第一存储信息,包括:2. The method according to claim 1, wherein the storing the first storage information in the target storage space corresponding to the target port type comprises: 基于所述第一信号资源的第一资源标识,在所述目标存储空间中查询所述第一资源标识对应的第二存储信息;Based on the first resource identifier of the first signal resource, query the target storage space for second storage information corresponding to the first resource identifier; 若查询到所述第二存储信息,在存储所述第二存储信息的存储子空间存储所述第一存储信息。If the second storage information is queried, the first storage information is stored in the storage subspace where the second storage information is stored. 3.根据权利要求2所述的方法,其特征在于,所述方法还包括:3. The method according to claim 2, wherein the method further comprises: 若查询不到所述第二存储信息,在所述目标存储空间中处于空闲状态的存储子空间中存储所述第一存储信息;If the second storage information cannot be queried, store the first storage information in a storage subspace in an idle state in the target storage space; 若所述目标存储空间中不存在处于空闲状态的存储子空间,将第三存储信息替换为所述第一存储信息,所述第三存储信息为所述目标存储空间中存储时间最早的存储信息。If there is no storage subspace in an idle state in the target storage space, the third storage information is replaced with the first storage information, and the third storage information is the storage information with the earliest storage time in the target storage space . 4.根据权利要求2所述的方法,其特征在于,所述在存储所述第二存储信息的存储子空间存储所述第一存储信息,包括:4. The method according to claim 2, wherein the storing the first storage information in a storage subspace where the second storage information is stored comprises: 对所述第二存储信息和所述第一存储信息进行平滑滤波,得到第四存储信息;performing smooth filtering on the second storage information and the first storage information to obtain fourth storage information; 在存储所述第二存储信息的存储子空间中存储所述第四存储信息。The fourth storage information is stored in the storage subspace where the second storage information is stored. 5.根据权利要求1所述的方法,其特征在于,所述方法还包括:5. The method according to claim 1, wherein the method further comprises: 确定所述终端支持的总端口数和总信号资源个数;Determine the total number of ports and the total number of signal resources supported by the terminal; 基于所述终端支持的多个端口的端口数和所述总端口数,对所述多个端口进行分类,得到多个端口类型;Classifying the multiple ports based on the number of ports and the total number of ports supported by the terminal to obtain multiple port types; 基于所述多个端口类型、所述总端口数和所述总信号资源个数,确定每个端口类型对应的存储空间。Based on the plurality of port types, the total number of ports, and the total number of signal resources, a storage space corresponding to each port type is determined. 6.根据权利要求5所述的方法,其特征在于,所述基于所述终端支持的多个端口的端口数和所述总端口数,对所述多个端口进行分类,得到多个端口类型,包括:6 . The method according to claim 5 , wherein the plurality of ports are classified based on the number of ports and the total number of ports supported by the terminal to obtain a plurality of port types. 7 . ,include: 确定每个端口对应的端口数与所述总端口数之间的比例系数,得到多个比例系数;determining a proportional coefficient between the number of ports corresponding to each port and the total number of ports, to obtain a plurality of proportional coefficients; 基于所述多个比例系数,对所述多个端口进行分类,得到所述多个端口类型。The plurality of ports are classified based on the plurality of scale coefficients to obtain the plurality of port types. 7.根据权利要求6所述的方法,其特征在于,所述基于所述多个比例系数,对所述多个端口进行分类,得到所述多个端口类型,包括:7. The method according to claim 6, wherein the classifying the plurality of ports based on the plurality of proportional coefficients to obtain the plurality of port types comprises: 将所述多个比例系数进行排序;sorting the plurality of scale coefficients; 对于排序后的多个比例系数,将相邻的多个整数比例系数中每个整数比例系数对应的端口确定为一类,将相邻的非整数比例系数和整数比例系数分别对应的端口合并为一类,得到所述多个端口类型。For the sorted multiple scale coefficients, the ports corresponding to each integer scale coefficient in the adjacent multiple integer scale coefficients are determined as one class, and the ports corresponding to the adjacent non-integer scale coefficients and integer scale coefficients are merged into One class, get the multiple port types. 8.根据权利要求5所述的方法,其特征在于,所述基于所述多个端口类型、所述总端口数和所述总信号资源个数,确定每个端口类型对应的存储空间,包括:8 . The method according to claim 5 , wherein determining the storage space corresponding to each port type based on the multiple port types, the total port number, and the total signal resource number, comprising: 8 . : 对于每个端口类型,基于所述端口类型和所述总端口数,确定所述端口类型对应的端口数组,所述端口数组的数组长度不大于所述总信号资源个数;For each port type, based on the port type and the total port number, determine a port array corresponding to the port type, and the array length of the port array is not greater than the total number of signal resources; 确定所述端口类型对应的存储信息的矩阵元素个数;Determine the number of matrix elements of the storage information corresponding to the port type; 基于所述端口类型对应的端口数组及其对应的矩阵元素个数,确定所述端口类型对应的存储空间。Based on the port array corresponding to the port type and the corresponding number of matrix elements, the storage space corresponding to the port type is determined. 9.根据权利要求8所述的方法,其特征在于,所述基于所述端口类型和所述总端口数,确定所述端口类型对应的端口数组,包括:9. The method according to claim 8, wherein determining the port array corresponding to the port type based on the port type and the total port number, comprising: 基于最小的端口数和所述总端口数,确定数组长度,所述最小的端口数为属于所述端口类型的端口中最小的端口数;Determine the array length based on the minimum number of ports and the total number of ports, where the minimum number of ports is the minimum number of ports among the ports belonging to the port type; 确定与所述数组长度匹配的端口数组。Determines an array of ports that matches the length of the array. 10.一种存储信息的存储装置,其特征在于,所述装置包括:10. A storage device for storing information, wherein the device comprises: 接收模块,用于接收第一端口的第一信号资源;a receiving module, configured to receive the first signal resource of the first port; 第一确定模块,用于确定所述第一端口所属的目标端口类型;a first determining module, configured to determine the target port type to which the first port belongs; 存储模块,用于在所述目标端口类型对应的目标存储空间中存储第一存储信息,所述第一存储信息为所述第一信号资源对应的存储信息。A storage module, configured to store first storage information in a target storage space corresponding to the target port type, where the first storage information is storage information corresponding to the first signal resource. 11.一种终端,其特征在于,所述终端包括处理器和存储器,所述存储器中存储有至少一条程序代码,所述至少一条程序代码由所述处理器加载并执行,以实现如权利要求1至9任一项所述的存储信息的存储方法。11. A terminal, characterized in that the terminal comprises a processor and a memory, at least one piece of program code is stored in the memory, and the at least one piece of program code is loaded and executed by the processor to achieve the method as claimed in the claims The storage method of storage information according to any one of 1 to 9. 12.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有至少一条程序代码,所述至少一条程序代码由处理器加载并执行,以实现如权利要求1至9任一项所述的存储信息的存储方法。12. A computer-readable storage medium, characterized in that, at least one piece of program code is stored in the computer-readable storage medium, and the at least one piece of program code is loaded and executed by a processor, so as to realize as claimed in claims 1 to 9 The storage method of any one of the storage information. 13.一种计算机程序产品,其特征在于,所述计算机程序产品中存储有至少一条程序代码,所述至少一条程序代码由处理器加载并执行,以实现如权利要求1至9任一项所述的存储信息的存储方法。13. A computer program product, characterized in that, at least one piece of program code is stored in the computer program product, and the at least one piece of program code is loaded and executed by a processor to achieve the method as claimed in any one of claims 1 to 9. The storage method of the described storage information.
CN202210555621.0A 2022-05-19 2022-05-19 Storage method, device, terminal and storage medium for storing information Withdrawn CN115016729A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210555621.0A CN115016729A (en) 2022-05-19 2022-05-19 Storage method, device, terminal and storage medium for storing information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210555621.0A CN115016729A (en) 2022-05-19 2022-05-19 Storage method, device, terminal and storage medium for storing information

Publications (1)

Publication Number Publication Date
CN115016729A true CN115016729A (en) 2022-09-06

Family

ID=83068613

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210555621.0A Withdrawn CN115016729A (en) 2022-05-19 2022-05-19 Storage method, device, terminal and storage medium for storing information

Country Status (1)

Country Link
CN (1) CN115016729A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180102817A1 (en) * 2015-04-10 2018-04-12 Lg Electronics Inc. Method for reporting channel state information in wireless communication system and device therefor
CN108809609A (en) * 2017-08-11 2018-11-13 华为技术有限公司 A kind of DMRS instruction and method of reseptance, transmitting terminal and receiving terminal
CN109716797A (en) * 2016-09-29 2019-05-03 华为技术有限公司 Channel state information reference signal transmission method and reception method and device
WO2019137445A1 (en) * 2018-01-12 2019-07-18 华为技术有限公司 Channel state information measurement method and apparatus
CN111769857A (en) * 2019-03-30 2020-10-13 华为技术有限公司 A method and communication device for reporting the capability of terminal equipment
CN112514275A (en) * 2018-07-27 2021-03-16 Lg 电子株式会社 Method and apparatus for reporting channel state information in wireless communication system
WO2021062915A1 (en) * 2019-09-30 2021-04-08 华为技术有限公司 Method and device for determining channel state information reference signal resource mapping
CN113840311A (en) * 2021-09-06 2021-12-24 哲库科技(北京)有限公司 Data compression method and device, electronic equipment and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180102817A1 (en) * 2015-04-10 2018-04-12 Lg Electronics Inc. Method for reporting channel state information in wireless communication system and device therefor
CN109716797A (en) * 2016-09-29 2019-05-03 华为技术有限公司 Channel state information reference signal transmission method and reception method and device
CN108809609A (en) * 2017-08-11 2018-11-13 华为技术有限公司 A kind of DMRS instruction and method of reseptance, transmitting terminal and receiving terminal
WO2019137445A1 (en) * 2018-01-12 2019-07-18 华为技术有限公司 Channel state information measurement method and apparatus
CN112514275A (en) * 2018-07-27 2021-03-16 Lg 电子株式会社 Method and apparatus for reporting channel state information in wireless communication system
CN111769857A (en) * 2019-03-30 2020-10-13 华为技术有限公司 A method and communication device for reporting the capability of terminal equipment
WO2021062915A1 (en) * 2019-09-30 2021-04-08 华为技术有限公司 Method and device for determining channel state information reference signal resource mapping
CN113840311A (en) * 2021-09-06 2021-12-24 哲库科技(北京)有限公司 Data compression method and device, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
高秋彬;孙韶辉;: "5G新空口大规模波束赋形技术研究", 信息通信技术与政策, no. 11, 15 November 2018 (2018-11-15), pages 14 - 21 *

Similar Documents

Publication Publication Date Title
CN108964862B (en) Indication method for measuring CSI-RS, network equipment and communication system
CN105760399A (en) Data retrieval method and device
WO2024207325A1 (en) Method and apparatus for sending or receiving capability information, and readable storage medium
CN112469133B (en) Carrier resource scheduling method and device
CN105701122A (en) Log collection method, apparatus and system
CN106453512A (en) Redis cluster information monitoring device and method
WO2021043003A1 (en) Bluetooth data transmission method and apparatus, terminal and storage medium
WO2021103947A1 (en) Scheduling method and device
WO2023155161A1 (en) Method and apparatus for determining csi processing unit, device, and storage medium
WO2018126343A1 (en) Communication method, terminal device and network device
CN112333834A (en) A carrier resource scheduling method and device
CN116830728A (en) Resource determination method and device, communication equipment, communication system and medium
CN112689308B (en) Multi-user wireless data transmission method, system, device and storage medium
CN106713171A (en) Server and delay-queue-based current-limiting protection system and method
TW201943294A (en) Access control information transmission method, apparatus, and network side device
CN107734598A (en) A kind of system information change instruction method, UE, network side equipment and system
TW201924465A (en) Wireless communication method and device
CN115016729A (en) Storage method, device, terminal and storage medium for storing information
CN100539713C (en) A method for storing data flow in single board
CN108632088B (en) Business processing method, device and server
CN104509133A (en) Method, base station and user terminal of transmitting signal in device-to-device approach service
WO2024131830A1 (en) Filtering method, measurement reporting method and apparatus
CN114885367B (en) Network measurement result reporting method, device, terminal and storage medium
CN115344506B (en) Memory address mapping method, memory access method and device, chip and device
CN113438689B (en) Energy-saving method, device, equipment and storage medium for a base station

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20220906