Method, device and equipment for realizing meta universe in digital twinning scene and medium

By receiving and processing binary message messages in real time in the digital twin system, and using microservice architecture and script engine to build the metaverse, the problem of poor compatibility of the metaverse in the existing technology is solved, efficient real-time mapping and interaction are achieved, and user experience is improved.

CN119904595AActive Publication Date: 2025-04-29ZHEJIANG CHINT INSTR & METER
View PDF 6 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In existing digital twin systems, metacosmic technology has problems such as poor compatibility, real-time mapping and interaction latency, insufficient data security and privacy protection, and insufficient scalability and flexibility.

Method used

By receiving binary message messages reported by users in real time, multi-service access, message analysis and serialization are performed, preset data format files are generated, and they are sent to the open source stream processing platform to connect to digital twin scenarios, build a metaverse based on the microservice architecture, write custom logic through the script engine, and modify the status information of the virtual entity.

Benefits of technology

It improves the real-time mapping and interaction effect of the virtual environment, enhances the characteristics of real-time data interaction, reduces delays and lags, ensures that users have a smooth and immersive meta-universe experience, and solves the problem of poor compatibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119904595A_ABST
    Figure CN119904595A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of digital twinning, and discloses a method, a device, equipment and a medium for realizing meta universe in a digital twinning scene, and the method comprises the following steps: receiving a binary message reported by a user in real time; sequentially carrying out multiple service accesses, message analysis and serialization on the binary message to obtain a preset data format file, and sending the preset data format file to an open source stream processing platform of a theme corresponding to the digital twin scene; accessing the file in the preset data format into the digital twin scene from the open source stream processing platform, performing message verification through data filtering Bolt verification, and packaging the file in the preset data format into an object after the message verification is passed; and constructing a meta-universe by adopting a micro-service architecture and a script engine based on the packaged object so as to modify state information of each virtual entity. The real-time mapping and interaction effects of the virtual environment are improved, the virtual scene and the real world are kept consistent, and the purpose of real-time interaction is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] With the continuous development and deepening application of digital twin technology, it has shown great potential and value in various fields. As a technology that closely integrates the real world with the virtual world, digital twin achieves accurate mapping and efficient management of the real world by building a virtual model corresponding to the real world. Here, the construction technology of the metaverse also plays a vital role.

[0003] The defects of metaverse technology in existing digital twin systems mainly include: there are still deficiencies in integration with other technologies, resulting in technical barriers and compatibility issues in the construction of the metaverse; digital twin technology still has certain delays and freezes in realizing real-time mapping and interaction of virtual environments, affecting the user experience; digital twin technology still has deficiencies in data security and privacy protection, and technical support and legal supervision need to be further strengthened; when faced with the complexity and diversity of the metaverse, digital twin technology often exhibits problems of insufficient scalability and flexibility, making it difficult to meet the needs of future development 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 of the metaverse realization in the digital twin scenario.

[0005] In a first aspect, the present invention provides a method for realizing a metaverse in a digital twin scenario, the method comprising: Receive binary message messages reported by users in real time; Perform multiple service access, 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 of the corresponding topic of the digital twin scene; Connect the preset data format file from the open source stream processing platform to the digital twin scene, and perform message verification on the connected preset data format file through data filtering Bolt verification. When the message verification passes, encapsulate the preset data format file as an object; Based on the encapsulated objects, the metaverse is built using a microservice architecture, and custom logic is written for the metaverse through a script engine. The microservice architecture and the metaverse with custom logic are used to modify the status information of each virtual entity in the digital twin scene.

[0006] The present invention provides a method for realizing the metaverse in a digital twin scene, which receives binary message messages reported by users in real time, performs multiple service access, message parsing and serialization on the binary message messages in sequence, obtains a preset data format file, and sends the preset data format file to an open source stream processing platform of a corresponding theme of the digital twin scene, thereby improving the real-time mapping and interaction effects of the virtual environment, accesses the preset data format file from the open source stream processing platform to the digital twin scene, and encapsulates the preset data format file as an object, constructs the metaverse based on the encapsulated object using a microservice architecture, and writes customized logic for the metaverse through a script engine, using a microservice architecture The metaverse with customized logic can modify the status information of each virtual entity in the digital twin scene, obtain real-time push information of changes in the real world, and then perceive the device status information in real time, so that the virtual scene and the real world are consistent. The microservice architecture is adopted to achieve the purpose of real-time and highly decoupled interaction, and the constructed metaverse has flexible scalability. Custom logic is written for the metaverse through the script engine to meet different application scenarios and needs. By optimizing data transmission and processing processes, delays and freezes are reduced to ensure that users can get a smooth and immersive metaverse experience, which solves the problem of poor compatibility of the metaverse in the digital twin scene.

[0007] In an optional implementation, before receiving the binary message reported by the user, the method for implementing the metaverse in the digital twin scenario further includes: Obtain the user's full data; the full data includes the user's basic information, behavior data and transaction data; Use data processing tools to clean, transform, and aggregate all data to generate business wide tables; Store business wide tables in Redis cache and / or HBase database.

[0008] The present invention provides a method for realizing the metaverse in a digital twin scenario, which uses a data processing tool to clean, convert 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 quickly from Redis, significantly reducing the IO consumption of reading and writing disks, and improving the characteristics of real-time data interaction.

[0009] In an optional implementation, multiple service accesses, message parsing and serialization are performed on the binary message in sequence to obtain a preset data format file, and the preset data format file is sent to an open source stream processing platform corresponding to the theme of the digital twin scene, including: Jetty lightweight service is used to perform simultaneous access operations on binary message messages by multiple services, and Nginx is used to parse binary message messages, extract valid data from binary message messages, and serialize them according to business requirements to obtain preset data format files. Nginx is used to load balance the loads of multiple services during message parsing and serialization. The WebSocket interface is used to send the preset data format file to the open source stream processing platform corresponding to the topic of the digital twin scene.

[0010] The present invention provides a method for realizing the metaverse in a digital twin scenario, which utilizes Jetty lightweight services and technologies such as Nginx to implement binary message access, message parsing and load balancing, provides a real-time interaction optimization technology, and improves the characteristics of real-time data interaction.

[0011] In an optional implementation, performing multiple service access, message parsing and serialization on the binary message in sequence further includes: When multiple services are connected at the same time, a blocking queue is used to store binary message.

[0012] The present invention provides a method for implementing the metaverse in a digital twin scenario. When multiple services are connected at the same time, a blocking queue is used to store binary message messages, thereby avoiding the problems of data competition and thread conflict.

[0013] In an optional implementation, a preset data format file is connected from an open source stream processing platform to a digital twin scenario, and the connected preset data format file is verified by a data filtering Bolt verification. When the correctness verification passes, the preset data format file is encapsulated as an object, including: Use the KafkaSpout component to connect preset data format files from the open source stream processing platform to the digital twin scenario; Use data filtering Bolt to process the business logic of the preset data format file in a programmatic manner, and verify the correctness of the preset data format file after business logic processing through data filtering Bolt; When the correctness verification is passed, the preset data format file is encapsulated as an object; the object is an object of a preset language type designed according to business requirements and containing valid data of a binary message.

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

[0015] In an optional implementation, a metaverse is constructed based on the encapsulated object using a microservice architecture, and a custom logic is written for the metaverse through a script engine. The microservice architecture and the metaverse with the custom logic written are used to modify the state information of each virtual entity in the digital twin scene, including: Load the full amount of user data corresponding to the valid data of the binary message in the encapsulated object from the Redis cache; The metaverse is constructed using a microservice architecture based on the full user data corresponding to the valid data of the binary message in the encapsulated object, and a script engine is used to write customized logic for the metaverse to generate a metaverse model. Modify the state information of each virtual entity in the digital twin scene based on the metaverse model.

[0016] The present invention provides a method for implementing a metaverse in a digital twin scenario, which loads full user data corresponding to valid data of binary message messages in an encapsulated object from a Redis cache; a metaverse is constructed using a microservice architecture based on the loaded full user data corresponding to valid data of binary message messages in an encapsulated object, and a customized logic is written for the metaverse through a script engine to generate a metaverse model; the status information of each virtual entity in the digital twin scenario is modified based on the metaverse model to support subsequent business logic processing, which helps to realize advanced functions such as personalized recommendations and precision marketing.

[0017] In an optional implementation, the method for implementing the metaverse in a digital twin scenario further includes: A symmetric encryption algorithm is used to transmit data in preset data format files and encapsulated objects.

[0018] The present invention provides a method for realizing the metaverse in a digital twin scenario. Encryption means will be adopted in the basic framework of real-time data interaction optimization technology to avoid the data in the interaction from being stolen, attacked, misappropriated, etc., thereby protecting the security of data transmission.

[0019] In a second aspect, the present invention provides a device for realizing a metaverse in a digital twin scenario, the device comprising: A message receiving module, used to receive binary message reported by users; The message processing module is used to perform multiple service access, message parsing and serialization on binary message messages in sequence, obtain a preset data format file, and send the preset data format file to the open source stream processing platform of the corresponding topic of the digital twin scene; The file access module is used to access the preset data format file from the open source stream processing platform into the digital twin scene, and perform message verification on the accessed preset data format file through the data filtering Bolt verification. When the message verification passes, the preset data format file is encapsulated as an object; The status information modification module is used to build a metaverse based on the encapsulated objects using a microservice architecture, and to write customized logic for the metaverse through a script engine. The microservice architecture and the metaverse with customized logic are used to modify the status information of each virtual entity in the digital twin scene.

[0020] In a third aspect, the present invention provides a computer device comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the computer instructions to execute the method for implementing the metaverse in a digital twin scenario of the first aspect or any corresponding embodiment thereof.

[0021] In a fourth aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the method for implementing a metaverse in a digital twin scenario of the first aspect or any corresponding embodiment thereof.

[0022] In a fifth aspect, the present invention provides a computer program product, comprising computer instructions, which are used to enable a computer to execute the method for implementing a metaverse in a digital twin scenario of the above-mentioned first aspect or any corresponding embodiment. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0024] Figure 1 is a flowchart of a method for implementing a metaverse in a digital twin scenario according to an embodiment of the present invention; Figure 2is a flow chart of a method for implementing a metaverse in another digital twin scenario according to an embodiment of the present invention; Figure 3 is a flowchart of a method for implementing a metaverse in another digital twin scenario according to an embodiment of the present invention; Figure 4 is a schematic diagram of a metaverse microservice architecture according to an embodiment of the present invention; Figure 5 is a structural block diagram of a device for implementing a metaverse in a digital twin scenario according to an embodiment of the present invention; Figure 6 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0025] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0026] ‌Digital twin scene‌ refers to the use of digital technology to create a virtual mirror of a physical entity, achieving 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 virtual models to form digital application scenarios.

[0027] Metaverse is also called metaverse, metaphysical universe, metarealm, supersensory space, virtual space. Qian Xuesen named it spiritual realm. Metaverse is an online virtual space that can interact with the real world, in which all events occur in real time and have permanent influence. Wikipedia describes "Metaverse" as follows: Metaverse is a physical reality enhanced by virtuality. It is a 3D virtual space with connection perception and sharing characteristics based on the future Internet that presents convergence and physical persistence characteristics. Metaverse will have a profound impact on the fields of office, games, medical care, social interaction, education, etc. It will greatly facilitate people's daily lives through the interactive way of blending virtual and reality, and subvert people's lives in a subtle way. Digital twins that integrate metaverse technology in the prior art still have the defect of insufficient integration. The embodiment of the present invention provides a method for realizing metaverse in a digital twin scene, which solves the problem of poor compatibility of metaverse in digital twin scenes through technology fusion, data real-time interactive optimization technology, data security and privacy protection and other technologies.

[0028] According to an embodiment of the present invention, an embodiment of a method for realizing a metaverse in a digital twin scenario is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in an order different from that shown here.

[0029] In this embodiment, a method for implementing the metaverse in a digital twin scenario is provided, which can be used for the above-mentioned computer terminals, such as central processing units, servers, etc. In the development of the digital twin platform in this embodiment, a modular design concept is adopted to split and encapsulate various functional modules in the digital twin scenario. Each module follows standardized interfaces and protocols for communication and interaction, which is easier to maintain and upgrade.

[0030] Each virtual entity in the digital twin scene (such as equipment, production lines, etc.) needs to interact with the background server in real time through the WebSocket interface. As clients, these virtual entities establish a connection with the server through the WebSocket protocol and send their status information (such as location, motion status, etc.) to the server in real time. The server, as a data processing center, receives data from each virtual entity, processes and analyzes it, and then sends control instructions or update 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 the browser and the server.

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

[0032] Figure 1 is a flow chart of a method for implementing a metaverse in a digital twin scenario according to an embodiment of the present invention, such as Figure 1 As shown, the process includes the following steps: Step S101: receiving a binary message reported by a user in real time.

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

[0034] The technology system for real-time interactive optimization of data 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).

[0035] Step S102: Perform multiple service access, 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 of the corresponding topic of the digital twin scene.

[0036] Exemplarily, the preset data format is set according to actual business needs, and can be a JSON data format file, an XML data format file, etc. For example, the Jetty lightweight service can be used to access multiple services in sequence for binary message messages, and the message can be parsed and serialized through Nginx (‌Nginx is a high-performance HTTP and reverse proxy server) to obtain a preset data format file, and the preset data format file is sent to Kafka (open source stream processing platform) of the corresponding topic of the digital twin scene.

[0037] Step S103: Connect the preset data format file from the open source stream processing platform to the digital twin scene, and perform message verification on the connected preset data format file through data filtering Bolt verification. When the message verification passes, the preset data format file is encapsulated as an object.

[0038] Specifically, 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 the process of using Bolt to filter data and verify whether the filtering operation is performed correctly and whether the filtering results meet expectations. In the Storm processing stage, the preset data format file is connected to the digital twin scene from the open source stream processing platform, and the preset data format file is verified through the data filtering Bolt verification. When the message verification passes, the preset data format file is encapsulated as an object.

[0039] Step S104, build a metaverse based on the encapsulated object using a microservice architecture, write custom logic for the metaverse through a script engine, and use the microservice architecture and the metaverse with the custom logic to modify the status information of each virtual entity in the digital twin scene.

[0040] Specifically, the binary message obtained from the real world is converted into an encapsulated object, and the metaverse is constructed using a microservice architecture based on the data in the encapsulated object. Figure 4 As shown in the figure, microservice architecture is a software architecture style that splits a large application into a set of small, independent services. Each service is built around specific business capabilities, has its own independent database, business logic and interface, and can be independently developed, deployed and expanded. These services collaborate with each other through lightweight communication mechanisms (such as HTTP / RESTful interfaces) to provide users with complete application functions. Each microservice is an independent individual with its own code base, operating environment and data storage. It can be upgraded, modified and expanded independently according to its own business needs without affecting other services. Microservices interact with each other through simple, lightweight communication protocols. Since each microservice is independent, it can be deployed independently. This means that a single service can be flexibly deployed and adjusted according to the load of the service and business needs, such as increasing or decreasing the number of service instances. In the metaverse, when the number of user visits to a specific area suddenly increases, more microservice instances responsible for rendering and interaction in that area can be quickly deployed to ensure user experience without large-scale redeployment of the entire system. Unlike the traditional monolithic architecture, the microservice architecture does not have a centralized management point. Each service is managed by a different team or developer, who can choose the appropriate technology stack and development method based on the business needs and technical characteristics of the service. In the development of the metaverse, the team responsible for creating virtual characters can choose appropriate 3D modeling technology and programming languages ​​to build related microservices, while the team responsible for social interaction functions can use different technical solutions to implement their services.

[0041] The scripting engine plays a vital 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 needs.

[0042] Use the microservice architecture and the metaverse with customized logic to modify the state information of each virtual entity in the digital twin scene, such as the location and motion status of each virtual entity.

[0043] The implementation method of the metaverse in the digital twin scene provided in this embodiment receives binary message messages reported by users in real time, performs multiple service access, message parsing and serialization on the binary message messages in sequence, obtains a preset data format file, and sends the preset data format file to the open source stream processing platform of the corresponding theme of the digital twin scene, so as to improve the real-time mapping and interaction effect of the virtual environment, access the preset data format file from the open source stream processing platform to the digital twin scene, and encapsulate the preset data format file into an object, and modify the status information of each virtual entity in the digital twin scene based on the encapsulated object, obtain the real-world change information push in real time, and then perceive the device status information in real time, so that the virtual scene and the real world are consistent, and the purpose of real-time interaction is achieved. By optimizing the data transmission and processing process, delays and freezes are reduced, ensuring that users can obtain a smooth and immersive metaverse experience, and solving the problem of poor compatibility of the metaverse in the digital twin scene.

[0044] In this embodiment, a method for realizing the metaverse in a digital twin scenario is provided, which can be used in computer terminals, such as central processing units, servers, etc. Figure 2 is a flow chart of a method for implementing a metaverse in a digital twin scenario according to an embodiment of the present invention, such as Figure 2 As shown, the process includes the following steps: Step S201, obtain the user's full data; the full data includes the user's basic information, behavior data and transaction data; use data processing tools to clean, convert and aggregate the full data to generate a business wide table; store the business wide table in Redis cache and / or HBase database.

[0045] Specifically, in the data preparation stage, the full amount of user data is first processed efficiently through the MapReduce framework (MapReduce is a programming model and framework for processing large-scale data sets, used in distributed computing environments), mainly including operations such as collection, cleaning, conversion and aggregation of user data. Through the MapReduce framework, large-scale data sets can be processed in a distributed manner to generate business wide tables, which are wide-format data tables designed to meet specific business needs and contain multiple related fields, including user basic information, behavioral data, transaction data and other multi-dimensional 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 quickly obtain data directly from Redis, significantly reducing the IO consumption of reading and writing disks.

[0046] If the data in Redis changes within the preset interval, the latest data in Redis is imported into HBase at the preset time interval (HBase is a distributed, column-oriented NoSQL database, mainly used to store large-scale structured data. It is based on Hadoop Distributed File System (HDFS) for data storage and can handle PB-level data. For example, taking the intelligent factory equipment monitoring scenario as an example, the implementation process of generating business wide tables from full data is explained. The manufacturing department has deployed 1,000 industrial robots, and each device generates 20 sets of sensor data (temperature, vibration, displacement, etc.) per second. At the same time, the ERP system records equipment maintenance records, and the camera collects production line video streams. Now it is necessary to build a digital twin system to achieve virtual-real synchronization, including the following steps: ‌Step 1: Full data collection‌, including: Basic equipment data: Static information such as equipment ID, model, installation location, rated power, etc. is stored in MySQL (100 columns of structured data). Real-time sensor data: Kafka message queue receives binary messages (example message: 0x3A 0xA5 [equipment ID] [timestamp] 0x01 [temperature value] 0x02 [vibration value]...).

[0047] Maintenance records: Oracle database stores fault codes, maintenance time, replacement parts, etc. (about 100,000 records per month). Video stream: HDFS stores 1080P video (30 frames per second, with timestamp metadata).

[0048] Step 2: MapReduce data processing (cleaning phase): Through the collected full data, parse the device ID, convert the NTP time to UTC, filter abnormal device IDs, implement the data cleaning process, and exclude test data.

[0049] Step 3: Data transformation and association, including: Time dimension alignment: Convert the device failure time (format 2023-08-15 14:30:00 CST) to a UTC millisecond timestamp.

[0050] Space coordinate transformation: transform the robot displacement data from the local coordinate system to the factory global coordinate system (using an affine transformation matrix).

[0051] Relational connection: The process of dynamically associating cleaned device data with multi-dimensional business data to build a global data view to support complex business analysis.

[0052] Step 4: Business wide table construction The final generated device business wide table is shown in Table 1 below: Table 1 Equipment service broadband table

[0053] Step S202: Receive binary message reported by user in real time. Figure 1 Step S101 of the illustrated embodiment will not be described in detail here.

[0054] Step S203: Perform multiple service access, 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 of the corresponding topic of the digital twin scene.

[0055] Specifically, the above step S203 includes: Step S2031, use Jetty lightweight service to perform simultaneous access operations on binary message messages for multiple services, and use Nginx to parse the binary message messages, extract the valid data of the binary message messages, and serialize them according to business needs to obtain a preset data format file. When performing message parsing and serialization, use Nginx to load balance the loads of multiple services.

[0056] Specifically, during the message access phase, the Jetty lightweight service is used to access the incoming binary messages, and Nginx (‌Nginx is a high-performance HTTP and reverse proxy server) is used to achieve load balancing of multiple services. Multiple services refer to multiple processing services running in the data real-time interactive optimization technology system. The Jetty lightweight service and Nginx work together to complete the access, message parsing, serialization and subsequent business logic processing of binary message messages. In order to achieve load balancing, the Nginx high-performance HTTP and reverse proxy server is used to distribute the incoming binary message messages to different services for processing, thereby avoiding overloading of a single service and improving the overall performance and stability of the server.

[0057] Step S2032: When multiple services are accessed simultaneously, a blocking queue is used to store binary message.

[0058] Specifically, each service starts multiple threads at the same time to access binary message, uses BlockingQueue to store, and then parses and serializes the message. During the message access phase, it is parsed to extract valid data from the message, and necessary conversion and processing are performed according to business needs. The data obtained after serialization is usually a data format file that can be directly processed, such as JSON data format file, XML data format file, etc., for subsequent business logic processing.

[0059] Step S2033, using the WebSocket interface to send the preset data format file to the open source stream processing platform of the corresponding topic of the digital twin scene.

[0060] Specifically, open source stream processing platforms include Apache Flink, Apache Kafka Streams, etc. Here, Apache Kafka is taken as an example. It is a distributed stream processing platform that can efficiently process large-scale data streams. Before using it, you need to ensure that the Kafka cluster has been built and is running normally, and that 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 equipment status data.

[0061] ‌WebSocket is a TCP-based network communication protocol designed to achieve full-duplex communication between browsers and servers‌. After establishing a connection through a handshake process, persistent two-way data transmission can be achieved, allowing the server to actively push data to the client‌, and send the preset data format file to the open source stream processing platform corresponding to the theme of the digital twin scene through the WebSocket interface.

[0062] Step S204: connect the preset data format file from the open source stream processing platform to the digital twin scene, and perform message verification on the connected preset data format file through data filtering Bolt verification. When the message verification passes, the preset data format file is encapsulated as an object.

[0063] Specifically, the above step S204 includes: Step S2041, use the KafkaSpout component to connect the preset data format file from the open source stream processing platform to the digital twin scene.

[0064] Specifically, in the Storm processing stage, the integrated KafkaSpout (‌KafkaSpout‌ is a component in ApacheStorm that reads data from Apache Kafka and passes it to downstream components in the Storm topology for processing) is used to connect preset data format files from the open source stream processing platform to the digital twin scenario, simplifying the engineering complexity.

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

[0066] Specifically, this embodiment directly writes Bolt (a programming method for full-stack application development using the Bolt.new platform) to perform business logic processing. The correctness of the preset data format file is verified through data filtering Bolt, including first verifying the format, including message structure verification, checksum verification, field type matching, and then verifying the message content, including threshold rationality, business rule compliance, and timing consistency verification. Finally, the result is verified to be reasonable and the message is verified to be correct.

[0067] Step S2043, when the correctness verification is passed, the preset data format file is encapsulated as an object; the object is an object of a preset language type designed according to business requirements and containing valid data of a binary message.

[0068] Specifically, the preset language type is Java language type or other language type, and the correctness of the message is verified by the data filtering bolt, and it is encapsulated into an object. After the verification is passed, the message is encapsulated 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 that contains valid message data.

[0069] Step S205: construct a metaverse based on the encapsulated object using a microservice architecture, and write custom logic for the metaverse through a script engine, and use the microservice architecture and the metaverse with the custom logic to modify the state information of each virtual entity in the digital twin scene. Figure 1 Step S104 of the illustrated embodiment will not be described in detail here.

[0070] The implementation method of the metaverse in the digital twin scenario provided in this embodiment uses data processing tools to clean, convert and aggregate all data to generate business wide tables; the business wide tables are stored in Redis cache and / or HBase database, so that subsequent real-time processing can quickly obtain data directly from Redis, significantly reducing the IO consumption of reading and writing disks, improving the characteristics of real-time data interaction, and using Jetty lightweight services and Nginx and other technologies to achieve binary message access, message parsing and load balancing, providing a real-time interaction optimization technology, and improving the characteristics of real-time data interaction. When multiple services are connected at the same time, a blocking queue is used to store binary message messages to avoid data competition and thread conflicts.

[0071] In this embodiment, a method for realizing the metaverse in a digital twin scenario is provided, which can be used in computer terminals, such as central processing units, servers, etc. Figure 3 is a flow chart of a method for implementing a metaverse in a digital twin scenario according to an embodiment of the present invention, such as Figure 3 As shown, the process includes the following steps: Step S301: Receive binary message reported by user in real time. Figure 2 Step S202 of the illustrated embodiment will not be described in detail here.

[0072] Step S302: perform multiple service access, 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 of the corresponding theme of the digital twin scene. For details, please refer to Figure 2 Step S203 of the illustrated embodiment will not be described in detail here.

[0073] Step S303: Connect the preset data format file from the open source stream processing platform to the digital twin scene, and encapsulate the preset data format file as an object. Figure 2 Step S204 of the illustrated embodiment will not be described in detail here.

[0074] Step S304, build a metaverse based on the encapsulated object using a microservice architecture, write custom logic for the metaverse through a script engine, and use the microservice architecture and the metaverse with custom logic to modify the status information of each virtual entity in the digital twin scene.

[0075] Specifically, the above step S304 includes: Step S3041, loading the full user data corresponding to the valid data of the binary message in the encapsulated object from the Redis cache.

[0076] Specifically, before starting to load data, you first need to establish a connection with the Redis cache in the application. Different programming languages ​​have their own 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 binary message valid data in the encapsulated object, you first need to determine how to locate the key in Redis through the binary message valid data. After obtaining the Redis key, you can load the full user data from Redis.

[0077] The binary message in the encapsulated object includes the primary key, that is, the IP address. According to the primary key in the binary message in the encapsulated object, the user's full data (complete data set) is loaded from Redis, including basic user information, behavior data, transaction data and other dimensions of data. In the business logic processing stage, the user's full data is loaded from Redis according to the primary key in the message to support subsequent business processing, which helps to realize advanced functions such as personalized recommendations and precision marketing. At the same time, the activity rules saved in the front-end 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.

[0078] Step S3042, a metaverse is constructed using a microservice architecture based on the full amount of user data loaded corresponding to the valid data of the binary message in the encapsulated object, and a custom logic is written for the metaverse through a script engine to generate a metaverse model.

[0079] Specifically, the loaded full user data is used as the basis to build the user data management microservice. This microservice is responsible for storing, querying, and updating user data. According to the business needs of the metaverse, other microservices need to be built, such as virtual scene construction microservices and virtual item management microservices. Taking the virtual scene construction microservice as an example, it is responsible for building virtual scenes based on user data and other related configurations.

[0080] Use configuration files (such as JSON, YAML, XML, and other format files) to define the configuration parameters and behaviors of each microservice module. At the same time, introduce scripting engines (such as Python) to support complex custom logic. You can customize the behavior and appearance of the metaverse by modifying configuration files or writing scripts to meet different application scenarios and needs.

[0081] Step S3043, modify the status information of each virtual entity in the digital twin scene based on the metaverse model.

[0082] 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 pattern. Assume that in the digital twin scenario, each virtual entity has a unique identifier, and the association relationship between these identifiers and user data, scene elements, etc. is also recorded in the metaverse pattern. According to the business logic and user data in the metaverse pattern, determine the updates that need to be made to the virtual entity status in the digital twin scenario.

[0083] Step S305: using a symmetric encryption algorithm to perform data transmission on the preset data format file and the encapsulated object.

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

[0085] 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 data during transmission. At the same time, data encryption storage stores system data in encrypted form on the server. Even if the server is illegally accessed, the system plaintext data cannot be directly obtained. This encryption method will be used in the basic framework of real-time data interaction optimization technology to prevent data from being stolen, attacked, misappropriated, etc. during interaction, thereby protecting data security.

[0086] It should be noted that during the data transmission process, different access rights are assigned to users of different roles based on the role-based access control model, such as administrators, ordinary users, etc., and corresponding access rights 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. The symmetric encryption algorithm AES-256 is used to effectively prevent unauthorized access and data leakage.

[0087] When collecting user data, the purpose and scope of the user data will be clearly informed, and the user's explicit consent will be obtained. When using user data, relevant laws, regulations and privacy policies are strictly observed 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 user privacy information. At the same time, the system's operating status and user behavior are monitored in real time. By monitoring edge data access and pre-setting script button information, if a user triggers an event, anomaly detection and analysis technology is used to promptly detect and handle abnormal events to ensure the stable operation of the system and the security of user data.

[0088] The implementation method of the metaverse in the digital twin scene provided in this embodiment loads the full amount of user data corresponding to the valid data of the binary message in the encapsulated object from the Redis cache; modifies the state information of each virtual entity in the digital twin scene according to the full amount of 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 recommendations and precision marketing. Encryption means will be used in the basic framework of real-time data interaction optimization technology to protect the security of data transmission in order to avoid theft, attack, misappropriation and other plots of data in interaction.

[0089] As one or more specific application embodiments of the embodiments of the present invention, the implementation method of the metaverse in the digital twin scenario provided by the present invention is further described in detail as follows: A company needs to operate 20 automated manufacturing workshops and manage more than 10,000 automated guided vehicles (AGVs), 500 stackers, and 2,000 RFID scanning nodes. The company needs to build a metaverse system that maps the digital twin scenes of the physical world in real time. The goals include: 1. Real-time status mapping: The operating status of all devices (such as location, temperature, and power) must be accurately synchronized in the digital twin.

[0090] 2. Dynamic expansion support: When adding new equipment or warehouses, the Metaverse scene needs to be updated in a timely manner.

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

[0092] 4. Cross-border collaboration: Data transmission delay across data centers must be less than 200 milliseconds while ensuring data security.

[0093] The method for implementing the metaverse of a digital twin scenario includes the following steps: 1. Real-time data access and analysis: Physical devices (such as AGVs and sensors) continuously send binary data messages through IoT protocols. These messages use a compact encoding format (such as Protobuf) and contain timestamps, device IDs, coordinate information, sensor readings, etc. The data is extracted and converted into structured data to filter out illegal data.

[0094] 2. Business data integration: The parsed data is dynamically associated with external business systems (such as maintenance records) to build a global equipment view. For example, the real-time coordinates of the AGV are combined with the warehouse map to calculate whether it is in a legal area; historical maintenance records are associated to determine whether the equipment has potential failure risks. The integrated data is stored in the form of a "wide table".

[0095] 3. Multi-layer data verification, that is, multi-level verification is achieved through the data filtering Bolt component: Protocol layer verification: Check the integrity of the message structure (such as header and tail identifiers, checksums), field types (such as strings, numbers), and value ranges.

[0096] Business layer verification: Determine whether the device status complies with business rules, such as whether the AGV's moving path matches the task and whether the battery power supports the current load. Timing consistency verification: Ensure that data timestamps are strictly incremented to avoid state rollback due to network delays.

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

[0098] 4. Microservice Metaverse Engine, that is, the system adopts a microservice architecture and splits the core functions into independent services: User management service: handles permission control and personalized configuration.

[0099] Scene Rendering Service: Generates a 3D visualization interface in real time based on the device status, and supports multiple levels of detail (LOD) rendering to optimize performance.

[0100] Physics simulation service: calculates physical behaviors such as device collision and path planning.

[0101] Intelligent decision-making service: Predict equipment failures based on machine learning models and optimize resource scheduling strategies.

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

[0103] The implementation method of the metaverse in the digital twin scenario provided in this embodiment solves the defects and shortcomings of the existing digital twin system in the construction of the metaverse through innovations such as deep technology integration, real-time interaction optimization, data security and privacy protection, and scalability and flexibility architecture, and provides strong technical support for the construction and development of the metaverse.

[0104] In this embodiment, a device for realizing the metaverse in a digital twin scenario is also provided, which is used to realize the above-mentioned embodiments and preferred implementation modes, and will not be repeated hereafter. As used below, the term "module" can realize a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.

[0105] This embodiment provides a device for realizing the metaverse in a digital twin scenario, such as Figure 5 As shown, including: The message receiving module 501 is used to receive binary message reported by the user; The message processing module 502 is used to perform multiple service access, message parsing and serialization on the binary message in sequence, obtain a preset data format file, and send the preset data format file to the open source stream processing platform of the corresponding topic of the digital twin scene; The file access module 503 is used to access the preset data format file from the open source stream processing platform into the digital twin scene, and perform message verification on the accessed preset data format file through the data filtering Bolt verification. When the message verification passes, the preset data format file is encapsulated as an object; The state information modification module 504 is used to build a metaverse based on the encapsulated objects using a microservice architecture, and to write customized logic for the metaverse through a script engine, and to modify the state information of each virtual entity in the digital twin scene using the microservice architecture and the metaverse with the customized logic written.

[0106] In some optional implementations, the message processing module 502 includes: The message processing unit is used to use Jetty lightweight service to perform multiple service access operations on binary message messages at the same time, and use Nginx to parse the binary message messages, extract the valid data of the binary message messages, and serialize them according to business needs to obtain a preset data format file. When performing message parsing and serialization, Nginx is used to load balance the loads of multiple services.

[0107] The file sending unit is used to send the preset data format file to the open source stream processing platform of the corresponding topic of the digital twin scene using the WebSocket interface. The blocking queue storage unit is used to store binary message messages using a blocking queue when multiple services are connected at the same time.

[0108] In some optional implementations, the file access module 503 includes: The file access unit is used to use the KafkaSpout component to access files in a preset data format from the open source stream processing platform into the digital twin scenario.

[0109] The business logic processing and correctness verification unit is used to perform business logic processing on a preset data format file in a programmatic manner using a data filtering bolt, and to verify the correctness of the preset data format file after the business logic processing through the data filtering bolt.

[0110] The encapsulation unit is used to encapsulate the preset data format file into an object after the correctness verification is passed; the object is an object of a preset language type designed according to business requirements and containing valid data of a binary message.

[0111] In some optional implementations, the state information modification module 504 includes: The data loading unit is used to load the full amount of user data corresponding to the valid data of the binary message in the encapsulated object from the Redis cache.

[0112] The metaverse construction unit is used to construct the metaverse using a microservice architecture according to the full amount of user data loaded corresponding to the valid data of the binary message in the encapsulated object, and to write customized logic for the metaverse through a script engine to generate a metaverse model; The state information modification unit is used to modify the state information of each virtual entity in the digital twin scene based on the metaverse mode.

[0113] In some optional implementations, the device for implementing the metaverse in the digital twin scenario further includes: The data preparation module is used to obtain the user's full data; the full data includes the user's basic information, behavior data and transaction data; use data processing tools to clean, transform and aggregate the full data to generate a business wide table; store the business wide table in the Redis cache and / or HBase database.

[0114] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0115] In the digital twin scenario of this embodiment, the implementation device of the metaverse is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0116] The embodiment of the present invention also provides a computer device having the above Figure 5 The implementation device of the metaverse in the digital twin scenario shown.

[0117] See also Figure 6 , Figure 6 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as 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. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the 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 (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 6 A processor 10 is taken as an example.

[0118] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

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

[0120] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application 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-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0121] 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 also include a combination of the above types of memory.

[0122] The computer device also 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 via a bus or other means. Figure 6 The example of connecting through bus is taken in the following.

[0123] The input device 30 can receive input digital or character information, and generate key signal input related to the user settings and function control of the computer device, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, an indicator bar, 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 tactile feedback device (e.g., a vibration motor), etc. The above-mentioned display device includes but is not limited to a liquid crystal display, a light emitting diode, a display and a plasma display. In some optional embodiments, the display device may be a touch screen.

[0124] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in 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 storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, 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. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0125] A part of the present invention may be applied as a computer program product, such as a computer program instruction, 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 understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is 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. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.

[0126] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all 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 comprises: Receive binary message messages reported by users in real time; Perform multiple service access, 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 of the corresponding topic of the digital twin scene; The preset data format file is connected to the digital twin scene from the open source stream processing platform, and the message verification of the connected preset data format file is performed through the data filtering Bolt verification. When the message verification passes, the preset data format file is encapsulated as an object; Based on the encapsulated objects, the metaverse is built using a microservice architecture, and custom logic is written for the metaverse through a script engine. The microservice architecture and the metaverse with custom logic are used to modify the status information of each virtual entity in the digital twin scene.

2. The method according to claim 1, characterized in that Before receiving the binary message reported by the user, the method further includes: Obtaining the user's full data; the full data includes the user's basic information, behavior data and transaction data; Using data processing tools to clean, convert and aggregate the full amount of data to generate a business wide table; The business wide table is stored in the Redis cache and / or HBase database.

3. The method according to claim 2, characterized in that The binary message is sequentially subjected to multiple service access, message parsing and serialization to obtain a preset data format file, and the preset data format file is sent to an open source stream processing platform corresponding to the theme of the digital twin scene, including: The Jetty lightweight service is used to perform a simultaneous access operation of multiple services on the binary message, and Nginx is used to parse the binary message, extract the valid data of the binary message, and serialize it according to business requirements to obtain a preset data format file. When parsing and serializing the message, Nginx is used to load balance the loads of multiple services; The preset data format file is sent to the open source stream processing platform of the corresponding topic of the digital twin scene using the WebSocket interface.

4. The method according to claim 3, characterized in that Multiple service access, message parsing and serialization are performed on binary message messages in sequence, including: When multiple services are connected at the same time, a blocking queue is used to store binary message.

5. The method according to claim 3, characterized in that: The preset data format file is connected to the digital twin scene from the open source stream processing platform, and the connected preset data format file is verified by the data filtering Bolt verification. When the correctness verification passes, the preset data format file is encapsulated as an object, including: The KafkaSpout component is used to connect the preset data format file from the open source stream processing platform to the digital twin scene; Using a data filtering bolt to perform business logic processing on the preset data format file in a programmatic manner, and verifying the correctness of the preset data format file after the business logic processing through the data filtering bolt; When the correctness verification is passed, the preset data format file is encapsulated as an object; the object is an object of a preset language type designed according to business requirements and containing valid data of a binary message.

6. The method according to claim 5, characterized in that The microservice architecture is used to construct the metaverse based on the encapsulated object, and the custom logic is written for the metaverse through the script engine. The microservice architecture and the metaverse with the custom logic written are used to modify the state information of each virtual entity in the digital twin scene, including: Load the full user data corresponding to the valid data of the binary message in the encapsulated object from the Redis cache; The metaverse is constructed using a microservice architecture based on the full user data corresponding to the valid data of the binary message in the encapsulated object, and a script engine is used to write customized logic for the metaverse to generate a metaverse model. Modify the state information of each virtual entity in the digital twin scene based on the metaverse model.

7. The method according to claim 1, characterized in that The method further comprises: A symmetric encryption algorithm is used to transmit data in preset data format files and encapsulated objects.

8. A device for realizing the metaverse in a digital twin scenario, characterized in that: The device comprises: A message receiving module is used to receive binary message reports from users in real time; A message processing module, used to perform multiple service access, message parsing and serialization on the binary message in sequence, 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 scene; A file access module is used to access the preset data format file from the open source stream processing platform into the digital twin scene, and perform message verification on the accessed preset data format file through data filtering Bolt verification. When the message verification passes, the preset data format file is encapsulated as an object; The state information modification module is used to build a metaverse based on the encapsulated objects using a microservice architecture, and to write customized logic for the metaverse through a script engine. The microservice architecture and the metaverse with customized logic are used to modify the state information of each virtual entity in the digital twin scene.

9. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the method for realizing the metaverse in the digital twin scenario according to any one of claims 1 to 7 by executing the computer instructions.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method for implementing the metaverse in the digital twin scenario according to any one of claims 1 to 7.

Citation Information

Patent Citations

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

    CN111208759A

  • Digital twin linkage method and system applied to meta universe

    CN114707640A

  • Docking message processing method and system

    CN117255144A

  • Power transformation element universe scene building method and system based on unreal engine

    CN117541713A

  • Server front positioning method

    WO2017166097A1