Shared data processing method and device, computer equipment, medium and program product
By configuring a shared data pool in the Simulink system and managing multi-module common variables, the problems of data interaction consistency and debugging complexity are solved, data interaction efficiency and reliability are improved, and the code structure is simplified.
Patent Information
- Application Number
- CN202510432330.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-08
- Publication Date
- 2025-08-01
AI Technical Summary
In complex Simulink systems, the consistency of data interaction between multiple modules is difficult to ensure, and there are problems such as data inconsistency, high debugging complexity and poor code readability.
By preconfiguring the shared data pool, setting the data type of the data signal, and managing multi-module common variables through data call, determining whether the target data type meets the configuration requirements, responding to the data pool call request, and achieving effective management and control of multi-module common variables.
It improves the efficiency and reliability of shared data interaction between multiple modules, simplifies data management between modules, ensures data consistency and security, and reduces debugging difficulty and code complexity.
Smart Images

Figure CN120407048A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and particularly to a method, device, computer equipment, medium and program product for processing shared data. Background Art
[0002] In the Simulink (simulation software) environment, data transmission between multiple modules is the key to constructing system functions. As the complexity of the system increases, data interaction between multiple modules becomes more complex and crucial. In the related art, a global variable bus is set up in the Simulink data dictionary, and the bus is used as a bridge for sharing data between different modules. Specifically, developers can set a series of global variable buses in the Simulink data dictionary and construct the set global variables into a specific data structure, which contains multiple data fields, and each field carries different data types and information. In the Simulink environment, modules are connected to these global variable buses through corresponding input and output ports to achieve data reading, writing and sharing. When simulating based on the Simulink environment, if a module needs to transmit data to other modules, it is necessary to write the data into the corresponding field of the global variable bus. Similarly, if a module needs to receive data, the module will read it from the corresponding field of the global variable bus. To ensure data consistency, the global variable bus needs to be synchronously updated during the simulation. Once a module modifies the data, other modules need to immediately perceive and react.
[0003] However, in practical applications, although in the complex Simulink system design, using the data dictionary to define the global variable bus to achieve data sharing and interaction between modules can, to a certain extent, realize data sharing and interaction between modules. There are still some problems. For example: The situation where multiple data processing modules access or modify the same variable simultaneously also increases the complexity of the system's call to the global variable. Therefore, how to effectively improve the consistency of data interaction in a complex Simulink system has become an urgent technical problem to be solved. Summary of the Invention
[0004] In view of this, the present invention provides a method, device, computer equipment, medium and program product for processing shared data to solve the urgent technical problems of how to effectively improve the consistency of data interaction in a complex Simulink system and enhance the readability of the code.
[0005] In a first aspect, the present invention provides a method for processing shared data, the method comprising:
[0006] Receiving a data pool call request from a data processing module, the call request carrying the target data type of the data to be processed;
[0007] Based on a pre-configured shared data pool, determine the target data type;
[0008] Based on the determination result of the target data type, respond to the data pool call request.
[0009] In the embodiment of the present invention, a shared data processing method pre-configures a shared data pool and sets the data types of data signals in the shared data pool. Through the method of data call, the management of common variables of multiple modules is realized. When a data pool call request is received, first determine whether the target data type of the data to be processed meets the configuration requirements of the shared data pool, and based on the determination result of the target data type, respond to the data pool call request. Thus, the effective management and control of common variables of multiple modules are realized, and a series of problems caused by arbitrary modification and update of common variables are avoided. The management of shared data of multiple modules is effectively simplified, and the consistency of data is ensured.
[0010] In an alternative embodiment, based on a pre-configured shared data pool, determining the target data type includes:
[0011] Determine the data signal corresponding to the data to be processed or the data processing module;
[0012] Determine the signal data type corresponding to the data signal;
[0013] In the case where the target data type matches the signal data type, it is determined that the target data type meets the configuration requirements of the shared data pool.
[0014] In the embodiment of the present invention, a shared data processing method first determines the data signal corresponding to the data to be processed or the data processing module, then determines the signal data type corresponding to the data signal. In the case where the target data type matches the signal data type, it is determined that the target data type meets the configuration requirements of the shared data pool. Thus, the target data type of the data to be processed is quickly and accurately determined, the effective management of the shared data pool is realized, and the data security of the shared data pool is significantly improved.
[0015] In an alternative embodiment, the data pool call request is a data read request;
[0016] Based on the determination result of the target data type, responding to the data pool call request includes:
[0017] In the case where the target data type meets the configuration requirements of the shared data pool, in response to the data pool call request, perform a data read operation to obtain the data to be processed from the shared data pool.
[0018] The shared data processing method according to the embodiment of the present invention, in response to a data read request, when the target data type meets the configuration requirements of the shared data pool, automatically responds to the data pool call request to execute a data read operation, obtains the data to be processed from the shared data pool, and effectively improves the efficiency and reliability of shared data interaction between multiple modules through the data call method of the shared data pool.
[0019] In an alternative embodiment, the data pool call request is a data write request;
[0020] Responding to the data pool call request based on the judgment result of the target data type includes:
[0021] When the target data type meets the configuration requirements of the shared data pool, respond to the data pool call request to execute a data write operation, and write the data to be processed into the shared data pool.
[0022] The shared data processing method according to the embodiment of the present invention, in response to a data write request, when the target data type meets the configuration requirements of the shared data pool, responds to the data pool call request to execute a data write operation, and automatically writes the data to be processed into the shared data pool. Thus, the efficiency and reliability of shared data interaction between multiple modules are effectively improved through the data call method of the shared data pool.
[0023] In an alternative embodiment, responding to the data pool call request based on the judgment result of the target data type further includes:
[0024] When the target data type does not meet the configuration requirements of the shared data pool, discard the data to be processed.
[0025] The shared data processing method according to the embodiment of the present invention effectively ensures the data security of the shared data pool by discarding the data to be processed when the target data type does not meet the configuration requirements of the shared data pool.
[0026] In an alternative embodiment, responding to the data pool call request based on the judgment result of the target data type further includes:
[0027] When the target data type does not meet the configuration requirements of the shared data pool, send a reminder message to the data processing module.
[0028] In a second aspect, the present invention provides a shared data processing device, the device includes:
[0029] A call module, configured to receive a data pool call request from a data processing module, and the call request carries the data type of the data to be processed;
[0030] A judgment module, configured to judge the target data type based on a pre-configured shared data pool;
[0031] A response module, configured to respond to a data pool call request based on a judgment result of a target data type.
[0032] In a third aspect, the present invention provides a computer device, including: a memory and a processor, which are communicatively connected to each other. The memory stores computer instructions, and the processor executes the computer instructions to execute the shared data processing method according to the first aspect or any corresponding embodiment thereof.
[0033] In a fourth aspect, the present invention provides a computer-readable storage medium, on which computer instructions are stored. The computer instructions are used to cause a computer to execute the shared data processing method according to the first aspect or any corresponding embodiment thereof.
[0034] In a fifth aspect, the present invention provides a computer program product, including computer instructions, which are used to cause a computer to execute the shared data processing method according to the first aspect or any corresponding embodiment thereof. Description of the Drawings
[0035] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following will briefly introduce the drawings required for the description of the specific embodiments or the prior art. Obviously, the following drawings are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0036] Figure 1 It is a schematic diagram of the architecture of a pre-configured shared data pool in an embodiment of the present invention;
[0037] [[ID=2,2]] Figure 2 It is a flowchart of a shared data processing method according to an embodiment of the present invention;
[0038] Figure 3 It is a flowchart of another shared data processing method according to an embodiment of the present invention;
[0039] Figure 4 It is a flowchart of a specific application example of the shared data processing method according to an embodiment of the present invention;
[0040] Figure 5 It is a block diagram of the structure of a shared data processing device according to an embodiment of the present invention;
[0041] Figure 6 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. Detailed Embodiments
[0042] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Apparently, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0043] To ensure the accuracy and reliability of the operation of a system with multiple data processing modules, it is necessary to carefully design the data connections between the modules to ensure the smooth transfer and synchronization of data. At the same time, the potential impact of data interaction on system performance also needs to be considered. The following issues need to be concerned about:
[0044] First is the data consistency issue. Although the global variable bus facilitates data interaction, multiple modules may access and modify the data simultaneously. Without an appropriate synchronization mechanism, data inconsistency may occur. For example, when one module reads data, another module may be writing, resulting in incomplete or incorrect data being read.
[0045] Second is the difficulty of debugging and maintenance. The global variable bus widely exists in the models used in the data processing process and may be accessed and modified by multiple data processing modules simultaneously, increasing the complexity of debugging. As the system complexity increases, the number and complexity of the global variable bus also increase, making model maintenance more difficult.
[0046] Furthermore, there is the readability and portability of the code. The introduction of the global variable bus may make the model code structure complex, which is not conducive to subsequent code maintenance and modification. If the Simulink model needs to be ported to other platforms or toolchains, the use of the global variable bus may increase the difficulty and cost of porting.
[0047] Based on the above problems, the embodiments of the present invention provide a shared data processing method, which realizes the effective management and control of common data between multiple data processing modules by pre-configuring a shared data pool.
[0048] According to the embodiments of the present invention, an embodiment of a shared data processing method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. And although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.
[0049] To better illustrate the shared data processing method of the embodiments of the present invention, the shared data pool pre-configured in the shared data processing method of the embodiments of the present invention will be described first. Figure 1It is a schematic diagram of the architecture of the shared data pool pre-configured in the embodiments of the present invention. As Figure 1 shown, multiple pieces of data Data can be stored in the shared data pool Datapool, and each piece of data Data has a set signal attribute. Taking the data Data1 as an example, the data processing module Module2 can read the data Data1 through the read port Read_port1 of the data Data1, and the data processing module Module1 can perform write operations on the data Data1 through the data write port Write_port1 of the data Data1, such as writing and modifying, etc. The specific writing and modifying rules can be set according to actual requirements. Among them, the data processing module with the write operation permission for the data Data1 can be set as the only module. In this way, when there are problems or faults related to the data Data1, the cause of the fault can be quickly located by checking the modification record of Data1, which significantly improves the reliability, security, and stability of the shared data. Further, by pre-configuring the shared data pool, the efficiency of shared data interaction between modules is effectively improved, ensuring the reliability of data transmission. The data processing module can include an SOC calculation module, a charging module, a vehicle communication module, etc.
[0050] Here, through read and write function interfaces such as the data read port Read_port1 and the data write port Write_port1, the call of the shared data is realized. During the call process, the data to be processed can be verified, such as the verification of the data type, making the access to the signal data simple, efficient, and safe. It not only simplifies the data interaction process between modules but also ensures the accuracy and consistency of the data. Here, a unique storage address in the system RAM can also be assigned to each data signal. Each data signal has a unique address in the shared data pool, so during the data interaction process, the data can be accurately transmitted to the target data processing module, effectively ensuring the independence and security of the data.
[0051] Further, the shared data pool is stored in the system RAM. During the configuration process of the shared data pool, forms such as an Excel table including data signal attributes can be set first to collect core information such as the signal name, signal source, signal recipient, and signal data type of the data signal. Based on this data signal attribute information, the system automatically generates a C function file, and the C function file can be used as the shared data pool. Thus, using the shared data pool for data interaction between modules effectively improves the efficiency and reliability of data interaction and reduces the risk of data loss or error. At the same time, due to the standardized design of the data pool and the read and write function interfaces, the data interaction between modules becomes more flexible, significantly enhancing the scalability of the system.
[0052] Specifically, in this embodiment, a shared data processing method is provided. Figure 2 It is a flowchart of the shared data processing method according to an embodiment of the present invention. As Figure 2 shown, the process includes the following steps:
[0053] Step S201: Receive a data pool call request from a data processing module. The call request carries the target data type of the data to be processed.
[0054] Here, the data pool call request may include a data write request and a data read request. The target data type may include data length, transmission protocol that the data conforms to, etc. Here, the header field of the data to be processed in the data pool call request and other identifying fields can be set according to actual needs to identify the target data type, or a field for representing the target data type can be directly set in the data pool call request. In practical applications, it can be set according to requirements, and the present invention does not make specific limitations in this regard.
[0055] Step S202: Based on the pre-configured shared data pool, judge the target data type.
[0056] For the above step S201, by identifying the set fields, the target data type can be determined. Further, information such as the signal data type of each data signal has been pre-configured in the shared data pool, and the data signal called by the data call request also has a determined signal data type. Therefore, here, the target data type can be compared with the signal data type corresponding to the data pool call request.
[0057] Step S203: Based on the judgment result of the target data type, respond to the data pool call request.
[0058] If the target data type is the same as the signal data type corresponding to the data pool call request, it can be determined that the target data type meets the configuration requirements of the shared data pool, and the data call request can be further executed.
[0059] In the shared data processing method of the embodiment of the present invention, a shared data pool is pre-configured, and the data types of data signals in the shared data pool are set. Through the method of data call, the management of multi-module general variables is realized. When receiving a data pool call request, first judge whether the target data type of the data to be processed meets the configuration requirements of the shared data pool, and based on the judgment result of the target data type, respond to the data pool call request. Thus, the effective management and control of multi-module general variables are realized, and a series of problems caused by arbitrary modification and update of general variables are avoided. The management of multi-module shared data is effectively simplified, and the consistency of data is ensured.
[0060] In this embodiment, a shared data processing method is provided.Figure 3 is a flowchart of a shared data processing method according to an embodiment of the present invention. As Figure 3 shown, the process includes the following steps:
[0061] Step S301: Receive a data pool call request from a data processing module. The call request carries the target data type of the data to be processed.
[0062] For details, please refer to Figure 2 step S201 of the embodiment shown, which will not be elaborated here.
[0063] Step S302: Based on a pre-configured shared data pool, judge the target data type.
[0064] Specifically, step S302 may include:
[0065] Step S3021: Determine the data signal corresponding to the data to be processed or the data processing module.
[0066] Here, a field may be set in advance in the data to be processed to determine the corresponding data signal, that is, which data Data among the data Data1 to Datan in the shared data pool needs to be read, or to which data Data to write data.
[0067] Step S3022: Determine the signal data type corresponding to the data signal.
[0068] In some optional embodiments of the present invention, the data type corresponding to each data signal may be set in advance. For example, the corresponding relationship between each data signal and the signal data type may be set by means of mapping, etc. After determining the data signal, the signal data type corresponding to the data signal can be directly obtained from the mapping.
[0069] Step S3023: When the target data type matches the signal data type, determine that the target data type meets the configuration requirements of the shared data pool.
[0070] In the shared data processing method of the embodiment of the present invention, first determine the data signal corresponding to the data to be processed or the data processing module, then determine the signal data type corresponding to the data signal. When the target data type matches the signal data type, determine that the target data type meets the configuration requirements of the shared data pool, thereby quickly and accurately judging the target data type of the data to be processed, realizing the effective management of the shared data pool, and significantly improving the data security of the shared data pool.
[0071] Step S303: Based on the judgment result of the target data type, respond to the data pool call request.
[0072] In an alternative embodiment, the data pool call request is a data read request, and step S303 described above includes:
[0073] Step a1, when the target data type meets the configuration requirements of the shared data pool, in response to the data pool call request, perform a data read operation to obtain the data to be processed from the shared data pool.
[0074] In the shared data processing method according to the embodiment of the present invention, for a data read request, when the target data type meets the configuration requirements of the shared data pool, automatically perform a data read operation in response to the data pool call request, and obtain the data to be processed from the shared data pool. By the data call method of the shared data pool, the efficiency and reliability of shared data interaction between multiple modules are effectively improved.
[0075] Step a2, when the target data type does not meet the configuration requirements of the shared data pool, discard the data to be processed.
[0076] In the shared data processing method according to the embodiment of the present invention, by discarding the data to be processed when the target data type does not meet the configuration requirements of the shared data pool, the data security of the shared data pool is effectively guaranteed.
[0077] Step a3, when the target data type does not meet the configuration requirements of the shared data pool, send a reminder message to the data processing module.
[0078] In another alternative embodiment, the data pool call request is a data write request, and step S303 described above includes:
[0079] Step b1, when the target data type meets the configuration requirements of the shared data pool, in response to the data pool call request, perform a data write operation to write the data to be processed into the shared data pool.
[0080] In the shared data processing method according to the embodiment of the present invention, for a data write request, when the target data type meets the configuration requirements of the shared data pool, perform a data write operation in response to the data pool call request, and automatically write the data to be processed into the shared data pool. Thus, by the data call method of the shared data pool, the efficiency and reliability of shared data interaction between multiple modules are effectively improved.
[0081] Step b2, when the target data type does not meet the configuration requirements of the shared data pool, discard the data to be processed.
[0082] Step a3, when the target data type does not meet the configuration requirements of the shared data pool, send a reminder message to the data processing module.
[0083] Figure 3 For other implementation details in the illustrated embodiments, reference may be made to the above Figure 1 andFigure 2 The embodiments shown are not described in detail herein.
[0084] In this embodiment, a shared data processing method is provided. Figure 4 It is a flowchart of a specific application example of the shared data processing method according to an embodiment of the present invention. As Figure 4 shown, in this specific application example, first, a shared data pool is configured and run. Further, the process includes the following steps:
[0085] Step S401, receive a data write request from data processing module Module1.
[0086] The data write request sent by data processing module Module1 may carry the target data type of the data to be processed. The data write request can directly call the data write interface of read port Write_port.
[0087] Step S402, the write interface checks whether the data type is correct.
[0088] If the data type is correct, step S403 is executed; if the data type is incorrect, step S404 is executed.
[0089] Step S403, copy the data to the shared data pool.
[0090] Specifically, reference can be made to step b1 above, which is not described in detail herein.
[0091] Step S404, discard the data and end this operation.
[0092] Specifically, reference can be made to step b2 above, which is not described in detail herein.
[0093] Step S405, receive a data read request from data processing module Module2.
[0094] The data write request sent by data processing module Module2 may carry the target data type of the data to be processed. The data read request can directly call the data read interface of read port Read_port.
[0095] Step S406, the read interface checks whether the data type is correct.
[0096] If the data type is correct, step S407 is executed; if the data type is incorrect, step S408 is executed.
[0097] Step S407, data processing module Module2 reads data from the shared data pool.
[0098] Specifically, reference can be made to step a1 above, which is not described in detail herein.
[0099] Step S408: Discard the data and end the current operation.
[0100] Specifically, reference can be made to step a2 above, which will not be elaborated here.
[0101] Figure 4 Other implementation details in the illustrated embodiments can be referred to the above Figures 1 to 3 illustrated embodiments, which will not be elaborated here.
[0102] In this embodiment, a shared data processing device is further provided. The device is used to implement the above embodiments and preferred implementation manners. Those that have been described will not be elaborated again. As used below, the term "module" can be a combination of software and / or hardware that can achieve a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware is also possible and contemplated.
[0103] This embodiment provides a shared data processing device, as Figure 5 shown, including:
[0104] A call module 501, configured to receive a data pool call request from a data processing module, where the call request carries the data type of the data to be processed;
[0105] A judgment module 502, configured to judge the data type based on a pre-configured shared data pool;
[0106] A response module 503, configured to respond to the data pool call request based on the judgment result of the target data type.
[0107] In an alternative embodiment, the judgment module 502 includes:
[0108] A signal determination unit, configured to determine the data signal corresponding to the data to be processed or the data processing module;
[0109] A type determination unit, configured to determine the signal data type corresponding to the data signal;
[0110] A determination unit, configured to determine that the target data type meets the configuration requirements of the shared data pool when the target data type matches the signal data type.
[0111] In an alternative embodiment, the data pool call request is a data read request; the response module 503 includes:
[0112] A read response unit, configured to perform a data read operation in response to the data pool call request and obtain the data to be processed from the shared data pool when the target data type meets the configuration requirements of the shared data pool.
[0113] In an alternative embodiment, the data pool call request is a data write request; the response module 503 includes:
[0114] A write response unit, configured to perform a data write operation in response to a data pool call request and write the data to be processed into the shared data pool when the target data type meets the configuration requirements of the shared data pool.
[0115] In an alternative embodiment, the response module 503 further includes:
[0116] A discard unit, configured to discard the data to be processed when the target data type does not meet the configuration requirements of the shared data pool.
[0117] In an alternative embodiment, the response module 503 further includes:
[0118] A reminder unit, configured to send a reminder message to the data processing module when the target data type does not meet the configuration requirements of the shared data pool.
[0119] The further function descriptions of the above-mentioned modules and units are the same as those in the corresponding embodiments above, and will not be elaborated here.
[0120] The shared data processing device in this embodiment is presented in the form of functional units. Here, the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and a memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.
[0121] The embodiment of the present invention further provides a computer device having the above Figure 6 shown shared data processing device.
[0122] Please refer to Figure 6 , Figure 6 which is a schematic structural diagram of a computer device provided by an alternative embodiment of the present invention. As shown in Figure 6As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Each component communicates with each other using different buses and can be installed on a common motherboard or in other ways as needed. The processor can process instructions executed within the computer device, including instructions stored in the memory or on the memory to display graphical information of the GUI on an external input / output device (such as a display device coupled to the interface). In some alternative embodiments, multiple processors and / or multiple buses can be used together with multiple memories if needed. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (such as an array of servers, a set of blade servers, or a multi-processor system). Figure 6 In the figure, a processor 10 is taken as an example.
[0123] The processor 10 can be a central processing unit, a network processor, or a combination thereof. Among them, the processor 10 can further include a hardware chip. The above hardware chip can be an application-specific integrated circuit, a programmable logic device, or a combination thereof. The above programmable logic device can be a complex programmable logic device, a field programmable gate array, a generic array logic, or any combination thereof.
[0124] Among them, the memory 20 stores instructions executable by at least one processor 10, so that at least one processor 10 executes the method shown in the above embodiments.
[0125] The memory 20 can include a program storage area and a data storage area. Among them, the program storage area can store an operating system and application programs required for at least one function; the data storage area can store data created according to the use of the computer device, etc. In addition, the memory 20 can include high-speed random access memory, and can also include non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some alternative embodiments, the memory 20 can optionally include a memory remotely set relative to the processor 10, and these remote memories can be connected to the computer device through a network. Examples of the above network include but are not limited to the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof.
[0126] The memory 20 can include volatile memory, such as random access memory; the memory can also include non-volatile memory, such as flash memory, a hard disk, or a solid-state drive; the memory 20 can also include a combination of the above types of memory.
[0127] The computer device further includes a communication interface 30 for the computer device to communicate with other devices or communication networks.
[0128] Embodiments of the present invention also provide a computer-readable storage medium. The method according to the embodiments of the present invention can be implemented in hardware, firmware, or be implemented as computer code that can be recorded on a storage medium, or be implemented as computer code that is originally stored in a remote storage medium or a non-transitory machine-readable storage medium and downloaded through a network and will be stored in a local storage medium, so that the method described herein can be stored as such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only memory, a random access memory, a flash memory, a hard disk, or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code, and when the software or computer code is accessed and executed by the computer, the processor, or the hardware, the method shown in the above embodiments is implemented.
[0129] A part of the present invention can be applied as a computer program product, for example, computer program instructions, which when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should be able to understand that the forms of existence of computer program instructions in a computer-readable medium include, but are not limited to, source files, executable files, installation package files, etc. Correspondingly, the ways in which computer program instructions are executed by a computer include, but are not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Herein, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to the computer.
[0130] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations all fall within the scope defined by the appended claims.
Claims
1. A shared data processing method, characterized in that, The method includes: Receiving a data pool call request from a data processing module, where the call request carries the target data type of the data to be processed; Judging the target data type based on a pre-configured shared data pool; Responding to the data pool call request based on the judgment result of the target data type.
2. The method according to claim 1, wherein The judging the target data type based on a pre-configured shared data pool includes: Determining the data signal corresponding to the data to be processed or the data processing module; Determining the signal data type corresponding to the data signal; When the target data type matches the signal data type, determining that the target data type meets the configuration requirements of the shared data pool.
3. The method according to claim 1, wherein The data pool call request is a data read request; The responding to the data pool call request based on the judgment result of the target data type includes: When the target data type meets the configuration requirements of the shared data pool, performing a data read operation in response to the data pool call request and obtaining the data to be processed from the shared data pool.
4. The method according to claim 1, wherein The data pool call request is a data write request; The responding to the data pool call request based on the judgment result of the target data type includes: When the target data type meets the configuration requirements of the shared data pool, performing a data write operation in response to the data pool call request and writing the data to be processed into the shared data pool.
5. The method according to claim 3 or 4, characterized in that, The responding to the data pool call request based on the judgment result of the target data type further includes: When the target data type does not meet the configuration requirements of the shared data pool, discarding the data to be processed.
6. The method according to claim 3 or 4, characterized in that The responding to the data pool call request based on the judgment result of the target data type further includes: When the target data type does not meet the configuration requirements of the shared data pool, sending a reminder message to the data processing module.
7. A shared data processing device, characterized in that, The device includes: A calling module, configured to receive a data pool call request from a data processing module, where the call request carries the target data type of the data to be processed; A judging module, configured to judge the target data type based on a pre-configured shared data pool; A responding module, configured to respond to the data pool call request based on the judgment result of the target data type.
8. A computer device, characterized in that, It includes: A memory and a processor, which are communicatively connected to each other. The memory stores computer instructions, and the processor executes the computer instructions to execute the shared data processing method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that, Computer instructions are stored on a computer-readable storage medium, and the computer instructions are used to cause a computer to execute the shared data processing method according to any one of claims 1 to 6.
10. A computer program product, characterized in that, It includes computer instructions, and the computer instructions are used to cause a computer to execute the shared data processing method according to any one of claims 1 to 6.