Data storage method, electronic device, computer storage medium and chip

By storing data information according to the order of tags in the returned data, the problems of low storage efficiency and complex operations in the existing technology are solved, and more efficient data access and operations are achieved.

CN118642644APending Publication Date: 2024-09-13伟光有限公司(CN)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310244763.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-13
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

When existing electronic devices store returned data, they need to store it according to the order of received data information, resulting in low access efficiency and complicated insertion and deletion of data information.

Method used

By storing data information in the storage unit according to the order from small to large or from large to small in the returned data, it ensures that the labels are arranged in the order from small to large or from large to small, thereby improving access efficiency and simplifying insertion and deletion operations. .

Benefits of technology

It improves the access efficiency of data information in the storage unit and simplifies the implementation process of insertion and deletion operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118642644A
    Figure CN118642644A
Patent Text Reader

Abstract

The invention discloses a data storage method, an electronic device, a computer storage medium and a chip, and the method comprises the steps: receiving one or more return data sent by a control unit; each piece of return data comprises a label and data information corresponding to the label; and storing the data information corresponding to each label in a first storage unit according to the sequence of the labels in the one or more return data from small to large or from large to small.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to but are not limited to electronic technology, and in particular to a data storage method, an electronic device, a computer storage medium and a chip. Background Art

[0002] When the electronic device receives one or more return data sent by the control unit, it needs to store the data information corresponding to each tag in the return data. When storing the data information corresponding to each tag in the return data, it is stored according to the order of the received data information. As a result, when accessing the data information corresponding to a certain tag, it is necessary to traverse one by one from the starting position until the data information corresponding to the required tag is found, which leads to low access efficiency of the data information. Summary of the invention

[0003] The embodiments of the present application provide a data storage method, an electronic device, a computer storage medium, and a chip.

[0004] In a first aspect, an embodiment of the present application provides a data storage method, including:

[0005] Receive one or more return data sent by the control unit; each of the return data includes a tag and data information corresponding to the tag;

[0006] According to the order of the tags in the one or more returned data from small to large or from large to small, the data information corresponding to each tag is stored in the first storage unit.

[0007] In a second aspect, an embodiment of the present application provides an electronic device, including:

[0008] A communication unit, configured to receive one or more return data sent by a control unit; each of the return data includes a tag and data information corresponding to the tag;

[0009] The storage unit is used to store the data information corresponding to each tag in the first storage unit according to the ascending order of the tags in the one or more returned data.

[0010] In a third aspect, an embodiment of the present application provides an electronic device, including: a memory and a processor,

[0011] The memory is used to store computer programs.

[0012] The processor is used to call and run the computer program stored in the memory, so that the electronic device executes the method described in the first aspect.

[0013] In a fourth aspect, an embodiment of the present application provides a chip, comprising: a processor, configured to call and run a computer program from a memory to implement the method described in the first aspect.

[0014] In a fifth aspect, an embodiment of the present application provides a computer storage medium, which stores one or more programs, and the one or more programs can be executed by one or more processors to implement the method described in the first aspect.

[0015] In an embodiment of the present application, one or more return data sent by a control unit is received; each of the return data includes a tag and data information corresponding to the tag; according to the order of the tags in the one or more return data from small to large or from large to small, the data information corresponding to each tag is stored in the first storage unit. In this way, the data information can be stored in the order of the corresponding tags from small to large or from large to small, so that the tags corresponding to the stored data information are arranged in the order of small to large or from large to small, thereby improving the access efficiency of the data information corresponding to at least one tag in the first storage unit, and improving the efficiency of inserting and / or deleting the data information corresponding to at least one tag in the first storage unit. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The drawings described herein are used to provide further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute improper limitations on the present application.

[0017] Figure 1 A schematic diagram of a data storage method provided in an embodiment of the present application;

[0018] Figure 2 A schematic diagram of a flow chart of another data storage method provided in an embodiment of the present application;

[0019] Figure 3 A flowchart of another data storage method provided in an embodiment of the present application;

[0020] Figure 4 A flowchart of another data storage method provided in an embodiment of the present application;

[0021] Figure 5 A schematic diagram of a data storage method provided in accordance with another embodiment of the present application;

[0022] Figure 6 A flowchart of a data storage method provided in yet another embodiment of the present application;

[0023] Figure 7A schematic diagram of a tag management method provided in an embodiment of the present application;

[0024] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0025] Fig. 9 A schematic diagram of the structure of another electronic device provided in an embodiment of the present application;

[0026] Fig.10 This is a schematic structural diagram of a chip according to an embodiment of the present application. DETAILED DESCRIPTION

[0027] The technical solution of the present application will be described in detail below through embodiments and in conjunction with the accompanying drawings. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments.

[0028] It should be noted that in the examples of the present application, "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0029] In addition, the technical solutions described in the embodiments of the present application can be combined arbitrarily without conflict. In the description of the present application, "multiple" means two or more, unless otherwise clearly and specifically defined.

[0030] In the communication system, according to the transmission design bandwidth requirements and the system performance of external buses such as Advanced eXtensible Interface (AXI), a specific number of tags (tags) will be allocated to the electronic device's Direct Memory Access (DMA) to initiate a read request to AXI for data transfer. Different tags carry different information, and the tag itself and the information it carries need to be managed. Common management methods are one of the following: linked list, stack, queue.

[0031] In any embodiment of the present application, the communication system may include one of the following: Wireless Fidelity (WiFi) system, wireless communication system, Bluetooth communication system, ZigBee communication system, Internet of Things (IoT) system, Narrow Band Internet of Things (NB-IoT) system, enhanced Machine-Type Communications (eMTC) system, Long Range Radio (LoRa) communication system, Wireless Local Area Networks (WLAN) communication system. Optionally, the wireless communication system may include: 3G communication system, 4G communication system, 5G communication system or 6G communication system, etc.

[0032] AXI has the characteristic of out-of-order transmission, where out-of-order transmission means that in the AXI protocol, when returning write responses (B) and read data (R) with different Tag IDs (also called tags or IDs), they do not have to be returned in the order of the received write addresses (AW) and read addresses (AR), but can be returned out of order.

[0033] For example, in the AXI protocol, an electronic device (which may also be referred to as a master device in some implementations) sends one or more read requests (also referred to as read data requests, each read request includes: a tag and an address, and the order in which the read requests are sent is consistent with the tag order of the read requests, or in other words, the read requests are sent in tag order, and then the electronic device can receive one or more read data (which may also be referred to as return data in some embodiments) sent by the AXI interface corresponding to the one or more read requests, each read data includes a tag, and the order in which the electronic device receives the read data is inconsistent with the tag order of the read data, or in other words, the read data received by the electronic device is not received in tag order. For example, the electronic device sends one or more read requests to the AXI interface (which may also be referred to as a master device in some implementations). The AXI interface sends read request 1, read request 2, and read request 3 in sequence, with read request 1 carrying tag 1 and the first address, read request 2 carrying tag 2 and the second address, and read request 3 carrying tag 3 and the third address. The electronic device receives read data 3 for request 3, read data 1 for request 1, and read data 2 for request 2 sent by the AXI interface in sequence; wherein read data 3 includes data corresponding to tag 3 and the third address, read data 1 includes data corresponding to tag 1 and the first address, and read data 2 includes data corresponding to tag 2 and the second address. It can be seen that the electronic device first sends a read request corresponding to tag 1 to the AXI interface, but the second data received is the data corresponding to tag 1, that is, the read requests are sent sequentially, and the corresponding data are returned out of order.

[0034] The related technology is a tag management method of "out-of-order request, out-of-order release", that is, the electronic device stores data in a storage unit (such as a linked list / stack / queue) in sequence according to the order of the received data. For example, the electronic device receives data corresponding to tag3, data corresponding to tag1, and data corresponding to tag2 in sequence, then the electronic device stores the data corresponding to tag3, data corresponding to tag1, and data corresponding to tag2 in sequence, and when releasing the data, it releases the data corresponding to tag3, data corresponding to tag1, and data corresponding to tag2 in sequence, or releases the data corresponding to tag2, data corresponding to tag1, and data corresponding to tag3 in sequence.

[0035] If you want to access the data corresponding to a tag in a linked list / stack / queue, you need to traverse the linked list / stack / queue from the endpoints one by one until you find the data corresponding to the required tag, so the access efficiency is low. At the same time, when the linked list / stack / queue involves operations such as insertion and / or deletion, you need to find the data corresponding to the relevant tag, so the insertion and / or deletion operations are complicated to implement.

[0036] In any embodiment of the present application, the electronic device may include any device having an information processing function. For example, the electronic device may include direct memory access (DMA). In any embodiment of the present application, the DMA may also be referred to as a DMA controller or a DMA processor.

[0037] In some embodiments, the electronic device may be included in an electronic device. For example, the electronic device may include a baseband chip (modem) or a media access control (MAC) layer entity.

[0038] In some embodiments, the electronic device may be an electronic device. In any embodiment of the present application, the electronic device may include one of the following: a terminal device, an access network device, and a core network device.

[0039] In some embodiments, the terminal device may include one of the following or a combination of at least two: an Internet of Things device, a satellite terminal, a Wireless Local Loop (WLL) station, a Personal Digital Assistant (PDA), a handheld device with a wireless communication function, a computing device or other processing device connected to a wireless modem, a server, a mobile phone, a tablet computer (Pad), a computer with a wireless transceiver function, a handheld computer, a desktop computer, a personal digital assistant, a portable media player, a smart speaker, a navigation device, a smart watch, a smart glasses, a smart necklace and other wearable devices, a pedometer, a digital TV, a Virtual Reality (VR) terminal device, an Augmented Reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, a smart home, etc. The invention relates to wireless terminals in a connected home and vehicles, vehicle-mounted devices, vehicle-mounted modules, wireless modems, handheld devices, customer premises equipment (CPE), smart home appliances, etc. in the connected vehicle system.

[0040] In some embodiments, the access network device may include one of the following or a combination of at least two: an evolved base station (eNB or eNodeB) in a Long Term Evolution (LTE) system, a next generation radio access network (NG RAN) device, a base station (gNB) in an NR system, a small station, a micro station, a wireless controller in a cloud radio access network (CRAN), an access point for wireless fidelity (Wi-Fi), a transmission reception point (TRP), a relay station, an access point, a vehicle-mounted device, a wearable device, a hub, a switch, a bridge, a router, a network device in a future evolved public land mobile network (PLMN), etc.

[0041] In some embodiments, the core network device may include one of the following or a combination of at least two: Access and Mobility Management Function (AMF), Authentication Server Function (AUSF), User Plane Function (UPF), Session Management Function (SMF), Location Management Function (LMF), Policy Control Function (PCF). In other embodiments, the core network device may also be an Evolved Packet Core (EPC) device of an LTE network, for example, a Session Management Function + Core Packet Gateway (SMF + PGW-C) device of a core network.

[0042] Figure 1 A flowchart of a data storage method provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, the method is applied to an electronic device, and the method includes:

[0043] S101, receiving one or more return data sent by a control unit; each of the return data includes a tag and data information corresponding to the tag.

[0044] In some embodiments, the control unit can communicate with the electronic device via the AXI protocol. In some embodiments, the control unit can be any unit having an information processing function. Exemplarily, the control unit can include an AXI interface. In some embodiments, the control unit can be included in an electronic device, for example, the control unit can be included in a baseband chip or a MAC layer entity. In some embodiments, the control unit can be an electronic device. In other embodiments, the control unit can communicate with the electronic device via other protocols, which is not limited by the embodiments of the present application.

[0045] In some embodiments, one or more return data may be returned through at least one link. For example, one or more return data may be returned through one link. For another example, one or more return data may be returned through multiple links. In some embodiments, one return data is transmitted through one link. In other embodiments, one return data may be transmitted through multiple links. For example, one return data may include multiple sub-return data, and the multiple sub-return data are transmitted through multiple links.

[0046] In some embodiments, the label can also be replaced by one of the following: tag, tag identifier (IDentity, ID), ID.

[0047] In some embodiments, the data information may include MAC information or MAC related information or MAC layer related information. In some embodiments, the data information may include MAC service data unit (MAC Service Data Unit, MSDU) data. The embodiments of the present application do not limit the content of the data information. In other embodiments, the data information may include other. For example, the data information may include MAC protocol data unit (MAC Protocol Data Unit, MPDU) data or other protocol layer data or data in an application processor (application, AP), etc.

[0048] In some embodiments, the information lengths of data information corresponding to different tags may be the same or different. For example, the information length of the third data information may be the same as the information length of the first data information, and the information length of the third data information may be different from the information length of the second data information.

[0049] In any embodiment of the present application, the information length may include: byte length, or a length determined according to the byte length, or the number of addresses corresponding to the address range.

[0050] S102: Store data information corresponding to each tag in a first storage unit according to the order of the tags in the one or more returned data from small to large or from large to small.

[0051] The present application does not limit the storage order in which the electronic device stores the data information corresponding to each of the tags. Regardless of the storage order, the tags corresponding to the stored data information are arranged in order from small to large or from large to small. For example, the electronic device can store the data information corresponding to each tag in sequence according to the order in which the returned data is received. In this way, each time the electronic device receives a return data, it stores the data information in the return data. For another example, the electronic device can store the data information corresponding to each of the tags in sequence according to the order of the tags from small to large or from large to small.

[0052] In some embodiments, the electronic device may store the correspondence between each tag and the corresponding data information in the first starting position and / or information length of the first storage unit, thereby facilitating reading the data information corresponding to a certain tag in the order of the tags.

[0053] In some embodiments, the first storage unit may include a static random access memory (SRAM). In other embodiments, the first storage unit may include other storage units, which is not limited in the embodiments of the present application.

[0054] In some embodiments, the data information may be stored in the first storage unit in a continuous or non-continuous manner.

[0055] In an embodiment of the present application, one or more return data sent by a control unit is received; each of the return data includes a tag and data information corresponding to the tag; according to the order of the tags in the one or more return data from small to large or from large to small, the data information corresponding to each tag is stored in the first storage unit. In this way, the data information can be stored in the order of the corresponding tags from small to large or from large to small, so that the tags corresponding to the stored data information are arranged in the order of small to large or from large to small, thereby improving the access efficiency of the data information corresponding to at least one tag in the first storage unit, and improving the efficiency of inserting and / or deleting the data information corresponding to at least one tag in the first storage unit.

[0056] In some embodiments, the tags included in the one or more returned data are out-of-order tags.

[0057] In some embodiments, the tags included in the one or more return data are out-of-order tags, which may include: the receiving order of the one or more return data is inconsistent with the tag order in the one or more return data, or the receiving order of the one or more return data is inconsistent with the order from small to large or from large to small of the tags in the one or more return data, or the tags included in the one or more return data received in chronological order are out of order.

[0058] For example, the electronic device receives the third data information, the first data information, and the second data information in chronological order. The tag corresponding to the third data information is tag 3, the tag corresponding to the first data information is tag 1, and the tag corresponding to the second data information is tag 2.

[0059] Through S102, although the tags corresponding to the data information received by the electronic device are in disorder, when the data information is stored, it is stored in the first storage unit in the order of the tags from small to large or from large to small, so that the data information corresponding to the tags can be stored sequentially according to the order of the tags from small to large or from large to small.

[0060] For example, the electronic device receives the third data information, the first data information, and the second data information in sequence, the label corresponding to the third data information is label 3, the label corresponding to the first data information is label 1, and the label corresponding to the second data information is label 2, the first storage unit includes a first storage space, a second storage space, and a third storage space distributed in sequence, and the electronic device stores the third data information in the third storage space, the first data information in the first storage space, and the second data information in the second storage space. In this way, the data information can be stored sequentially according to the order of the labels from small to large.

[0061] Figure 2 A flow chart of another data storage method provided in an embodiment of the present application, such as Figure 2 As shown, the method is applied to an electronic device, and the method includes:

[0062] S201. Receive one or more return data sent by a control unit; each of the return data includes a tag and data information corresponding to the tag.

[0063] S202. Determine a first starting position of the data information corresponding to each of the tags in the first storage unit according to the order of the tags in the one or more returned data from small to large or from large to small and the information length of the data information corresponding to each of the tags.

[0064] In some embodiments, the electronic device may perform the following steps: obtaining the information length of the data information corresponding to each of the tags. In some embodiments, the electronic device may obtain the information length of the data information corresponding to each of the tags from a preset storage unit, or receive the information length of the data information corresponding to each of the tags from other processing units. In other embodiments, the electronic device may parse one or more data information descriptors to obtain the information length of the data information corresponding to each of the tags.

[0065] In some embodiments, a data information descriptor may be used to describe the data information corresponding to each tag in at least one tag. Exemplarily, a data information descriptor may include at least one attribute information of the data information. For example, the attribute information of the data information may include at least one of the following: the information length of the data information, the second starting position of the data information in the second storage unit, and the link used for data information transmission.

[0066] In some embodiments, the electronic device can determine the first number of addresses corresponding to the data information corresponding to each tag, or the first number of storage units corresponding to the addresses, based on the information length of the data information corresponding to each tag and the data size stored in the storage unit corresponding to each address in the first storage unit, and determine the first starting position of the data information corresponding to each tag in the first storage unit based on the order of the tags in the one or more returned data from small to large or from large to small, and the first number corresponding to the data information corresponding to each tag.

[0067] For example, the first quantity corresponding to the first data information corresponding to label 1 is m1, the first quantity corresponding to the second data information corresponding to label 2 is m2, the first quantity corresponding to the third data information corresponding to label 3 is m3, and the starting address of the stored data information is n, then the first starting position of the first data information corresponding to label 1 is n, the first starting position of the second data information corresponding to label 2 is n+m1, and the first starting position of the third data information corresponding to label 3 is n+m1+m2.

[0068] S203: Store data information corresponding to each tag in the first storage unit according to the first starting position, or according to the first starting position and the information length.

[0069] In some embodiments, S203 may include: storing data information corresponding to each of the tags in the first storage unit according to the first starting position.

[0070] In some embodiments, S203 may include: storing data information corresponding to each of the tags in the first storage unit according to the first starting position and the information length.

[0071] In some embodiments, S203 may include: determining a first quantity corresponding to the data information corresponding to each of the tags based on the information length, and storing the data information corresponding to each of the tags in the first storage unit based on the first starting position and the first quantity corresponding to the data information corresponding to each of the tags.

[0072] In an embodiment of the present application, the data information corresponding to each tag is stored in the first storage unit according to the first starting position, or according to the first starting position and the information length, so that the data information corresponding to each tag can be easily stored in the first storage unit.

[0073] In some embodiments, the receiving one or more return data sent by the control unit includes: receiving the one or more return data sent by the control unit according to a link used for transmitting data information corresponding to each tag.

[0074] In some embodiments, data information corresponding to one tag may be transmitted using one link, or may be transmitted using multiple links. In some embodiments, data information corresponding to multiple tags may be transmitted using one link, or may be transmitted using multiple links.

[0075] For example, the first data information, the second data information, and the third data information are all transmitted using one link. For another example, the first data information, the second data information, and the third data information are respectively transmitted using three links, that is, the first link transmits the first data information, the second link transmits the second data information, and the third link transmits the third data information. For another example, the first data information and the second data information are transmitted using one link together, and the third data information is transmitted using another link.

[0076] In an embodiment of the present application, the one or more return data sent by the control unit are received according to the link used for the transmission of the data information corresponding to each tag, so that the electronic device can receive the data information corresponding to each tag according to the link used for the transmission of the data information corresponding to each tag, thereby improving the efficiency of receiving information; in addition, when the data information is transmitted through multiple links, the transmission efficiency of the information can be improved.

[0077] Figure 3 A flowchart of another data storage method provided in an embodiment of the present application is shown as follows: Figure 3 As shown, the method is applied to an electronic device, and the method includes:

[0078] S301. Send a plurality of read requests to a control unit; each of the read requests includes the tag, and the tags included in the one or more read requests are sequential tags.

[0079] In some embodiments, the tags included in the one or more read requests are sequential tags, which may include: the sending order of one or more read requests is consistent with the tag order in the one or more read requests, or the sending order of one or more read requests is consistent with the order of tags in the one or more read requests from small to large or from large to small, or the tags included in one or more read requests sent in chronological order are arranged sequentially.

[0080] For example, the electronic device sends a first read request, a second read request, and a third read request in chronological order. The first read request includes tag 1 , the second read request includes tag 2 , and the third read request includes tag 3 .

[0081] S302, receiving one or more return data sent by the control unit; each of the return data includes a tag and data information corresponding to the tag.

[0082] In some embodiments, the tags included in the one or more returned data are out-of-order tags. In other embodiments of the present application, the tags included in the one or more returned data are sequential tags.

[0083] S303: Store data information corresponding to each tag in a first storage unit according to the order of the tags in the one or more returned data from small to large or from large to small.

[0084] In an embodiment of the present application, one or more read requests are sent to a control unit; each of the read requests includes the tag, and the tags included in the one or more read requests are sequential tags, so that the control unit can send data information corresponding to each tag to the electronic device, thereby improving the effectiveness of information transmission.

[0085] In some embodiments, each of the read requests further includes: a second starting position of the data information corresponding to each of the tags in the second storage unit, and an information length of the data information corresponding to each of the tags.

[0086] In some embodiments, the electronic device may read the following content from a preset storage unit, or receive the following content from other processing units: the second starting position of the data information corresponding to each of the tags in the second storage unit, and the information length of the data information corresponding to each of the tags. In other embodiments, the electronic device may parse one or more data information descriptors to obtain the following content: the second starting position of the data information corresponding to each of the tags in the second storage unit, and the information length of the data information corresponding to each of the tags.

[0087] In some embodiments, the electronic device can read the following content from a preset storage unit, or receive the following content from other processing units: the third starting position of the data information in the second storage unit and the information length of the data information corresponding to each of the tags; according to the third starting position and the information length of the data information corresponding to each of the tags, determine the second starting position of the data information corresponding to each of the tags in the second storage unit. In other embodiments, the electronic device can parse one or more data information descriptors to obtain the following content: the third starting position of the data information in the second storage unit and the information length of the data information corresponding to each of the tags; according to the third starting position and the information length of the data information corresponding to each of the tags, determine the second starting position of the data information corresponding to each of the tags in the second storage unit.

[0088] In some embodiments, the method further includes: determining, according to the data information descriptor, a second starting position of the data information corresponding to each of the tags in the second storage unit, and an information length of the data information corresponding to each of the tags. For example, in some embodiments, the method further includes: parsing one or more data information descriptors to obtain a second starting position of the data information corresponding to each of the tags in the second storage unit, and an information length of the data information corresponding to each of the tags.

[0089] In some embodiments, the method further comprises: determining, according to the data information descriptor, a link used for data information transmission corresponding to each tag. For example, in some embodiments, the method further comprises: parsing one or more data information descriptors to obtain a link used for data information transmission corresponding to each tag.

[0090] In some embodiments, when the data information includes MSDU, the electronic device can parse at least one MSDU descriptor to obtain the second starting position of the MSDU corresponding to each of the tags in the second storage unit, and the information length of the MSDU corresponding to each of the tags, and / or obtain the link used for transmission of the MSDU corresponding to each of the tags.

[0091] In some embodiments, parsing the data information descriptor to obtain the second starting position of the data information corresponding to each of the tags in the second storage unit and the information length of the data information corresponding to each of the tags may include: parsing the data information descriptor to obtain the third starting position of the data information in the second storage unit and the information length of the data information corresponding to each of the tags, and determining the second starting position of the data information corresponding to each of the tags in the second storage unit according to the third starting position and the information length of the data information corresponding to each of the tags.

[0092] In some embodiments, when the data information includes MSDU, the electronic device can parse at least one MSDU descriptor to obtain the third starting position of the MSDU in the second storage unit and the information length of the MSDU corresponding to each of the tags, and / or obtain the link used for transmission of the MSDU corresponding to each of the tags; further, based on the third starting position and the information length of the MSDU corresponding to each of the tags, determine the second starting position of the MSDU corresponding to each of the tags in the second storage unit.

[0093] In some embodiments, at least one MSDU descriptor may be read from a preset storage unit, or at least one MSDU descriptor may be received from other processing units, or at least one MSDU descriptor may be obtained by parsing an MSDU chain descriptor, or at least one MSDU descriptor may be obtained by parsing at least one MPDU descriptor, or at least one MSDU descriptor may be obtained by parsing at least one MPDU chain descriptor. In some embodiments, the MSDU chain descriptor or the MPDU descriptor or the MPDU chain descriptor may be stored in a preset storage unit, or may be sent by other processing units.

[0094] In some embodiments, the data information includes a media access control service data unit (MSDU), and the method further includes:

[0095] Determining at least one MPDU descriptor according to a media access control protocol data unit (MPDU) chain descriptor; each of the MPDU descriptors includes an MSDU chain descriptor;

[0096] Determining at least one MSDU descriptor according to the MSDU chain descriptor;

[0097] The step of determining, according to the data information descriptor, a second starting position of the data information corresponding to each of the tags in the second storage unit and an information length of the data information corresponding to each of the tags, and / or determining a link used for transmission of the data information corresponding to each of the tags, comprises:

[0098] According to the at least one MSDU descriptor, determine the second starting position of the MSDU corresponding to each of the tags, and the information length of the data information corresponding to each of the tags, and / or determine the link used for transmission of the MSDU corresponding to each of the tags.

[0099] In an embodiment of the present application, at least one MSDU descriptor is determined in the following manner: determining at least one MPDU descriptor according to a media access control protocol data unit MPDU chain descriptor; each of the MPDU descriptors includes an MSDU chain descriptor; and determining at least one MSDU descriptor according to the MSDU chain descriptor.

[0100] In some embodiments, determining at least one MPDU descriptor according to the MPDU chain descriptor may include: parsing the MPDU chain descriptor to obtain at least one MPDU descriptor. In some embodiments, one or more MPDU descriptors may be determined according to an MPDU chain descriptor.

[0101] In some embodiments, determining at least one MSDU descriptor according to the MSDU chain descriptor may include: parsing the MSDU chain descriptor to obtain at least one MSDU descriptor. In some embodiments, one or more MSDU descriptors may be determined according to an MSDU chain descriptor. One or more MSDU descriptors are included in at least one MSDU descriptor.

[0102] In some embodiments, the MPDU chain descriptor may be read from a preset storage unit, or may be sent to the electronic device by other processing units.

[0103] In any embodiment of the present application, other processing units may include processing units in the MAC layer.

[0104] Figure 4 A flowchart of another data storage method provided in an embodiment of the present application is shown as follows: Figure 4 As shown, the method is applied to an electronic device, and the method includes:

[0105] S401, receiving at least one sub-data information corresponding to each tag sent by the control unit.

[0106] S402: When the total information length of the at least one sub-data information is equal to the information length of the data information corresponding to each tag, the data information corresponding to each tag is received.

[0107] In some embodiments, the data information corresponding to each tag may be transmitted by being divided into at least one sub-data information, and each sub-data information corresponds to a tag. For example, the data information transmission corresponding to each tag may include at least one sub-data information transmission corresponding to each tag. One sub-data information corresponds to one tag.

[0108] In some embodiments, different sub-data information may be transmitted using the same link, or different sub-data information may be transmitted using different links.

[0109] S403: Store data information corresponding to each tag in a first storage unit according to the order of the tags in the one or more returned data from small to large or from large to small.

[0110] In some embodiments, the electronic device can store the data information corresponding to each tag in the first storage unit when the data information corresponding to each tag is received. In this way, the electronic device can store the data information corresponding to each tag after the data information corresponding to each tag is received, thereby improving storage efficiency.

[0111] Figure 5 A flowchart of a data storage method provided in another embodiment of the present application is shown as follows: Figure 5 As shown, the method is applied to an electronic device, and the method includes:

[0112] S501: Associate one or more of the tags with one or more counters respectively, where the counts of the one or more counters are 0.

[0113] In some embodiments, when the electronic device sends one or more read requests to the control unit, the electronic device may associate one or more of the tags with one or more counters. In other embodiments, before the electronic device sends one or more read requests to the control unit, when one or more tags are acquired, the electronic device may associate the one or more tags with one or more counters. In this way, each tag is correspondingly associated with a counter, and the count of each counter is 0. Each counter is used to record the information length of the received data information corresponding to each tag.

[0114] S502: Receive at least one sub-data information corresponding to each tag sent by the control unit.

[0115] S503: When each sub-data information corresponding to each tag is received, add the count of the counter corresponding to each tag to the information length of each sub-data information.

[0116] S504: When the count of the counter corresponding to each tag is equal to the information length of the data information corresponding to each tag, the reception of the data information corresponding to each tag is completed.

[0117] In some embodiments, for a specific tag, the specific tag is included in one or more tags, and the electronic device receives each sub-data information corresponding to the specific tag, adds the count of the counter to the information length of each sub-data information, until the count of the counter corresponding to the specific tag is the same as the information length of the data information corresponding to the specific tag, and the reception of the data information corresponding to the specific tag is completed. In any embodiment of the present application, the specific tag can be any one of the one or more tags.

[0118] For example, for a specific tag, the information length of the data information corresponding to the specific tag is 50. The electronic device first receives the first sub-data information corresponding to the specific tag, the information length of the first sub-data information is 20, and the electronic device increases the count of the counter corresponding to the specific tag by 20, so the current count of the counter corresponding to the specific tag is 20; then the electronic device receives the second sub-data information corresponding to the specific tag, the information length of the second sub-data information is 10, and the electronic device increases the count of the counter corresponding to the specific tag by 10, so the current count of the counter corresponding to the specific tag is 30; then the electronic device receives the third sub-data information corresponding to the specific tag, the information length of the third sub-data information is 20, and the electronic device increases the count of the counter corresponding to the specific tag by 20, so the current count of the counter corresponding to the specific tag is 50. In this way, the count of the counter corresponding to the specific tag is the same as the information length of the data information corresponding to the specific tag, and the reception of the data information corresponding to the specific tag is completed.

[0119] S505: Store data information corresponding to each tag in a first storage unit according to the order of the tags in the one or more returned data from small to large or from large to small.

[0120] In an embodiment of the present application, when each sub-data information corresponding to each of the tags is received, the count of the counter corresponding to each of the tags is added to the information length of each of the sub-data information; when the count of the counter corresponding to each of the tags is equal to the information length of the data information corresponding to each of the tags, the reception of the data information corresponding to each of the tags is completed; thereby, each counter can be used to record the information length of the received data information corresponding to each of the tags, thereby improving the reliability of information reception and the timeliness of storing data information.

[0121] Figure 6A flowchart of a data storage method provided in another embodiment of the present application is as follows: Figure 6 As shown, the method is applied to an electronic device, and the method includes:

[0122] S601: Acquire one or more released and unoccupied continuous labels in a label pool.

[0123] In some embodiments, before sending one or more read requests to the control unit, the electronic device may obtain one or more continuous tags that are released and unoccupied in the tag pool, that is, one or more continuous tags that are not only released but also unoccupied.

[0124] In some embodiments, if a tag is released, the tag must be unoccupied. In some embodiments, if a tag is not released, the tag may be unoccupied or occupied.

[0125] In some embodiments, when a tag is released, the first parameter is a first value. In some embodiments, when a tag is not released, the first parameter is a second value.

[0126] In some embodiments, when one tag is not occupied, the second parameter is a third value. In some embodiments, when one tag is occupied, the second parameter is a fourth value.

[0127] In some embodiments, the first value is different from the second value; the third value is different from the fourth value. In some embodiments, any one of the first value, the second value, the third value, and the fourth value is 0 or 1. For example, the first value is 1 and the second value is 0. For example, the third value is 1 and the fourth value is 0.

[0128] In some embodiments, there are N tags in the tag pool, and the electronic device obtains one or more continuous tags that are released and unoccupied from the N tags. For example, each of the N tags has a corresponding first parameter and a second parameter, and the electronic device selects one or more continuous tags from the N tags whose first parameter is a first value and whose second parameter is a third value.

[0129] S602: Set the one or more labels in the label pool to be unreleased and occupied.

[0130] In some embodiments, when the electronic device acquires one or more tags, one or more tags are occupied by the electronic device, so that one or more tags cannot be used again. The electronic device can set the one or more tags in the tag pool to be unreleased and occupied.

[0131] In some embodiments, setting the one or more tags in the tag pool to be unreleased and occupied may include: setting a first parameter of the one or more tags in the tag pool to a second value, and a second parameter to a fourth value.

[0132] In some embodiments, when the electronic device acquires one or more tags, the electronic device may send one or more read requests to the control unit.

[0133] The embodiments of the present application do not limit the order of sending one or more read requests to the control unit and setting the one or more tags to be unreleased and occupied. For example, after sending one or more read requests to the control unit, the one or more tags may be set to be unreleased and occupied. For another example, after setting the one or more tags to be unreleased and occupied, one or more read requests may be sent to the control unit. For another example, sending multiple one or read requests to the control unit and setting the one or more tags to be unreleased and occupied may be performed simultaneously.

[0134] S603: Receive one or more return data sent by the control unit; each of the return data includes a tag and data information corresponding to the tag.

[0135] S604: Store data information corresponding to each tag in a first storage unit according to the order of the tags in the one or more returned data from small to large or from large to small.

[0136] S605: When the data information corresponding to any tag is received completely, set any tag in the tag pool to be unreleased and unoccupied.

[0137] In some embodiments, unreleased tags can be released, released tags can be reused, and unreleased tags cannot be reused.

[0138] The embodiment of the present application does not limit the order of S604 and S605. For example, S605 may be executed after S604. For another example, S604 may be executed after S605. For another example, S604 and S605 may be executed simultaneously.

[0139] In an embodiment of the present application, by maintaining the tags in the tag pool, the electronic device currently uses released and unoccupied tags, so that an electronic device receives data information corresponding to one or more tags obtained by the electronic device from the tag pool, thereby improving the reliability of information transmission.

[0140] In some embodiments, among the one or more tags in the tag pool, if any of the tags is not released and is occupied, the any of the tags and the tags after the any of the tags cannot be released.

[0141] For example, the one or more labels in the label pool include label 1, label 2, label 3 and label 4. When label 3 is not released and is occupied, label 3 and label 4 cannot be released.

[0142] In some embodiments, among the one or more tags in the tag pool, if any of the tags is not released and occupied, and all tags before the any tag are not released and not occupied, all tags before the any tag may be released sequentially.

[0143] For example, the one or more labels of the label pool include label 1, label 2, label 3 and label 4. When label 3 is not released and occupied, but label 1 and label 2 are not released and not occupied, label 1 and label 2 may be released sequentially. For example, label 1 is released first, and then label 2 is released.

[0144] In an embodiment of the present application, when any of the tags is not released and is occupied, the any of the tags and the tags after the any of the tags cannot be released; and / or, when any of the tags is not released and is occupied, and all the tags before the any of the tags are not released and are not occupied, all the tags before the any of the tags can be released sequentially, so that the one or more tags in the tag pool are released in sequence, and then when the electronic device obtains one or more tags in the tag pool, it can easily obtain one or more continuous tags.

[0145] The following is an explanation using data information including MPDU:

[0146] The electronic device (e.g., DMA) sequentially parses the MPDU chain descriptor and the MSDU chain descriptor to obtain attribute information of each MSDU, wherein the attribute information of the MSDU may include at least one of the following: the information length of each MSDU, the second starting position of each MSDU in the second storage unit, and the link used for transmission of each MSDU.

[0147] The electronic device can transfer the corresponding MSDU data in each MPDU from the double data rate (DDR) through the AXI bus according to the attribute information of each MSDU, so that the downstream module can perform further processing.

[0148] In any embodiment of the present application, one MPDU corresponds to one or more MSDUs. In any embodiment of the present application, the second storage unit may include a DDR. In any embodiment of the present application, the downstream module may include a processing module of a MAC layer.

[0149] During the implementation process, the AXI protocol supports continuous sending of read requests. The data returned after a period of time is out of order, so it is necessary to record a tag for each request to match it with the returned data information.

[0150] After one or more MSDUs in the MPDU are returned, they need to be stored sequentially in the SRAM (for example, included in the first storage unit mentioned above). The out-of-order nature of AXI requires that the starting position of each tag corresponding to the data information stored in the SRAM after it is returned be calculated in advance.

[0151] When the electronic device needs to communicate with a control unit (for example, an AXI interface), the electronic device will request a tag. If a tag is available when requested sequentially, the electronic device will obtain one or more tags. The current tag obtained is occupied, and the MSDU length, the link to which it belongs, and other information are stored. At the same time, the starting address of the MSDU data corresponding to each tag is calculated based on the MSDU length when it is returned from the AXI bus and written to the SRAM.

[0152] For each tag, a counter of the number of bytes of completed read operations (which can also be the information length in the above embodiment) is recorded. When the counter gradually accumulates to be equal to the recorded MSDU length, it indicates that the tag is no longer occupied. When the earliest occupied tag is not occupied, the tag can be released, followed by the second earliest occupied tag waiting to be released, and so on.

[0153] Figure 7 A schematic diagram of a tag management method provided in an embodiment of the present application is shown as follows: Figure 7 As shown, the tag pool (TAG_POOL) controller can be connected to the electronic device for communication, and the tag pool controller can be used to manage the tags in the tag management (Tag_Manage). In some embodiments, the tags in the tag management can be the tags in the above tag pool.

[0154] The electronic device may send a tag request (tag_req) to the tag pool controller, and the tag pool controller may send a tag authorization (tag_grant) to the electronic device. In some embodiments, the tag request may include the number of tags. In some embodiments, the tag authorization may include one or more consecutive tags.

[0155] The tag pool controller can update the release and occupancy status of tags in tag management. For example, the electronic device requests 2 tags, and the tag pool controller allocates the 8th to 9th tags in tag management to the electronic device. The tag pool controller can update the busyness (busy) = 0 corresponding to the 8th to 9th tags to busy = 1. The busy = 1 corresponding to the 8th to 9th tags indicates that the 8th to 9th tags are occupied, and the first pointer points to the tag after the 9th tag. For example, the first pointer can point to the 10th tag, or the first pointer can point to the 10th tag. Figure 7 The third to last tag in the tag management indicates that the third to last tag can be allocated next time, or the third to last tag and subsequent tags have been released. In some embodiments, the third to sixth tags in the tag management are not released and are occupied (can be occupied by electronic devices or other devices), and the second pointer points to the third tag, indicating that the third tag and subsequent tags have not been released.

[0156] In some embodiments, when busy=0 corresponding to the 8th to 9th tags is updated to busy=1, the relevant positions corresponding to the 8th to 9th tags (such as Figure 7 In the gray part corresponding to the 8th to 9th tag in Tag_Manage, the tag related information (tag_related_info) is written. In some embodiments, the tag related information may include at least one of the following: the time occupied by the tag, the device occupied by the tag, etc.

[0157] exist Figure 7 In the example, since busy=0 corresponds to the 7th tag, it means that the 7th tag is not occupied. However, since the 3rd to 6th tags before the 7th tag are occupied, the 7th tag cannot be released.

[0158] In some embodiments, when the electronic device receives data information corresponding to the third to sixth tags, the tag pool controller can update busy=1 corresponding to the third to sixth tags to busy=0 in sequence, and release the third to sixth tags in sequence. Each time a tag is released, the tag-related information corresponding to the tag will also be cleared.

[0159] The 7th tag can be released only when the 3rd to 6th tags are released in sequence. After the 3rd to 7th tags are released, the second pointer points to the 8th tag.

[0160] In some embodiments, the tag pool controller can receive related signals (e.g., AXI related signals), which may include the count value of a counter associated with each tag, or may include information that the count value of a counter associated with each tag is the same as the information length of data information corresponding to each tag, or may include a signal that triggers a tag update or clear.

[0161] The method of the embodiment of the present application can greatly simplify the difficulty of tag management. For example, in the embodiment of the present application, the tags are managed by moving the first pointer and the second pointer downward, and after moving downward to the last tag, they are moved to the first tag. In the related art, tags are generally managed through linked lists. For example, a linked list records which tags are applied for. If the linked list includes four nodes corresponding to tag1, tag2, tag3 and tag4 in sequence, and tag2 is received by the electronic device first, tag2 will not be occupied, then the node corresponding to tag2 needs to be deleted, and then the nodes corresponding to tag1 and tag3 need to be connected. This method is complex to implement in circuit.

[0162] Through the method of the embodiment of the present application, to access the data information corresponding to the tag, you can click the subscript index to access it, which is intuitive and fast.

[0163] The present application scheme sequentially acquires tags, and a continuous area is opened up in the memory. As long as an original address is marked, other addresses can be known according to the offset. Each time a tag is acquired, the information carried by the tag can be stored immediately.

[0164] The present application solution releases tags sequentially. Tags whose data are successfully returned from the AXI bus can be marked as "unoccupied" in a timely manner. The earliest occupied tag is released first after returning to the "unoccupied" state.

[0165] The design concept of the present application solution can not only be used in Wi-Fi, but also in other application scenarios that have similar requirements of using multiple tags to access the AXI bus for read operations, and the present application solution can be used as a reference for design.

[0166] Based on the foregoing embodiments, an embodiment of the present application provides an electronic device, which includes various units included and various modules included in each unit, and can be implemented by a processor in the electronic device; of course, it can also be implemented by a specific logic circuit.

[0167] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown in FIG. Figure 8 As shown, the electronic device 800 includes:

[0168] The communication unit 801 is used to receive one or more return data sent by the control unit; each of the return data includes a tag and data information corresponding to the tag;

[0169] The storage unit 802 is used to store data information corresponding to each tag in the first storage unit according to the ascending order of the tags in the one or more returned data.

[0170] In some embodiments, the storage unit 802 is also used to: determine the first starting position of the data information corresponding to each tag in the first storage unit according to the order of the tags in the one or more returned data from small to large or from large to small, and the information length of the data information corresponding to each tag; store the data information corresponding to each tag in the first storage unit according to the first starting position, or according to the first starting position and the information length.

[0171] In some embodiments, the communication unit 801 is further used to: receive the one or more return data sent by the control unit according to the link used for transmitting the data information corresponding to each tag.

[0172] In some embodiments, the tag included in the one or more returned data is a disordered tag; the communication unit 801 is also used to: send one or more read requests to the control unit; each of the read requests includes the tag, and the tag included in the one or more read requests is a sequential tag.

[0173] In some embodiments, each of the read requests further includes: a second starting position of the data information corresponding to each of the tags in the second storage unit, and an information length of the data information corresponding to each of the tags.

[0174] In some embodiments, the electronic device 800 also includes: a determination unit, used to: determine, based on the data information descriptor, a second starting position of the data information corresponding to each of the tags in the second storage unit, and an information length of the data information corresponding to each of the tags, and / or determine a link used for transmission of the data information corresponding to each of the tags.

[0175] In some embodiments, the determination unit is further used to: determine at least one media access control protocol data unit descriptor based on the media access control protocol data unit chain descriptor; each of the media access control protocol data unit descriptors includes a media access control service data unit chain descriptor; determine at least one media access control service data unit descriptor based on the media access control service data unit chain descriptor; determine the second starting position of the media access control service data unit corresponding to each of the tags and the information length of the data information corresponding to each of the tags based on the at least one media access control service data unit descriptor, and / or determine the link used for transmission of the media access control service data unit corresponding to each of the tags.

[0176] In some embodiments, the communication unit 801 is also used to: receive at least one sub-data information corresponding to each of the tags sent by the control unit; when the total information length of the at least one sub-data information is equal to the information length of the data information corresponding to each of the tags, the reception of the data information corresponding to each of the tags is completed.

[0177] In some embodiments, the communication unit 801 is also used to: associate one or more of the multiple tags with one or more counters, respectively, and the counts of the one or more counters are 0; when each sub-data information corresponding to each of the tags is received, the count of the counter corresponding to each of the tags is added to the information length of each sub-data information; when the count of the counter corresponding to each of the tags is equal to the information length of the data information corresponding to each of the tags, the reception of the data information corresponding to each of the tags is completed.

[0178] In some embodiments, the communication unit 801 is also used to: obtain one or more continuous tags that are released and unoccupied in the tag pool; set the one or more tags in the tag pool to be unreleased and occupied; and set any tag in the tag pool to be unreleased and unoccupied when the data information corresponding to any tag is received.

[0179] In some embodiments, among the one or more tags in the tag pool, if any of the tags is not released and occupied, the any of the tags and the tags after the any of the tags cannot be released; and / or,

[0180] Among the one or more labels in the label pool, if any of the labels is not released and occupied, and all labels before the any label are not released and not occupied, all labels before the any label may be released sequentially.

[0181] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.

[0182] It should be noted that in the embodiment of the present application, if the above-mentioned mode control method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer storage medium. Based on this understanding, the technical solution of the embodiment of the present application can be essentially or partly reflected in the form of a software product, which is stored in a storage medium and includes several instructions for an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.

[0183] Fig. 9 A schematic diagram of the structure of another electronic device provided in an embodiment of the present application, Fig. 9 The electronic device 900 shown may include a processor 910 and a memory 920, wherein the memory 920 is used to store computer programs, and the processor 910 is used to call and run the computer program stored in the memory 920, so that the electronic device 900 executes the method in any of the above embodiments.

[0184] Optionally, the memory 920 may be a separate device independent of the processor 910 , or may be integrated into the processor 910 .

[0185] In some embodiments, Fig. 9 As shown, the electronic device 900 may further include a transceiver 930, and the processor 910 may control the transceiver 930 to communicate with other devices, specifically, may send information or data to other devices, or receive information or data sent by other devices.

[0186] The transceiver 930 may include a transmitter and a receiver. The transceiver 930 may further include an antenna, and the number of antennas may be one or more.

[0187] Fig.10 is a schematic structural diagram of a chip according to an embodiment of the present application, Fig.10 The chip 1000 shown includes a processor 1010, and the processor 1010 is used to call and run a computer program from a memory to implement the method in any embodiment of the present application.

[0188] In some embodiments, Fig.10 As shown, the chip 1000 may further include a memory 1020. The processor 1010 may call and run a computer program from the memory 1020 to implement the method in the embodiment of the present application.

[0189] The memory 1020 may be a separate device independent of the processor 1010 , or may be integrated into the processor 1010 .

[0190] In some embodiments, the chip 1000 may further include an input interface 1030. The processor 1010 may control the input interface 1030 to communicate with other devices or chips, and specifically, may obtain information or data sent by other devices or chips.

[0191] In some embodiments, the chip 1000 may further include an output interface 1040. The processor 1010 may control the output interface 1040 to communicate with other devices or chips, and specifically, may output information or data to other devices or chips.

[0192] In some embodiments, the chip can be applied to the electronic device in the embodiments of the present application, and the chip can implement the corresponding processes implemented by the electronic device in each method of the embodiments of the present application. For the sake of brevity, they will not be repeated here.

[0193] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0194] An embodiment of the present application also provides a computer storage medium, which stores one or more programs. The one or more programs can be executed by one or more processors to implement the congestion control method in any embodiment of the present application.

[0195] In some embodiments, the computer-readable storage medium can be applied to the electronic device in the embodiments of the present application, and the computer program enables the computer to execute the corresponding processes implemented by the electronic device in the various methods of the embodiments of the present application. For the sake of brevity, they will not be repeated here.

[0196] It should be noted here that the description of the above electronic device, chip and computer storage medium embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the electronic device, chip and computer storage medium embodiments of this application, please refer to the description of the method embodiments of this application for understanding.

[0197] The electronic device, control unit or chip of the embodiment of the present application may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method embodiment can be completed by the hardware integrated logic circuit or software instructions in the processor. The above electronic device, control unit or chip may include any one or more of the following integrations: general-purpose processor, application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), digital signal processor (Digital Signal Processor, DSP), digital signal processing device (Digital Signal Processing Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field Programmable Gate Array, FPGA), central processing unit (Central Processing Unit, CPU), graphics processing unit (Graphics Processing Unit, GPU), embedded neural network processor (neural-network processing units, NPU), controller, microcontroller, microprocessor, programmable logic device, discrete gate or transistor logic device, discrete hardware component. The disclosed methods, steps and logic block diagrams in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as being executed by a hardware decoding processor, or can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium mature in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0198] It can be understood that the first storage unit, the second storage unit, the preset storage unit, the memory or the computer storage medium in the embodiment of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM) or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus random access memory (DRRAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0199] It should be understood that the above-mentioned first storage unit, second storage unit, preset storage unit, memory or computer storage medium are exemplary but not restrictive. For example, the first storage unit, second storage unit, preset storage unit, memory or computer storage medium in the embodiment of the present application may also be static random access memory (static RAM, SRAM), dynamic random access memory (dynamic RAM, DRAM), synchronous dynamic random access memory (synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (double data rate SDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (synch link DRAM, SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DR RAM), etc. That is to say, the memory in the embodiment of the present application is intended to include but not limited to these and any other suitable types of memory.

[0200] It should be understood that the "one embodiment" or "an embodiment" or "an embodiment of the present application" or "the aforementioned embodiment" or "some implementations" or "some embodiments" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" or "an embodiment of the present application" or "the aforementioned embodiment" or "some implementations" or "some embodiments" appearing throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments.

[0201] Unless otherwise specified, the electronic device performs any step in the embodiments of the present application, and the processor / processing unit of the electronic device may perform the step. Unless otherwise specified, the embodiments of the present application do not limit the order in which the electronic device performs the following steps. In addition, the methods used to process data in different embodiments may be the same method or different methods. It should also be noted that any step in the embodiments of the present application can be independently executed by the electronic device, that is, when the electronic device executes any step in the above embodiments, it can be independent of the execution of other steps.

[0202] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0203] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.

[0204] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0205] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0206] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0207] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0208] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0209] Those skilled in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer storage medium. When the program is executed, it executes the steps of the above method embodiments; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, and other media that can store program codes.

[0210] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer storage medium. Based on such an understanding, the technical solution of the embodiment of the present application can be essentially or partly embodied in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0211] In the embodiments of the present application, the descriptions of the same steps and the same contents in different embodiments can refer to each other. In the embodiments of the present application, the term "and" does not affect the order of the steps. For example, the electronic device executes A and executes B, which means that the electronic device first executes A and then executes B, or the electronic device first executes B and then executes A, or the electronic device executes A and executes B at the same time.

[0212] It is worth noting that the drawings in the embodiments of the present application are only for illustrating the schematic positions of various components on the electronic device and do not represent the actual positions in the electronic device. The actual positions of various components or areas may be changed or offset accordingly according to actual conditions (for example, the structure of the electronic device), and the proportions of different parts of the electronic device in the drawings do not represent the actual proportions.

[0213] As used in the embodiments of the present application and the appended claims, the singular forms "a," "an," "said," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.

[0214] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0215] It should be noted that in each embodiment involved in the present application, all steps may be executed or part of the steps may be executed as long as a complete technical solution can be formed.

[0216] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A data storage method, characterized in that: include: Receive one or more return data sent by the control unit; each of the return data includes a tag and data information corresponding to the tag; According to the order of the tags in the one or more returned data from small to large or from large to small, the data information corresponding to each tag is stored in the first storage unit.

2. The method according to claim 1, characterized in that: The storing, in the first storage unit, data information corresponding to each tag according to the order of the tags in the one or more returned data from small to large or from large to small, comprises: Determine a first starting position of the data information corresponding to each of the tags in the first storage unit according to the order of the tags in the one or more returned data from small to large or from large to small and the information length of the data information corresponding to each of the tags; According to the first starting position, or according to the first starting position and the information length, the data information corresponding to each tag is stored in the first storage unit.

3. The method according to claim 1, wherein the receiving one or more return data sent by the control unit comprises: The one or more return data sent by the control unit are received according to the link used for transmitting the data information corresponding to each tag.

4. The method according to claim 1, characterized in that: The tag included in the one or more returned data is a disordered tag; the method further includes: One or more read requests are sent to a control unit; each of the read requests includes the tag, and the tags included in the one or more read requests are sequential tags.

5. The method according to claim 4, characterized in that Each of the read requests further includes: a second starting position of the data information corresponding to each of the tags in the second storage unit, and an information length of the data information corresponding to each of the tags.

6. The method according to claim 3 or 5, characterized in that: The method further comprises: According to the data information descriptor, determine the second starting position of the data information corresponding to each of the tags in the second storage unit, and the information length of the data information corresponding to each of the tags, and / or determine the link used for transmission of the data information corresponding to each of the tags.

7. The method according to claim 6, characterized in that The data information includes a media access control service data unit, and the method further includes: Determine at least one media access control protocol data unit descriptor according to the media access control protocol data unit chain descriptor; each of the media access control protocol data unit descriptors includes a media access control service data unit chain descriptor; Determining at least one media access control service data unit descriptor according to the media access control service data unit chain descriptor; The step of determining, according to the data information descriptor, a second starting position of the data information corresponding to each of the tags in the second storage unit and an information length of the data information corresponding to each of the tags, and / or determining a link used for transmission of the data information corresponding to each of the tags, comprises: According to the at least one media access control service data unit descriptor, determine the second starting position of the media access control service data unit corresponding to each of the labels, and the information length of the data information corresponding to each of the labels, and / or determine the link used for transmission of the media access control service data unit corresponding to each of the labels.

8. The method according to any one of claims 1 to 5, characterized in that: The receiving control unit sends one or more return data, including: receiving at least one sub-data information corresponding to each of the tags sent by the control unit; When the total information length of the at least one sub-data information is equal to the information length of the data information corresponding to each of the tags, the reception of the data information corresponding to each of the tags is completed.

9. The method according to claim 8, characterized in that Before receiving one or more return data sent by the control unit, the method further includes: Associating one or more of the tags with one or more counters, respectively, where the counts of the one or more counters are 0; When the total information length of the at least one sub-data information is equal to the information length of the data information corresponding to each tag, the data information corresponding to each tag is received completely, including: When each sub-data information corresponding to each tag is received, adding the count of the counter corresponding to each tag to the information length of each sub-data information; When the count of the counter corresponding to each of the tags is equal to the information length of the data information corresponding to each of the tags, the reception of the data information corresponding to each of the tags is completed.

10. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: Get one or more continuous tags that are released and unoccupied in the tag pool; Setting the one or more labels in the label pool to be unreleased and occupied; When the data information corresponding to any tag is received completely, it is set that any tag in the tag pool is not released and not occupied.

11. The method according to claim 10, characterized in that Among the one or more labels in the label pool, if any of the labels is not released and is occupied, the any label and the label after the any label cannot be released; and / or, Among the one or more labels in the label pool, if any of the labels is not released and occupied, and all labels before the any label are not released and not occupied, all labels before the any label may be released sequentially.

12. An electronic device, characterized in that: include: A communication unit, configured to receive one or more return data sent by a control unit; each of the return data includes a tag and data information corresponding to the tag; The storage unit is used to store the data information corresponding to each tag in the first storage unit according to the ascending order of the tags in the one or more returned data.

13. An electronic device, characterized in that: include: Memory and processor, The memory is used to store computer programs. The processor is used to call and run the computer program stored in the memory, so that the electronic device executes the method according to any one of claims 1 to 11.

14. A chip, characterized in that: The method comprises: a processor, configured to call and run a computer program from a memory to implement the method according to any one of claims 1 to 11.

15. A computer storage medium, characterized in that The computer storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the method according to any one of claims 1 to 11.