Implementation Method, Device, Equipment and Medium of the Metaverse in the Digital Twin Scenario

By receiving and processing binary message messages in real time in the digital twin system, and optimizing the metaverse construction with the microservice architecture and script engine, the compatibility and delay problems in the metaverse construction are solved, real-time interaction and data security are achieved, and flexible scalability and immersive experience are provided.

CN119904595BActive Publication Date: 2025-07-04ZHEJIANG CHINT INSTR & METER
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510399171.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-04-01
Publication Date
2025-07-04
Estimated Expiration
2045-04-01

AI Technical Summary

Technical Problem

The construction of the metaverse in the existing digital twin system has problems such as poor compatibility, real-time mapping and interaction delay, insufficient data security and insufficient scalability.

Method used

By receiving binary message messages in real time, multi-service access, message parsing and serialization are carried out, the meta-universe is built using an open source stream processing platform and microservice architecture, and the data filtering Bolt verification and scripting engine are used to write customized logic to realize real-time update of virtual entity status information and secure data transmission.

Benefits of technology

Improves real-time mapping and interaction effects of virtual environments, reduces latency and lag, ensures user immersive experience, and provides data security and flexibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119904595B_ABST
    Figure CN119904595B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of digital twin technology, and discloses a method, device, equipment and medium for realizing the metaverse in a digital twin scenario. The method includes: receiving binary message reports reported by users in real time; successively performing multiple service accesses, message parsing and serialization on the binary message reports to obtain a preset data format file, and sending the preset data format file to an open source stream processing platform corresponding to the theme of the digital twin scenario; accessing the preset data format file from the open source stream processing platform into the digital twin scenario, and performing message verification through data filtering Bolt verification. When the message verification passes, the preset data format file is encapsulated into an object; based on the encapsulated object, a metaverse is constructed using a microservices architecture and a script engine to modify the state information of each virtual entity. The present invention improves the real-time mapping and interaction effects of the virtual environment, enables the virtual scenario to be consistent with the real world, and achieves the purpose of real-time interaction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of digital twins, and specifically relates to a method, device, equipment and medium for realizing the metaverse in a digital twin scenario. Background Art

[0002] With the continuous development and in-depth application of digital twin technology, it has shown great potential and value in various fields. Digital twin, as a technology that closely integrates the real world and the virtual world, realizes the precise mapping and efficient management of the real world by constructing a virtual model corresponding to the real world. Here, the construction technology of the metaverse also plays a crucial role.

[0003] The defects of the metaverse technology in the existing digital twin system mainly include: there are still deficiencies in the integration with other technologies, resulting in technical barriers and compatibility problems in the construction process of the metaverse; there are still certain delays and lags in the digital twin technology in realizing the real-time mapping and interaction of the virtual environment, affecting the user experience; there are still deficiencies in the digital twin technology in terms of data security and privacy protection, and further technical guarantees and legal supervision are needed; when facing the complexity and diversity of the metaverse, the digital twin technology often shows problems of insufficient scalability and flexibility, and it is difficult to meet the future development needs of the metaverse. Summary of the Invention

[0004] In view of this, the present invention provides a method, device, equipment and medium for realizing the metaverse in a digital twin scenario to solve the problem of poor compatibility in realizing the metaverse in a digital twin scenario.

[0005] In a first aspect, the present invention provides a method for realizing the metaverse in a digital twin scenario, and the method includes:

[0006] Receiving binary message reports from users in real time;

[0007] Performing multiple service accesses, message parsing and serialization on the binary message report in sequence to obtain a preset data format file, and sending the preset data format file to an open source stream processing platform corresponding to the digital twin scenario;

[0008] Accessing the preset data format file from the open source stream processing platform into the digital twin scenario, and verifying the accessed preset data format file through a data filtering Bolt for message verification. When the message verification passes, encapsulating the preset data format file into an object;

[0009] Constructing the metaverse based on the encapsulated object using a microservices architecture, writing customized logic for the metaverse through a script engine, and modifying the state information of each virtual entity in the digital twin scenario using the microservices architecture and the metaverse with the customized logic written.

[0010] A method for realizing the metaverse in a digital twin scenario provided by the present invention receives binary message reports from users in real time, sequentially performs multiple service accesses, message parsing, and serialization on the binary message reports to obtain a preset data format file, and sends the preset data format file to an open-source stream processing platform corresponding to the theme of the digital twin scenario, improving the real-time mapping and interaction effects of the virtual environment. The preset data format file is accessed from the open-source stream processing platform into the digital twin scenario, and the preset data format file is encapsulated into an object. Based on the encapsulated object, a metaverse is constructed using a microservices architecture, and custom logic is written for the metaverse through a script engine. The microservices architecture and the metaverse with custom logic written are used to modify the status information of each virtual entity in the digital twin scenario, and the change information of the real world is obtained and pushed in real time, thereby perceiving the device status information in real time, making the virtual scenario consistent with the real world. The microservices architecture achieves the purpose of real-time and highly decoupled interaction, and makes the constructed metaverse have flexible scalability. Custom logic is written for the metaverse through the script engine to meet different application scenarios and requirements. By optimizing the data transmission and processing process, the phenomena of delay and lag are reduced, ensuring that users can obtain a smooth and immersive metaverse experience, and solving the problem of poor compatibility in realizing the metaverse in the digital twin scenario.

[0011] In an alternative embodiment, before receiving the binary message reports from users, the method for realizing the metaverse in the digital twin scenario further includes:

[0012] Obtain the full amount of data of the user; the full amount of data includes user basic information, behavior data, and transaction data;

[0013] Use a data processing tool to perform cleaning, conversion, and aggregation operations on the full amount of data to generate a business wide table;

[0014] Store the business wide table in a Redis cache and / or an HBase database.

[0015] A method for realizing the metaverse in a digital twin scenario provided by the present invention uses a data processing tool to perform cleaning, conversion, and aggregation operations on the full amount of data to generate a business wide table; stores the business wide table in a Redis cache and / or an HBase database, so that subsequent real-time processing can directly obtain data from Redis quickly, significantly reducing the IO consumption of reading and writing disks and improving the characteristics of real-time data interaction.

[0016] In an alternative embodiment, sequentially performing multiple service accesses, message parsing, and serialization on the binary message reports to obtain a preset data format file, and sending the preset data format file to an open-source stream processing platform corresponding to the theme of the digital twin scenario includes:

[0017] Use the Jetty lightweight service to perform simultaneous access operations for multiple services on binary message messages, and use Nginx to parse the binary message messages, extract the valid data of the binary message messages, and serialize them according to business requirements to obtain a preset data format file. When performing message parsing and serialization, use Nginx to perform load balancing on the loads of multiple services;

[0018] Use the WebSocket interface to send the preset data format file to the open source stream processing platform corresponding to the digital twin scenario.

[0019] A method for realizing the metaverse in a digital twin scenario provided by the present invention uses technologies such as the Jetty lightweight service and Nginx to realize the access, message parsing, and load balancing of binary message messages, provides a real-time interaction optimization technology, and improves the characteristics of real-time data interaction.

[0020] In an optional implementation manner, when performing multiple service access, message parsing, and serialization on binary message messages in sequence, it further includes:

[0021] When multiple services access simultaneously, use a blocking queue to store the binary message messages.

[0022] A method for realizing the metaverse in a digital twin scenario provided by the present invention uses a blocking queue to store binary message messages when multiple services access simultaneously, avoiding the problems of data competition and thread conflicts.

[0023] In an optional implementation manner, access the preset data format file from the open source stream processing platform into the digital twin scenario, and use the data filtering Bolt to verify and validate the access preset data format file. When the correctness verification passes, encapsulate the preset data format file into an object, including:

[0024] Use the KafkaSpout component to access the preset data format file from the open source stream processing platform into the digital twin scenario;

[0025] Use the data filtering Bolt to perform business logic processing on the preset data format file in a programming manner, and use the data filtering Bolt to verify the correctness of the preset data format file after business logic processing;

[0026] When the correctness verification passes, encapsulate the preset data format file into an object; the object is an object of a preset language type designed according to business requirements and containing the valid data of the binary message message.

[0027] A method for implementing the metaverse in a digital twin scenario provided by the present invention uses KafkaSpout to access a preset data format file from an open-source stream processing platform into the digital twin scenario, simplifying the engineering complexity. It uses a data filtering Bolt to perform business logic processing on the preset data format file in a programming manner, and verifies the correctness of the preset data format file after business logic processing through the data filtering Bolt. When the correctness verification passes, the preset data format file is encapsulated into an object; the object is an object of a preset language type designed according to business requirements and containing the valid data of the binary message, which is convenient for subsequent business logic processing.

[0028] In an alternative embodiment, a metaverse is constructed based on the encapsulated object using a microservices architecture, and custom logic is written for the metaverse through a script engine. The microservices architecture and the metaverse with the custom logic written are used to modify the state information of each virtual entity in the digital twin scenario, including:

[0029] Loading all user data corresponding to the valid data of the binary message in the encapsulated object from the Redis cache;

[0030] Constructing a metaverse based on the loaded all user data corresponding to the valid data of the binary message in the encapsulated object using a microservices architecture, and writing custom logic for the metaverse through a script engine to generate a metaverse mode;

[0031] Modifying the state information of each virtual entity in the digital twin scenario based on the metaverse mode.

[0032] A method for implementing the metaverse in a digital twin scenario provided by the present invention loads all user data corresponding to the valid data of the binary message in the encapsulated object from the Redis cache; constructs a metaverse based on the loaded all user data corresponding to the valid data of the binary message in the encapsulated object using a microservices architecture, and writes custom logic for the metaverse through a script engine to generate a metaverse mode; modifies the state information of each virtual entity in the digital twin scenario based on the metaverse mode, supports subsequent business logic processing, and helps to implement advanced functions such as personalized recommendation and precision marketing.

[0033] In an alternative embodiment, the method for implementing the metaverse in the digital twin scenario further includes:

[0034] Using a symmetric encryption algorithm to perform data transmission on the preset data format file and the encapsulated object.

[0035] A method for implementing the metaverse in a digital twin scenario provided by the present invention, the encryption means will be used in the basic framework of data real-time interaction optimization technology. To avoid situations such as data being stolen, attacked, misappropriated, etc. during the interaction, it protects the security of data transmission.

[0036] In a second aspect, the present invention provides an apparatus for implementing the metaverse in a digital twin scenario, the apparatus comprising:

[0037] A message receiving module, configured to receive binary message packets reported by a user;

[0038] A message processing module, configured to perform multiple service accesses, message parsing, and serialization on the binary message packets in sequence to obtain a preset data format file, and send the preset data format file to an open source stream processing platform corresponding to the digital twin scenario;

[0039] A file access module, configured to access the preset data format file from the open source stream processing platform into the digital twin scenario, and perform message verification on the accessed preset data format file through a data filtering Bolt, and encapsulate the preset data format file into an object when the message verification passes;

[0040] A status information modification module, configured to construct the metaverse based on the encapsulated object using a microservices architecture, write custom logic for the metaverse through a script engine, and modify the status information of each virtual entity in the digital twin scenario using the microservices architecture and the metaverse with the custom logic written.

[0041] In a third aspect, the present invention provides a computer device, comprising: 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 method for implementing the metaverse in the digital twin scenario according to the first aspect or any corresponding embodiment thereof.

[0042] In a fourth aspect, the present invention provides a computer-readable storage medium, on which computer instructions are stored, and the computer instructions are used to cause a computer to execute the method for implementing the metaverse in the digital twin scenario according to the first aspect or any corresponding embodiment thereof.

[0043] In a fifth aspect, the present invention provides a computer program product, comprising computer instructions, and the computer instructions are used to cause a computer to execute the method for implementing the metaverse in the digital twin scenario according to the first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] 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 use in the description of the specific embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention, and those of ordinary skill in the art can obtain other drawings based on these drawings without creative efforts.

[0045] Figure 1 It is a schematic flowchart of a method for implementing the metaverse in a digital twin scenario according to an embodiment of the present invention;

[0046] Figure 2 It is a schematic flowchart of another method for implementing the metaverse in a digital twin scenario according to an embodiment of the present invention;

[0047] Figure 3 It is a schematic flowchart of yet another method for implementing the metaverse in a digital twin scenario according to an embodiment of the present invention;

[0048] Figure 4 It is a schematic diagram of a metaverse microservice architecture according to an embodiment of the present invention;

[0049] Figure 5 It is a structural block diagram of an apparatus for implementing the metaverse in a digital twin scenario according to an embodiment of the present invention;

[0050] Figure 6 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. Specific Embodiments

[0051] 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. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0052] A digital twin scenario refers to creating a virtual mirror of a physical entity through digital technology to achieve comprehensive perception, mirror mapping, monitoring, and intelligent control of the real world. Digital twin technology uses advanced technologies such as the Internet of Things, artificial intelligence, and big data analysis to integrate the data of physical entities into a virtual model to form a digital application scenario.

[0053] The Metaverse is also known as the post - universe, metaphysical universe, meta - world, hyperspace, virtual space. Qian Xuesen named it the "virtual reality". The Metaverse is an online virtual space that can interact with the real world, where all events occur in real - time and have a permanent impact. Wikipedia describes the "Metaverse" as follows: The Metaverse is a virtual - enhanced physical reality, a 3D virtual space based on the future Internet that presents the characteristics of convergence and physical persistence and has the characteristics of connected perception and sharing. The Metaverse will have a profound impact on fields such as office work, gaming, healthcare, social interaction, and education. It will greatly facilitate people's daily lives through the interactive method of integrating virtual and real, and subvert people's lives imperceptibly. In the existing technologies, the digital twins integrating Metaverse technology still have the defect of insufficient integration. The embodiments of the present invention provide a method for realizing the Metaverse in a digital - twin scenario. Through technologies such as technology integration, real - time data interaction optimization technology, data security and privacy protection, the problem of poor compatibility in realizing the Metaverse in the digital - twin scenario is solved.

[0054] According to the embodiments of the present invention, there is provided an embodiment of a method for realizing the Metaverse in a digital - twin scenario. 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.

[0055] In this embodiment, a method for realizing the Metaverse in a digital - twin scenario is provided, which can be used in the above - mentioned computer terminals, such as a central processing unit, a server, etc. In the development of the digital - twin platform in this embodiment, a modular design concept is adopted. The various functional modules in the digital - twin scenario are split and encapsulated, and each module communicates and interacts according to standardized interfaces and protocols, which is easier to maintain and upgrade.

[0056] Each virtual entity (such as a device, a production line, etc.) in the digital - twin scenario needs to perform real - time data interaction with the background server through the WebSocket interface. These virtual entities, as clients, establish a connection with the server through the WebSocket protocol and send their own status information (such as position, motion state, etc.) to the server in real - time. The server, as the data - processing center, receives the data from each virtual entity, processes and analyzes it, and then sends control instructions or updated data back to the virtual entity through the WebSocket interface. The WebSocket interface is a TCP - based network protocol used to establish full - duplex communication between a browser and a server.

[0057] The application of the WebSocket interface provides reliable technical support for real-time data interaction between virtual entities and the background server. Through combined application with subsequent technologies such as MapReduce, Redis, Kafka, and Storm, rapid processing, access, and push of user data are achieved.

[0058] Figure 1 It is a flowchart of the implementation method of the metaverse in the digital twin scenario according to an embodiment of the present invention. As Figure 1 shown, the process includes the following steps:

[0059] Step S101, real-time receive the binary message reported by the user.

[0060] Specifically, the binary message refers to the message data encoded in binary format and transmitted through the network to the data real-time interaction optimization technology system in the server. For example, the binary message can be the status message of the real workshop.

[0061] The data real-time interaction optimization technology system in the server includes a combined application system of technologies such as MapReduce (MapReduce is a programming model and framework for processing large-scale data sets, mainly used in distributed computing environments), Redis (Redis is an in-memory data structure storage system used as a database, cache, and message middleware), Kafka (an open-source stream processing platform), and Storm (an open-source distributed real-time computing framework for processing large-scale streaming data).

[0062] Step S102, sequentially perform multiple service accesses, message parsing, and serialization on the binary message to obtain a preset data format file, and send the preset data format file to the open-source stream processing platform corresponding to the digital twin scenario.

[0063] Exemplarily, the preset data format is set according to actual business requirements and can be a JSON data format file, an XML data format file, etc. For example, Jetty lightweight service can be used to sequentially perform multiple service accesses on the binary message, and Nginx (Nginx is a high-performance HTTP and reverse proxy server) can be used for message parsing and serialization to obtain a preset data format file, and the preset data format file is sent to Kafka (an open-source stream processing platform) corresponding to the digital twin scenario.

[0064] Step S103, access the preset data format file from the open-source stream processing platform into the digital twin scenario, and verify the accessed preset data format file through the data filtering Bolt. When the message verification passes, encapsulate the preset data format file into an object.

[0065] Specifically, a Bolt is usually a component in a stream computing framework (such as Apache Storm) responsible for processing data streams. Data filtering Bolt verification may be a process of using a Bolt to filter data and then verifying whether the filtering operation is correctly executed and whether the filtering result meets expectations. In the Storm processing stage, a preset data format file is accessed from an open-source stream processing platform into the digital twin scenario, and message verification is performed on the accessed preset data format file through a data filtering Bolt. When the message verification passes, the preset data format file is encapsulated as an object.

[0066] Step S104: Based on the encapsulated object, build a metaverse using a microservices architecture, write custom logic for the metaverse through a script engine, and use the microservices architecture and the metaverse with the custom logic written to modify the status information of each virtual entity in the digital twin scenario.

[0067] Specifically, convert the binary message obtained from the real world into an encapsulated object, and build a metaverse using a microservices architecture based on the data in the encapsulated object, as Figure 4 shown. The microservices architecture is a software architecture style that splits a large application into a set of small, independent services. Each service is built around a specific business capability and has its own independent database, business logic, and interfaces, and can be developed, deployed, and scaled independently. These services collaborate with each other through lightweight communication mechanisms (such as HTTP / RESTful interfaces) to jointly provide complete application functions for users. Each microservice is an independent entity with its own codebase, runtime environment, and data storage. It can be upgraded, modified, and scaled independently according to its own business needs without affecting other services. Microservices interact through simple, lightweight communication protocols. Since each microservice is independent, it can be deployed independently. This means that according to the load situation of the service and business requirements, the deployment of a single service can be flexibly adjusted, such as increasing or decreasing the number of service instances. In the metaverse, when the user access volume in a specific area suddenly increases, more microservice instances responsible for rendering and interaction in that area can be quickly deployed to ensure the user experience without the need for a large-scale redeployment of the entire system. Different from the traditional monolithic architecture, the microservices architecture does not have a centralized management point. Each service is responsible for different teams or developers, and the appropriate technology stack and development method can be independently selected according to the business needs and technical characteristics of the service. In metaverse development, the team responsible for creating virtual characters can choose suitable 3D modeling technologies and programming languages to build relevant microservices, while the team responsible for social interaction functions can adopt different technical solutions to implement their services.

[0068] The script engine plays a crucial role in the metaverse, allowing developers to write customized logic for the metaverse. Developers can use specific scripting languages (such as JavaScript, etc.) to define various rules and behaviors, and can customize the behavior and appearance of the metaverse by modifying configuration files or writing scripts to meet different application scenarios and requirements.

[0069] Utilize the microservices architecture and the customized logic-written metaverse to modify the status information of each virtual entity in the digital twin scenario, such as the position and motion state of each virtual entity.

[0070] The implementation method of the metaverse in the digital twin scenario provided in this embodiment receives the binary message reported by the user in real time, performs multiple service accesses, message parsing, and serialization on the binary message in sequence to obtain a preset data format file, and sends the preset data format file to the open source stream processing platform corresponding to the digital twin scenario to enhance the real-time mapping and interaction effect of the virtual environment. The preset data format file is accessed from the open source stream processing platform into the digital twin scenario, and the preset data format file is encapsulated into an object. Based on the encapsulated object, the status information of each virtual entity in the digital twin scenario is modified, and the change information of the real world is obtained and pushed in real time, so as to perceive the device status information in real time, making the virtual scenario consistent with the real world, achieving the purpose of real-time interaction. By optimizing the data transmission and processing process, reducing latency and stuttering phenomena, it ensures that users can obtain a smooth and immersive metaverse experience, and solves the problem of poor compatibility in the implementation of the metaverse in the digital twin scenario.

[0071] In this embodiment, an implementation method of the metaverse in the digital twin scenario is provided, which can be used in computer terminals, such as central processing units, servers, etc. Figure 2 It is a flowchart of the implementation method of the metaverse in the digital twin scenario according to the embodiment of the present invention, as Figure 2 shown, and this process includes the following steps:

[0072] Step S201, obtain the full amount of data of the user; the full amount of data includes user basic information, behavior data, and transaction data; use a data processing tool to perform cleaning, conversion, and aggregation operations on the full amount of data to generate a business wide table; store the business wide table in the Redis cache and / or HBase database.

[0073] Specifically, in the data preparation stage, first, the MapReduce framework (MapReduce is a programming model and framework for processing large-scale data sets, used in a distributed computing environment) is used to efficiently process the user's full data volume, mainly including operations such as collection, cleaning, transformation, and aggregation of user data. Through the MapReduce framework, large-scale data sets can be processed distributively to generate a business-wide table, which is a wide-format data table designed to meet specific business needs and contains multiple related fields, including data in multiple dimensions such as user basic information, behavior data, and transaction data. The business-wide table is first imported into Redis (Redis is an in-memory data structure storage system, used as a database, cache, and message middleware) so that subsequent real-time processing can directly obtain data from Redis quickly, significantly reducing the IO consumption of reading and writing disks.

[0074] If the data in Redis changes within a preset interval, the latest data in Redis is imported into HBase (HBase is a distributed, column-oriented NoSQL database mainly used to store large-scale structured data, and stores data based on the Hadoop Distributed File System (HDFS, a distributed file system) and can handle data volumes in the PB level) at the preset time interval. For example, taking the intelligent factory equipment monitoring scenario as an example, the implementation process of generating a business-wide table from full data is described. The manufacturing department has deployed 1,000 industrial robots, and each device generates 20 groups of sensor data (temperature, vibration, displacement, etc.) per second. At the same time, the ERP system records equipment maintenance records, and the camera captures the production line video stream. Now, it is necessary to build a digital twin system to achieve virtual-real synchronization, including the following steps:

[0075] Step 1: Full data collection, including:

[0076] Device basic data: Static information such as device ID, model, installation location, and rated power (100 columns of structured data) are stored in MySQL. Real-time sensor data: The Kafka message queue receives binary packets (example packet: 0x3A 0xA5 [device ID] [timestamp] 0x01 [temperature value] 0x02 [vibration value]...).

[0077] Maintenance records: Fault codes, maintenance times, replaced parts, etc. are stored in the Oracle database (about 100,000 records per month). Video stream: 1080P videos (30 frames per second, with timestamp metadata) are stored in HDFS.

[0078] Step 2: MapReduce Data Processing (Cleaning Phase): Through the collected full-volume data, parse the device ID, convert NTP time to UTC, filter out abnormal device IDs, and implement the data cleaning process to exclude test data.

[0079] Step 3: Data Transformation and Association, including:

[0080] Time Dimension Alignment: Uniformly convert the device failure time (format 2023-08-15 14:30:00 CST) to UTC millisecond timestamp.

[0081] Spatial Coordinate Transformation: Convert the robot displacement data from the local coordinate system to the factory global coordinate system (using an affine transformation matrix).

[0082] Relationship Linking: The process of dynamically associating the cleaned device data with multi-dimensional business data to construct a global data view to support complex business analysis.

[0083] Step 4: Construction of the Business Wide Table The finally generated device business wide table is shown in Table 1 below:

[0084] Table 1 Device Business Wide Table

[0085]

[0086] Step S202, receive the binary message reported by the user in real time. For details, please refer to Figure 1 Step S101 of the illustrated embodiment, which will not be elaborated here.

[0087] Step S203, perform multiple service accesses, message parsing, and serialization on the binary message in sequence to obtain a preset data format file, and send the preset data format file to the open source stream processing platform corresponding to the digital twin scenario.

[0088] Specifically, the above Step S203 includes:

[0089] Step S2031, perform multiple service simultaneous access operations on the binary message using the Jetty lightweight service, and perform message parsing on the binary message using Nginx to extract the valid data of the binary message, and perform serialization according to business requirements to obtain a preset data format file. When performing message parsing and serialization, use Nginx to perform load balancing on the loads of multiple services.

[0090] Specifically, in the access stage of the message, the Jetty lightweight service is used to access the incoming binary message, and the load balancing of multiple services is achieved through Nginx (Nginx is a high-performance HTTP and reverse proxy server). The multiple services refer to multiple processing services running in the data real-time interaction optimization technology system. The Jetty lightweight service and Nginx cooperate to complete the access, message parsing, serialization, and subsequent business logic processing of the binary message. To achieve load balancing, the high-performance HTTP and reverse proxy server of Nginx are used to distribute the incoming binary message to different services for processing, thus avoiding overloading of a single service and improving the overall performance and stability of the server.

[0091] Step S2032, when multiple services access simultaneously, a blocking queue is used to store the binary message.

[0092] Specifically, each service starts multiple threads simultaneously to access the binary message. After storing it using a BlockingQueue (blocking queue), message parsing and serialization are performed. In the access stage of the message, it is parsed to extract the valid data in the message, and necessary conversions and processing are performed according to business requirements. The data obtained after serialization is usually a directly processable data format file, such as a JSON data format file, an XML data format file, etc., for subsequent business logic processing.

[0093] Step S2033, a preset data format file is sent to the open-source stream processing platform corresponding to the digital twin scenario through a WebSocket interface.

[0094] Specifically, the open-source stream processing platforms include Apache Flink, Apache Kafka Streams, etc. Here, taking Apache Kafka as an example, it is a distributed stream processing platform that can efficiently process large-scale data streams. Before use, it is necessary to ensure that the Kafka cluster has been set up and is running properly, and a topic corresponding to the digital twin scenario has been created in the cluster, such as a topic named "industrial_device_status" for receiving industrial device status data.

[0095] ‌WebSocket is a TCP-based network communication protocol designed to achieve full-duplex communication between the browser and the server. After establishing a connection through a one-time handshake process, persistent two-way data transmission can be achieved, allowing the server to actively push data to the client. A preset data format file is sent to the open-source stream processing platform corresponding to the digital twin scenario through the WebSocket interface.

[0096] Step S204: Access the preset data format file from the open-source stream processing platform into the digital twin scenario, and verify the message of the accessed preset data format file through the data filtering Bolt. When the message verification passes, encapsulate the preset data format file into an object.

[0097] Specifically, the above step S204 includes:

[0098] Step S2041: Use the KafkaSpout component to access the preset data format file from the open-source stream processing platform into the digital twin scenario.

[0099] Specifically, in the Storm processing stage, use the integrated KafkaSpout (KafkaSpout is a component in Apache Storm used to read data from Apache Kafka and pass it to downstream components in the Storm topology for processing) to access the preset data format file from the open-source stream processing platform into the digital twin scenario, which simplifies the engineering complexity.

[0100] Step S2042: Use the data filtering Bolt to perform business logic processing on the preset data format file in a programming manner, and verify the correctness of the preset data format file after the business logic processing through the data filtering Bolt.

[0101] Specifically, in this embodiment, directly write Bolt (a programming method for full-stack application development using the Bolt.new platform) to perform business logic processing. Verify the correctness of the preset data format file through the data filtering Bolt, including first verifying the format, including message structure verification, checksum verification, and field type matching, secondly verifying the message content, including threshold rationality, business rule compliance, and timing consistency verification, and finally verifying whether the result is reasonable and verifying the correctness of the message.

[0102] Step S2043: When the correctness verification passes, encapsulate the preset data format file into an object; the object is a preset language type object designed according to business requirements and containing the valid data of the binary message.

[0103] Specifically, the preset language type is the Java language type or other language types. Verify the correctness of the message through the data filtering Bolt and encapsulate it into an object. After verification, encapsulate the message into an object for subsequent business logic processing. The object refers to a Java type object or other type of object designed according to business requirements and containing the valid data of the message.

[0104] Step S205: Build a metaverse based on the encapsulated object using a microservices architecture, write customized logic for the metaverse through a script engine, and modify the status information of each virtual entity in the digital twin scenario using the microservices architecture and the metaverse with the customized logic written. For details, please refer to Figure 1 Step S104 of the embodiment shown, which will not be elaborated here.

[0105] For the method for implementing the metaverse in the digital twin scenario provided in this embodiment, a data processing tool is used to clean, transform, and aggregate all data to generate a business-wide table; the business-wide table is stored in a Redis cache and / or an HBase database so that subsequent real-time processing can directly obtain data from Redis quickly, significantly reducing the IO consumption of reading and writing disks and improving the characteristics of real-time data interaction. Technologies such as Jetty lightweight services and Nginx are used to implement the access, message parsing, and load balancing of binary message packets, providing a real-time interaction optimization technology and improving the characteristics of real-time data interaction. When multiple services are accessed simultaneously, a blocking queue is used to store binary message packets, avoiding data competition and thread conflict problems.

[0106] In this embodiment, a method for implementing the metaverse in a digital twin scenario is provided, which can be used in computer terminals such as a central processing unit, a server, etc. Figure 3 It is a flowchart of the method for implementing the metaverse in the digital twin scenario according to the embodiment of the present invention, as Figure 3 shown, and this process includes the following steps:

[0107] Step S301: Real-time receive binary message packets reported by users. For details, please refer to Figure 2 Step S202 of the embodiment shown, which will not be elaborated here.

[0108] Step S302: Perform multiple service accesses, message parsing, and serialization on the binary message packets in sequence to obtain a preset data format file, and send the preset data format file to the open-source stream processing platform corresponding to the digital twin scenario. For details, please refer to Figure 2 Step S203 of the embodiment shown, which will not be elaborated here.

[0109] Step S303: Access the preset data format file from the open-source stream processing platform into the digital twin scenario and encapsulate the preset data format file as an object. For details, please refer to Figure 2 Step S204 of the embodiment shown, which will not be elaborated here.

[0110] Step S304: Build a metaverse based on the encapsulated object using a microservices architecture, write custom logic for the metaverse through a script engine, and modify the status information of each virtual entity in the digital twin scenario using the microservices architecture and the metaverse with the custom logic written.

[0111] Specifically, the above Step S304 includes:

[0112] Step S3041: Load the full user data corresponding to the valid data of the binary message in the encapsulated object from the Redis cache.

[0113] Specifically, before starting to load data, it is first necessary to establish a connection with the Redis cache in the application. Different programming languages have their corresponding Redis client libraries. In Redis, data is usually stored in the form of key-value pairs. To obtain the full user data corresponding to the valid data of the binary message in the encapsulated object, it is first necessary to determine how to locate the key in Redis through the valid data of the binary message. After obtaining the Redis key, the full user data can be loaded from Redis.

[0114] The binary message in the encapsulated object includes a primary key, that is, the IP address. According to the primary key in the binary message of the encapsulated object, load the full user data (complete data set) from Redis, including data in multiple dimensions such as user basic information, behavior data, and transaction data. In the business logic processing stage, load the full user data from Redis according to the primary key in the message to support subsequent business processing, which helps to implement advanced functions such as personalized recommendation and precision marketing. At the same time, the activity rules saved in the foreground Web system configuration can also be loaded from Redis. After traversing and matching multiple rules, they are encapsulated into a large object and passed to the downstream push topology. After receiving the message, the push topology will traverse the channel objects encapsulated in the message object and send the message to different channels.

[0115] Step S3042: Build a metaverse based on the loaded full user data corresponding to the valid data of the binary message in the encapsulated object using a microservices architecture, write custom logic for the metaverse through a script engine, and generate a metaverse mode.

[0116] Specifically, build a user data management microservice based on the loaded full user data. This microservice is responsible for operations such as storing, querying, and updating user data. According to the business requirements of the metaverse, other microservices also need to be built, such as a virtual scene construction microservice and a virtual item management microservice. Taking the virtual scene construction microservice as an example, it is responsible for building a virtual scene according to user data and other relevant configurations.

[0117] Use configuration files (such as JSON, YAML, XML, etc.) to define the configuration parameters and behaviors of each microservice module, and introduce a script engine (such as Python) to support complex customization logic. The behavior and appearance of the metaverse can be customized by modifying the configuration file or writing scripts to meet different application scenarios and requirements.

[0118] Step S3043, modify the status information of each virtual entity in the digital twin scenario based on the metaverse mode.

[0119] Specifically, in the digital twin scenario, each virtual entity has its corresponding data and logic in the metaverse. A mapping relationship needs to be established to accurately find the virtual entities in the digital twin scenario according to the metaverse mode. Assume that in the digital twin scenario, each virtual entity has a unique identifier, and the association relationships between these identifiers and user data, scene elements, etc. are also recorded in the metaverse mode. Determine the updates required for the status of virtual entities in the digital twin scenario based on the business logic and user data in the metaverse mode.

[0120] Step S305, use a symmetric encryption algorithm to perform data transmission on the preset data format file and the encapsulated object.

[0121] Specifically, to ensure the security of the data in the real-time data interaction optimization technology system during transmission and storage, the symmetric encryption algorithm AES-256 is used for data transmission, that is, the symmetric encryption algorithm AES-256 is used for data transmission in steps S301, S302, S303, and S304.

[0122] Among them, the symmetric encryption algorithm AES-256 supports different key lengths and can effectively protect system data from being illegally obtained. During data transmission, the TLS protocol (Transport Layer Security) is used to ensure the encryption and integrity of the data during transmission. At the same time, the data is encrypted and stored, and the system data is stored on the server in an encrypted form. Even if the server is illegally accessed, the system plaintext data cannot be directly obtained. This encryption method will be adopted in the basic framework of the real-time data interaction optimization technology to avoid situations such as data being stolen, attacked, or misappropriated during interaction, protecting the security of the data.

[0123] It should be noted that during data transmission, based on the role-based access control model, different access permissions are assigned to users of different roles. Such as administrators, ordinary users, etc., and corresponding access permissions are assigned to each role. For example, administrators can access and modify the data of all users, while ordinary users can only access their own data. Through the symmetric encryption algorithm AES-256, unauthorized access and data leakage are effectively prevented.

[0124] When collecting user data, users will be clearly informed of the purpose and scope of the data, and their explicit consent will be obtained. When using user data, relevant laws, regulations, and privacy policies will be strictly adhered to to ensure the legality and compliance of user data. At the same time, technical means such as data desensitization and anonymization are also adopted to further protect users' privacy information. At the same time, the running status of the system and user behavior are also monitored in real time. By monitoring access to edge data and presetting script button information, if a user triggers an event, anomaly detection and analysis technologies will be adopted to promptly detect and handle abnormal events to ensure the stable operation of the system and the security of user data.

[0125] The method for realizing the metaverse in the digital twin scenario provided in this embodiment loads the full user data corresponding to the valid data of the binary message in the encapsulated object from the Redis cache; modifies the status information of each virtual entity in the digital twin scenario according to the loaded full user data corresponding to the valid data of the binary message in the encapsulated object, supports subsequent business logic processing, and helps to realize advanced functions such as personalized recommendation and precision marketing. Encryption means will be adopted in the basic framework of data real-time interaction optimization technology to protect the security of data transmission by avoiding situations such as data being stolen, attacked, or misappropriated during interaction.

[0126] As one or more specific application embodiments of the embodiment of the present invention, the method for realizing the metaverse in the digital twin scenario provided by the present invention is further described in detail as follows:

[0127] A certain company needs to operate 20 automated manufacturing workshops, manage more than 10,000 automated guided vehicles (AGVs), 500 stackers, and 2,000 RFID scanning nodes. The enterprise needs to build a metaverse system for a digital twin scenario that real-time maps the physical world, and the goals include:

[0128] 1. Real-time status mapping: The running status of all devices (such as location, temperature, power) needs to be accurately synchronized in the digital twin.

[0129] 2. Dynamic expansion support: When new devices or warehouses are added, the metaverse scenario needs to be updated in a timely manner.

[0130] 3. Intelligent decision-making: Realize advanced functions such as path optimization, fault prediction, and resource scheduling of AGV cars.

[0131] 4. Cross-border collaboration: The data transmission delay across data centers needs to be less than 200 milliseconds, while ensuring data security.

[0132] The method for realizing the metaverse in the digital twin scenario includes the following steps:

[0133] 1. Real-time data access and parsing:

[0134] Physical devices (such as AGVs and sensors) continuously send binary data packets through Internet of Things protocols. These packets adopt a compact encoding format (such as Protobuf) and contain timestamps, device IDs, coordinate information, sensor readings, etc. Key fields are extracted from the data and converted into a structured format, and illegal data is filtered.

[0135] 2. Business data integration:

[0136] The parsed data is dynamically associated with external business systems (such as maintenance records) to construct a global device view. For example, combine the real-time coordinates of an AGV with a warehouse map to calculate whether it is in a legal area; associate historical maintenance records to determine whether there are potential failure risks for the device. The integrated data is stored in the form of a "wide table".

[0137] 3. Multi-layer data verification, that is, multi-level verification is implemented through the data filtering Bolt component:

[0138] Protocol layer verification: Check the integrity of the packet structure (such as start and end identifiers, checksum), field types (such as strings, numerical values), and value range.

[0139] Business layer verification: Judge whether the device status conforms to business rules. For example, whether the movement path of an AGV matches the task and whether the battery power supports the current load. Temporal consistency verification: Ensure that the data timestamps increase strictly to avoid state rollback due to network latency.

[0140] The verified data is encapsulated into an object (such as AGVEntity), which contains key attributes such as device ID, location, and speed, for subsequent microservice calls.

[0141] 4. Microservices-based metaverse engine, that is, the system adopts a microservices architecture and splits the core functions into independent services:

[0142] User management service: Handles permission control and personalized configuration.

[0143] Scene rendering service: Generates a 3D visualization interface in real time according to the device status, and supports multi-level of detail (LOD) rendering to optimize performance.

[0144] Physical simulation service: Calculates physical behaviors such as device collisions and path planning.

[0145] Intelligent decision-making service: Predicts device failures based on machine learning models and optimizes resource scheduling strategies.

[0146] Services communicate through RESTful APIs and message queues to achieve loose coupling and horizontal scalability.

[0147] The implementation method of the metaverse in the digital twin scenario provided by this embodiment solves the defects and deficiencies existing in the construction of the existing digital twin system in the construction of the metaverse through innovative points such as deep technology integration, real-time interaction optimization, data security and privacy protection, and scalable and flexible architecture, providing strong technical support for the construction and development of the metaverse.

[0148] In this embodiment, an implementation device of the metaverse in the digital twin scenario is also provided. This device is used to implement the above-mentioned embodiments and preferred implementation manners, and those that have been described will not be repeated. As used hereinafter, the term "module" can be a combination of software and / or hardware that realizes 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.

[0149] This embodiment provides an implementation device of the metaverse in the digital twin scenario, as Figure 5 shown, including:

[0150] A message receiving module 501, configured to receive binary message packets reported by a user;

[0151] A message processing module 502, configured to perform multiple service accesses, message parsing, and serialization on the binary message packet in sequence to obtain a preset data format file, and send the preset data format file to an open source stream processing platform corresponding to the digital twin scenario;

[0152] A file access module 503, configured to access the preset data format file from the open source stream processing platform into the digital twin scenario, and perform message verification on the accessed preset data format file through data filtering Bolt. When the message verification passes, the preset data format file is encapsulated into an object;

[0153] A status information modification module 504, configured to construct a metaverse based on the encapsulated object using a microservices architecture, write custom logic for the metaverse through a script engine, and modify the status information of each virtual entity in the digital twin scenario using the microservices architecture and the metaverse with the custom logic written.

[0154] In some optional implementation manners, the message processing module 502 includes:

[0155] A message processing unit, configured to perform multiple service access operations on the binary message packet simultaneously using the Jetty lightweight service, perform message parsing on the binary message packet using Nginx, extract the valid data of the binary message packet, and perform serialization according to service requirements to obtain a preset data format file. When performing message parsing and serialization, Nginx is used to perform load balancing on the loads of multiple services.

[0156] A file sending unit, configured to send a preset data format file to an open source stream processing platform corresponding to a digital twin scenario through a WebSocket interface. A blocking queue storage unit, configured to store binary message messages in a blocking queue when multiple services are accessed simultaneously.

[0157] In some alternative embodiments, the file access module 503 includes:

[0158] A file access unit, configured to access a preset data format file from an open source stream processing platform into a digital twin scenario by using a KafkaSpout component.

[0159] A service logic processing and correctness verification unit, configured to perform service logic processing on a preset data format file in a programming manner by using a data filtering Bolt, and verify the correctness of the preset data format file after service logic processing through the data filtering Bolt.

[0160] An encapsulation unit, configured to encapsulate a preset data format file into an object after the correctness verification passes; the object is a preset language type object designed according to service requirements and including valid data of binary message messages.

[0161] In some alternative embodiments, the status information modification module 504 includes:

[0162] A data loading unit, configured to load all user data corresponding to the valid data of the binary message message in the encapsulated object from a Redis cache.

[0163] A metaverse construction unit, configured to construct a metaverse by using a microservice architecture according to the loaded all user data corresponding to the valid data of the binary message message in the encapsulated object, and write custom logic for the metaverse through a script engine to generate a metaverse mode;

[0164] A status information modification unit, configured to modify the status information of each virtual entity in the digital twin scenario based on the metaverse mode.

[0165] In some alternative embodiments, the apparatus for implementing a metaverse in a digital twin scenario further includes:

[0166] A data preparation module, configured to obtain all user data; the all user data includes user basic information, behavior data, and transaction data; perform cleaning, conversion, and aggregation operations on the all user data by using a data processing tool to generate a service wide table; store the service wide table in a Redis cache and / or an HBase database.

[0167] The further function descriptions of the above-mentioned various modules and units are the same as those in the corresponding above-mentioned embodiments, and will not be elaborated here.

[0168] In the digital twin scenario of this embodiment, the implementation device of the metaverse 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.

[0169] An embodiment of the present invention further provides a computer device having the above Figure 5 implementation device of the metaverse in the digital twin scenario shown.

[0170] Please refer to Figure 6 , Figure 6 which is a schematic structural diagram of a computer device provided by an optional embodiment of the present invention. As shown in Figure 6 , the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including a high-speed interface and a low-speed interface. Each component communicates with each other using different buses and can be installed on a common motherboard or installed 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 optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. 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 Take one processor 10 as an example in

[0171] The processor 10 can be a central processor, 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 general array logic, or any combination thereof.

[0172] Among them, the memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.

[0173] The memory 20 may include a program storage area and a data storage area. The program storage area may store an operating system and application programs required for at least one function. The data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory and may also include a non-transitory memory, such as at least one magnetic disk storage device, a flash memory device, or other non-transitory solid-state storage devices. In some alternative embodiments, the memory 20 may optionally include a memory remotely disposed relative to the processor 10, and these remote memories may be connected to the computer device through a network. Examples of the above network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0174] The memory 20 may include a volatile memory, such as a random access memory. The memory may also include a non-volatile memory, such as a flash memory, a hard disk, or a solid-state drive. The memory 20 may further include a combination of the above types of memories.

[0175] The computer device further includes an input device 30 and an output device 40. The processor 10, the memory 20, the input device 30, and the output device 40 may be connected through a bus or other means. Figure 6 Taking connection through a bus as an example.

[0176] The input device 30 may receive input digital or character information and generate key signal inputs related to the user settings and function controls of the computer device, such as a touch screen, a keypad, a mouse, a trackpad, a touchpad, a pointing stick, one or more mouse buttons, a trackball, a joystick, etc. The output device 40 may include a display device, an auxiliary lighting device (e.g., an LED), and a haptic feedback device (e.g., a vibration motor), etc. The above display device includes but is not limited to a liquid crystal display, a light-emitting diode, a display, and a plasma display. In some alternative embodiments, the display device may be a touch screen.

[0177] 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 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.

[0178] 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.

[0179] Although the embodiments of the present invention are 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 method for realizing the metaverse in a digital twin scenario, characterized in that, The method includes: Receiving binary message reports from users in real time; Performing multiple service accesses, message parsing, and serialization on the binary message in sequence to obtain a preset data format file, and sending the preset data format file to the open source stream processing platform corresponding to the digital twin scenario theme; Performing multiple service accesses, message parsing, and serialization on the binary message in sequence to obtain a preset data format file, and sending the preset data format file to the open source stream processing platform corresponding to the digital twin scenario theme, including: Using the Jetty lightweight service to perform multiple service simultaneous access operations on the binary message, and using Nginx to parse the binary message to extract the valid data of the binary message, and performing serialization according to business requirements to obtain a preset data format file, and using Nginx to perform load balancing on the loads of multiple services when performing message parsing and serialization; Using the WebSocket interface to send the preset data format file to the open source stream processing platform corresponding to the digital twin scenario theme; Accessing the preset data format file from the open source stream processing platform into the digital twin scenario, and verifying the message of the accessed preset data format file through the data filtering Bolt, and encapsulating the preset data format file into an object when the message verification passes; Building a metaverse based on the encapsulated object using a microservices architecture, and writing custom logic for the metaverse through a script engine, and modifying the status information of each virtual entity in the digital twin scenario using the microservices architecture and the metaverse with the custom logic written; 2. The method according to claim 1, characterized in that, Before receiving the binary message reports from users, the method further includes: Obtaining the full amount of data of the user; the full amount of data includes user basic information, behavior data, and transaction data; Performing cleaning, transformation, and aggregation operations on the full amount of data using a data processing tool to generate a business wide table; Storing the business wide table in the Redis cache and / or the HBase database.

3. The method according to claim 1, wherein Performing multiple service accesses, message parsing, and serialization on the binary message in sequence further includes: When multiple services access simultaneously, using a blocking queue to store the binary message.

4. The method according to claim 1, wherein Accessing the preset data format file from the open source stream processing platform into the digital twin scenario, and verifying the message of the accessed preset data format file through the data filtering Bolt, and encapsulating the preset data format file into an object when the correctness verification passes, including: Using the KafkaSpout component to access the preset data format file from the open source stream processing platform into the digital twin scenario; Performing business logic processing on the preset data format file in a programming manner using the data filtering Bolt, and verifying the correctness of the preset data format file after the business logic processing through the data filtering Bolt; Encapsulating the preset data format file into an object when the correctness verification passes; the object is an object of a preset language type designed according to business requirements and containing the valid data of the binary message.

5. The method according to claim 4, wherein Construct a metaverse based on the encapsulated object using a microservices architecture, write custom logic for the metaverse through a script engine, and modify the status information of each virtual entity in the digital twin scenario using the microservices architecture and the metaverse with the custom logic written, including: Load the full user data corresponding to the valid data of the binary message in the encapsulated object from the Redis cache; Construct a metaverse based on the loaded full user data corresponding to the valid data of the binary message in the encapsulated object using a microservices architecture, write custom logic for the metaverse through a script engine, and generate a metaverse mode; Modify the status information of each virtual entity in the digital twin scenario based on the metaverse mode.

6. The method according to claim 1, characterized in that, The method further includes: Use a symmetric encryption algorithm to perform data transmission on a preset data format file and the encapsulated object.

7. An implementation device for the metaverse in a digital twin scenario, characterized in that, The device includes: A message receiving module, configured to receive binary message reports from users in real time; A message processing module, configured to perform multiple service accesses, message parsing, and serialization on the binary message in sequence to obtain a preset data format file, and send the preset data format file to an open source stream processing platform corresponding to the theme of the digital twin scenario; performing multiple service accesses, message parsing, and serialization on the binary message in sequence to obtain a preset data format file, and sending the preset data format file to an open source stream processing platform corresponding to the theme of the digital twin scenario, including: Perform multiple service simultaneous access operations on the binary message using the Jetty lightweight service, perform message parsing on the binary message using Nginx, extract the valid data of the binary message, and perform serialization according to business requirements to obtain a preset data format file, and use Nginx to perform load balancing on the loads of multiple services when performing message parsing and serialization; Send the preset data format file to the open source stream processing platform corresponding to the theme of the digital twin scenario using a WebSocket interface; A file access module, configured to access the preset data format file from the open source stream processing platform into the digital twin scenario, and verify the message of the accessed preset data format file through a data filtering Bolt, and encapsulate the preset data format file into an object when the message verification passes; A status information modification module, configured to construct a metaverse based on the encapsulated object using a microservices architecture, write custom logic for the metaverse through a script engine, and modify the status information of each virtual entity in the digital twin scenario using the microservices architecture and the metaverse with the custom logic written.

8. A computer device, characterized in that, Including: A memory and a processor, which communicate with each other, the memory stores computer instructions, and the processor executes the computer instructions to execute the method for implementing the metaverse in the digital twin scenario according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, Computer instructions are stored on the computer-readable storage medium, and the computer instructions are used to cause a computer to execute the method for implementing the metaverse in the digital twin scenario according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Digital twin intelligent monitoring system for unmanned fully mechanized coal mining face of mine

    CN111208759A

  • Server front positioning method

    WO2017166097A1