CN115291812B - Data storage method and device of communication chip - Google Patents
Data storage method and device of communication chip Download PDFInfo
- Publication number
- CN115291812B CN115291812B CN202211205765.XA CN202211205765A CN115291812B CN 115291812 B CN115291812 B CN 115291812B CN 202211205765 A CN202211205765 A CN 202211205765A CN 115291812 B CN115291812 B CN 115291812B
- Authority
- CN
- China
- Prior art keywords
- data
- communication chip
- storage
- request
- determining
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0604—Improving or facilitating administration, e.g. storage management
- G06F3/0607—Improving or facilitating administration, e.g. storage management by facilitating the process of upgrading existing storage systems, e.g. for improving compatibility between host and storage device
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0608—Saving storage space on storage systems
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0629—Configuration or reconfiguration of storage systems
- G06F3/0631—Configuration or reconfiguration of storage systems by allocating resources to storage systems
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0638—Organizing or formatting or addressing of data
- G06F3/0644—Management of space entities, e.g. partitions, extents, pools
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Storage Device Security (AREA)
Abstract
The invention discloses a data storage method and a data storage device of a communication chip, wherein the method is applied to a first communication chip and comprises the following steps: determining a data storage request according to data to be stored; sending the data storage request to at least one second communication chip; enabling the second communication chip to determine storage state information and feed back a response request when the storage state information is matched with the data storage request; when the response request meets a preset condition, determining a second communication chip corresponding to the response request as a target communication chip, and storing the data to be stored to the target communication chip; determining a first storage index corresponding to the data to be stored according to the target communication chip, and storing the first storage index; the method realizes the sharing of the storage space among a plurality of communication chips, thereby improving the condition of unbalanced utilization of the storage space and improving the utilization efficiency of the storage space.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a data storage method and apparatus for a communication chip.
Background
The communication chip is a core element in communication. For example, NFC (Near Field Communication) chips, SIM (Subscriber Identity Module) chips, eSE (embedded Security Element) chips are all common Communication chips. In the communication process, various data such as a routing table, a configuration table and the like are often required to be stored. Therefore, in general, each type of communication chip will also have a certain memory function.
But limited by size and specification, the memory function of the communication chip is very limited, i.e. the memory space that the communication chip can have is small. This limits the communication functions of the communication chip to a certain extent, so that some functions cannot be realized or multiple functions cannot be realized simultaneously.
In the prior art, a solution for effectively expanding the storage space of a communication chip is lacked.
Disclosure of Invention
The invention provides a data storage method and a data storage device of a communication chip, which are used for realizing the sharing of storage space among a plurality of communication chips, thereby realizing the expansion of the storage space of the communication chips.
In a first aspect, the present invention provides a data storage method for a communication chip, where the method is applied to a first communication chip, and includes:
determining a data storage request according to data to be stored;
sending the data storage request to at least one second communication chip; enabling the second communication chip to determine storage state information and feed back a response request when the storage state information is matched with the data storage request;
when the response request meets a preset condition, determining a second communication chip corresponding to the response request as a target communication chip, and storing the data to be stored to the target communication chip;
and determining a first storage index corresponding to the data to be stored according to the target communication chip, and storing the first storage index.
Preferably, the determining a data storage request according to the data to be stored includes:
determining an index tag, a data length field, a request type field and an encryption requirement field corresponding to data to be stored;
and determining the data storage request according to the index tag, the data length field, the request type field and the encryption requirement field.
Preferably, the sending the data storage request to at least one second communication chip includes:
determining an identifier of the second communication chip;
determining a data channel corresponding to the second communication chip according to the identifier of the second communication chip;
and sending the data storage request to a preset communication port in the second communication chip by using the data channel.
Preferably, the determining storage status information and feeding back a response request when the storage status information matches the data storage request includes:
determining the storage state information according to the available storage space of the second communication chip;
when the available storage space and the data length field corresponding to the data to be stored meet a matching condition, determining that the storage state information is matched with the data storage request;
and feeding back the response request when the storage state information is matched with the data storage request.
Preferably, when the encryption requirement field is a first type field, the feeding back the response request when the storage status information matches the data storage request includes:
when the storage state information is matched with the data storage request, determining the encryption condition of the second communication chip;
and when the encryption condition is matched with the first type field, feeding back the response request.
Preferably, after the data to be stored is stored in the target communication chip, the method further includes:
and encrypting the data to be stored.
Preferably, after the data to be stored is stored in the target communication chip, the method further includes:
and determining a second storage index corresponding to the data to be stored, and storing the second storage index by using the target communication chip.
Preferably, the method further comprises the following steps:
determining a data reading request according to the target data;
sending the data reading request to a corresponding target communication chip according to the first storage index; so that the target communication chip feeds back the target data according to the second storage index.
In a second aspect, the present invention provides a data storage device of a communication chip, comprising:
the storage request determining module is used for determining a data storage request according to the data to be stored;
the request sending module is used for sending the data storage request to at least one second communication chip; enabling the second communication chip to determine storage state information and feed back a response request when the storage state information is matched with the data storage request;
the storage control module is used for determining a second communication chip corresponding to the response request as a target communication chip when the response request meets a preset condition, and storing the data to be stored to the target communication chip;
and the index storage module is used for determining a first storage index corresponding to the data to be stored according to the target communication chip and storing the first storage index.
Preferably, the storage request determining module includes:
the data field determining unit is used for determining an index tag, a data length field, a request type field and an encryption requirement field corresponding to the data to be stored;
and the storage request determining unit is used for determining the data storage request according to the index tag, the data length field, the request type field and the encryption requirement field.
Preferably, the request sending module includes:
an identifier determination unit for determining an identifier of the second communication chip;
a data channel determining unit, configured to determine, according to an identifier of the second communication chip, a data channel corresponding to the second communication chip;
and the sending unit is used for sending the data storage request to a preset communication port in the second communication chip by using the data channel.
Preferably, the method further comprises the following steps:
the data reading module is used for determining a data reading request according to the target data; sending the data reading request to a corresponding target communication chip according to the first storage index; so that the target communication chip feeds back the target data according to the second storage index.
In a third aspect, the invention provides a readable medium comprising executable instructions, which when executed by a processor of an electronic device, perform the method according to any of the first aspect.
In a fourth aspect, the present invention provides an electronic device, comprising a processor and a memory storing execution instructions, wherein when the processor executes the execution instructions stored in the memory, the processor performs the method according to any one of the first aspect.
The invention provides a data storage method and a data storage device of a communication chip, which realize the sharing of storage space among a plurality of communication chips by sending a data storage request to a second communication chip and storing data to be stored into a conditional communication chip according to a corresponding response request, thereby improving the unbalanced utilization condition of the storage space, improving the utilization efficiency of the storage space and realizing the expansion of the storage space of the communication chip in a phase-changing manner.
Further effects of the above-mentioned unconventional preferred modes will be described below in conjunction with specific embodiments.
Drawings
In order to more clearly illustrate the embodiments or the prior art solutions of the present invention, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments described in the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
Fig. 1 is a schematic flowchart of a data storage method of a communication chip according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of another data storage method of a communication chip according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a data storage device of a communication chip according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be described in detail and completely with reference to the following embodiments and accompanying drawings. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the communication process, the communication chip often needs to store various data such as a routing table, a configuration table, and the like. Therefore, in general, each type of communication chip will also have a certain memory function. But limited by size and specification, the memory function of the communication chip is very limited, i.e. the memory space that the communication chip can have is small. This limits the communication functions of the communication chip to a certain extent, so that some functions cannot be realized or multiple functions cannot be realized simultaneously.
Currently, a plurality of communication chips, such as an NFC chip, a SIM card, and an eSE chip, are often mounted on mainstream communication equipment. All kinds of communication chips have certain memory function. Along with different use scenes, the occupation conditions of the storage space on various communication chips are often unbalanced. The storage space on a certain communication chip is full, so that the communication function of the communication chip is limited; while other communication chips have a large amount of free memory.
In view of this, the present invention provides a data storage method for a communication chip, which realizes the sharing of storage space among a plurality of communication chips, thereby improving the utilization imbalance of the storage space, and improving the utilization efficiency of the storage space, thereby realizing the expansion of the storage space of the communication chip in a phase-changing manner.
Referring to fig. 1, a data storage method of a communication chip according to an embodiment of the present invention is shown. The method is applied to a first communication chip. I.e. the first communication chip is the executing body of the method. The first communication chip refers to the communication chip that is the requestor in the method. And the opposite second communication chip is used as the communication chip of the requested party. In this embodiment, the method includes the steps of:
The data to be stored is communication data that needs to be stored in this embodiment. Generally, the data to be stored is generated by the first communication chip in the process of executing the communication function, and may be various types of data such as a routing table, a configuration table, and the like. In the prior art, the data to be stored is directly stored in the memory space of the first communication chip itself. However, in this embodiment, in order to achieve the balance of the storage space of each communication chip, one data storage request is generated correspondingly for the data to be stored. Through the data storage request, the storage space of which communication chip the data to be stored is stored in can be further determined.
In this embodiment, the data storage request will satisfy the TLV structure; wherein, T represents an index tag, L represents a data length field of the data to be stored, and V represents a request type field. The specific format is shown in the following table:
| T | L | V |
| index tag | Data length field | And (3) storage request: 1. reading request: 0 |
That is to say, the index tag, the data length field, and the request type field corresponding to the data to be stored may be determined first according to the actual content of the data to be stored. A data storage request is then generated based on the index tag, the data length field, and the request type field.
In addition, based on the same request structure in this embodiment, the specific request type may be a data storage request for storing data or a data reading request for reading data. The value of "store request" in the request type field in the table above is 1, and the value of "read request" is 0, meaning that the type of the request is a data store request.
The data storage request, after being determined, needs to be sent to at least one second communication chip. Typically, the data storage requests are sent to the plurality of second communication chips in sequence.
The second communication chip may determine its own storage state information after receiving the data storage request. The storage state information mainly includes a remaining amount of storage space of the second communication chip. The second communication chip may feed back a response request to the first communication chip if the storage state information of the second communication chip matches the data storage request. And feeding back the response request, which means that the second communication chip agrees to save the data to be stored into the storage space of the second communication chip.
Specifically, the second communication chip may determine the storage status information according to its current available storage space. And if the available storage space and the data length field corresponding to the data to be stored meet the matching condition, determining that the storage state information is matched with the data storage request.
In some cases, if the available storage space is greater than the data length described by the data length field, the two may be considered a match. In other cases, the two may also be considered to match when the available memory space is considered to be greater than the data length described by the data length field and the available memory space of the second communication chip is greater than a certain percentage of the total memory space. Or when the available storage space is larger than the data length described by the data length field and the surplus of the storage space of the second communication chip is still larger than a specific value after the second communication chip stores the data to be stored, the two are considered to be matched. I.e. to ensure that the necessary memory space margin is left for the second communication chip. Regardless of the matching mechanism, the second communication chip feeds back the response request when the storage status information is considered to match the data storage request.
Preferably, when an HCI (Host Controller Interface) communication network is used between the communication chips, the port definition may be performed on the second communication chip according to the ETSI TS 102 v13.0.0 protocol in the field, so as to implement sending of the data storage request to the second communication chip. For example, a Gate ID 0x52 port may be defined by the above protocol to be dedicated to receiving the data storage request.
In particular, the identifier of the second communication chip may be determined first. The identifier may specifically be a unique identifier Hid of the second communication chip in the HCI network. And then determining a corresponding data channel of the second communication chip in the HCI network according to the identifier of the second communication chip. This data channel is the Pipe described in the protocol above. Pipe can be considered as a logical data channel for devices in an HCI network to connect to different functional ports. By utilizing the data channel, the data storage request can be sent to a preset communication port in the second communication chip. The predetermined communication port is also defined as Gate ID 0x52.
Therefore, the data storage request is sent to the second communication chip on the communication layer in the embodiment. Of course, the above should be considered as merely an exemplary implementation. Other methods capable of implementing the same or similar functions may also be combined in the overall technical solution of the present embodiment.
And 103, when the response request meets a preset condition, determining a second communication chip corresponding to the response request as a target communication chip, and storing the data to be stored to the target communication chip.
The first communication chip sends data storage requests to the plurality of second communication chips, so that the response requests received by the first communication chip may not be unique. If a plurality of response requests are received, the response requests meeting the preset conditions need to be further screened out. For example, the first received response request may be considered to satisfy a preset condition.
And then, the second communication chip corresponding to the response request meeting the preset condition can be determined as the target communication chip. The target communication chip, i.e. the destination where the data to be stored is to be saved. That is, after the target communication chip is determined, the data to be stored may be stored in the storage space of the target communication chip.
And step 104, determining a first storage index corresponding to the data to be stored according to the target communication chip, and storing the first storage index.
The data to be stored is not stored in the first communication chip, so that the first communication chip also needs to store a first storage index corresponding to the data to be stored, so as to be convenient for reading the data to be stored from the target communication chip subsequently. Specifically, the first storage index may be determined according to the target communication chip. The specific format of the first storage index is as follows:
| T | L | Hid |
| index tag | Data length field | Identifier of target communication chip |
In contrast, after the target communication chip saves the data to be stored, the target communication chip may also determine a second storage index corresponding to the data to be stored, and save the second storage index, so that the first communication chip may return the data when reading the data to be stored. The specific format of the second storage index is as follows:
| T | L | Hid |
| index tag | Data length field | Identifier of first communication chip |
Therefore, the embodiment realizes the storage of the data to be stored and realizes the storage space sharing among the communication chips in the storage process. According to the technical scheme, the beneficial effects of the embodiment are as follows: the data storage request is sent to the second communication chip, and the data to be stored is stored in the conditional communication chip according to the corresponding response request, so that the sharing of the storage space among the plurality of communication chips is realized, the condition of unbalanced storage space utilization is improved, the utilization efficiency of the storage space is improved, and the expansion of the storage space of the communication chips is realized in a phase-changing manner.
Fig. 1 shows only a basic embodiment of the method of the present invention, and based on this, certain optimization and expansion can be performed, and other preferred embodiments of the method can also be obtained.
Fig. 2 shows another embodiment of the data storage method of the communication chip according to the present invention. The embodiment aims at specific scenes that data to be stored needs to be encrypted when being stored in some scenes. In this embodiment, the method includes the steps of:
Since the data to be stored in this embodiment has a security requirement, the data storage request specifically includes an index tag, a data length field, a request type field, and an encryption requirement field. The details are shown in the following table:
| T | L | V(bit0) | V(bit8) |
| index tag | Data length field | And (3) storage request: 1. reading request: 0 | And (4) encrypted storage: 1. and (4) non-encrypted storage: 0 |
In the above table, V (bit 0) represents the request type field. The value of "storage request" in the request type field is 1, and the value of "read request" is 0, which means that the type of the request is a data storage request. V (bit 8) represents an encryption requirement field. The value corresponding to the encrypted storage in the encryption requirement field is 1, and the value corresponding to the unencrypted storage is 0, which means that the data to be stored needs to be encrypted during storage. At this time, it can be considered that the encryption requirement field is a first type field.
Similarly, after receiving the data storage request, the second communication chip needs to determine the storage status information according to its available storage space. And at the moment, the encryption requirement field is the first type field, and then the encryption condition of the second communication chip is required to be determined; i.e. to determine whether the second communication chip has the ability to cryptographically store data to be stored.
And then determining whether the available storage space of the second communication chip and the data length field corresponding to the data to be stored meet the matching condition. And determines whether the encryption condition of the second communication chip itself matches the first type field. In some cases, the encryption condition may be considered to match the first type field if the second communication chip has the ability to cryptographically store data to be stored. In other cases, it may be that a particular encryption algorithm is also specified in the first type field. At this time, it is determined that the second communication chip has the ability to encrypt using the algorithm, and if so, it is determined that the encryption condition matches the first type field.
In this embodiment, if the available storage space and the data length field satisfy the matching condition and the encryption condition and the first type field satisfy the matching condition at the same time, the second communication chip may feed back the response request.
And 203, when the response request meets the preset condition, determining the second communication chip corresponding to the response request as a target communication chip.
The content of this step is the same as that of the related step in the embodiment shown in fig. 1, and the description is not repeated here.
And 204, storing the data to be stored to the target communication chip, and encrypting the data to be stored.
In this embodiment, after the target communication chip stores the data to be stored, the data to be stored needs to be further encrypted.
Similarly, the first communication chip needs to store a first storage index corresponding to the data to be stored. The target communication chip also needs to store a second storage index corresponding to the data to be stored.
It should be noted that, after the data to be stored is saved to the target communication chip by the methods shown in fig. 1 to fig. 2, the method for reading the data to be stored may be as follows:
determining a data reading request according to the target data; sending a data reading request to a corresponding target communication chip according to the first storage index; so that the target communication chip feeds back the target data according to the second storage index.
The target data is the data to be stored which is stored in advance, and is also the data which needs to be read by the first communication chip. When the first communication chip needs to read the target data stored in the target communication chip, a corresponding data reading request needs to be generated first. The data read request is similar to the data store request, and also adopts a TLV structure, which may be specifically shown in the following table:
| T | L | V(bit0) | V(bit8) |
| index tag | Data length field | And (3) storage request: 0. reading request: 1 | And (4) encrypted storage: 1. and (4) non-encrypted storage: 0 |
In the above table, T represents an index tag, L represents a data length field of data to be stored, and V (bit 0) represents a request type field. The value of "store request" in the request type field is 0, and the value of "read request" is 1, meaning that the type of the request is a data read request. V (bit 8) represents an encryption requirement field. The value of "encrypted storage" in the encryption requirement field is 0, and the value of "unencrypted storage" is 1, which means that the target data is encrypted when stored.
After the first communication chip determines the data reading request, a target communication chip where the target data is located can be determined according to a first storage index corresponding to the target data; i.e. to determine the identifier (Hid) of the target communication chip in the first stored index. Based on the identifier, a data read request may be sent to the target communication chip.
After receiving the data reading request, the target communication chip can determine the identifier (Hid) of the first communication chip by the corresponding second storage index of the target data. The target data is then fed back to the first communication chip. And it can be known from the data read request that the target data is encrypted when stored. Before feeding back the target data to the first communication chip, the target data needs to be decrypted.
Fig. 3 shows a data storage device of a communication chip according to an embodiment of the present invention. The apparatus of this embodiment, i.e. the physical apparatus for performing the method of 1~2 in fig. 5363. The technical solution is essentially the same as that in the above embodiment, and the corresponding description in the above embodiment is also applicable to this embodiment. The device in this embodiment includes:
a storage request determining module 301, configured to determine a data storage request according to data to be stored.
A request sending module 302, configured to send a data storage request to at least one second communication chip; so that the second communication chip determines the storage status information and feeds back the response request when the storage status information matches the data storage request.
And the storage control module 303 is configured to determine, when the response request meets a preset condition, the second communication chip corresponding to the response request as a target communication chip, and store the data to be stored in the target communication chip.
The index saving module 304 is configured to determine a first storage index corresponding to the data to be stored according to the target communication chip, and save the first storage index.
In addition, on the basis of the embodiment shown in fig. 3, it is preferable that:
the storage request determining module includes:
and the data field determining unit 311 is configured to determine an index tag, a data length field, a request type field, and an encryption requirement field corresponding to the data to be stored.
A storage request determining unit 312, configured to determine a data storage request according to the index tag, the data length field, the request type field, and the encryption requirement field.
The request sending module comprises:
an identifier determining unit 321 for determining an identifier of the second communication chip.
The data channel determining unit 322 is configured to determine a data channel corresponding to the second communication chip according to the identifier of the second communication chip.
A sending unit 323, configured to send the data storage request to a communication port preset in the second communication chip by using the data channel.
Further comprising:
a data reading module 305, configured to determine a data reading request according to target data; sending a data reading request to a corresponding target communication chip according to the first storage index; so that the target communication chip feeds back the target data according to the second storage index.
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. On the hardware level, the electronic device comprises a processor and optionally an internal bus, a network interface and a memory. The Memory may include a Memory, such as a Random-Access Memory (RAM), and may further include a non-volatile Memory, such as at least 1 disk Memory. Of course, the electronic device may also include hardware required for other services.
The processor, the network interface, and the memory may be connected to each other via an internal bus, which may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, an EISA (Extended Industry Standard Architecture) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 4, but that does not indicate only one bus or one type of bus.
And the memory is used for storing the execution instruction. In particular, a computer program that can be executed by executing instructions. The memory may include both memory and non-volatile storage and provides execution instructions and data to the processor.
In a possible implementation manner, the processor reads corresponding execution instructions from the nonvolatile memory into the memory and then executes the execution instructions, and corresponding execution instructions can also be obtained from other devices, so as to form the data storage device of the communication chip on a logic level. The processor executes the execution instructions stored in the memory, so that the data storage method of the communication chip provided by any embodiment of the invention is realized through the executed execution instructions.
The method executed by the data storage device of the communication chip according to the embodiment of the invention shown in fig. 3 can be applied to or implemented by a processor. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), application Specific Integrated Circuits (ASICs), field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and combines hardware thereof to complete the steps of the method.
An embodiment of the present invention further provides a readable storage medium, where the readable storage medium stores an execution instruction, and when the stored execution instruction is executed by a processor of an electronic device, the electronic device can be caused to execute the data storage method of the communication chip provided in any embodiment of the present invention, and is specifically configured to execute the method shown in fig. 1 or fig. 2.
The electronic device described in the foregoing embodiments may be a computer.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects.
The embodiments of the present invention are described in a progressive manner, and the same and similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, as for the apparatus embodiment, since it is substantially similar to the method embodiment, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
The above description is only an example of the present invention and is not intended to limit the present invention. Various modifications and alterations to this invention will become apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.
Claims (10)
1. A data storage method of a communication chip is applied to a first communication chip and comprises the following steps:
determining a data storage request according to data to be stored; the data to be stored is communication data generated by the first communication chip in the communication process;
sending the data storage request to at least one second communication chip; enabling the second communication chip to determine storage state information and feed back a response request when the storage state information is matched with the data storage request;
when the response request meets a preset condition, determining a second communication chip corresponding to the response request as a target communication chip, and storing the data to be stored to the target communication chip;
determining a first storage index corresponding to the data to be stored according to the target communication chip, and storing the first storage index;
the determining a data storage request according to the data to be stored includes:
determining an index tag, a data length field, a request type field and an encryption requirement field corresponding to data to be stored;
determining the data storage request according to the index tag, the data length field, the request type field and the encryption requirement field;
the determining storage status information and feeding back a response request when the storage status information matches the data storage request comprises:
determining the storage state information according to the available storage space of the second communication chip;
when the available storage space and the data length field corresponding to the data to be stored meet a matching condition, determining that the storage state information is matched with the data storage request;
feeding back the response request when the storage state information is matched with the data storage request;
when the encryption requirement field is a first type field, and when the storage status information matches the data storage request, feeding back the response request includes:
when the storage state information is matched with the data storage request, determining the encryption condition of the second communication chip;
and when the encryption condition is matched with the first type field, feeding back the response request.
2. The method of claim 1, wherein sending the data storage request to at least one second communication chip comprises:
determining an identifier of the second communication chip;
determining a data channel corresponding to the second communication chip according to the identifier of the second communication chip;
and sending the data storage request to a preset communication port in the second communication chip by using the data channel.
3. The method of claim 1, wherein after storing the data to be stored in the target communication chip, further comprising:
and encrypting the data to be stored.
4. The method of claim 1~3, wherein storing the data to be stored in the target communication chip further comprises:
and determining a second storage index corresponding to the data to be stored, and storing the second storage index by using the target communication chip.
5. The method of claim 4, further comprising:
determining a data reading request according to the target data;
sending the data reading request to a corresponding target communication chip according to the first storage index; so that the target communication chip feeds back the target data according to the second storage index.
6. A data storage device of a communication chip, comprising:
the storage request determining module is used for determining a data storage request according to the data to be stored; the data to be stored is communication data generated by the first communication chip in the communication process;
the request sending module is used for sending the data storage request to at least one second communication chip; enabling the second communication chip to determine storage state information and feed back a response request when the storage state information is matched with the data storage request; the determining storage status information and feeding back a response request when the storage status information matches the data storage request comprises: determining the storage state information according to the available storage space of the second communication chip; when the available storage space and the data length field corresponding to the data to be stored meet a matching condition, determining that the storage state information is matched with the data storage request; feeding back the response request when the storage state information is matched with the data storage request; when the encryption requirement field is a first type field, and when the storage status information matches the data storage request, feeding back the response request includes: when the storage state information is matched with the data storage request, determining the encryption condition of the second communication chip; when the encryption condition is matched with the first type field, feeding back the response request;
the storage control module is used for determining a second communication chip corresponding to the response request as a target communication chip when the response request meets a preset condition, and storing the data to be stored to the target communication chip;
the index storage module is used for determining a first storage index corresponding to the data to be stored according to the target communication chip and storing the first storage index;
the storage request determination module includes:
the data field determining unit is used for determining an index tag, a data length field, a request type field and an encryption requirement field corresponding to the data to be stored;
and the storage request determining unit is used for determining the data storage request according to the index tag, the data length field, the request type field and the encryption requirement field.
7. The apparatus of claim 6, wherein the request sending module comprises:
an identifier determination unit for determining an identifier of the second communication chip;
a data channel determining unit, configured to determine, according to the identifier of the second communication chip, a data channel corresponding to the second communication chip;
and the sending unit is used for sending the data storage request to a preset communication port in the second communication chip by using the data channel.
8. The apparatus of claim 6, further comprising:
the data reading module is used for determining a data reading request according to the target data; sending the data reading request to a corresponding target communication chip according to the first storage index; so that the target communication chip feeds back the target data according to the second storage index.
9. A computer-readable storage medium storing a computer program for executing the data storage method of the communication chip according to any one of claims 1 to 5.
10. An electronic device, the electronic device comprising:
a processor;
a memory for storing the processor-executable instructions;
the processor is used for reading the executable instructions from the memory and executing the instructions to realize the data storage method of the communication chip of any one of the claims 1 to 5.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211205765.XA CN115291812B (en) | 2022-09-30 | 2022-09-30 | Data storage method and device of communication chip |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211205765.XA CN115291812B (en) | 2022-09-30 | 2022-09-30 | Data storage method and device of communication chip |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN115291812A CN115291812A (en) | 2022-11-04 |
| CN115291812B true CN115291812B (en) | 2023-01-13 |
Family
ID=83834155
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211205765.XA Active CN115291812B (en) | 2022-09-30 | 2022-09-30 | Data storage method and device of communication chip |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN115291812B (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2004199336A (en) * | 2002-12-18 | 2004-07-15 | Hitachi Ltd | Storage device control device control method, storage device control device, and program |
| CN110223643A (en) * | 2018-03-01 | 2019-09-10 | 京东方科技集团股份有限公司 | Data transmission method, component and system, display device |
| CN110427368A (en) * | 2019-07-12 | 2019-11-08 | 深圳绿米联创科技有限公司 | Data processing method, device, electronic device and storage medium |
| CN112799584A (en) * | 2019-11-13 | 2021-05-14 | 杭州海康威视数字技术股份有限公司 | Data storage method and device |
Family Cites Families (13)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108777685B (en) * | 2018-06-05 | 2020-06-23 | 京东数字科技控股有限公司 | Method and apparatus for processing information |
| CN108874987B (en) * | 2018-06-11 | 2020-09-29 | 深圳市风云实业有限公司 | Table entry management method and device and exchange chip |
| CN111414356B (en) * | 2019-01-07 | 2024-11-29 | 北京京东尚科信息技术有限公司 | Data storage method, device, non-relational database system and storage medium |
| CN110704338B (en) * | 2019-10-18 | 2021-01-26 | 安徽寒武纪信息科技有限公司 | Address conversion device, artificial intelligence chip and electronic equipment |
| CN112463800A (en) * | 2020-12-11 | 2021-03-09 | 微医云(杭州)控股有限公司 | Data reading method and device, server and storage medium |
| CN112486915B (en) * | 2020-12-18 | 2023-01-20 | 上海哔哩哔哩科技有限公司 | Data storage method and device |
| CN112822124B (en) * | 2020-12-31 | 2022-11-22 | 深圳云天励飞技术股份有限公司 | Multi-chip communication system, method, chip and storage medium |
| CN113946851B (en) * | 2021-10-21 | 2024-07-05 | 深圳平安智慧医健科技有限公司 | Medical image management method, device, electronic equipment and storage medium |
| CN114281484B (en) * | 2021-12-29 | 2022-08-26 | 元心信息科技集团有限公司 | Data transmission method, device, equipment and storage medium |
| CN114385421A (en) * | 2022-01-10 | 2022-04-22 | 中国第一汽车股份有限公司 | Data storage method and device, electronic equipment and storage medium |
| CN114048164B (en) * | 2022-01-14 | 2022-04-12 | 湖北芯擎科技有限公司 | Chip interconnection method, system, device and readable storage medium |
| CN114756501A (en) * | 2022-04-15 | 2022-07-15 | 中汽创智科技有限公司 | Inter-chip communication method, device, system and storage medium |
| CN114817651B (en) * | 2022-06-24 | 2022-09-13 | 北京百度网讯科技有限公司 | Data storage method, data query method, device and equipment |
-
2022
- 2022-09-30 CN CN202211205765.XA patent/CN115291812B/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2004199336A (en) * | 2002-12-18 | 2004-07-15 | Hitachi Ltd | Storage device control device control method, storage device control device, and program |
| CN110223643A (en) * | 2018-03-01 | 2019-09-10 | 京东方科技集团股份有限公司 | Data transmission method, component and system, display device |
| CN110427368A (en) * | 2019-07-12 | 2019-11-08 | 深圳绿米联创科技有限公司 | Data processing method, device, electronic device and storage medium |
| CN112799584A (en) * | 2019-11-13 | 2021-05-14 | 杭州海康威视数字技术股份有限公司 | Data storage method and device |
Also Published As
| Publication number | Publication date |
|---|---|
| CN115291812A (en) | 2022-11-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US20210306302A1 (en) | Datagram processing method, processing unit and vpn server | |
| US20130080791A1 (en) | Security Protocols for Processor-Based Systems | |
| US10314096B2 (en) | Data transmission method, data transmission apparatus, processor, and mobile terminal | |
| CN112395651B (en) | Memory device and method for operating a memory device | |
| CN109327499B (en) | Service interface management method and device, storage medium and terminal | |
| CN108600315A (en) | Block chain route processing method, device and storage medium | |
| CN107659664A (en) | Message transmission method, device and system | |
| WO2020173126A1 (en) | Method and device for blockchain-based session data processing, equipment, and medium | |
| US20240323023A1 (en) | Sample alignment method and apparatus, device, and storage medium | |
| CN113783789B (en) | Message speed limiting method and device | |
| WO2022116606A1 (en) | Multi service platform accessing method and system for vehicle, and electronic device | |
| CN115291812B (en) | Data storage method and device of communication chip | |
| CN108259348B (en) | A message transmission method and device | |
| CN114567483B (en) | Data transmission method and device and electronic equipment | |
| CN116506499A (en) | A data transmission method, device and electronic equipment | |
| CN112422485A (en) | Communication method and device of transmission control protocol | |
| CN118916312B (en) | A data transmission method, device, system, computer equipment and storage medium | |
| CN113691520A (en) | Method, device, storage medium and electronic device for acquiring streaming media information | |
| CN116016687B (en) | Message distribution method and system based on DPDK | |
| CN111435518A (en) | Trusted hardware-based block chain private transaction method, device and system | |
| CN108540569A (en) | A kind of software installation packet replacement method, device and computer storage media | |
| CN110418343A (en) | Paging method, network equipment and terminal | |
| CN104243395B (en) | A kind of high frequency time write operation method, interface message processor (IMP) and system | |
| CN117098187A (en) | Data processing method, receiving device, transmitting device and storage medium | |
| CN116016035B (en) | Method for applying multipath service in same tunnel by utilizing quintuple |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |